Tests for module 'sqrtl-ieee'.
[gnulib.git] / ChangeLog
1 2012-02-27  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'sqrtl-ieee'.
4         * modules/sqrtl-ieee-tests: New file.
5         * tests/test-sqrtl-ieee.c: New file.
6
7         New module 'sqrtl-ieee'.
8         * modules/sqrtl-ieee: New file.
9
10         Tests for module 'sqrt-ieee'.
11         * modules/sqrt-ieee-tests: New file.
12         * tests/test-sqrt-ieee.c: New file.
13
14         New module 'sqrt-ieee'.
15         * modules/sqrt-ieee: New file.
16
17         Tests for module 'sqrtf-ieee'.
18         * modules/sqrtf-ieee-tests: New file.
19         * tests/test-sqrtf-ieee.c: New file.
20         * tests/test-sqrt-ieee.h: New file.
21
22         New module 'sqrtf-ieee'.
23         * modules/sqrtf-ieee: New file.
24
25 2012-02-27  Bruno Haible  <bruno@clisp.org>
26
27         remainderl-ieee: Work around test failure on OSF/1.
28         * m4/remainderl-ieee.m4: New file.
29         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
30         present, test whether remainderl works with a zero second argument.
31         Replace it if not.
32         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
33         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
34         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
35         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
36         (Depends-on): Update conditions.
37         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38         (Depends-on): Add remainder-ieee.
39         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
40         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41         module.
42
43         remainderf-ieee: Work around test failure on OSF/1.
44         * m4/remainderf-ieee.m4: New file.
45         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
46         present, test whether remainderf works with a zero second argument.
47         Replace it if not.
48         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
49         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
50         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
51         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
52         (Depends-on): Update conditions.
53         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
54         (Depends-on): Add remainder-ieee.
55         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
56         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
57         module.
58
59         remainder-ieee: Work around test failure on OSF/1.
60         * m4/remainder-ieee.m4: New file.
61         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
62         present, test whether remainder works with a zero second argument.
63         Replace it if not.
64         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
65         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
66         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
67         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
68         (Depends-on): Update dependencies.
69         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
70         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
71         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
72
73         Tests for module 'remainderl-ieee'.
74         * modules/remainderl-ieee-tests: New file.
75         * tests/test-remainderl-ieee.c: New file.
76
77         New module 'remainderl-ieee'.
78         * modules/remainderl-ieee: New file.
79
80         Tests for module 'remainder-ieee'.
81         * modules/remainder-ieee-tests: New file.
82         * tests/test-remainder-ieee.c: New file.
83
84         New module 'remainder-ieee'.
85         * modules/remainder-ieee: New file.
86
87         Tests for module 'remainderf-ieee'.
88         * modules/remainderf-ieee-tests: New file.
89         * tests/test-remainderf-ieee.c: New file.
90         * tests/test-remainder-ieee.h: New file.
91
92         New module 'remainderf-ieee'.
93         * modules/remainderf-ieee: New file.
94
95 2012-02-27  Bruno Haible  <bruno@clisp.org>
96
97         modff, modfl: Fix configure syntax error.
98         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
99         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
100
101 2012-02-27  Bruno Haible  <bruno@clisp.org>
102
103         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
104         * m4/fmodl-ieee.m4: New file.
105         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
106         whether fmodl works with zero arguments. Replace it if not.
107         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
108         (Depends-on): Add fmod-ieee.
109         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
110         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
111
112         fmodf-ieee: Work around test failure on OSF/1.
113         * m4/fmodf-ieee.m4: New file.
114         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
115         whether fmodf works with zero arguments. Replace it if not.
116         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
118         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
119         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
120         (Depends-on): Update dependencies.
121         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
122         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
123         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
124
125         fmodf-ieee: Work around test failure on MSVC 9.
126         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
127         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
128
129         fmod-ieee: Work around test failures on OSF/1, mingw.
130         * m4/fmod-ieee.m4: New file.
131         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
132         whether fmod works with zero arguments. Replace it if not.
133         * lib/math.in.h (fmod): New declaration.
134         * lib/fmod.c: New file.
135         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
137         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
138         * modules/fmod (Files): Add lib/fmod.c.
139         (Depends-on): Add math, isinf, trunc, fma.
140         (configure.ac): Arrange to compile lib/fmod.c if needed.
141         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
142         m4/signbit.m4.
143         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
144         * tests/test-math-c++.cc: Check the declaration of fmod.
145         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
146
147         fmodl-ieee: Fix test failures.
148         * lib/fmodl.c (fmodl): Treat Inf specially.
149         * modules/fmodl (Depends-on): Add isinf.
150
151         Tests for module 'fmodl-ieee'.
152         * modules/fmodl-ieee-tests: New file.
153         * tests/test-fmodl-ieee.c: New file.
154
155         New module 'fmodl-ieee'.
156         * modules/fmodl-ieee: New file.
157
158         Tests for module 'fmod-ieee'.
159         * modules/fmod-ieee-tests: New file.
160         * tests/test-fmod-ieee.c: New file.
161
162         New module 'fmod-ieee'.
163         * modules/fmod-ieee: New file.
164
165         Tests for module 'fmodf-ieee'.
166         * modules/fmodf-ieee-tests: New file.
167         * tests/test-fmodf-ieee.c: New file.
168         * tests/test-fmod-ieee.h: New file.
169
170         New module 'fmodf-ieee'.
171         * modules/fmodf-ieee: New file.
172
173 2012-02-27  Bruno Haible  <bruno@clisp.org>
174
175         Tests for module 'rintl-ieee'.
176         * modules/rintl-ieee-tests: New file.
177         * tests/test-rintl-ieee.c: New file.
178
179         New module 'rintl-ieee'.
180         * modules/rintl-ieee: New file.
181
182         Tests for module 'rint-ieee'.
183         * modules/rint-ieee-tests: New file.
184         * tests/test-rint-ieee.c: New file.
185
186         New module 'rint-ieee'.
187         * modules/rint-ieee: New file.
188
189         Tests for module 'rintf-ieee'.
190         * modules/rintf-ieee-tests: New file.
191         * tests/test-rintf-ieee.c: New file.
192         * tests/test-rint-ieee.h: New file.
193
194         New module 'rintf-ieee'.
195         * modules/rintf-ieee: New file.
196
197 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
198
199         regex: re_search etc. should return -2 when memory exhausted
200         This bug was uncovered when testing 'grep'.  Without the fix,
201         re_search and friends return -1 when memory is exhausted, but -1
202         means no match, and this causes grep to falsely report no-match
203         instead of memory-exhaustion.  See
204         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
205         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
206         trouble; this can occur if re_search_internal ran out of memory.
207
208 2012-02-26  Bruno Haible  <bruno@clisp.org>
209
210         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
211         * m4/modfl-ieee.m4: New file.
212         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
213         whether modfl works with Inf. Replace it if not.
214         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
216         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
217         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
218         (Depends-on): Update dependencies.
219         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
220         m4/signbit.m4.
221         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
222         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
223
224         modfl-ieee: Fix dependencies.
225         * modules/modfl-ieee (Depends-on): Add modf-ieee.
226
227         modfl-ieee: Fix test failures.
228         * lib/modfl.c (modfl): Treat NaN and Inf specially.
229         * modules/modfl (Depends-on): Add isfinite, isinf.
230
231         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
232         * m4/modff-ieee.m4: New file.
233         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
234         whether modff works with NaN and Inf. Replace it if not.
235         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
237         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
238         * modules/modff (configure.ac): Consider REPLACE_MODFF.
239         (Depends-on): Update dependencies.
240         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
241         m4/signbit.m4.
242         (Depends-on): Add modf-ieee.
243         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
244         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
245
246         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
247         * m4/modf-ieee.m4: New file.
248         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
249         whether modf works with NaN and Inf. Replace it if not.
250         * lib/math.in.h (modf): New declaration.
251         * lib/modf.c: New file.
252         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
254         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
255         * modules/modf (Files): Add lib/modf.c.
256         (Depends-on): Add math, isfinite, trunc, isinf.
257         (configure.ac): Addrange to compile lib/modf.c if needed.
258         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
259         m4/signbit.m4.
260         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
261         * tests/test-math-c++.cc: Check the declaration of modf.
262         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
263
264         Tests for module 'modfl-ieee'.
265         * modules/modfl-ieee-tests: New file.
266         * tests/test-modfl-ieee.c: New file.
267
268         New module 'modfl-ieee'.
269         * modules/modfl-ieee: New file.
270
271         Tests for module 'modf-ieee'.
272         * modules/modf-ieee-tests: New file.
273         * tests/test-modf-ieee.c: New file.
274
275         New module 'modf-ieee'.
276         * modules/modf-ieee: New file.
277
278         Tests for module 'modff-ieee'.
279         * modules/modff-ieee-tests: New file.
280         * tests/test-modff-ieee.c: New file.
281         * tests/test-modf-ieee.h: New file.
282
283         New module 'modff-ieee'.
284         * modules/modff-ieee: New file.
285
286 2012-02-26  Bruno Haible  <bruno@clisp.org>
287
288         Tests for module 'fabsl-ieee'.
289         * modules/fabsl-ieee-tests: New file.
290         * tests/test-fabsl-ieee.c: New file.
291
292         New module 'fabsl-ieee'.
293         * modules/fabsl-ieee: New file.
294
295         Tests for module 'fabs-ieee'.
296         * modules/fabs-ieee-tests: New file.
297         * tests/test-fabs-ieee.c: New file.
298
299         New module 'fabs-ieee'.
300         * modules/fabs-ieee: New file.
301
302         Tests for module 'fabsf-ieee'.
303         * modules/fabsf-ieee-tests: New file.
304         * tests/test-fabsf-ieee.c: New file.
305         * tests/test-fabs-ieee.h: New file.
306
307         New module 'fabsf-ieee'.
308         * modules/fabsf-ieee: New file.
309
310 2012-02-26  Bruno Haible  <bruno@clisp.org>
311
312         Tests for module 'fmal-ieee'.
313         * modules/fmal-ieee-tests: New file.
314         * tests/test-fmal-ieee.c: New file.
315
316         New module 'fmal-ieee'.
317         * modules/fmal-ieee: New file.
318
319         Tests for module 'fma-ieee'.
320         * modules/fma-ieee-tests: New file.
321         * tests/test-fma-ieee.c: New file.
322
323         New module 'fma-ieee'.
324         * modules/fma-ieee: New file.
325
326         Tests for module 'fmaf-ieee'.
327         * modules/fmaf-ieee-tests: New file.
328         * tests/test-fmaf-ieee.c: New file.
329         * tests/test-fma-ieee.h: New file.
330
331         New module 'fmaf-ieee'.
332         * modules/fmaf-ieee: New file.
333
334 2012-02-26  Bruno Haible  <bruno@clisp.org>
335
336         Tests for module 'ldexpl-ieee'.
337         * modules/ldexpl-ieee-tests: New file.
338         * tests/test-ldexpl-ieee.c: New file.
339
340         New module 'ldexpl-ieee'.
341         * modules/ldexpl-ieee: New file.
342
343         Tests for module 'ldexp-ieee'.
344         * modules/ldexp-ieee-tests: New file.
345         * tests/test-ldexp-ieee.c: New file.
346
347         New module 'ldexp-ieee'.
348         * modules/ldexp-ieee: New file.
349
350         Tests for module 'ldexpf-ieee'.
351         * modules/ldexpf-ieee-tests: New file.
352         * tests/test-ldexpf-ieee.c: New file.
353         * tests/test-ldexp-ieee.h: New file.
354
355         New module 'ldexpf-ieee'.
356         * modules/ldexpf-ieee: New file.
357
358 2012-02-26  Bruno Haible  <bruno@clisp.org>
359
360         Refactor frexp*-ieee tests.
361         * tests/test-frexp-ieee.h: New file.
362         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
363         (main): Just call test_function.
364         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
365         (main): Just call test_function.
366         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
367         (main): Just call test_function.
368         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
369         * modules/frexp-ieee-tests (Files): Likewise.
370         * modules/frexpl-ieee-tests (Files): Likewise.
371
372         Tests for module 'frexpl-ieee'.
373         * modules/frexpl-ieee-tests: New file.
374         * tests/test-frexpl-ieee.c: New file.
375
376         New module 'frexpl-ieee'.
377         * modules/frexpl-ieee: New file.
378
379         Tests for module 'frexp-ieee'.
380         * modules/frexp-ieee-tests: New file.
381         * tests/test-frexp-ieee.c: New file.
382
383         New module 'frexp-ieee'.
384         * modules/frexp-ieee: New file.
385
386         Tests for module 'frexpf-ieee'.
387         * modules/frexpf-ieee-tests: New file.
388         * tests/test-frexpf-ieee.c: New file.
389
390         New module 'frexpf-ieee'.
391         * modules/frexpf-ieee: New file.
392
393 2012-02-26  Bruno Haible  <bruno@clisp.org>
394
395         roundl-ieee tests: More tests.
396         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
397         (main): Add tests for [MX] shaded specification in POSIX.
398         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
399         (Depends-on): Add isnanl-nolibm.
400
401         round-ieee tests: More tests.
402         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
403         (main): Add tests for [MX] shaded specification in POSIX.
404         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
405         (Depends-on): Add isnand-nolibm.
406
407         roundf-ieee tests: More tests.
408         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
409         (main): Add tests for [MX] shaded specification in POSIX.
410         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
411         (Depends-on): Add isnanf-nolibm.
412
413         truncl-ieee tests: More tests.
414         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
415         (main): Add tests for [MX] shaded specification in POSIX.
416         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
417         (Depends-on): Add isnanl-nolibm.
418
419         trunc-ieee tests: More tests.
420         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
421         (main): Add tests for [MX] shaded specification in POSIX.
422         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
423         (Depends-on): Add isnand-nolibm.
424
425         truncf-ieee tests: More tests.
426         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
427         (main): Add tests for [MX] shaded specification in POSIX.
428         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
429         (Depends-on): Add isnanf-nolibm.
430
431         ceill-ieee tests: More tests.
432         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
433         (main): Add tests for [MX] shaded specification in POSIX.
434         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
435         (Depends-on): Add isnanl-nolibm.
436
437         ceil-ieee tests: More tests.
438         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
439         (main): Add tests for [MX] shaded specification in POSIX.
440         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
441         (Depends-on): Add isnand-nolibm.
442
443         ceilf-ieee tests: More tests.
444         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
445         (main): Add tests for [MX] shaded specification in POSIX.
446         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
447         (Depends-on): Add isnanf-nolibm.
448
449         floorl-ieee tests: More tests.
450         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
451         (main): Add tests for [MX] shaded specification in POSIX.
452         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
453         (Depends-on): Add isnanl-nolibm.
454
455         floor-ieee tests: More tests.
456         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
457         (main): Add tests for [MX] shaded specification in POSIX.
458         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
459         (Depends-on): Add isnand-nolibm.
460
461         floorf-ieee tests: More tests.
462         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
463         (main): Add tests for [MX] shaded specification in POSIX.
464         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
465         (Depends-on): Add isnanf-nolibm.
466
467 2012-02-26  Bruno Haible  <bruno@clisp.org>
468
469         fpieee: More comments.
470         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
471
472 2012-02-25  Bruno Haible  <bruno@clisp.org>
473
474         Tests for module 'log10l'.
475         * modules/log10l-tests: New file.
476         * tests/test-log10l.c: New file.
477         * tests/test-math-c++.cc: Check the declaration of log10l.
478
479         New module 'log10l'.
480         * lib/math.in.h (log10l): New declaration.
481         * lib/log10l.c: New file.
482         * m4/log10l.m4: New file.
483         * modules/log10l: New file.
484         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
486         HAVE_DECL_LOG10L.
487         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
488         HAVE_DECL_LOG10L.
489         * doc/posix-functions/log10l.texi: Mention the new module.
490
491 2012-02-25  Bruno Haible  <bruno@clisp.org>
492
493         fmodl, remainder*: Avoid wrong results due to rounding errors.
494         * lib/fmodl.c (fmodl): Correct the result if it is not within the
495         expected bounds.
496         * lib/remainderf.c (remainderf): Likewise.
497         * lib/remainder.c (remainder): Likewise.
498         * lib/remainderl.c (remainderl): Likewise.
499
500 2012-02-25  Bruno Haible  <bruno@clisp.org>
501
502         Tests for module 'remainderl'.
503         * modules/remainderl-tests: New file.
504         * tests/test-remainderl.c: New file.
505         * tests/test-math-c++.cc: Check the declaration of remainderl.
506
507         New module 'remainderl'.
508         * lib/math.in.h (remainderl): New declaration.
509         * lib/remainderl.c: New file.
510         * m4/remainderl.m4: New file.
511         * modules/remainderl: New file.
512         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
514         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
515         HAVE_REMAINDERL.
516         * doc/posix-functions/remainderl.texi: Mention the new module.
517
518 2012-02-25  Bruno Haible  <bruno@clisp.org>
519
520         Tests for module 'remainderf'.
521         * modules/remainderf-tests: New file.
522         * tests/test-remainderf.c: New file.
523         * tests/test-math-c++.cc: Check the declaration of remainderf.
524
525         New module 'remainderf'.
526         * lib/math.in.h (remainderf): New declaration.
527         * lib/remainderf.c: New file.
528         * m4/remainderf.m4: New file.
529         * modules/remainderf: New file.
530         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
532         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
533         HAVE_REMAINDERF.
534         * doc/posix-functions/remainderf.texi: Mention the new module.
535
536 2012-02-25  Bruno Haible  <bruno@clisp.org>
537
538         remainder: Support for MSVC.
539         * lib/math.in.h (remainder): New declaration.
540         * lib/remainder.c: New file.
541         * m4/remainder.m4: New file.
542         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
543         (Depends-on): Add math, round, fma.
544         (configure.ac): Use results of gl_FUNC_REMAINDER.
545         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
547         HAVE_DECL_REMAINDER.
548         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
549         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
550         * tests/test-math-c++.cc: Check the declaration of remainder.
551         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
552         problems are fixed.
553
554 2012-02-25  Bruno Haible  <bruno@clisp.org>
555
556         Tests for module 'fmodl'.
557         * modules/fmodl-tests: New file.
558         * tests/test-fmodl.c: New file.
559         * tests/test-math-c++.cc: Check the declaration of fmodl.
560
561         New module 'fmodl'.
562         * lib/math.in.h (fmodl): New declaration.
563         * lib/fmodl.c: New file.
564         * m4/fmodl.m4: New file.
565         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
567         REPLACE_FMODL.
568         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
569         REPLACE_FMODL.
570         * modules/fmodl: New file.
571         * doc/posix-functions/fmodl.texi: Mention the new module.
572
573 2012-02-25  Bruno Haible  <bruno@clisp.org>
574
575         Tests for module 'modfl'.
576         * modules/modfl-tests: New file.
577         * tests/test-modfl.c: New file.
578         * tests/test-math-c++.cc: Check the declaration of modfl.
579
580         New module 'modfl'.
581         * lib/math.in.h (modfl): New declaration.
582         * lib/modfl.c: New file.
583         * m4/modfl.m4: New file.
584         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
586         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
587         * modules/modfl: New file.
588         * doc/posix-functions/modfl.texi: Mention the new module.
589
590 2012-02-25  Bruno Haible  <bruno@clisp.org>
591
592         Tests for module 'fabsl'.
593         * modules/fabsl-tests: New file.
594         * tests/test-fabsl.c: New file.
595         * tests/test-math-c++.cc: Check the declaration of fabsl.
596
597         New module 'fabsl'.
598         * lib/math.in.h (fabsl): New declaration.
599         * lib/fabsl.c: New file.
600         * m4/fabsl.m4: New file.
601         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
603         REPLACE_FABSL.
604         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
605         REPLACE_FABSL.
606         * modules/fabsl: New file.
607         * doc/posix-functions/fabsl.texi: Mention the new module.
608
609 2012-02-25  Bruno Haible  <bruno@clisp.org>
610
611         fabs tests: More tests.
612         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
613         (zero): New variable.
614         (main): Add tests for signed zero.
615         * modules/fabs-tests (Files): Add tests/minus-zero.h.
616
617         fabsf tests: More tests.
618         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
619         (zero): New variable.
620         (main): Add tests for signed zero.
621         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
622
623 2012-02-24  Bruno Haible  <bruno@clisp.org>
624
625         atanl: Provide function definition on MSVC.
626         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
627         function pointer.
628         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
629
630 2012-02-24  Bruno Haible  <bruno@clisp.org>
631
632         acosl: Provide function definition on MSVC.
633         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
634         function pointer.
635         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
636
637 2012-02-24  Bruno Haible  <bruno@clisp.org>
638
639         asinl: Provide function definition on MSVC.
640         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
641         function pointer.
642         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
643
644 2012-02-24  Bruno Haible  <bruno@clisp.org>
645
646         tanl: Provide function definition on MSVC.
647         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
648         function pointer.
649         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
650
651 2012-02-24  Bruno Haible  <bruno@clisp.org>
652
653         cosl: Provide function definition on MSVC.
654         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
655         function pointer.
656         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
657
658 2012-02-24  Bruno Haible  <bruno@clisp.org>
659
660         sinl: Provide function definition on MSVC.
661         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
662         function pointer.
663         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
664
665 2012-02-24  Bruno Haible  <bruno@clisp.org>
666
667         logl: Provide function definition on MSVC.
668         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
669         function pointer.
670         * lib/math.in.h (logl): Undefine if it does not exist as a function.
671
672 2012-02-24  Bruno Haible  <bruno@clisp.org>
673
674         expl: Provide function definition on MSVC.
675         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
676         function pointer.
677         * lib/math.in.h (expl): Undefine if it does not exist as a function.
678
679 2012-02-24  Bruno Haible  <bruno@clisp.org>
680
681         sqrtl: Provide function definition on MSVC.
682         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
683         a function pointer.
684         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
685
686 2012-02-24  Bruno Haible  <bruno@clisp.org>
687
688         ceill: Provide function definition on MSVC.
689         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
690         used as a function pointer.
691         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
692
693 2012-02-24  Bruno Haible  <bruno@clisp.org>
694
695         floorl: Provide function definition on MSVC.
696         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
697         used as a function pointer.
698         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
699
700 2012-02-24  Bruno Haible  <bruno@clisp.org>
701
702         ceilf: Provide function definition on MSVC.
703         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
704         used as a function pointer.
705         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
706
707 2012-02-24  Bruno Haible  <bruno@clisp.org>
708
709         floorf: Provide function definition on MSVC.
710         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
711         used as a function pointer.
712         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
713
714 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
715
716         stdnoreturn: new module
717         This implements a replacement for C11's <stdnoreturn.h>.
718         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
719         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
720         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
721         * tests/test-stdnoreturn.c: New files.
722
723 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
724
725         regex: fix false multibyte matches in some regular expressions
726         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
727         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
728         * lib/regex_internal.c (re_string_skip_chars):
729         Fix miscomputation of remain_len that may cause incomplete
730         multi-byte character and false match.
731
732 2012-02-24  Jim Meyering  <meyering@redhat.com>
733
734         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
735         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
736         uses with "==" *before* the call, e.g., 0 == strcmp (...)
737         Remove now-unnecessary str''cmp obfuscation.
738         Suggested by Akim Demaille.
739
740 2012-02-24  Bruno Haible  <bruno@clisp.org>
741
742         streq: Rename macro.
743         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
744         * NEWS: Mention the change.
745         * lib/mbrtowc.c (mbrtowc): Update.
746         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
747         * lib/wcwidth.c (wcwidth): Update.
748         Suggested by Akim Demaille and Jim Meyering.
749
750 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
751
752         regex: fix typo in definition of MIN
753         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
754         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
755
756 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
757             Bruno Haible  <bruno@clisp.org>
758
759         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
760         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
761         entries into a stack-allocated buffer directly.
762         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
763
764 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
765             Bruno Haible  <bruno@clisp.org>
766
767         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
768
769          - There were several instances of this pattern:
770
771              for (;;) {
772                n = acl (f, GETACLCNT, 0, NULL);
773                [ allocate an array A of size N ]
774                if (acl (f, GETACL, n, a) == n)
775                  break;
776              }
777
778            This loop might never terminate if some other process is constantly
779            manipulating the file's ACL.  The loop should be rewritten to
780            terminate.
781
782          - The acl (... GETACLNT ...) call is merely an optimization; its value
783            is merely a hint as to how big to make the array.  A better
784            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
785            and just guess a reasonably-big size, growing the size and trying
786            again if it's not large enough.  This guarantees termination, and
787            saves a system call.
788
789         * lib/acl-internal.h: Include <limits.h>.
790         (MIN, SIZE_MAX): New macros.
791         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
792         a stack-allocated buffer, and use malloc if it does not fit. Don't
793         use GETACLCNT.
794         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
795
796 2012-02-19  Bruno Haible  <bruno@clisp.org>
797
798         acl: Fix endless loop on Solaris with vxfs.
799         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
800         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
801         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
802         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
803         * tests/test-sameacls.c (main)[Solaris]: Likewise.
804         Reported by Bill Jones in
805         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
806
807 2012-02-19  Bruno Haible  <bruno@clisp.org>
808
809         acl: Fix copy-acl test failure on Solaris 11 2011-11.
810         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
811         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
812         that this function returns 0 in some more cases.
813
814 2012-02-19  Bruno Haible  <bruno@clisp.org>
815
816         acl: Update doc references.
817         * doc/acl-resources.txt: Update links to Solaris documentation.
818
819 2012-02-19  Bruno Haible  <bruno@clisp.org>
820
821         Fix test failure in many locales on Solaris 11.
822         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
823         'tr' arguments.
824         * tests/test-pipe-filter-ii1.c (main): Likewise.
825         * build-aux/bootstrap (check_versions): Run 'tr' command with range
826         expressions in the C locale.
827         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
828         * m4/host-os.m4 (gl_HOST_OS): Likewise.
829
830 2012-02-19  Bruno Haible  <bruno@clisp.org>
831
832         gnulib-tool: Improve usage message.
833         * gnulib-tool (func_usage): Move doc of --help and --version to the
834         section "Operation modes".
835
836 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
837
838         README-release: make it easier to execute commands
839         * top/README-release: break commands out on to separate lines.
840
841 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
842
843         GNUmakefile: simplify detection of unconfigured trees
844         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
845         whether the tree make is being run from is already configured or
846         not.  Related simplifications.
847
848 2012-02-13  Simon Josefsson  <simon@josefsson.org>
849
850         * gnulib-tool (func_usage): Document --help and --version.
851
852 2012-02-11  Jim Meyering  <meyering@redhat.com>
853
854         bootstrap: don't exit 0 upon gnulib-tool failure
855         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
856         its exit status, not 0.
857
858 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
859
860         README-release: various improvements
861         * top/README-release: Give a command to push changes for the
862         release.  Add "distcheck" to list of other pre-release checks.
863         Fix instance of "make stable" which should be "make TYPE".
864
865 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
866
867         maint: replace FSF snail-mail addresses with URLs
868         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
869         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
870         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
871         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
872         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
873         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
874         * lib/check-version.c, lib/check-version.h, lib/config.charset:
875         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
876         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
877         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
878         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
879         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
880         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
881         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
882         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
883         * lib/glthread/thread.c, lib/glthread/thread.h:
884         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
885         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
886         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
887         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
888         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
889         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
890         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
891         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
892         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
893         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
894         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
895         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
896         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
897         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
898         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
899         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
900         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
901         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
902         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
903         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
904         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
905         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
906         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
907         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
908         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
909         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
910         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
911         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
912         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
913         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
914         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
915         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
916         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
917         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
918         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
919         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
920         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
921         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
922         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
923         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
924         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
925         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
926         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
927         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
928         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
929         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
930         * tests/test-poll.c, tests/test-quotearg-simple.c:
931         * tests/test-quotearg.c, tests/test-quotearg.h:
932         * tests/test-round-ieee.c, tests/test-round1.c:
933         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
934         * tests/test-roundl-ieee.c, tests/test-roundl.c:
935         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
936         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
937         * tests/test-strerror.c, tests/test-strerror_r.c:
938         * tests/test-strsignal.c, tests/test-strverscmp.c:
939         * tests/test-xmemdup0.c:
940         Replace FSF snail mail addresses with URLs, as per GNU coding
941         standards.  See glibc bug
942         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
943
944 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
945
946         README-release: capitalize a word and split a line
947         * top/README-release: Fix punctuation and spacing.
948
949 2012-02-08  Akim Demaille  <demaille@gostai.com>
950
951         fatal-signal: use C prototypes (with explicit void).
952         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
953         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
954
955 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
956
957         regex: spelling fix
958         * lib/regexec.c: spelling fix
959
960         regex: rely on stdint.h for SIZE_MAX
961         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
962
963 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
964
965         regex: merge glibc changes
966
967         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
968         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
969         (init_word_char): Work even if bitset words are not exactly 32 or
970         64 bits wide.  Don't assume there are no padding bits.
971         * lib/regex.c [_LIBC]: Do not include <config.h>.
972         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
973         and -Wtype-limits.
974         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
975         needless disagreement with glibc.  All uses changed.  Define it to
976         1 only if _GNU_SOURCE, to match glibc.
977         (_REG_RM_NAME): Remove; no longer needed, since the names in
978         question are now all protected by __USE_GNU.
979         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
980         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
981         * lib/regex_internal.h (MIN): New macro.
982
983         2012-01-03 Ulrich Drepper <drepper@gmail.com>
984         * lib/regcomp.c (init_word_char): Optimize regex a bit.
985
986         2011-12-30 Jakub Jelinek <jakub@redhat.com>
987         * lib/regex_internal.c (re_string_fetch_byte_case):
988         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
989         is miscompiled, and it turns out it is because of an incorrect
990         attribute on re_string_fetch_byte_case.  Unlike
991         re_string_peek_byte_case, this one is really not pure, it modifies
992         memory (increments pstr->cur_idx), and with the pure attribute GCC
993         assumed it doesn't and it cached the presumed value of
994         regexp->cur_idx in a variable across the
995          for (;; ++i)
996            {
997              if (i >= BRACKET_NAME_BUF_SIZE)
998                return REG_EBRACK;
999              if (token->type == OP_OPEN_CHAR_CLASS)
1000                ch = re_string_fetch_byte_case (regexp);
1001              else
1002                ch = re_string_fetch_byte (regexp);
1003              if (re_string_eoi(regexp))
1004                return REG_EBRACK;
1005              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
1006                break;
1007              elem->opr.name[i] = ch;
1008            }
1009
1010         2011-11-29 Andreas Schwab <schwab@redhat.com>
1011         * lib/regcomp.c (build_equiv_class):
1012         Fix access after end of search string in regex matcher.
1013
1014         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1015         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1016
1017         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1018         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1019
1020         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1021         * lib/regcomp.c (parse_branch, parse_sub_exp):
1022         More regex memory leak fixes and tests.
1023         (parse_sub_exp, parse_bracket_exp):
1024         Fix memory leak for some invalid regular expressions.
1025
1026         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1027         * lib/regex_internal.c, lib/regexec.c:
1028         Fix unnecessary overallocation due to incomplete character.  When
1029         incomplete characters are found at the end of a string the code
1030         ran amok and allocated lots of memory.  Stricter limits are now in
1031         place.
1032
1033         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1034         * lib/regex.h: Update documentation.
1035
1036         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1037         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1038
1039         2010-05-05 Andreas Schwab <schwab@redhat.com>
1040         * lib/regexec.c (find_collation_sequence_value):
1041         Fix lookup of collation sequence value during regexp matching.
1042
1043         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1044         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1045
1046         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1047         * lib/regex.h: Cleanup namespace.
1048
1049         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1050         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1051
1052         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1053         * lib/regex_internal.h: Prevent some declarations and definitions
1054         to be seen when used in tests.
1055
1056         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1057         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1058         __libc_lock_* macros if not _LIBC.
1059         (struct re_dfa_t): Add lock.
1060
1061 2012-02-07  Eric Blake  <eblake@redhat.com>
1062
1063         maint.mk: also prohibit lower-case @var@
1064         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1065         lower case, like @top_srcdir@.
1066
1067 2012-02-04  Eric Blake  <eblake@redhat.com>
1068
1069         canonicalize: avoid uninitialized memory use
1070         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1071         random '/' left in dest.
1072         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1073
1074 2012-02-04  Bruno Haible  <bruno@clisp.org>
1075
1076         isatty: Fix test failure of ptsname_r on native Windows.
1077         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1078         and don't set errno.
1079         (isatty): Test first whether fd is valid. Set errno when returning 0.
1080
1081 2012-02-04  Bruno Haible  <bruno@clisp.org>
1082
1083         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1084         * tests/test-spawn-pipe-main.c: Include progname.h.
1085         (main): Invoke set_program_name.
1086         * modules/spawn-pipe-tests (Depends-on): Add progname.
1087
1088         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1089         * tests/test-nonblocking-socket-main.c: Include progname.h.
1090         (main): Invoke set_program_name.
1091         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1092
1093         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1094         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1095         (main): Invoke set_program_name.
1096         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1097
1098 2012-02-04  Eric Blake  <eblake@redhat.com>
1099
1100         canonicalize-lgpl: fix // handling
1101         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1102
1103         canonicalize: fix // handling
1104         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1105         /// to //, since only // is special.
1106
1107 2012-02-04  Bruno Haible  <bruno@clisp.org>
1108
1109         ioctl: Fix test failure on native Windows.
1110         * lib/ioctl.c: Include msvc-nothrow.h.
1111         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1112
1113 2012-02-04  Bruno Haible  <bruno@clisp.org>
1114
1115         fsync: Avoid test failure on native Windows.
1116         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1117         read-only.
1118
1119 2012-02-04  Bruno Haible  <bruno@clisp.org>
1120
1121         sys_select: Avoid syntax error on OpenBSD 5.0.
1122         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1123         currently being included, just include the system's <sys/select.h>.
1124
1125 2012-02-04  Bruno Haible  <bruno@clisp.org>
1126
1127         sys_select: Avoid syntax error on OpenBSD 5.0.
1128         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1129         <sys/select.h>, not before.
1130         Reported by Jiri B <jirib@devio.us>.
1131
1132 2012-02-04  Bruno Haible  <bruno@clisp.org>
1133
1134         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1135         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1136         global variables.
1137         * tests/test-get-rusage-data.c (main): Likewise.
1138         Reported by Jim Meyering.
1139
1140 2012-02-04  Bruno Haible  <bruno@clisp.org>
1141
1142         stdioext: Fix last commit.
1143         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1144
1145 2012-02-03  Bruno Haible  <bruno@clisp.org>
1146
1147         stdioext: Add tentative support for Plan9.
1148         * lib/stdio-impl.h: Include <errno.h>.
1149         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1150         * lib/freadable.c (freadable): Likewise.
1151         * lib/fwritable.c (fwritable): Likewise.
1152         * lib/fbufmode.c (fbufmode): Likewise.
1153         * lib/freading.c (freading): Likewise.
1154         * lib/fwriting.c (fwriting): Likewise.
1155         * lib/freadptr.c (freadptr): Likewise.
1156         * lib/freadseek.c (freadptrinc): Likewise.
1157         * lib/freadahead.c (freadahead): Likewise.
1158         * lib/fpurge.c (fpurge): Likewise.
1159         * lib/fseeko.c (rpl_fseeko): Likewise.
1160         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1161         Reported by Jens Staal <staal1978@gmail.com>.
1162
1163 2012-02-02  Jim Meyering  <meyering@redhat.com>
1164
1165         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1166         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1167         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1168         not even to try to add the attribute.  Instead, add a pragma to suppress
1169         the suggestion/warning.
1170
1171 2012-01-31  Karl Berry  <karl@gnu.org>
1172
1173         setstate doc: typo.
1174         * doc/posix-functions/setstate.texi (setstate): { not (.
1175
1176 2012-01-31  Bruno Haible  <bruno@clisp.org>
1177
1178         popen: Make more robust on Windows.
1179         * lib/popen.c: On native Windows, use the _popen based code even if
1180         HAVE_POPEN is set.
1181         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1182         environment variable on native Windows.
1183
1184 2012-01-30  Bruno Haible  <bruno@clisp.org>
1185
1186         pclose: Fix typo.
1187         * lib/stdio.in.h (pclose): Fix typo in warning message.
1188
1189 2012-01-30  Bruno Haible  <bruno@clisp.org>
1190
1191         doc about getlogin_r, setstate.
1192         * doc/posix-functions/getlogin_r.texi: List the incompatible
1193         declaration problem under "not fixed by gnulib".
1194         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1195         problem on Solaris 11 and other platforms.
1196
1197 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1198             Bruno Haible  <bruno@clisp.org>
1199
1200         poll tests: Make test more robust.
1201         * tests/test-poll.c: Include macros.h.
1202         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1203         return value of various I/O operations.
1204         * modules/poll-tests (Files): Add tests/macros.h.
1205
1206 2012-01-30  Bruno Haible  <bruno@clisp.org>
1207
1208         sys_stat: Fix support for mingw64 and MSVC.
1209         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1210         header files already do it.
1211         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1212         stat itself.
1213         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1214
1215 2012-01-30  Bruno Haible  <bruno@clisp.org>
1216
1217         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1219         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1220
1221 2012-01-29  Bruno Haible  <bruno@clisp.org>
1222
1223         quotearg: Fix test failure on MacOS X 10.5.
1224         * tests/test-quotearg-simple.c: Include localcharset.h.
1225         (main): If the locale encoding is not ASCII, bypass the tests of
1226         locale_quoting_style and clocale_quoting_style.
1227         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1228
1229 2012-01-29  Jim Meyering  <meyering@redhat.com>
1230
1231         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1232         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1233         detect uses of canonicalize_file_name.
1234
1235 2012-01-28  Bruno Haible  <bruno@clisp.org>
1236
1237         test-framework-sh: Fix test failure with AIX 7.1 diff.
1238         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1239         in column 1, like 'diff -c' does.
1240         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1241         whether 'diff -u' is used. Instead, test whether the output contains
1242         some '@' character.
1243
1244 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         strtoimax: eliminate need for stdint.h, inttypes.h checks
1247         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1248         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1249         the prerequisites for a recently-introduced strtoimax test.
1250         I guess this might cause strtoimax to be replaced when not
1251         strictly necessary on older hosts, but this shouldn't introduce
1252         any bugs and it should make Emacs 'configure' faster on typical
1253         modern hosts.  Problem discovered when importing the latest gnulib
1254         to an Emacs test version.
1255         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1256
1257 2012-01-28  Bruno Haible  <bruno@clisp.org>
1258
1259         sys_time: Override 'struct timeval' on some native Windows platforms.
1260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1261         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1262         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1263         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1264         needs to be overridden.
1265         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1266         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1267         * tests/test-sys_select.c: Check that the tv_sec member has the same
1268         size as a 'time_t'.
1269         * tests/test-sys_time.c: Likewise.
1270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1271         is set, set also REPLACE_GETTIMEOFDAY.
1272         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1273         convert the resulting 'struct timeval' before returning.
1274         * lib/select.c: Include <sys/time.h>.
1275         (select, timeval): Undefine at the right place.
1276         * modules/select (Depends-on): Add sys_time.
1277         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1278         some Windows platforms.
1279         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1280
1281 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1282
1283         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1284         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1285         an integer.
1286         * lib/fcntl.c (dupfd): Likewise.
1287         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1288
1289 2012-01-28  Bruno Haible  <bruno@clisp.org>
1290
1291         fcntl: Avoid compilation error on native Windows.
1292         * modules/fcntl (Depends-on): Add 'close'.
1293
1294 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1295
1296         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1297         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1298         pointer to an integer.
1299         * lib/poll.c (IsConsoleHandle): Likewise.
1300         * lib/isatty.c (IsConsoleHandle): Likewise.
1301
1302 2012-01-28  Jim Meyering  <meyering@redhat.com>
1303
1304         doc: clarify README-release
1305         * top/README-release: Clarify: you should make a point to have
1306         the latest stable versions of build tools in your PATH, and the
1307         reference to buildreq is solely for its list of tool names, not
1308         for its minimal-functional version numbers.
1309         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1310
1311         maint.mk: use more readable (yet functionally equivalent) quoting
1312         It is common to quote a single quote in a single quoted string like
1313         this:  '...'\''...'.  Unless you know the idiom, that looks like
1314         gibberish, so prefer to double-quote the string when possible.
1315         Then you can use a more readable, lone single quote: "...'..."
1316         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1317         "don't" is more readable than the equivalent 'don'\''t'.
1318         (sc_cast_of_x_alloc_return_value): Likewise.
1319         (sc_cast_of_alloca_return_value): Likewise.
1320         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1321         rather than '\'':'\''.
1322
1323 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1324
1325         stdalign: relax _Alignof and tighten _Alignas test
1326         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1327         as it was too strict: alignof must divide offsetof, but it need
1328         not equal offsetof.  Inspired by Joseph S. Myers's comment
1329         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1330         Conversely, tighten the _Alignas test a bit, as the resulting
1331         alignment must be exactly 8.
1332
1333 2012-01-27  Bruno Haible  <bruno@clisp.org>
1334
1335         stdalign: Document the last change.
1336         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1337
1338 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         stdalign: check that alignof and offsetof are consistent
1341         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1342         Problem reported for gnulib by Richard W.M. Jones in
1343         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1344
1345 2012-01-27  Jim Meyering  <meyering@redhat.com>
1346
1347         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1348         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1349         convert a sequence with gaps to the minimal containing range.
1350         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1351         * tests/test-update-copyright.sh: Test for this.
1352         The FSF confirmed it is ok to do this, assuming there is at
1353         least one significant change per year in the affected range:
1354         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1355
1356 2012-01-26  Bruno Haible  <bruno@clisp.org>
1357
1358         pipe2: refine doc about thread-safety
1359         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1360         multithread-safety problem.
1361         * doc/glibc-functions/accept4.texi: Likewise.
1362
1363 2012-01-26  Bruno Haible  <bruno@clisp.org>
1364
1365         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1366         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1367         In the test program, include <fcntl.h>, for O_RDONLY.
1368
1369 2012-01-26  Eric Blake  <eblake@redhat.com>
1370
1371         pipe2: document lack of thread-safety in replacement
1372         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1373         issue in replacement.
1374         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1375         Based on a report by Eric Wong.
1376
1377 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1378             Bruno Haible  <bruno@clisp.org>
1379
1380         malloca: Avoid warnings on x86_64 mingw64.
1381         * lib/malloca.c: Include <stdint.h>.
1382         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1383         * modules/malloca (Depends-on): Add stdint.
1384         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1385
1386 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1387
1388         obstack: remove __STDC__ conditionals
1389         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1390         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1391         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1392         m4/include_next.m4 as the only gnulib-maintained places that still
1393         refer to __STDC__.
1394
1395 2012-01-24  Bruno Haible  <bruno@clisp.org>
1396
1397         havelib: Modern quoting.
1398         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1399         the recent change to the GNU coding standards.
1400
1401 2012-01-24  Bruno Haible  <bruno@clisp.org>
1402
1403         stdint: Improve support for Android.
1404         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1405         Reported by Simon Josefsson <simon@josefsson.org>.
1406
1407 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         doc: omit trailing empty lines from INSTALL etc.
1410         * doc/Makefile (INSTALL): Omit trailing empty lines.
1411         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1412         omit trailing empty lines.  This simplifies the build procedure.
1413
1414 2012-01-23  Jim Meyering  <meyering@redhat.com>
1415
1416         tests: avoid spurious warnings about gl_sockets_startup
1417         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1418         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1419         reporting a "statement with no effect".
1420         * tests/test-accept.c (main): Mark as "(void)".
1421         * tests/test-accept4.c (main): Likewise.
1422         * tests/test-bind.c (main): Likewise.
1423         * tests/test-connect.c (main): Likewise.
1424         * tests/test-getpeername.c (main): Likewise.
1425         * tests/test-getsockname.c (main): Likewise.
1426         * tests/test-getsockopt.c (main): Likewise.
1427         * tests/test-listen.c (main): Likewise.
1428         * tests/test-recv.c (main): Likewise.
1429         * tests/test-recvfrom.c (main): Likewise.
1430         * tests/test-send.c (main): Likewise.
1431         * tests/test-sendto.c (main): Likewise.
1432         * tests/test-setsockopt.c (main): Likewise.
1433         * tests/test-shutdown.c (main): Likewise.
1434
1435 2012-01-21  Bruno Haible  <bruno@clisp.org>
1436
1437         locale-fr.m4: Fix for Android.
1438         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1439         failure of the test program on Bionic libc.
1440
1441 2012-01-21  Jim Meyering  <meyering@redhat.com>
1442
1443         bootstrap: fail when bootstrap_post_import_hook fails
1444         Otherwise, it's far too easy to miss diagnostics emitted
1445         between gnulib-tool's output and that of running configure.
1446         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1447
1448 2012-01-17  Jim Meyering  <meyering@redhat.com>
1449
1450         maint: enable sc_trailing_blank
1451         * build-aux/pmccabe.css: Remove trailing blanks.
1452         * doc/acl-cygwin.txt: Likewise.
1453         * doc/gnu-oids.texi: Likewise
1454         * cfg.mk: Enable sc_trailing_blank.
1455         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1456
1457 2012-01-17  Jim Meyering  <meyering@redhat.com>
1458
1459         maint: enable sc_prohibit_openat_without_use
1460         * cfg.mk: Enable sc_prohibit_openat_without_use.
1461         Exempt lib/selinux-at.c.
1462
1463 2012-01-17  Jim Meyering  <meyering@redhat.com>
1464
1465         maint: enable sc_prohibit_cloexec_without_use
1466         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1467         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1468
1469 2012-01-17  Jim Meyering  <meyering@redhat.com>
1470
1471         maint: enable sc_prohibit_intprops_without_use
1472         * cfg.mk: Enable sc_prohibit_intprops_without_use
1473         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1474
1475 2012-01-17  Jim Meyering  <meyering@redhat.com>
1476
1477         maint: enable sc_prohibit_hash_pjw_without_use
1478         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1479         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1480         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1481         following " (".
1482
1483 2012-01-17  Jim Meyering  <meyering@redhat.com>
1484
1485         maint: enable double-word-prohibiting rule
1486         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1487         Exempt three files.
1488
1489 2012-01-17  Jim Meyering  <meyering@redhat.com>
1490
1491         maint: remove empty lines at EOF, but excluding modules/*
1492         Apply syntax rules at home as well as abroad.  Most changes
1493         were induced by running this:
1494           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1495             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1496             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1497         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1498         Exempt modules/* and two binary files.
1499         Also exempt doc/INSTALL*, per request from Bruno Haible.
1500         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1501         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1502         * doc/Copyright/request-assign.future: Likewise.
1503         * doc/Copyright/request-disclaim.changes: Likewise.
1504         * doc/INSTALL: Likewise.
1505         * doc/INSTALL.ISO: Likewise.
1506         * doc/INSTALL.UTF-8: Likewise.
1507         * doc/acl-cygwin.txt: Likewise.
1508         * doc/acl-resources.txt: Likewise.
1509         * doc/fdl-1.2.texi: Likewise.
1510         * doc/fdl-1.3.texi: Likewise.
1511         * doc/fdl.texi: Likewise.
1512         * lib/argp-pin.c: Likewise.
1513         * lib/round.c: Likewise.
1514         * lib/unicase/u16-totitle.c: Likewise.
1515         * lib/unictype/block_test.c: Likewise.
1516         * lib/uninorm/canonical-decomposition.c: Likewise.
1517         * m4/README: Likewise.
1518         * m4/relocatable-lib.m4: Likewise.
1519         * tests/test-isnand-nolibm.c: Likewise.
1520         * tests/test-isnand.c: Likewise.
1521         * tests/uninorm/NormalizationTest.txt: Likewise.
1522
1523 2012-01-17  Jim Meyering  <meyering@redhat.com>
1524
1525         maint: add framework to run syntax-check rules against gnulib sources
1526         * cfg.mk: New file, to disable all currently-failing tests.
1527         We'll enable them one by one, as they are made to pass.
1528         * Makefile (sc_maint): New rule.
1529
1530 2012-01-21  Bruno Haible  <bruno@clisp.org>
1531
1532         stdint: Add support for Android.
1533         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1534         include the system's <stdint.h>.
1535         Reported by Simon Josefsson <simon@josefsson.org>.
1536
1537 2012-01-19  Jim Meyering  <meyering@redhat.com>
1538
1539         bootstrap: add bootstrap_post_import_hook
1540         Bison does still need something like the gnulib_mk_hook whose
1541         invocation I had to remove along with slurp in commit 767ccd40.
1542         Technically, we could get along without it, but doing so would
1543         have required living with a warning and a mandatory post-bootstrap
1544         automake rerun.
1545         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1546         (bootstrap_post_import_hook): New function.
1547         Invoke it after gnulib-tool --import and before autoreconf.
1548
1549 2012-01-18  Jim Meyering  <meyering@redhat.com>
1550
1551         gitlog-to-changelog: don't use "no_"-prefixed variable name
1552         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1553         to enable both --cluster and --no-cluster.  Change variable name,
1554         s/\$no_cluster/$cluster/, and reverse usage to match.
1555
1556         gitlog-to-changelog: use "||", not "or" in expressions
1557         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1558         expressions.
1559
1560 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1561
1562         gitlog-to-changelog: new option --no-cluster
1563         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1564         clustering of adjacent commit messages.
1565
1566 2012-01-17  Jim Meyering  <meyering@redhat.com>
1567
1568         maint: spell file systems with two words, not one
1569         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1570         two words, not one.
1571
1572 2012-01-16  Jim Meyering  <meyering@redhat.com>
1573
1574         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1575         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1576
1577 2012-01-16  Eric Blake  <eblake@redhat.com>
1578
1579         bootstrap: cater to autoconf 2.59
1580         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1581         is not available.
1582
1583         bootstrap: properly check for libtool
1584         * build-aux/bootstrap (libtoolize): Also run libtool when older
1585         usage is detected.
1586
1587 2012-01-15  Bruno Haible  <bruno@clisp.org>
1588
1589         Improve support for MSVC 9.
1590         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1591         clashes on MSVC.
1592         * lib/fcntl.in.h: Likewise.
1593         * lib/stdlib.in.h: Likewise.
1594         * lib/sys_stat.in.h: Likewise.
1595
1596 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1597
1598         gnupload: we hold the master copy of this script now
1599         For motivation and more information, see:
1600         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1601         * build-aux/gnupload: Make it clear in the heading comments that the
1602         master copy of this file is maintained by gnulib.  Since we are at
1603         it, bump its copyright year and ...
1604         ($scriptversion): ... the date in its version.
1605         ($usage): Patches and bug reports should be sent to the gnulib list,
1606         not the automake one.
1607         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1608         anymore.
1609
1610 2012-01-15  Bruno Haible  <bruno@clisp.org>
1611
1612         Fix module 'random'.
1613         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1614         initstate, setstate are declared.
1615
1616 2012-01-14  Bruno Haible  <bruno@clisp.org>
1617
1618         Tests for module 'random'.
1619         * modules/random-tests: New file.
1620         * tests/test-random.c: New file, based on tests/test-random_r.c.
1621
1622         New module 'random'.
1623         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1624         declarations.
1625         * lib/random.c: New file, based on glibc/stdlib/random.c.
1626         * m4/random.m4: New file.
1627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1628         HAVE_RANDOM.
1629         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1630         * modules/random: New file.
1631         * config/srclist.txt: Add an entry for random.c.
1632         * doc/posix-functions/random.texi: Mention the 'random' module.
1633         * doc/posix-functions/initstate.texi: Likewise.
1634         * doc/posix-functions/setstate.texi: Likewise.
1635         * doc/posix-functions/srandom.texi: Likewise.
1636
1637 2012-01-12  Bruno Haible  <bruno@clisp.org>
1638
1639         random_r: Use common idioms.
1640         * lib/random_r.c: Include <stdlib.h> first.
1641
1642         random_r: Override incompatible API on AIX, OSF/1.
1643         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1644         Override the system function if REPLACE_RANDOM_R is 1.
1645         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1646         and OSF/1, set REPLACE_RANDOM_R.
1647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1648         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1649         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1650         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1651         * doc/glibc-functions/random_r.texi: Likewise.
1652         * doc/glibc-functions/setstate_r.texi: Likewise.
1653
1654         random_r: Support for MSVC 9.
1655         * lib/random_r.c: Include stdint.h, not inttypes.h.
1656
1657 2012-01-12  Eric Blake  <eblake@redhat.com>
1658
1659         inet_ntop: guard extra work by IF_LINT
1660         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1661         better code generation when not checking for warnings.
1662         Suggested by Paul Eggert and Jim Meyering.
1663
1664         strptime: fix regression on mingw
1665         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1666         Fix regression.  Reported by Bruno Haible.
1667
1668 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1669             Bruno Haible  <bruno@clisp.org>
1670
1671         copy-file: add error-code-returning variant.
1672         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1673         (qcopy_file_preserving): New declaration.
1674         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1675         copy_file_preserving. Change return type to 'int'. Don't emit an error
1676         message here.
1677         (copy_file_preserving): New function.
1678         * tests/test-copy-file.c: Include <stdlib.h>.
1679         (main): Test qcopy_file_preserving if the environment variable
1680         NO_STDERR_OUTPUT is set.
1681         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1682         with NO_STDERR_OUTPUT
1683         * tests/test-copy-file-2.sh: Likewise.
1684
1685 2012-01-10  Bruno Haible  <bruno@clisp.org>
1686
1687         copy-file: Use 'quote' module consistently.
1688         * lib/copy-file.c (copy_file_preserving): Use quote().
1689
1690         copy-file: Refactor.
1691         * lib/copy-file.c: Include quote.h.
1692         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1693         message here.
1694         * modules/copy-file (Depends-on): Add quote.
1695
1696         acl: Export qcopy_acl.
1697         * lib/acl.h (qcopy_acl): New declaration.
1698         * lib/copy-acl.c (qcopy_acl): Make non-static.
1699
1700         acl: Rename a local variable.
1701         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1702
1703         acl: Align return values of copy_acl and qcopy_acl.
1704         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1705         maybe < -1.
1706
1707 2012-01-11  Eric Blake  <eblake@redhat.com>
1708
1709         strptime: silence gcc warnings
1710         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1711         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1712         Reported by Daniel P. Berrange.
1713
1714         inet_ntop: silence gcc warning
1715         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1716         Reported by Daniel P. Berrange.
1717
1718 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1719
1720         getloadavg test: skip the test on GNU/Linux without /proc mounted
1721         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1722         file.  When /proc is not mounted, it always fails with ENOENT.
1723         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1724         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1725
1726 2012-01-10  Bruno Haible  <bruno@clisp.org>
1727
1728         regex: Avoid link error on MSVC 9.
1729         * modules/regex (Depends-on): Add wctype.
1730
1731 2012-01-10  Bruno Haible  <bruno@clisp.org>
1732
1733         doc: Mention --with-tests option.
1734         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1735         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1736         --with-tests.
1737         Reported by Reuben Thomas.
1738
1739 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1740
1741         users.txt: order package names lexicographically.
1742         * users.txt: Order package names lexicographically.
1743
1744 2012-01-10  Jim Meyering  <meyering@redhat.com>
1745
1746         maint.mk: fix description in comment
1747         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1748
1749         ignore-value: remove deprecated ignore_ptr function
1750         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1751         * NEWS: Note this.
1752
1753 2012-01-09  Jim Meyering  <meyering@redhat.com>
1754
1755         test-init.sh: avoid a subshell
1756         * tests/test-init.sh: Remove protective subshell.
1757         Suggested by Bernhard Voelker.  While a subshell is normally
1758         required to protect against older shells (Solaris, FreeBSD) that
1759         warn about a missing program before performing redirection, the
1760         shell-selection tests performed by init.sh probably exclude any
1761         offending shell.
1762
1763 2012-01-08  Bruno Haible  <bruno@clisp.org>
1764
1765         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1766         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1767         variable.
1768
1769 2012-01-08  Bruno Haible  <bruno@clisp.org>
1770
1771         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1772         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1773         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1774         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1775         macro.
1776         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1777         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1778         * lib/spawn_faction_addopen.c: Add workaround implementation if
1779         HAVE_WORKING_POSIX_SPAWN.
1780         * modules/spawn (Makefile): Substitute
1781         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1782         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1783         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1784         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1785         (Depends-on): Update conditions.
1786         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1787         the Solaris 11 bug.
1788
1789 2012-01-08  Bruno Haible  <bruno@clisp.org>
1790
1791         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1792         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1793         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1794         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1795         macro.
1796         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1797         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1798         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1799         HAVE_WORKING_POSIX_SPAWN.
1800         * modules/spawn (Makefile): Substitute
1801         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1802         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1803         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1804         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1805         (Depends-on): Update conditions.
1806         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1807         the Solaris 11 bug.
1808
1809 2012-01-08  Bruno Haible  <bruno@clisp.org>
1810
1811         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1812         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1813         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1815         HAVE_WORKING_POSIX_SPAWN.
1816         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1817         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1818         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1819         * lib/spawn_faction_addclose.c: Add workaround implementation if
1820         HAVE_WORKING_POSIX_SPAWN.
1821         * modules/spawn (Makefile): Substitute
1822         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1823         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1824         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1825         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1826         (Depends-on): Update conditions.
1827         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1828         the Solaris 11 bug.
1829
1830 2012-01-08  Bruno Haible  <bruno@clisp.org>
1831
1832         doc: Update for Solaris 11 2011-11.
1833         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1834         * m4/printf.m4: Update comments.
1835
1836 2012-01-08  Bruno Haible  <bruno@clisp.org>
1837
1838         mktime: Avoid compilation error on Solaris 11.
1839         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1840
1841 2012-01-08  Bruno Haible  <bruno@clisp.org>
1842
1843         doc: Small fix.
1844         * doc/posix-headers/nl_types.texi: Correct platforms list.
1845
1846 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1847
1848         Add lgpl-3.0 module.
1849         * MODULES.html.sh (Support for building documentation): Add
1850         lgpl-3.0.
1851         * modules/lgpl-3.0: New file.
1852
1853 2012-01-08  Jim Meyering  <meyering@redhat.com>
1854
1855         select.c: indent with spaces, not TABs
1856         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1857
1858 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1859
1860         quotearg: do not use grave accent for left quote
1861         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1862         locale_quoting_style.
1863         (quotearg_buffer_restyled): Fix example.
1864         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1865
1866 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1867
1868         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1869         Most programs do not have translation catalogs for English and much
1870         less separate catalogs for British and American English.  Drop the
1871         suggestion to translators about these two, and provide it
1872         automatically for Unicode locales.  Like most programs, even those
1873         using American English, we use single quotation marks.  This conflicts
1874         with the American typographic convention, but works better when you
1875         cite the entire error message within double quotes.  It also tries not
1876         to clash with established practice and with what non-gnulib programs
1877         will usually do.
1878         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1879         using an UTF-8 or GB-18030 locale.  The list of other locales with
1880         quotes was provided by Bruno Haible.
1881         (quotearg_buffer_restyled): Adjust instructions to translators.
1882         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1883         text, since this would be wrong when using Unicode.
1884         * modules/quotearg: Depend on c-strcaseeq.
1885
1886 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1887
1888         quotearg: fix Wikipedia link
1889         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1890
1891 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1892
1893         Fix for mingw with MSVC9.
1894         * m4/ld-version-script.m4: Check that compiler rejects version
1895         scripts with syntax errors.  Reported by Bruno Haible
1896         <bruno@clisp.org>.
1897
1898 2012-01-06  Bruno Haible  <bruno@clisp.org>
1899
1900         Talk about "native Windows API", not "Woe32".
1901         * lib/accept4.c: Update comments to mention native Windows.
1902         * lib/execute.c: Likewise.
1903         * lib/fatal-signal.c: Likewise.
1904         * lib/localcharset.c: Likewise.
1905         * lib/nanosleep.c: Likewise.
1906         * lib/nl_langinfo.c: Likewise.
1907         * lib/pclose.c: Likewise.
1908         * lib/pipe-filter-gi.c: Likewise.
1909         * lib/pipe-filter-ii.c: Likewise.
1910         * lib/pipe.c: Likewise.
1911         * lib/pipe2.c: Likewise.
1912         * lib/popen.c: Likewise.
1913         * lib/progreloc.c: Likewise.
1914         * lib/relocatable.c: Likewise.
1915         * lib/sigaction.c: Likewise.
1916         * lib/sigprocmask.c: Likewise.
1917         * lib/spawn-pipe.h: Likewise.
1918         * lib/spawn-pipe.c: Likewise.
1919         * lib/spawni.c: Likewise.
1920         * lib/stat-time.h: Likewise.
1921         * lib/w32spawn.h: Likewise.
1922         * tests/test-isatty.c: Likewise.
1923         * lib/config.charset: More comments.
1924         * doc/gnulib-intro.texi: Mention native Windows.
1925         * doc/posix-functions/_Exit_C99.texi: Likewise.
1926         * doc/posix-headers/fcntl.texi: Likewise.
1927
1928 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1929
1930         argp: Avoid crash if translator uses % characters in a translation.
1931         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1932         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1933
1934 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         doc: C11 and C++11 are now official
1937         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1938         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1939         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1940         * modules/stdalign:
1941         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1942
1943 2012-01-06  Bruno Haible  <bruno@clisp.org>
1944
1945         uc-is-grapheme-break tests: Tweak.
1946         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1947         message.
1948
1949 2012-01-06  Bruno Haible  <bruno@clisp.org>
1950
1951         test-init.sh: correct the test for diff -u
1952         * tests/test-init.sh: Also redirect stdout to /dev/null.
1953
1954 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1955
1956         Use ', not `, for quoting output.
1957         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1958         (print_changelog_deltas, get_tool_versions, main program):
1959         * build-aux/git-version-gen:
1960         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1961         * build-aux/move-if-change (help):
1962         * build-aux/useless-if-before-free (usage, main program):
1963         * check-module (parse_module_file, usage)
1964         (find_included_lib_files, check_module):
1965         * lib/argmatch.c (main) [TEST]:
1966         * lib/argp-help.c (_help):
1967         * lib/getopt1.c (main) [TEST]:
1968         * lib/git-merge-changelog.c (usage):
1969         * lib/xstrtol-error.c (xstrtol_error):
1970         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1971         * m4/argz.m4 (gl_FUNC_ARGZ):
1972         * m4/bison.m4 (gl_BISON):
1973         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1974         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1975         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1976         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1977         * m4/gc-random.m4 (gl_GC_RANDOM):
1978         * m4/intl.m4 (gt_CHECK_DECL):
1979         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1980         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1981         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1982         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1983         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1984         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1985         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1986         * tests/test-dirname.c (main):
1987         * tests/test-getpass.c (main):
1988         * tests/test-iconvme.c (main):
1989         * tests/test-parse-datetime.c (LOG):
1990         * tests/test-xstrtoimax.sh:
1991         * tests/test-xstrtol.sh:
1992         * tests/test-xstrtoll.sh:
1993         * tests/test-xstrtoumax.sh:
1994         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1995         * top/GNUmakefile (abort-due-to-no-makefile):
1996         Quote 'like this', not `like this', as per the recent change to
1997         the GNU coding standards.
1998
1999 2012-01-05  Bruno Haible  <bruno@clisp.org>
2000
2001         strtoimax: Don't force a replacement on systems where intmax_t is int.
2002         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
2003         'intmax_t' is not larger than 'int'.
2004         Reported by Pádraig Brady <P@draigBrady.com>.
2005
2006 2012-01-05  Bruno Haible  <bruno@clisp.org>
2007
2008         doc: Mention NetBSD bugs.
2009         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
2010         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2011
2012 2012-01-05  Bruno Haible  <bruno@clisp.org>
2013
2014         strtoumax tests: Enhance tests.
2015         * tests/test-strtoumax.c (main): Add tests for large values.
2016
2017 2012-01-05  Bruno Haible  <bruno@clisp.org>
2018
2019         strtoimax: Work around AIX 5.1 bug.
2020         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2021         definition.
2022         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2023         Set HAVE_STRTOIMAX.
2024         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2025         REPLACE_STRTOIMAX.
2026         * modules/inttypes-incomplete (Makefile.am): Substitute
2027         REPLACE_STRTOIMAX.
2028         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2029         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2030         (Depends-on): Update conditions.
2031         * tests/test-strtoimax.c (main): Add tests for large values.
2032         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2033
2034 2012-01-05  Bruno Haible  <bruno@clisp.org>
2035
2036         inttypes: Modernize.
2037         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2038         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2039         (Makefile.am): Update inttypes.h rule.
2040
2041 2012-01-05  Jim Meyering  <meyering@redhat.com>
2042
2043         init.sh: don't waste a subshell just to redirect stderr
2044         * tests/init.sh: In testing for diff -u and diff -c, use a
2045         stderr-redirecting exec inside `...` rather than a subshell.
2046
2047         test-init.sh: avoid failure on HP-UX 11.00
2048         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2049         resolves to diff -c or cmp.  Reported by Bruno Haible.
2050
2051 2012-01-05  Bruno Haible  <bruno@clisp.org>
2052
2053         Tests for module 'strtoull'.
2054         * modules/strtoull-tests: New file.
2055         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2056
2057 2012-01-05  Bruno Haible  <bruno@clisp.org>
2058
2059         Tests for module 'strtoll'.
2060         * modules/strtoll-tests: New file.
2061         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2062
2063 2012-01-05  Bruno Haible  <bruno@clisp.org>
2064
2065         Tests for module 'strtoul'.
2066         * modules/strtoul-tests: New file.
2067         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2068
2069 2012-01-05  Bruno Haible  <bruno@clisp.org>
2070
2071         Tests for module 'strtol'.
2072         * modules/strtol-tests: New file.
2073         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2074
2075 2012-01-04  Jim Meyering  <meyering@redhat.com>
2076
2077         test-init.sh: accommodate Solaris 5.10's different diff -u output
2078         * tests/test-init.sh: Also exempt @@ lines from the comparison
2079         of diff output, since Solaris 5.10 and GNU diff formats differ.
2080         Reported by Stefano Lattarini.
2081
2082 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2083
2084         test-posixtm: don't assume signed integer wraparound
2085         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2086         after signed integer overflow.  Inspired by (though it may not
2087         fix) Bruno Haible's bug report in
2088         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2089
2090         Spell out "Windows 9x" and "Windows XP".
2091         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2092         "Windows 9x" and "WinXP" with "Windows XP".
2093
2094 2012-01-04  Jim Meyering  <meyering@redhat.com>
2095
2096         test-vc-list-files-cvs.sh: remove obsolete comment
2097         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2098         double exit.  Now that's all encapsulated via skip_ and Exit.
2099
2100 2012-01-04  Bruno Haible  <bruno@clisp.org>
2101
2102         Talk about "native Windows API", not "Win32".
2103         * lib/classpath.c: Update comments to mention native Windows.
2104         * lib/csharpexec.c: Likewise.
2105         * lib/dup2.c: Likewise.
2106         * lib/error.c: Likewise.
2107         * lib/fcntl.c: Likewise.
2108         * lib/filename.h: Likewise.
2109         * lib/findprog.c: Likewise.
2110         * lib/get-rusage-as.c: Likewise.
2111         * lib/get-rusage-data.c: Likewise.
2112         * lib/getpagesize.c: Likewise.
2113         * lib/javaexec.c: Likewise.
2114         * lib/msvc-inval.c: Likewise.
2115         * lib/msvc-nothrow.c: Likewise.
2116         * lib/nanosleep.c: Likewise.
2117         * lib/nonblocking.c: Likewise.
2118         * lib/printf-parse.c: Likewise.
2119         * lib/setlocale.c: Likewise.
2120         * lib/sigaction.c: Likewise.
2121         * lib/strerror_r.c: Likewise.
2122         * lib/tmpdir.c: Likewise.
2123         * lib/vasnprintf.c: Likewise.
2124         * lib/w32spawn.h: Likewise.
2125         * lib/waitpid.c: Likewise.
2126         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2127         * m4/locale-ar.m4: Likewise.
2128         * m4/locale-fr.m4: Likewise.
2129         * m4/locale-ja.m4: Likewise.
2130         * m4/locale-tr.m4: Likewise.
2131         * m4/locale-zh.m4: Likewise.
2132         * m4/printf.m4: Likewise.
2133         * tests/test-cloexec.c: Likewise.
2134         * tests/test-copy-acl.sh: Likewise.
2135         * tests/test-copy-file.sh: Likewise.
2136         * tests/test-file-has-acl.sh: Likewise.
2137         * tests/test-set-mode-acl.sh: Likewise.
2138         * tests/test-dup-safer.c: Likewise.
2139         * tests/test-dup2.c: Likewise.
2140         * tests/test-dup3.c: Likewise.
2141         * tests/test-fcntl.c: Likewise.
2142         * tests/test-nonblocking-pipe.h: Likewise.
2143         * tests/test-nonblocking-socket.h: Likewise.
2144         * tests/test-pipe.c: Likewise.
2145         * tests/test-pipe2.c: Likewise.
2146         * tests/test-spawn-pipe-child.c: Likewise.
2147         * doc/acl-resources.txt: Likewise.
2148         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2149         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2150         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2151         * lib/localcharset.c: Update comments to mention native Windows.
2152         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2153         * lib/localename.c: Likewise.
2154         * lib/progreloc.c: Likewise.
2155         * lib/relocatable.c: Likewise.
2156         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2157         (windows_compute_revents): Renamed from win32_compute_revents.
2158         (windows_compute_revents_socket): Renamed from
2159         win32_compute_revents_socket.
2160         * lib/select.c: Update comments to mention native Windows.
2161         (windows_poll_handle): Renamed from win32_poll_handle.
2162         * m4/threadlib.m4: Update comments to mention native Windows.
2163         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2164         --enable-threads=windows instead of --enable-threads=win32. Set
2165         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2166         * lib/glthread/lock.h: Update comments to mention native Windows.
2167         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2168         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2169         USE_WIN32_THREADS.
2170         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2171         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2172         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2173         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2174         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2175         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2176         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2177         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2178         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2179         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2180         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2181         * tests/test-tls.c: Likewise.
2182         Rationale:
2183         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2184         on both 32-bit and 64-bit Windows systems.
2185         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2186         line of distinction is between "native Windows" on one side and Unix/
2187         POSIX systems on the other side. More details in
2188         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2189         Suggested by Paul Eggert.
2190
2191 2012-01-03  Bruno Haible  <bruno@clisp.org>
2192
2193         isatty: Support for MSVC 9.
2194         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2195         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2196         (_isatty_nothrow): New function.
2197         (isatty): Use it instead of _isatty.
2198         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2199         * lib/poll.c (IsConsoleHandle): Likewise.
2200         * lib/select.c (IsConsoleHandle): Likewise.
2201         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2202         (gl_PREREQ_ISATTY): New macro.
2203         * modules/isatty (Depends-on): Add msvc-inval.
2204         (configure.ac): Invoke gl_PREREQ_ISATTY.
2205
2206 2012-01-03  Jim Meyering  <meyering@redhat.com>
2207
2208         maint.mk: remove temporary transition aid from over 1.5 years ago
2209         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2210         purpose was to aid in the transition (avoiding silent malfunction)
2211         from that old name to the new _sc_search_regexp.  This shim was
2212         added by commit 219c504b.
2213
2214         init.sh: do not try to accommodate compare arguments starting with "-"
2215         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2216         compare arguments that start with "-".  Besides, we do not worry
2217         about this when invoking diff or cmp; why start now with sed?
2218         Using "--" to separate options from argument would trigger sed
2219         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2220         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2221
2222 2012-01-02  Bruno Haible  <bruno@clisp.org>
2223
2224         Enhance tests for module 'isatty'.
2225         * modules/isatty-tests (Depends-on): Add pipe-posix.
2226         * tests/test-isatty.c: Include <fcntl.h>.
2227         (DEV_NULL): New macro.
2228         (main): Test the resut of isatty() also on regular files, pipes, and
2229         /dev/null.
2230
2231         New module 'isatty'.
2232         * lib/unistd.in.h (isatty): New declaration.
2233         * lib/isatty.c: New file, based on an idea of
2234         Bastien Roucariès <roucaries.bastien@gmail.com>.
2235         * m4/isatty.m4: New file.
2236         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2237         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2238         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2239         REPLACE_ISATTY.
2240         * modules/isatty: New file.
2241         * doc/posix-functions/isatty.texi: Mention the new module.
2242         Suggested by Paolo Bonzini.
2243
2244 2012-01-02  Bruno Haible  <bruno@clisp.org>
2245
2246         canonicalize: Tweak 2011-12-29 commit.
2247         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2248         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2249
2250 2012-01-02  Jim Meyering  <meyering@redhat.com>
2251
2252         gitlog-to-changelog: describe input syntax in --help output
2253         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2254
2255         gitlog-to-changelog: fix typo in --help: show backslash before email @
2256         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2257         in sources, but not in actual output.
2258
2259 2011-12-30  Jim Meyering  <meyering@redhat.com>
2260
2261         gitlog-to-changelog: don't malfunction when name contains %-directive
2262         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2263         in a name string cause trouble.  E.g., with a user name of "%s",
2264         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2265
2266 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2267
2268         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2269         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2270         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2271         the "  (tiny change)" notation that is appended to the standard
2272         ChangeLog "date  name  email" header line.
2273
2274 2012-01-01  Jim Meyering  <meyering@redhat.com>
2275
2276         test-framework-sh: init.sh: fix "make dist" failure
2277         When using gnulib-tool's --with-tests option and any module that
2278         depends on test-framework-sh, "make dist" would fail due to the
2279         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2280         in the gltests directory, and not in the gllib/ directory.
2281         One way to work around that is to move the EXTRA_DIST += init.sh
2282         from the primary module to the -tests one:
2283         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2284         * modules/test-framework-sh (Makefile.am): ...not here.
2285         Reported by Tom G. Christensen in
2286         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2287
2288         version-etc: update copyright year reported by --version
2289         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
2290
2291 2011-12-31  Pádraig Brady  <P@draigBrady.com>
2292
2293         canonicalize: only stat() if required
2294         * lib/canonicalize.c (canonicalize_filename_mode):
2295         Avoid calling l?stat() when both CAN_MISSING,
2296         and CAN_NOLINKS are set, as we neither need
2297         to resolve symlinks or test component existence.
2298
2299 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2300
2301         doc: cover st_ino issues once; add OpenVMS etc.
2302         * doc/posix-functions/stat.texi (stat):
2303         * doc/posix-functions/lstat.texi (lstat):
2304         * doc/posix-functions/fstatat.texi (fstatat):
2305         * doc/posix-functions/fstat.texi (fstat):
2306         Move general 'struct stat' stuff to sys_stat.texi,
2307         leaving behind a pointer.
2308         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2309         Merge duplicate info about 'struct stat' problems into here.
2310         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2311         and suggest partial workarounds.
2312
2313         same-inode: port to OpenVMS
2314         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2315         three st_ino values.
2316
2317 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2318
2319         canonicalize: fix references to stat() and lstat()
2320         * lib/canonicalize.c (canonicalize_filename_mode):
2321         Ensure references always resolve to a replacement
2322         function if required (even via a macro).
2323
2324 2011-12-30  Jim Meyering  <meyering@redhat.com>
2325
2326         gitlog-to-changelog: remove a little duplication
2327         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2328         rather than twice.
2329
2330 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2331
2332         canonicalize: add support for not resolving symlinks
2333         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2334         indicate we don't want to follow symlinks.  Also
2335         provide CAN_MODE_MASK to aid setting these existing
2336         mutually exclusive values.
2337         * lib/canonicalize.c (canonicalize_filename_mode):
2338         Extract the flags from can_mode parameter, which
2339         are currently just used to select between stat()
2340         and lstat().  Also ensure that mutually exclusive
2341         values are flagged immediately as invalid.
2342         * tests/test-canonicalize.c: Verify symlinks are
2343         not followed, and that invalid flag combinations
2344         are diagnosed.
2345
2346 2011-12-25  Jim Meyering  <meyering@redhat.com>
2347
2348         gitlog-to-changelog: do not clump multi-paragraph entries
2349         Identical header lines (date,name,email+coauthors) are suppressed,
2350         thus putting all entries with those same characteristics under
2351         a single header.  However, when a log entry consists of two or
2352         more paragraphs, it may not be clear where it starts and ends.
2353         This change makes it so that such an entry is always separated
2354         from others by a header line, even when that header would
2355         otherwise be suppressed.
2356         * build-aux/gitlog-to-changelog: Implement the above.
2357         Inspired by a related request from Stefano Lattarini in
2358         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2359
2360 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2361
2362         announce-gen: fix `cmd' typo in diagnostic
2363         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2364         diagnostic: a missing '$' meant that the command was not output.
2365
2366 2011-12-23  Jim Meyering  <meyering@redhat.com>
2367
2368         test-framework-sh: distribute init.sh
2369         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2370         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2371         fail due to the lack of init.sh.
2372
2373         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2374         * modules/atexit-tests: Rather than listing tests/init.sh,
2375         now that there's a module for it, simply depend on that new module.
2376         * modules/closein-tests: Likewise.
2377         * modules/exclude-tests: Likewise.
2378         * modules/getcwd-tests: Likewise.
2379         * modules/perror-tests: Likewise.
2380         * modules/pread-tests: Likewise.
2381         * modules/pwrite-tests: Likewise.
2382         * modules/vc-list-files-tests: Likewise.
2383         * modules/verify-tests: Likewise.
2384         * modules/xalloc-die-tests: Likewise.
2385         * modules/xstrtoimax-tests: Likewise.
2386         * modules/xstrtol-tests: Likewise.
2387         * modules/xstrtoll-tests: Likewise.
2388         * modules/xstrtoumax-tests: Likewise.
2389         * modules/yesno-tests: Likewise.
2390
2391 2011-12-22  Jim Meyering  <meyering@redhat.com>
2392
2393         test-framework-sh: add minimal tests of init.sh's compare function
2394         * modules/test-framework-sh-tests: New file.
2395         * tests/test-init.sh: New file.
2396
2397         test-framework-sh: new module
2398         * modules/test-framework-sh: New file.
2399         * MODULES.html.sh (Support for maintaining and releasing projects):
2400         List it.
2401
2402         init.sh: do not emit simulated diff output to stderr
2403         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2404
2405 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2406
2407         .gitignore: ignore gnulib.dvi and regex.info
2408         * doc/.gitignore:add gnulib.dvi and regex.info
2409
2410 2011-12-22  Jim Meyering  <meyering@redhat.com>
2411
2412         init.sh: correct previous change
2413         * tests/init.sh (compare): My previous change was wrong.
2414         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2415
2416         init.sh: avoid unwarranted test failure when using "set -e"
2417         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2418         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2419         a use like "compare exp out" would get evoke an unconditional failure.
2420
2421 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2422
2423         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2424         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2425         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2426         autoreconf that did not.
2427         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2428         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2429
2430 2011-12-17  Jim Meyering  <meyering@redhat.com>
2431
2432         bootstrap: remove some now-unneeded code
2433         This script arose back when gnulib-tool was young.
2434         Since then, it has seen improvements that render much of this
2435         script unnecessary.  In particular, it can now make symlinks
2436         to the files it uses.  Also, I no longer see as much value in
2437         marking files as read-only via comments.
2438         If you relied on the symlink-creation feature of the preceding
2439         version of this script, you can get most of that functionality
2440         by adding the --symlink option to the definition of
2441         gnulib_tool_option_extras in your bootstrap.conf file.
2442         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2443         Run autopoint and libtoolize *before* gnulib-tool.
2444         After it, run an abbreviated autoreconf, rather than a loop around
2445         all tools.
2446         (slirp, bt_mark_as_generated): Remove functions.
2447
2448 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2449
2450         ftoastr: fix typo
2451         * lib/ftoastr.h: Fix misspelling in comment.
2452
2453 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2454
2455         * top/README-release: fix punctuation.
2456
2457 2011-12-17  Jim Meyering  <meyering@redhat.com>
2458
2459         bootstrap: correct the recent buildreq change
2460         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2461         had no effect.
2462         * build-aux/bootstrap (buildreq): Bracket each search term with
2463         "*...*", so that the shell "case" statement works as intended.
2464         Add comments.
2465
2466 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2467
2468         build: let bootstrap resort to wget when downloading .po files
2469         * build-aux/bootstrap (download_po_files): Fallback to wget when
2470         downloading the .po files via rsync fails.  This is necessary to
2471         bootstrap from behind a strict firewall.
2472
2473 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2474
2475         stdint: don't assume C++11 when compiling with g++
2476         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2478         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2479         work also in C++ before C++11, as that improperly inhibits
2480         generating a substitute stdint.h for that case.
2481
2482 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         alloca: protect comment from gnulib-tool
2485         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2486         that gnulib-tool doesn't think it's a license, and munge it to
2487         say "GCC version 3".
2488
2489 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2490
2491         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2492         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2493         $(abs_top_builddir) instead of $(top_builddir).
2494
2495 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2496
2497         strftime-tests: also test nanoseconds
2498         * tests/test-strftime.c (T): Add a test of %N.
2499
2500 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2501
2502         inttypes, stdint: add C++11 support
2503         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2504         when including inttypes.h and stdint.h.  Support this change to
2505         the standard.
2506         * doc/posix-headers/inttypes.texi (inttypes.h):
2507         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2508         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2509         Define if not defined already, for the benefit of pre-C++11 hosts.
2510         Define the standard format macros (e.g., PRId8) always.
2511         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2512         Likewise, if __cpluspus.  Define the standard constant and limit
2513         macros (e.g., INT8_C, INT8_MAX) always.
2514         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2515         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2516         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2517         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2518         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2519         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2520         Likewise.
2521
2522 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2523
2524         nonblocking tests: Fix test failure on Linux/PPC.
2525         Suggested by Prerna Saxena in
2526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2527         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2528         Set to 1100000.
2529
2530 2011-12-12  Jim Meyering  <meyering@redhat.com>
2531
2532         argmatch: don't hard-code `' when listing valid option arguments
2533         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2534         use the quote function to add quotes.  Use fputs rather than
2535         fprintf for the format string with no format directive.
2536
2537 2011-12-07  Eric Blake  <eblake@redhat.com>
2538
2539         bootstrap: detect tools required by gnulib-tool
2540         * build-aux/bootstrap (buildreq): Provide minimum implicit
2541         dependencies.
2542         * DEPENDENCIES: Mention patch as a prereq.
2543
2544 2011-12-04  Bruno Haible  <bruno@clisp.org>
2545
2546         sethostname: Port to Windows platforms.
2547         * lib/sethostname.c: Provide an alternate implementation for Windows
2548         platforms.
2549         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2550         (main): Skip the test if sethostname() fails with EPERM. On Windows
2551         platforms, don't check the result of gethostname().
2552
2553 2011-12-04  Bruno Haible  <bruno@clisp.org>
2554             Jim Meyering  <meyering@redhat.com>
2555
2556         tests: Avoid spurious error message on platforms without mktemp program.
2557         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2558
2559 2011-12-04  Bruno Haible  <bruno@clisp.org>
2560
2561         sethostname: Fix documentation.
2562         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2563         "not fixed" section.
2564
2565 2011-12-03  Bruno Haible  <bruno@clisp.org>
2566
2567         gnulib-tool: Verify that the License field is present and non-empty.
2568         * gnulib-tool (func_get_license_raw): New function, extracted from
2569         func_get_license.
2570         (func_get_license): Use it. Warn if the module is not a test module and
2571         has no license.
2572         Suggested by Jim Meyering.
2573
2574 2011-12-03  Bruno Haible  <bruno@clisp.org>
2575
2576         sethostname tests: Fix link error on mingw.
2577         * tests/test-sethostname1.c: New file, extracted from
2578         tests/test-sethostname.c.
2579         * tests/test-sethostname2.c: New file, extracted from
2580         tests/test-sethostname.c.
2581         * tests/test-sethostname.c: Remove file.
2582         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2583         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2584         (Depends-on): Add gethostname.
2585         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2586         Link the latter with $(GETHOSTNAME_LIB).
2587
2588         sethostname tests: Fix compilation error on mingw.
2589         * tests/test-sethostname.c: Don't include <sys/types.h>.
2590         (geteuid): Use a dummy value without uid_t.
2591         * modules/sethostname-tests (Depends-on): Remove sys_types.
2592
2593         sethostname tests: Avoid a gcc warning.
2594         * tests/test-sethostname.c (main): Remove an unused variable.
2595
2596         Tweak last commit.
2597         * modules/sethostname-tests (Files): Sort by decreasing importance.
2598         (configure.ac): Check for geteuid.
2599         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2600         the test when there's nothing to test. Drop an unnecessary cast.
2601         Improve an error message. Verify that the final sethostname() call
2602         succeeds.
2603
2604 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2605
2606         Add a test suite for the sethostname module.
2607         * modules/sethostname-tests: New file.  A test program
2608         for the sethostname module.
2609         * tests/test-sethostname.c: Likewise.
2610
2611 2011-12-03  Bruno Haible  <bruno@clisp.org>
2612
2613         Tweak last commit.
2614         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2615         Fix preprocessor directives indentation. Fix typos.
2616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2617         * modules/unistd (Makefile): Likewise.
2618
2619 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2620
2621         Integrate the sethostname module into unistd.
2622         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2623         into the unistd.h header.
2624         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2625         preprocessor directives.
2626         * modules/unistd: Setup the Makefile substitutions of the
2627         SETHOSTNAME preprocessor directives.
2628
2629 2011-12-03  Bruno Haible  <bruno@clisp.org>
2630
2631         Tweak last commit.
2632         * lib/sethostname.c: Don't include <string.h>.
2633         (sethostname): No need to copy the argument string to the stack. Don't
2634         call clearerr. Preserve errno when fprintf failed.
2635         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2636         Don't invoke AC_REPLACE_FUNCS.
2637         * modules/sethostname (Link): Remove empty section.
2638         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2639         failure problem.
2640
2641 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2642
2643         New module 'sethostname'.
2644         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2645         for systems that lack it.
2646         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2647         sethostname declaration and function.
2648         * modules/sethostname: New file.  Define the sethostname module.
2649
2650 2011-12-03  Bruno Haible  <bruno@clisp.org>
2651
2652         Tweak last commit.
2653         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2654
2655 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2656
2657         Split the HOST_NAME_MAX detection into a separate m4 macro.
2658         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2659         macro so it can be used by the pending sethostname module.
2660
2661 2011-12-03  Bruno Haible  <bruno@clisp.org>
2662
2663         Fix module descriptions syntax.
2664         * modules/argv-iter (License): Fix syntax.
2665         * modules/di-set (License): Likewise.
2666         * modules/ino-map (License): Likewise.
2667         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2668
2669 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2670
2671         stdalign: port to Clang 3.0
2672         Problem reported by Simon Josefsson in
2673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2674         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2675         which has <stdalign.h> but which does not define alignof.
2676         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2677
2678 2011-12-01  Eric Blake  <eblake@redhat.com>
2679
2680         mktempd: silence dd usage
2681         * build-aux/mktempd (rand_bytes): Silence dd.
2682
2683 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2684
2685         manywarnings: Don't mention gcc version in docstring.
2686         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2687         Jim Meyering <meyering@redhat.com>.
2688
2689 2011-11-30  Jim Meyering  <meyering@redhat.com>
2690
2691         hash: mark a few floating point constants with "f" suffix
2692         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2693         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2694         floating point constants with "f", since they're destined to be
2695         saved/used as "float"s.
2696
2697 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2698
2699         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2700         * tests/test-float.c (test_long_double): Correct and re-enable the
2701         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2702
2703 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2704
2705         Avoid subtracting two pointers that don't point into the same block.
2706         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2707         only pointers into the same memory block are subtracted. We cannot
2708         assume that sizeof (ptrdiff_t) == sizeof (void *).
2709
2710 2011-11-29  Eric Blake  <eblake@redhat.com>
2711
2712         maint.mk: add syntax check for use of compare from init.sh
2713         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2714         moved here from coreutils.
2715
2716         manywarnings: drop -Wunsuffixed-float-constants
2717         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2718         '1.0D', which is the only way to silence this warning for 'double'.
2719
2720 2011-11-29  Jim Meyering  <meyering@redhat.com>
2721
2722         hash: mark compute_bucket_size with the pure attribute
2723         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2724
2725         quotearg, propername: correct pragma guard expression
2726         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2727         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2728
2729 2011-11-28  Jim Meyering  <meyering@redhat.com>
2730
2731         propername: do not mark proper_name with the const attribute
2732         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2733         since it examines data pointed to by its parameter.
2734         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2735         the suggestion from -Wsuggest-attribute=const.
2736
2737         propername: mark one more function as const
2738         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2739
2740 2011-11-27  Jim Meyering  <meyering@redhat.com>
2741
2742         mark functions with const and pure attributes
2743
2744         Mark functions per suggestions from gcc-4.6 when using these options:
2745         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2746         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2747         Follow these guidelines: when possible, apply the attribute to
2748         an extern declaration, not to its definition.  Apply it to the
2749         definition only when the definition is static.
2750         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2751         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2752         * lib/base64.h (isbase64): Likewise.
2753         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2754         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2755         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2756         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2757         (c_tolower, c_toupper): Likewise.
2758         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2759         * lib/chdir-long.c (find_non_slash): Likewise.
2760         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2761         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2762         * lib/file-type.h (file_type): Likewise.
2763         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2764         * lib/filevercmp.c (verrevcmp): Likewise.
2765         * lib/freadahead.h (freadahead): Likewise.
2766         * lib/fts.c (fts_maxarglen): Likewise.
2767         * lib/hash-pjw.h (hash_pjw): Likewise.
2768         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2769         * lib/hash.c (is_prime, next_prime): Likewise.
2770         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2771         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2772         (hash_table_ok, hash_get_first, hash_string): Likewise.
2773         (compute_bucket_size): Likewise.
2774         * lib/i-ring.h (i_ring_empty): Likewise.
2775         * lib/isnan.c (isnanl): Likewise.
2776         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2777         * lib/memcasecmp.h (memcasecmp): Likewise.
2778         * lib/memchr2.h (memchr2): Likewise.
2779         * lib/memcmp2.h (memcmp2): Likewise.
2780         * lib/parse-datetime.y (lookup_zone): Likewise.
2781         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2782         [!WINDOWS_SOCKETS]: Likewise.
2783         * lib/strnlen1.h (strnlen1): Likewise.
2784         * lib/uniwidth.in.h (uc_width): Likewise.
2785         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2786         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2787         (quoting_options_from_style): Add a comment.
2788         * lib/propername.h (proper_name): Add a comment.
2789
2790 2011-11-27  Bruno Haible  <bruno@clisp.org>
2791
2792         Remove unused macros from !_LIBC code in glibc-borrowed files.
2793         * lib/fnmatch.c (STRCOLL): Remove macro.
2794         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2795         * lib/glob.c (__stat, __readdir64): Remove macros.
2796         * lib/tempname.c (__open64, __xstat64): Remove macros.
2797         Suggested by Paul Eggert.
2798
2799 2011-11-27  Bruno Haible  <bruno@clisp.org>
2800
2801         getcwd: Fix link error on MSVC 9.
2802         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2803
2804 2011-11-27  Bruno Haible  <bruno@clisp.org>
2805
2806         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2807         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2808         HAVE_OPENDIR is 0.
2809         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2810         HAVE_CLOSEDIR is 0.
2811         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2812         is 0.
2813         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2814
2815 2011-11-27  Bruno Haible  <bruno@clisp.org>
2816
2817         getcwd: Fix bug from 2011-08-17.
2818         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2819         platforms that need it.
2820         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2821         code of 4 to be a failure, not a success. This ensures that
2822         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2823
2824 2011-11-27  Bruno Haible  <bruno@clisp.org>
2825
2826         binary-io tests: Avoid test failure on mingw when libtool is used.
2827         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2828         Don't verify the size of t-bin-out1.tmp here.
2829         * tests/test-binary-io.sh: Verify it here.
2830         Reported by Simon Josefsson.
2831
2832 2011-11-26  Bruno Haible  <bruno@clisp.org>
2833
2834         Fix conflict between two instantiations of module 'unistd'.
2835         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2836         ${include_guard_prefix} also in the autoconf snippet.
2837         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2839         GNULIB_UNISTD_H_GETOPT.
2840         * modules/getopt-posix (configure.ac): Set the
2841         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2842         * modules/getopt-gnu (configure.ac): Likewise.
2843         * modules/unistd (Makefile.am): Change the substitution value of
2844         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2845         Reported by Simon Josefsson.
2846
2847 2011-11-25  Bruno Haible  <bruno@clisp.org>
2848
2849         pagealign_alloc: Doc and comments.
2850         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2851         module.
2852         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2853
2854 2011-11-25  Jim Meyering  <meyering@redhat.com>
2855
2856         test-update-copyright.sh: avoid false-positive failure
2857         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2858         around false positive failure on Cygwin/Windows.  The latter was
2859         matching erroneously-created files with names like
2860         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2861
2862 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2863
2864         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2865         * m4/valgrind-tests.m4: Check that the parameters that will be
2866         used works, not just a subset of them.  Reported by Bruno Haible
2867         <bruno@clisp.org>.
2868
2869 2011-11-24  Jim Meyering  <meyering@redhat.com>
2870
2871         test-stdalign.c: comment out long double tests
2872         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2873         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2874         error: '_Alignas' specifiers cannot reduce alignment of \
2875         'static_longdouble_alignas'.
2876
2877 2011-11-22  Jim Meyering  <meyering@redhat.com>
2878
2879         init.sh: make "compare /dev/null FILE" output more readable
2880         * tests/init.sh (compare_): Document the preferred order of arguments.
2881         (emit_diff_u_header_): New function.
2882         (compare_dev_null_): Emit a simulated diff, rather than just the
2883         contents of the unexpected file.  Suggestion from Bruno Haible.
2884
2885 2011-11-21  Jim Meyering  <meyering@redhat.com>
2886             Eric Blake  <eblake@redhat.com>
2887
2888         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2889         * tests/init.sh: Make our compare function slightly more portable.
2890         Reported by Bruno Haible in
2891         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2892
2893 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2894
2895         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2896         before using it, in code that ends up in config.h.
2897
2898 2011-11-20  Bruno Haible  <bruno@clisp.org>
2899
2900         getcwd: Work around getcwd bug on AIX 5..7.
2901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2902         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2903         Use a different value for gl_cv_func_getcwd_path_max. Move the
2904         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2905         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2906         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2907         Define HAVE_MINIMALLY_WORKING_GETCWD.
2908         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2909         where it is not even minimally working, that is, on AIX.
2910         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2911         m4/getcwd-path-max.m4.
2912         (main): Update exit code computation.
2913         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2914         getcwd does not handle long file names.
2915
2916 2011-11-20  Bruno Haible  <bruno@clisp.org>
2917
2918         getcwd: Fix bug from 2009-09-10.
2919         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2920         like "no".
2921
2922 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2923
2924         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2925
2926 2011-11-20  Bruno Haible  <bruno@clisp.org>
2927
2928         fma tests: Avoid shadowing local variables.
2929         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2930         expected.
2931
2932 2011-11-20  Bruno Haible  <bruno@clisp.org>
2933
2934         copysignf tests: Fix.
2935         * tests/test-copysignf.c: Fix signature check.
2936
2937 2011-11-20  Bruno Haible  <bruno@clisp.org>
2938
2939         fma: Remove unused code.
2940         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2941         unused macros.
2942
2943 2011-11-20  Bruno Haible  <bruno@clisp.org>
2944
2945         sethostname: Fix doc about AIX.
2946         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2947         sethostname; it has it.
2948
2949         sethostname: Mention more portability problems.
2950         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2951         problem.
2952         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2953
2954 2011-11-19  Bruno Haible  <bruno@clisp.org>
2955
2956         Depend on module fcntl-h when AT_FDCWD is used.
2957         * modules/utimens (Depends-on): Add fcntl-h.
2958         * modules/areadlinkat (Depends-on): Likewise.
2959         * modules/areadlinkat-with-size (Depends-on): Likewise.
2960         * modules/faccessat (Depends-on): Likewise.
2961         * modules/fchmodat (Depends-on): Likewise.
2962         * modules/fchownat (Depends-on): Likewise.
2963         * modules/getcwd (Depends-on): Likewise.
2964         * modules/mkdirat (Depends-on): Likewise.
2965         * modules/mkfifoat (Depends-on): Likewise.
2966         * modules/readlinkat (Depends-on): Likewise.
2967         * modules/symlinkat (Depends-on): Likewise.
2968         * modules/dup2-tests (Depends-on): Likewise.
2969         * modules/fdutimensat-tests (Depends-on): Likewise.
2970         * modules/futimens-tests (Depends-on): Likewise.
2971
2972 2011-11-19  Bruno Haible  <bruno@clisp.org>
2973
2974         euidaccess: Update a comment.
2975         * lib/euidaccess.c: Update comment about platforms with faccessat.
2976
2977 2011-11-19  Bruno Haible  <bruno@clisp.org>
2978
2979         openat: Fix file list.
2980         * modules/openat (Files): Remove lib/at-func.c.
2981
2982 2011-11-19  Bruno Haible  <bruno@clisp.org>
2983
2984         fstatat: Simplify.
2985         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2986         gnulib should define rpl_fstatat, there is a
2987         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2988
2989 2011-11-19  Bruno Haible  <bruno@clisp.org>
2990
2991         Ensure 'inline' can be used in tests/test-utimens-common.h.
2992         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2993         * modules/futimens-tests (configure.ac): Likewise.
2994         * modules/utimens-tests (configure.ac): Likewise.
2995         * modules/utimensat-tests (configure.ac): Likewise.
2996
2997 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2998
2999         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
3000         not hash_insert0.
3001         (hash_insert_if_absent): Doc fix.
3002
3003 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3004
3005         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
3006
3007 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3008
3009         test-getcwd: disambiguate exit status
3010         * tests/test-getcwd.c (test_long_name): Return 0..7.
3011         (main): Exit with an unambiguous exit status.  The old
3012         code yielded a mysterious mixture of two failure codes.
3013
3014         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3015         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3016         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3017         rpl_fstatat or fstatat.  This should fix the other problem
3018         reported by Kai Habel in
3019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3020         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3022         and I reproduced it on a Solaris 8 host we still have in production.
3023
3024 2011-11-18  Jim Meyering  <meyering@redhat.com>
3025
3026         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3027         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3028         Add a sentence to the comment.
3029         (hash_insert0): New function that simply calls hash_insert_if_absent.
3030         * lib/hash.h (hash_insert_if_absent): Declare it.
3031         (hash_insert0): Add deprecation attribute.
3032         (_GL_ATTRIBUTE_DEPRECATED): Define.
3033         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3034         not hash_insert0.
3035         * NEWS: Mention it, even though it's not really an incompatible change.
3036
3037 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3038
3039         openat: avoid compilation failure due to lack of <errno.h> inclusion
3040         * lib/openat.c: Include <errno.h>.
3041
3042 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3043
3044         * modules/getcwd (Depends-on): Add fdopendir.
3045         This fixes one of the two problems reported by Kai Habel in
3046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3047
3048         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3049         stdalign problem reported by Ian Beckwith in
3050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3051         * modules/crypto/gc-arcfour (Depends-on):
3052         Depend conditionally on crypto/arcfour.
3053         * modules/crypto/gc-arctwo (Depends-on):
3054         Depend conditionally on crypto/arctwo.
3055         * modules/crypto/gc-des (Depends-on):
3056         Depend conditionally on crypto/des.
3057         * modules/crypto/gc-hmac-md5 (Depends-on):
3058         Depend conditionally on crypto/hmac-md5.
3059         * modules/crypto/gc-hmac-sha1 (Depends-on):
3060         Depend conditionally on crypto/hmac-sha1.
3061         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3062         * modules/crypto/gc-md4 (Depends-on):
3063         Depend conditionally on crypto/md4.
3064         * modules/crypto/gc-md5 (Depends-on):
3065         Depend conditionally on crypto/md5.
3066         * modules/crypto/gc-rijndael (Depends-on):
3067         Depend conditionally on crypto/rijndael.
3068         * modules/crypto/gc-sha1 (Depends-on):
3069         Depend conditionally on crypto/sha1.
3070         * modules/crypto/gc-arcfour:
3071         * modules/crypto/gc-arctwo:
3072         * modules/crypto/gc-des:
3073         * modules/crypto/gc-hmac-md5:
3074         * modules/crypto/gc-hmac-sha1:
3075         * modules/crypto/gc-md2:
3076         * modules/crypto/gc-md4:
3077         * modules/crypto/gc-md5:
3078         * modules/crypto/gc-rijndael:
3079         * modules/crypto/gc-sha1:
3080         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3081         now that the conditional dependencies do the work for us.
3082
3083 2011-11-17  Jim Meyering  <meyering@redhat.com>
3084
3085         tests: factor st_ctime-comparison out of two headers
3086         * tests/test-utimens-common.h (ctime_compare): Define.
3087         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3088         * tests/test-lutimens.h (test_lutimens): Likewise.
3089         * tests/test-utimens.h (test_utimens): Likewise.
3090
3091         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3092         Invoke the test program via an init.sh-using wrapper.
3093         * tests/test-getcwd.sh: New file.
3094         * modules/getcwd-tests (Files): Add it.
3095         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3096
3097 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3098
3099         gitlog-to-changelog: support multi-author commits.
3100         The FSF cares about keeping track of all authors of patches to its
3101         projects, but Git doesn't provide obvious support for multi-author
3102         changesets. Consensus seems to be forming around the use of extra
3103         Signed-off-by inspired lines in the log message formatted as
3104         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3105         multi-author commits between version control systems.
3106         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3107         log message and output in standard ChangeLog multi-author format.
3108         Reported by Peter Rosin <peda@lysator.liu.se>
3109
3110 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3111             Bruno Haible  <bruno@clisp.org>
3112
3113         Fix some modules' file list.
3114         * modules/fstatat (Files): Add m4/lstat.m4.
3115         * modules/openat (Files): Likewise.
3116         * modules/unlinkat (Files): Likewise.
3117
3118 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3119
3120         maint.mk: fix tight-scope.mk generation in VPATH builds.
3121         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3122         reference with $(srcdir) so that the file is found correctly even
3123         when running `make syntax-check' in a VPATH build.
3124
3125 2011-11-13  Bruno Haible  <bruno@clisp.org>
3126             Jim Meyering  <meyering@redhat.com>
3127
3128         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3129         * tests/init.sh (compare): Remove "No differences encountered" or
3130         synonymous output from the 'diff' program.
3131
3132 2011-11-13  Bruno Haible  <bruno@clisp.org>
3133
3134         Makefile: Tweak indentation.
3135         * Makefile: Use tab as first character in every line that contains rule
3136         commands.
3137
3138 2011-11-13  Bruno Haible  <bruno@clisp.org>
3139
3140         Syntax check for copyright statements.
3141         * check-copyright: New file.
3142         * Makefile (sc_check_copyright): New rule.
3143
3144 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3145
3146         * build-aux/git-version-gen: Add --prefix to configure the tag
3147         match string.
3148
3149 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3150
3151         * build-aux/git-version-gen: Add --help and --version.
3152
3153 2011-11-12  Jim Meyering  <meyering@redhat.com>
3154
3155         revamp the other test-exclude?.sh scripts to use init.sh, too
3156         * tests/test-exclude1.sh: Use init.sh.
3157         * tests/test-exclude2.sh: Likewise.
3158         * tests/test-exclude3.sh: Likewise.
3159         * tests/test-exclude4.sh: Likewise.
3160         * tests/test-exclude5.sh: Likewise.
3161         * tests/test-exclude6.sh: Likewise.
3162         * tests/test-exclude7.sh: Likewise.
3163         * tests/test-exclude8.sh: Likewise.
3164         * modules/exclude-tests (Files): List init.sh.
3165
3166         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3167         These shell scripts ignored failure of the binary test-exclude,
3168         so making the latter return 77 didn't cause them to be skipped.
3169         * tests/test-exclude5.sh: Exit with test-exclude's error status
3170         when that program fails.  Revamp to use init.sh.
3171         * tests/test-exclude2.sh: Likewise.
3172
3173         test-exclude: fix a typo
3174         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3175
3176 2011-11-11  Bruno Haible  <bruno@clisp.org>
3177
3178         obstack: Fix compilation error on MSVC 9.
3179         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3180
3181 2011-11-11  Jim Meyering  <meyering@redhat.com>
3182
3183         test-exclude: skip tests rather than failing on deficient systems
3184         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3185         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3186         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3187         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3188
3189 2011-11-10  Bruno Haible  <bruno@clisp.org>
3190
3191         ptsname_r test: Avoid gcc warning on glibc systems.
3192         * tests/test-ptsname_r.c (null_ptr): New function.
3193         (test_errors): Use it.
3194
3195 2011-11-10  Bruno Haible  <bruno@clisp.org>
3196
3197         ptsname_r: Avoid compilation error on OSF/1 5.1.
3198         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3200         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3201         function is not declared or incompatibly declared.
3202         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3203         * modules/ptsname_r (Depends-on, configure.ac): Update.
3204         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3205
3206 2011-11-10  Bruno Haible  <bruno@clisp.org>
3207
3208         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3209         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3210         When cross-compiling, guess yes on all platforms except AIX.
3211         Reported by Ludovic Courtès <ludo@gnu.org>.
3212
3213 2011-11-09  Bruno Haible  <bruno@clisp.org>
3214
3215         ptsname_r tests: Fix bugs.
3216         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3217         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3218
3219 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3220
3221         fstatat: work with cross-compilation
3222         Problem reported by Ludovic Courtès in
3223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3224         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3225         "cross-compiling" and assume the bug is present.  Replace
3226         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3227         an inverted sense, to be more conservative about our assumptions.
3228         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3229
3230 2011-11-09  Bruno Haible  <bruno@clisp.org>
3231
3232         Improve MODULES.html output.
3233         * modules/mkfifoat (Description): Use the word "function".
3234         * modules/readlinkat (Description): Likewise.
3235         * modules/symlinkat (Description): Likewise.
3236
3237 2011-11-09  Eric Blake  <eblake@redhat.com>
3238
3239         ptsname_r-tests: new test module
3240         * modules/ptsname_r-tests: New module.
3241         * tests/test-ptsname_r.c: New file.
3242
3243         ptsname_r: new module
3244         * modules/ptsname_r: New module.
3245         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3246         * lib/ptsname.c (__ptsname_r): Split...
3247         * lib/ptsname_r.c: ...into new file.
3248         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3249         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3250         * modules/stdlib (Makefile.am): Substitute witnesses.
3251         * lib/stdlib.in.h (ptsname_r): Declare it.
3252         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3253         * MODULES.html.sh (Misc): Likewise.
3254         * modules/ptsname (Depends-on): Alter dependency.
3255         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3256
3257 2011-11-09  Jim Meyering  <meyering@redhat.com>
3258
3259         announce-gen: be more concise when there's only one URL+tarball
3260         * build-aux/announce-gen (get_tool_versions): When you distribute
3261         only one type of tarball, combine the first two "Here are..."
3262         sections and make the key-checking grammar independent of
3263         how many tarballs there are.
3264
3265 2011-11-09  Eric Blake  <eblake@redhat.com>
3266
3267         openpty: provide a stub on mingw
3268         * lib/pty.in.h (includes): Provide forward declarations.
3269         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3270
3271         raise: fix mingw handling of SIGPIPE
3272         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3273
3274 2011-11-08  Bruno Haible  <bruno@clisp.org>
3275
3276         More conditional dependencies.
3277         * modules/faccessat (Depends-on): Add conditions.
3278         * modules/fchmodat (Depends-on): Likewise.
3279         * modules/fchownat (Depends-on): Likewise.
3280         * modules/fstatat (Depends-on): Likewise.
3281         * modules/mkfifoat (Depends-on): Likewise.
3282         * modules/readlinkat (Depends-on): Likewise.
3283         * modules/symlinkat (Depends-on): Likewise.
3284         * modules/unlinkat (Depends-on): Likewise.
3285         * modules/utimensat (Depends-on): Likewise.
3286         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3287         * modules/linkat (Depends-on): Refine the conditions.
3288         * modules/renameat (Depends-on): Likewise.
3289
3290 2011-11-08  Bruno Haible  <bruno@clisp.org>
3291
3292         faccessat: Move AC_LIBOBJ invocation to module description.
3293         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
3294         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
3295         invocation from here...
3296         * modules/faccessat (configure.ac): ... to here. Invoke
3297         gl_PREREQ_FACCESSAT.
3298
3299 2011-11-08  Bruno Haible  <bruno@clisp.org>
3300
3301         faccessat: Simplify autoconf macro.
3302         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3303         gl_FUNC_EUIDACCESS.
3304
3305 2011-11-08  Bruno Haible  <bruno@clisp.org>
3306
3307         renameat: Fix dependencies.
3308         * modules/renameat (Depends-on): Add stdbool.
3309
3310 2011-11-08  Bruno Haible  <bruno@clisp.org>
3311
3312         mkfifoat: Fix module description.
3313         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3314         not gl_UNISTD_MODULE_INDICATOR.
3315
3316 2011-11-08  Bruno Haible  <bruno@clisp.org>
3317
3318         fstatat: Remove unused dependency.
3319         * modules/fstatat (Depends-on): Remove fstat.
3320
3321 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3322
3323         GNUmakefile: behave when Makefile is missing.
3324         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3325
3326 2011-11-08  Bruno Haible  <bruno@clisp.org>
3327
3328         openat: Conditionalize dependencies.
3329         * lib/openat.c: Reduce the scope of some #includes.
3330         * modules/openat (Depends-on): Add conditions.
3331
3332 2011-11-07  Jim Meyering  <meyering@redhat.com>
3333
3334         maint.mk: extract GPG key ID without using a temporary file
3335         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3336         without using a temporary file.  Based on a suggestion from Werner Koch
3337         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3338
3339 2011-11-07  Eric Blake  <eblake@redhat.com>
3340
3341         grantpt: fix typo
3342         * lib/stdlib.in.h (grantpt): Check correct function.
3343
3344         maint.mk: silence new syntax check
3345         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3346
3347 2011-11-06  Bruno Haible  <bruno@clisp.org>
3348
3349         Doc about floating-point and math API.
3350         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3351         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3352
3353 2011-11-06  Bruno Haible  <bruno@clisp.org>
3354
3355         stdalign tests: Skip the test when compiled by Sun C.
3356         * tests/test-stdalign.c (main): Skip the test on Sun C.
3357
3358 2011-11-06  Bruno Haible  <bruno@clisp.org>
3359
3360         ansi-c++-opt: Complete the 2011-06-05 change.
3361         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3362         does not support namespaces, set the variable to "no", not to ":".
3363
3364 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3365
3366         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3367
3368 2011-11-06  Bruno Haible  <bruno@clisp.org>
3369
3370         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3371         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3372         (minus_zerol) [HP-UX]: New macro.
3373         (unary_minus) [HP-UX]: New function.
3374         (copysignl) [HP-UX]: Use unary_minus function.
3375
3376 2011-11-06  Bruno Haible  <bruno@clisp.org>
3377
3378         ldexp, ldexpf, ldexpl: Enhance tests.
3379         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3380         and tests/test-ldexpl.c.
3381         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3382         LDEXP, MIN_EXP, MAX_EXP): New macros.
3383         Include test-ldexp.h.
3384         (main): Just call test_function.
3385         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3386         infinity.h, nan.h.
3387         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3388         MAX_EXP): New macros.
3389         Include test-ldexp.h.
3390         (x, y): Remove variables.
3391         (main): Just call test_function.
3392         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3393         infinity.h, nan.h.
3394         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3395         MAX_EXP): New macros.
3396         Include test-ldexp.h.
3397         (x, y): Remove variables.
3398         (main): Just call test_function.
3399         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3400         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3401         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3402         (Depends-on): Add isnand-nolibm, signbit, float.
3403         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3404         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3405         (Depends-on): Add isnanf-nolibm, signbit, float.
3406
3407 2011-11-06  Bruno Haible  <bruno@clisp.org>
3408
3409         math tests: Cosmetics.
3410         * tests/test-math-c++.cc: Reorder declarations.
3411
3412 2011-11-05  Bruno Haible  <bruno@clisp.org>
3413
3414         fma*: Simplify test.
3415         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3416         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3417
3418         Tests for module 'fmal'.
3419         * modules/fmal-tests: New file.
3420         * tests/test-fmal1.c: New file.
3421         * tests/test-fmal2.c: New file.
3422
3423         New module 'fmal'.
3424         * lib/math.in.h (fmal): New declaration.
3425         * lib/fmal.c: New file.
3426         * m4/fmal.m4: New file.
3427         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3429         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3430         REPLACE_FMAL.
3431         * modules/fmal: New file.
3432         * doc/posix-functions/fmal.texi: Mention the new module and the various
3433         bugs.
3434
3435         Tests for module 'fmaf'.
3436         * modules/fmaf-tests: New file.
3437         * tests/test-fmaf1.c: New file.
3438         * tests/test-fmaf2.c: New file.
3439
3440         New module 'fmaf'.
3441         * lib/math.in.h (fmaf): New declaration.
3442         * lib/fmaf.c: New file.
3443         * m4/fmaf.m4: New file.
3444         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3446         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3447         REPLACE_FMAF.
3448         * modules/fmaf: New file.
3449         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3450         bugs.
3451
3452         Tests for module 'fma'.
3453         * modules/fma-tests: New file.
3454         * tests/test-fma1.c: New file.
3455         * tests/test-fma1.h: New file.
3456         * tests/test-fma2.c: New file.
3457         * tests/test-fma2.h: New file.
3458
3459         New module 'fma'.
3460         * lib/math.in.h (fma): New declaration.
3461         * lib/fma.c: New file.
3462         * m4/fma.m4: New file.
3463         * m4/fegetround.m4: New file.
3464         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3466         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3467         REPLACE_FMA.
3468         * modules/fma: New file.
3469         * doc/posix-functions/fma.texi: Mention the new module and the various
3470         bugs.
3471
3472         Extend gl_MATHFUNC.
3473         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3474         Support 'void' as argument type.
3475         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3476
3477 2011-11-05  Jim Meyering  <meyering@redhat.com>
3478
3479         maint.mk: also prohibit inclusion of dirent.h without use
3480         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3481
3482 2011-11-05  Bruno Haible  <bruno@clisp.org>
3483
3484         ldexpl tests: Avoid test failure on MSVC 9.
3485         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3486         value. Needed in order to enforce the conversion from a value greater
3487         than LDBL_MAX to Infinity.
3488
3489 2011-11-05  Bruno Haible  <bruno@clisp.org>
3490
3491         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3492         * modules/at-internal: New file, extracted from modules/openat.
3493         * modules/openat-h: New file.
3494         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3495         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3496         * modules/openat (Description): Add reference to POSIX function.
3497         (Files): Remove lib/openat.h, lib/openat-proc.c.
3498         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3499         intprops, unistd.
3500         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3501         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3502         gl_FCNTL_MODULE_INDICATOR.
3503         (Include): Remove unistd.h, openat.h.
3504         * modules/areadlinkat (Files): Add lib/at-func.c.
3505         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3506         openat-die, openat-h, save-cwd.
3507         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3508         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3509         openat-die, openat-h, save-cwd, unistd.
3510         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3511         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3512         openat-h, save-cwd. Remove fcntl-h, openat.
3513         * modules/fchmodat (Files): Remove lib/openat.h.
3514         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3515         openat, stdbool, unistd.
3516         * modules/fchownat (Files): Remove lib/openat.h.
3517         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3518         openat, stdbool, sys_stat.
3519         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3520         lib/openat-proc.c.
3521         (Depends-on): Add at-internal.
3522         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3523         * modules/fstatat (Files): Remove lib/openat.h.
3524         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3525         stdbool, unistd.
3526         * modules/fts (Depends-on): Add openat-h.
3527         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3528         openat.
3529         * modules/mkdirat (Files): Remove lib/openat.h.
3530         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3531         openat, stdbool, sys_stat.
3532         * modules/mkfifoat (Files): Add lib/at-func.c.
3533         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3534         openat-h, save-cwd. Remove fcntl-h, openat.
3535         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3536         * modules/readlinkat (Files): Add lib/at-func.c.
3537         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3538         openat-h, save-cwd. Remove fcntl-h, openat.
3539         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3540         openat.
3541         * modules/selinux-at (Files): Add lib/at-func.c.
3542         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3543         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3544         * modules/symlinkat (Files): Add lib/at-func.c.
3545         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3546         openat-h, save-cwd. Remove fcntl-h, openat.
3547         * modules/unlinkat (Files): Remove lib/openat.h.
3548         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3549         stdbool.
3550         * modules/utimensat (Files): Add lib/at-func.c.
3551         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3552         openat-die, openat-h, save-cwd.
3553         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3554         * modules/fdutimensat-tests (Depends-on): Add openat.
3555         * modules/fstatat-tests (Depends-on): Add openat-h.
3556         * modules/readlinkat-tests (Depends-on): Add openat.
3557         * modules/symlinkat-tests (Depends-on): Add openat.
3558
3559 2011-11-05  Bruno Haible  <bruno@clisp.org>
3560
3561         openat: Include <stdbool.h>.
3562         * lib/openat.c: Include <stdbool.h>.
3563
3564 2011-11-04  Bruno Haible  <bruno@clisp.org>
3565
3566         fchownat, renameat, unlinkat: Fix dependencies.
3567         * modules/fchownat (Depends-on): Add fstatat.
3568         * modules/renameat (Depends-on): Likewise.
3569         * modules/unlinkat (Depends-on): Likewise.
3570
3571 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3572
3573         openat: remove direct dependency on dirent
3574         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3575         and hasn't been needed ever since fdopendir was split into its own
3576         module on 2009-08-31.
3577         * modules/openat (Depends-on): Remove dirent.
3578
3579 2011-11-04  Bruno Haible  <bruno@clisp.org>
3580
3581         renameat: Optimize code size.
3582         * modules/renameat (configure.ac): Don't compile at-func2.c if
3583         REPLACE_RENAMEAT is 1.
3584
3585 2011-11-04  Bruno Haible  <bruno@clisp.org>
3586
3587         openat tests: Fix file list.
3588         * modules/openat-tests (Files): Add tests/test-open.h.
3589
3590 2011-11-04  Bruno Haible  <bruno@clisp.org>
3591
3592         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3593         * modules/fchmodat (Depends-on): Add openat-die.
3594         * modules/fchownat (Depends-on): Likewise.
3595         * modules/linkat (Depends-on): Likewise.
3596         * modules/renameat (Depends-on): Likewise.
3597         * modules/openat (Depends-on): Add dirent.
3598
3599 2011-11-04  Jim Meyering  <meyering@redhat.com>
3600
3601         at-func*.c: fix comments
3602         * lib/at-func2.c: Correct/improve first-line comment.
3603         * lib/at-func.c: Correct grammar in first-line comment.
3604
3605 2011-11-04  Bruno Haible  <bruno@clisp.org>
3606
3607         New module 'mkdirat', split off from module 'openat'.
3608         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3609         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3610         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3611         * modules/mkdirat: New file, extracted from modules/openat.
3612         * modules/openat (Files): Remove lib/mkdirat.c.
3613         (Depends-on): Remove mkdir.
3614         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3615         (Include): Remove <sys/stat.h>.
3616         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3617         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3618         tests/test-mkdir.h.
3619         (Depends-on): Remove ignore-value.
3620         (Makefile.am): Remove rules for test-mkdirat.
3621         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3622         of module 'openat'.
3623         * NEWS: Mention the change.
3624
3625 2011-11-04  Bruno Haible  <bruno@clisp.org>
3626
3627         closedir: Avoid warning on mingw.
3628         * lib/closedir.c: Include <unistd.h>.
3629
3630 2011-11-04  Bruno Haible  <bruno@clisp.org>
3631
3632         New module 'fstatat', split off from module 'openat'.
3633         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3634         defined.
3635         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3636         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3637         gl_FUNC_FSTATAT.
3638         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3639         * modules/fstatat: New file, extracted from modules/openat.
3640         * modules/openat (Files): Remove lib/fstatat.c.
3641         (Depends-on): Remove lstat.
3642         (configure.ac): Remove AC_LIBOBJ of fstatat.
3643         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3644         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3645         tests/test-lstat.h, tests/test-stat.h.
3646         (Depends-on): Remove getcwd-lgpl.
3647         (Makefile.am): Remove rules for test-fstatat.
3648         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3649         of module 'openat'.
3650         * NEWS: Mention the change.
3651         * modules/getcwd (Depends-on): Add fstatat.
3652         * modules/linkat (Depends-on): Likewise.
3653         * modules/mkfifoat-tests (Depends-on): Likewise.
3654         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3655
3656 2011-11-03  Bruno Haible  <bruno@clisp.org>
3657
3658         New module 'unlinkat', split off from module 'openat'.
3659         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3660         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3661         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3662         * modules/unlinkat: New file, extracted from modules/openat. Correct
3663         the dependency conditions.
3664         * modules/openat (Files): Remove lib/unlinkat.c.
3665         (Depends-on): Remove rmdir, unlink.
3666         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3667         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3668         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3669         tests/test-rmdir.h, tests/test-unlink.h.
3670         (Depends-on): Remove unlinkdir.
3671         (Makefile.am): Remove rules for test-unlinkat.
3672         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3673         of module 'openat'.
3674         * NEWS: Mention the change.
3675         * modules/linkat-tests (Depends-on): Add unlinkat.
3676         * modules/mkfifoat-tests (Depends-on): Likewise.
3677         * modules/readlinkat-tests (Depends-on): Likewise.
3678
3679 2011-11-02  Bruno Haible  <bruno@clisp.org>
3680
3681         New module 'fchmodat', split off from module 'openat'.
3682         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3683         defined.
3684         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3685         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3686         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3687         * modules/fchmodat: New file, extracted from modules/openat.
3688         * modules/openat (Files): Remove lib/fchmodat.c.
3689         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3690         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3691         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3692         (Makefile.am): Remove rules for test-fchmodat.
3693         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3694         of module 'openat'.
3695         * NEWS: Mention the change.
3696
3697 2011-11-02  Jim Meyering  <meyering@redhat.com>
3698
3699         putenv: indent #definition of "environ" to placate cppi
3700         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3701
3702         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3703         Git logs are often treated as immutable, because editing them
3704         changes the SHA1 checksums of all descendants.  Thus, errors in
3705         git logs tend to stay there forever.  However, when we generate
3706         a ChangeLog file -- typically for distribution -- from that git log,
3707         we can actually make corrections in the generated file.  The key
3708         lies in recording in machine-readable/applicable form the desired
3709         corrections.  See --help for description and an example.
3710         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3711         (usage): Describe it; alphabetize option descriptions.
3712         (main): Honor the new option, carefully.
3713
3714 2011-11-01  Jim Meyering  <meyering@redhat.com>
3715
3716         gitlog-to-changelog: avoid an infloop
3717         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3718         that ends up being empty.
3719
3720 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3723         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3724         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3725         contains (possibly-quoted) backslashes.  This should avoid
3726         all-too-common shell bugs if COMPLICATED contains backslashes in
3727         the "wrong" places.  Reported by David Evans in
3728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3729         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3730         because we want ASCII ranges.  Is there some reason we don't use
3731         the C locale everywhere in this script?
3732         (func_module, top level): Avoid unwanted pathname expansion when
3733         $repo_url_prefix or $repo_url_suffix_repl contain shell
3734         metacharacters like '?' and '*'.
3735
3736 2011-11-01  Bruno Haible  <bruno@clisp.org>
3737
3738         fchownat: Improve description.
3739         * modules/fchownat (Description): Add link to function.
3740
3741 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3742
3743         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3744         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3746         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3747
3748 2011-11-01  Bruno Haible  <bruno@clisp.org>
3749
3750         alignof: Avoid collision with stdalign module.
3751         * lib/alignof.h (alignof): Remove macro.
3752         * NEWS: Mention the change.
3753         Reported by Paul Eggert.
3754
3755 2011-11-01  Bruno Haible  <bruno@clisp.org>
3756
3757         New module 'fchownat', split off from module 'openat'.
3758         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3759         defined.
3760         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3761         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3762         invoke gl_FUNC_FCHOWNAT.
3763         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3764         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3765         * modules/fchownat: New file, extracted from modules/openat.
3766         * modules/openat (Files): Remove lib/fchownat.c.
3767         (Depends-on): Remove lchown.
3768         (configure.ac): Remove AC_LIBOBJ of fchownat.
3769         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3770         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3771         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3772         (Depends-on): Remove mgetgroups, usleep, stat-time.
3773         (configure.ac): Remove test for getegid.
3774         (Makefile.am): Remove rules for test-fchownat.
3775         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3776         of module 'openat'.
3777         * NEWS: Mention the change.
3778
3779 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         stdalign: port better to MSVC and to Sun C 5.11
3782         This fixes some of the problems reported by Bruno Haible in
3783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3784         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3785         shortcomings of MSVC and of Sun C 5.11.
3786         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3787         around __declspec arg.
3788         * modules/stdalign-tests (Files): Add tests/macros.h.
3789         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3790         Include macros.h, for ASSERT.
3791         (DECLARE_ALIGNED): Remove.
3792         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3793         to catch bug), and to 1 if not (simplifies the rest of the code).
3794         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3795         (CHECK_AUTO): Remove.
3796         (CHECK_ALIGNED): Check only the alignment of the static vars,
3797         since auto var alignment isn't supported by Sun C 5.11.
3798         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3799         ASSERT failures are easier to diagnose.
3800
3801 2011-10-31  Bruno Haible  <bruno@clisp.org>
3802
3803         doc about some IRIX 5.3 problems.
3804         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3805         on IRIX 5.3.
3806         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3807         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3808         5.3.
3809         * doc/posix-functions/grantpt.texi: Likewise.
3810         * doc/posix-functions/unlockpt.texi: Likewise.
3811         * doc/posix-functions/lgamma.texi: Likewise.
3812         * doc/posix-functions/nextafter.texi: Likewise.
3813         * doc/posix-functions/remainder.texi: Likewise.
3814         * doc/posix-functions/select.texi: Mention misplaced declaration on
3815         IRIX 5.3.
3816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3817
3818 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3819
3820         gitlog-to-changelog: fix git-log invocation.
3821         git-log mishandles date strings before 1970-01-01 UTC, and there is
3822         no use to specify --since=1970-01-01 by default anyway.
3823         * build-aux/gitlog-to-changelog: By default, when no --since option
3824         was given, do not specify explicit --since option to git-log.
3825
3826 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3827
3828         gitlog-to-changelog: new option --append-dot.
3829         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3830         first non-blank line of each commit message terminated with a dot.
3831
3832 2011-10-30  Bruno Haible  <bruno@clisp.org>
3833
3834         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3835         * lib/ffsl.h: Include <config.h>.
3836         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3837
3838 2011-10-30  Jim Meyering  <meyering@redhat.com>
3839
3840         GNUmakefile: reenable "make syntax-check" for most projects
3841         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3842         build-aux variable", "syntax-check" would do nothing but succeed with
3843         the "No version control files detected..." diagnostic (unless you
3844         happened to override _build-aux via cfg.mk).
3845         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3846         to precede inclusion of maint.mk.  Otherwise, these variables would
3847         be used undefined in any project that does not override the default.
3848
3849 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3850
3851         gitlog-to-changelog: treat a message with only blank lines as empty.
3852         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3853         trailing blank lines before the code that issues a warning about an
3854         empty commit message.
3855
3856 2011-10-30  Jim Meyering  <meyering@redhat.com>
3857
3858         test-parse-datetime.c: avoid new DST-related false positive test failure
3859         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3860         based on the time/date we'll convert, not the current time.
3861         Otherwise, the moment we cross a DST boundary like today's in
3862         Europe, (CEST to CET), that offset ends up being one hour off.
3863
3864 2011-10-27  Bruno Haible  <bruno@clisp.org>
3865
3866         fstat: Tweak documentation.
3867         * modules/fstat (Description): More precise description.
3868
3869 2011-10-27  Bruno Haible  <bruno@clisp.org>
3870
3871         Update documentation regarding 'largefile' module.
3872         * doc/posix-functions/fstat.texi: Tweak wording.
3873         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3874         problems with huge directories and/or small ino_t types.
3875         * doc/posix-functions/readdir.texi: Likewise.
3876         * doc/posix-functions/rewinddir.texi: Likewise.
3877
3878 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3879
3880         maint.mk: don't maintain a second build-aux variable.
3881         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3882         depends on GNUmakefile, which already maintains a cfg.mk
3883         overridable $(_build-aux) for projects with a non-standard
3884         build-aux directory location, although without the $(srcdir)
3885         prefix.  Use that variable consistently instead of introducing a
3886         second one.  Adjust all call sites.
3887
3888 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3889
3890         Add stdalign module and use it in other modules.
3891         This is based on a previous proposal by Bruno Haible
3892         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3893
3894         stdalign: new module
3895         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3896         * modules/stdalign: New files.
3897         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3898         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3899
3900         stdalign-tests: new module
3901         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3902
3903         argp: use stdalign
3904         * lib/argp-parse.c: Include <stdalign.h>.
3905         (alignof): Remove.
3906         * modules/argp (Depends-on): Add stdalign.
3907
3908         crypto libraries: use stdalign
3909         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3910         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3911         Do not include <stdlib.h> twice, in md4.c.
3912         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3913         because we are accessing a pointer's bit-pattern, not a size.
3914         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3915         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3916         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3917         * modules/crypto/sha512: Likewise.
3918
3919         sys_socket: use stdalign, not alignof
3920         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3921         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3922
3923 2011-10-27  Bruno Haible  <bruno@clisp.org>
3924
3925         raise test: Avoid a test failure on Linux/MIPS.
3926         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3927         because 99 is a valid signal on Linux/MIPS.
3928
3929 2011-10-27  Bruno Haible  <bruno@clisp.org>
3930
3931         nonblocking tests: Fix test failure on Linux/MIPS.
3932         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3933         Set to 270000.
3934
3935 2011-10-27  Bruno Haible  <bruno@clisp.org>
3936
3937         utimensat: Work around problem on Linux/hppa.
3938         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3939         values.
3940         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3941
3942 2011-10-25  Jim Meyering  <meyering@redhat.com>
3943
3944         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3945         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3946         after symbols like NULL, size_t, etc.
3947         Reported by Alfred M. Szmidt.
3948
3949         maint.mk: exempt ENODATA from a syntax-check rule
3950         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3951         from the sc_prohibit_always-defined_macros syntax-check rule.
3952         Add a comment.  See this for more details:
3953         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3954
3955 2011-10-23  Jim Meyering  <meyering@redhat.com>
3956
3957         fts: close parent dir FD before returning from post-traversal fts_read
3958         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3959         unlink A, even though an FD open on A remained.  This is suboptimal
3960         (holding a file descriptor open longer than needed), but otherwise not
3961         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3962         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3963         that represents a real problem: it causes the removal of A to fail
3964         with e.g., "rm: cannot remove `A': Device or resource busy"
3965
3966         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3967         directory file descriptors.  After completing the final, FTS_DP,
3968         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3969         cache, but then proceeded to add a new FD to it via the subsequent
3970         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3971         final file descriptor would be closed only via fts_close's call to
3972         fd_ring_clear.  Now, it is usually closed earlier, via the final
3973         FTS_DP-returning fts_read call.
3974         * lib/fts.c (restore_initial_cwd): New function, converted from
3975         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3976         Update callers.
3977         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3978         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3979
3980 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3981             Bruno Haible  <bruno@clisp.org>
3982             Jim Meyering  <jim@meyering.net>
3983
3984         readme-release: improve safety of release prep instructions.
3985         * README-release: Don't git pull all branches when only master
3986         is needed for the release process.
3987         Run make maintainer-clean before changing trees and merging.
3988         Don't try to run ./configure right after git pull in case files
3989         that influence the bootstrap process have changed, move the
3990         ./configure step to after running ./bootstrap.
3991         Don't bootstrap "one last time"... it's the first time!
3992
3993 2011-10-22  Bruno Haible  <bruno@clisp.org>
3994
3995         errno, strerror-override: Support for MSVC 10.
3996         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3997         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3998         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3999         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
4000         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
4001         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
4002         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
4003         Assign values compatible with MSVC 10.
4004         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
4005         New macros.
4006         (GNULIB_defined_EWINSOCK): New macro.
4007         * lib/strerror-override.c (strerror_override): Update accordingly.
4008         * lib/strerror-override.h: Likewise.
4009         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
4010         longer equal to the corresponding errno value.
4011         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4012
4013 2011-10-22  Bruno Haible  <bruno@clisp.org>
4014
4015         perror: Recognize when test program crashes.
4016         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4017         strerror, set gl_cv_func_perror_works to no.
4018         Reported by Daniel Richard G. <skunk@iskunk.org>.
4019
4020         perror: Fix indentation.
4021         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4022
4023 2011-10-22  Bruno Haible  <bruno@clisp.org>
4024
4025         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4026         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4027         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4028         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4029         functions, not as a macro.
4030         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4031         macros.
4032         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4033         absence of macro.
4034         Suggested by Eric Blake.
4035         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4036
4037 2011-10-21  Bruno Haible  <bruno@clisp.org>
4038
4039         relocatable-prog-wrapper: Don't leave object files behind.
4040         * build-aux/install-reloc: Re-synchronize list of .o files to be
4041         removed with list of compilation units.
4042
4043 2011-10-20  Bruno Haible  <bruno@clisp.org>
4044
4045         openpty, posix_openpt: Remove code duplication.
4046         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4047         * lib/openpty.c: Include <stdlib.h>.
4048         (openpty): Use posix_openpt on all platforms except IRIX.
4049         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4050
4051 2011-10-20  Bruno Haible  <bruno@clisp.org>
4052
4053         unlockpt: Detect invalid argument.
4054         * lib/unlockpt.c: Include <fcntl.h>.
4055         (unlockpt): Check whether fd is valid, using fcntl().
4056         * modules/unlockpt (Depends-on): Add fcntl-h.
4057
4058 2011-10-20  Bruno Haible  <bruno@clisp.org>
4059
4060         openpty: Avoid compilation error on AIX 6.1.
4061         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4062
4063 2011-10-20  Bruno Haible  <bruno@clisp.org>
4064
4065         posix_openpt: Support for OpenBSD.
4066         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4067         (posix_openpt) [OpenBSD]: New code.
4068         * lib/grantpt.c: Include <fcntl.h>.
4069         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4070         * modules/grantpt (Depends-on): Add fcntl-h.
4071
4072 2011-10-20  Bruno Haible  <bruno@clisp.org>
4073
4074         posix_openpt test: Coding style.
4075         * tests/test-posix_openpt.c: Use GNU coding style.
4076
4077 2011-10-20  Bruno Haible  <bruno@clisp.org>
4078
4079         grantpt: Support --avoid=pt_chown.
4080         * modules/grantpt (Files): Add lib/pty-private.h.
4081
4082 2011-10-20  Bruno Haible  <bruno@clisp.org>
4083
4084         posix_openpt: Fix autoconf macro.
4085         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4086         unneeded check for _getpty.
4087
4088 2011-10-20  Bruno Haible  <bruno@clisp.org>
4089
4090         openpty: Update comments.
4091         * lib/openpty.c: Add comments about Minix.
4092
4093 2011-10-19  Eric Blake  <eblake@redhat.com>
4094
4095         openpty: relax license
4096         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4097
4098         pt_chown: use configmake to simplify build
4099         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4100
4101         ptsname and others: relax license
4102         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4103         * modules/unlockpt (License): Likewise.
4104         * modules/pt_chown (License): Likewise.
4105         * modules/ptsname (License): Likewise.
4106         * modules/ttyname_r (License): Likewise.
4107
4108 2011-10-19  Jim Meyering  <meyering@redhat.com>
4109
4110         posix_openpt: remove spurious #endif
4111         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4112
4113 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4114
4115         maint.mk: Respect $(build_aux) in web-manual rule.
4116         * top/maint.mk (web-manual): Find gen-announce script in user's
4117         $(build_aux) directory instead of hard-coding 'build-aux'.
4118
4119 2011-10-19  Bruno Haible  <bruno@clisp.org>
4120
4121         posix_openpt: Fix compilation error.
4122         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4123         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4124         Mention the openpty module as an alternative.
4125
4126 2011-10-19  Bruno Haible  <bruno@clisp.org>
4127
4128         Support for old NeXTstep 3.3 frexp().
4129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4130         execution time of the test to 5 seconds.
4131         Reported by Daniel Richard G. <skunk@iskunk.org>.
4132
4133 2011-10-19  Bruno Haible  <bruno@clisp.org>
4134
4135         Support for old NeXTstep 3.3 sed.
4136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4137         part, use /.../, not \|...|. Escape periods in the header file name.
4138         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4139         Reported by Daniel Richard G. <skunk@iskunk.org>.
4140
4141 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4142
4143         Support for old NeXTstep 3.3 gcc.
4144         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4145         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4146         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4147         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4148         * lib/regex.h (_Restrict_arr_): Likewise.
4149         * lib/regex_internal.h (re_token_t): Likewise.
4150         * lib/regexec.c (check_node_accept_bytes): Likewise.
4151         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4152
4153 2011-10-18  Eric Blake  <eblake@redhat.com>
4154
4155         posix_openpt: new module
4156         * modules/posix_openpt: New module.
4157         * m4/posix_openpt.m4: New file.
4158         * lib/posix_openpt.c: Likewise.
4159         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4160         (gl_STDLIB_H_DEFAULTS): Set defaults.
4161         * modules/stdlib (Makefile.am): Substitute macros.
4162         * lib/stdlib.in.h (posix_openpt): Declare.
4163         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4164         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4165         * modules/posix_openpt-tests: New test module.
4166         * tests/test-posix_openpt.c: New test.
4167
4168 2011-10-15  Bruno Haible  <bruno@clisp.org>
4169
4170         xstrtoll: Fix compilation failure.
4171         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4172         from lib/strtol.c.
4173         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4174         some platforms.
4175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4176
4177 2011-10-15  Bruno Haible  <bruno@clisp.org>
4178
4179         vasnprintf: Optimize bit search operation.
4180         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4182         gl_DOUBLE_EXPONENT_LOCATION.
4183         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4184         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4185         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4186         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4187         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4188         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4189         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4190         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4191         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4192
4193 2011-10-15  Bruno Haible  <bruno@clisp.org>
4194
4195         vasnprintf: Fix comments.
4196         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4197
4198 2011-10-14  Bruno Haible  <bruno@clisp.org>
4199
4200         Tests for module 'integer_length_ll'.
4201         * modules/integer_length_ll-tests: New file.
4202         * tests/test-integer_length_ll.c: New file.
4203
4204         New module 'integer_length_ll'.
4205         * lib/integer_length_ll.c: New file.
4206         * modules/integer_length_ll: New file.
4207
4208 2011-10-14  Bruno Haible  <bruno@clisp.org>
4209
4210         Tests for module 'integer_length_l'.
4211         * modules/integer_length_l-tests: New file.
4212         * tests/test-integer_length_l.c: New file.
4213
4214         New module 'integer_length_l'.
4215         * lib/integer_length_l.c: New file.
4216         * modules/integer_length_l: New file.
4217
4218 2011-10-14  Bruno Haible  <bruno@clisp.org>
4219
4220         Tests for module 'integer_length'.
4221         * modules/integer_length-tests: New file.
4222         * tests/test-integer_length.c: New file.
4223
4224         New module 'integer_length'.
4225         * lib/integer_length.h: New file.
4226         * lib/integer_length.c: New file.
4227         * modules/integer_length: New file.
4228
4229 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4230
4231         popen: Fix dependency conditions.
4232         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4233
4234 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4235
4236         perror: Fix autoconf test.
4237         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4238         <stdlib.h> and <string.h>.
4239
4240 2011-10-14  Bruno Haible  <bruno@clisp.org>
4241
4242         ffsl: Optimize on 64-bit platforms.
4243         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4244         unrolling.
4245
4246 2011-10-13  Bruno Haible  <bruno@clisp.org>
4247
4248         ffsl: Optimize on 32-bit platforms.
4249         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4250         use ffs() without a loop.
4251
4252         ffsl, ffsll: Optimize for GCC.
4253         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4254         * lib/ffsl.c (GCC_BUILTIN): New macro.
4255         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4256
4257 2011-10-13  Bruno Haible  <bruno@clisp.org>
4258
4259         ffs, bcopy, memset: Support symbol renaming via config.h.
4260         * lib/ffs.c: Include <config.h>.
4261         * lib/bcopy.c: Likewise.
4262         * lib/memset.c: Likewise.
4263
4264 2011-10-10  Bruno Haible  <bruno@clisp.org>
4265
4266         atanl: Simplify for platforms where 'long double' == 'double'.
4267         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4268         alternative implementation.
4269         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4270         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4271         * modules/atanl (Depends-on): Add atan. Update conditions.
4272
4273 2011-10-10  Bruno Haible  <bruno@clisp.org>
4274
4275         acosl: Simplify for platforms where 'long double' == 'double'.
4276         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4277         alternative implementation.
4278         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4279         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4280         * modules/acosl (Depends-on): Add acos. Update conditions.
4281
4282 2011-10-10  Bruno Haible  <bruno@clisp.org>
4283
4284         asinl: Simplify for platforms where 'long double' == 'double'.
4285         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4286         alternative implementation.
4287         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4288         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4289         * modules/asinl (Depends-on): Add asin. Update conditions.
4290
4291 2011-10-10  Bruno Haible  <bruno@clisp.org>
4292
4293         tanl: Simplify for platforms where 'long double' == 'double'.
4294         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4295         implementation.
4296         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4297         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4298         * modules/tanl (Depends-on): Add tan. Update conditions.
4299         (configure.ac): Don't compile trigl.c if
4300         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4301
4302 2011-10-10  Bruno Haible  <bruno@clisp.org>
4303
4304         cosl: Simplify for platforms where 'long double' == 'double'.
4305         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4306         implementation.
4307         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4308         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4309         * modules/cosl (Depends-on): Add cos. 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         sinl: Simplify for platforms where 'long double' == 'double'.
4316         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4317         implementation.
4318         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4319         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4320         * modules/sinl (Depends-on): Add sin. Update conditions.
4321         (configure.ac): Don't compile sincosl.c and trigl.c if
4322         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4323
4324 2011-10-10  Bruno Haible  <bruno@clisp.org>
4325
4326         logl: Simplify for platforms where 'long double' == 'double'.
4327         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4328         implementation.
4329         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4330         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4331         * modules/logl (Depends-on): Add log. Update conditions.
4332
4333 2011-10-10  Bruno Haible  <bruno@clisp.org>
4334
4335         expl: Simplify for platforms where 'long double' == 'double'.
4336         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4337         implementation.
4338         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4339         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4340         * modules/expl (Depends-on): Add exp. Update conditions.
4341
4342 2011-10-10  Bruno Haible  <bruno@clisp.org>
4343
4344         sqrtl: Simplify for platforms where 'long double' == 'double'.
4345         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4346         alternative implementation.
4347         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4348         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4349         * modules/sqrtl (Depends-on): Update conditions.
4350
4351 2011-10-10  Bruno Haible  <bruno@clisp.org>
4352
4353         ldexpl: Simplify for platforms where 'long double' == 'double'.
4354         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4355         alternative implementation.
4356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4357         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4358         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4359
4360 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4361
4362         ffsll: set correct witness
4363         * modules/ffsll (configure.ac): Fix typo.
4364
4365 2011-10-10  Bruno Haible  <bruno@clisp.org>
4366
4367         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4368         * lib/printf-frexpl.c: Include <config.h>.
4369         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4370         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4371         second time.
4372         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4373         gl_LONG_DOUBLE_VS_DOUBLE.
4374         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4375         conditions.
4376
4377 2011-10-10  Bruno Haible  <bruno@clisp.org>
4378
4379         frexpl: Simplify for platforms where 'long double' == 'double'.
4380         * lib/frexpl.c: Include <config.h>.
4381         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4382         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4383         time.
4384         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4385         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4386         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4387         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4388         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4389         conditions.
4390
4391 2011-10-10  Jim Meyering  <meyering@redhat.com>
4392
4393         test-renameat: don't leave behind a temporary file
4394         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4395           ERROR: files left in build directory after distclean:
4396           ./gltests/test-renameat.too
4397           make[1]: *** [distcleancheck] Error 1
4398         Reported by Tom G. Christensen.
4399
4400 2011-10-09  Bruno Haible  <bruno@clisp.org>
4401
4402         rint: Determine RINT_LIBM correctly on AIX 7.
4403         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4404         directly, not only through a function pointer. Also accept an optional
4405         4th argument with extra code.
4406         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4407         rintf() call by gcc when optimizing.
4408
4409         mathfunc.m4: Refactor.
4410         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4411         m4 variable.
4412
4413 2011-10-09  Bruno Haible  <bruno@clisp.org>
4414
4415         rintl: Simplify for platforms where 'long double' == 'double'.
4416         * lib/rintl.c: Include <config.h>.
4417         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4418         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4419         time.
4420         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4421         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4422         * modules/rintl (Depends-on): Add rint. Update conditions.
4423
4424 2011-10-09  Bruno Haible  <bruno@clisp.org>
4425
4426         roundl: Simplify for platforms where 'long double' == 'double'.
4427         * lib/roundl.c: Include <config.h>.
4428         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4429         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4430         time.
4431         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4432         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4433         * modules/roundl (Depends-on): Add round. Update conditions.
4434
4435 2011-10-09  Bruno Haible  <bruno@clisp.org>
4436
4437         truncl: Simplify for platforms where 'long double' == 'double'.
4438         * lib/truncl.c: Include <config.h>.
4439         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4440         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4441         time.
4442         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4443         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4444         * modules/truncl (Depends-on): Add trunc. Update conditions.
4445
4446 2011-10-09  Bruno Haible  <bruno@clisp.org>
4447
4448         ceill: Simplify for platforms where 'long double' == 'double'.
4449         * lib/ceill.c: Include <config.h>.
4450         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4451         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4452         time.
4453         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4454         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4455         * modules/ceill (Depends-on): Add ceil. Update conditions.
4456
4457 2011-10-09  Bruno Haible  <bruno@clisp.org>
4458
4459         floorl: Simplify for platforms where 'long double' == 'double'.
4460         * lib/floorl.c: Include <config.h>.
4461         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4462         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4463         time.
4464         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4465         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4466         * modules/floorl (Depends-on): Add floor. Update conditions.
4467
4468 2011-10-09  Bruno Haible  <bruno@clisp.org>
4469
4470         rint: Fix ordering constraints.
4471         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4472         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4473         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4474
4475 2011-10-09  Bruno Haible  <bruno@clisp.org>
4476
4477         copysignl: Simplify for platforms where 'long double' == 'double'.
4478         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4479         alternative.
4480         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4481         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4482         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4483
4484 2011-10-09  Bruno Haible  <bruno@clisp.org>
4485
4486         Tests for module 'rintl'.
4487         * modules/rintl-tests: New file.
4488         * tests/test-rintl.c: New file.
4489
4490         New module 'rintl'.
4491         * lib/math.in.h (rintl): New declaration.
4492         * lib/rintl.c: New file.
4493         * m4/rintl.m4: New file.
4494         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4496         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4497         * modules/rintl: New file.
4498         * tests/test-math-c++.cc: Check the declaration of rintl.
4499         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4500         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4501         * doc/posix-functions/rintl.texi: Mention the new module.
4502
4503 2011-10-09  Bruno Haible  <bruno@clisp.org>
4504
4505         Tests for module 'rintf'.
4506         * modules/rintf-tests: New file.
4507         * tests/test-rintf.c: New file.
4508
4509         New module 'rintf'.
4510         * lib/math.in.h (rintf): New declaration.
4511         * lib/rintf.c: New file.
4512         * m4/rintf.m4: New file.
4513         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4515         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4516         * modules/rintf: New file.
4517         * tests/test-math-c++.cc: Check the declaration of rintf.
4518         * doc/posix-functions/rintf.texi: Mention the new module.
4519
4520 2011-10-09  Bruno Haible  <bruno@clisp.org>
4521
4522         rint: Support for MSVC.
4523         * lib/math.in.h (rint): New declaration.
4524         * lib/rint.c: New file.
4525         * m4/rint.m4: New file.
4526         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4528         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4529         * modules/rint (Description): Fix.
4530         (Files): Add lib/rint.c, m4/rint.m4.
4531         (Depends-on): Add math.
4532         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4533         gl_MATH_MODULE_INDICATOR.
4534         * tests/test-math-c++.cc: Check the declaration of rint.
4535         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4536         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4537         * doc/posix-functions/rint.texi: Mention the replacement provided by
4538         the module.
4539
4540         rint tests: More tests.
4541         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4542         minus-zero.h, infinity.h, nan.h.
4543         (main): Skip the test if the current rounding mode is not standard. Add
4544         tests for negative numbers, minus zero, infinity, NaN.
4545         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4546         tests/nan.h.
4547         (Depends-on): Add isnand-nolibm.
4548
4549 2011-10-09  Bruno Haible  <bruno@clisp.org>
4550
4551         Tests for module 'copysignl'.
4552         * modules/copysignl-tests: New file.
4553         * tests/test-copysignl.c: New file.
4554
4555         New module 'copysignl'.
4556         * lib/math.in.h (copysignl): New declaration.
4557         * lib/copysignl.c: New file.
4558         * m4/copysignl.m4: New file.
4559         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4561         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4562         HAVE_COPYSIGNL.
4563         * modules/copysignl: New file.
4564         * tests/test-math-c++.cc: Check the declaration of copysignl.
4565         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4566         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4567         * doc/posix-functions/copysignl.texi: Mention the new module.
4568
4569 2011-10-09  Bruno Haible  <bruno@clisp.org>
4570
4571         Tests for module 'copysignf'.
4572         * modules/copysignf-tests: New file.
4573         * tests/test-copysignf.c: New file.
4574
4575         New module 'copysignf'.
4576         * lib/math.in.h (copysignf): New declaration.
4577         * lib/copysignf.c: New file.
4578         * m4/copysignf.m4: New file.
4579         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4581         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4582         HAVE_COPYSIGNF.
4583         * modules/copysignf: New file.
4584         * tests/test-math-c++.cc: Check the declaration of copysignf.
4585         * doc/posix-functions/copysignf.texi: Mention the new module.
4586
4587 2011-10-09  Bruno Haible  <bruno@clisp.org>
4588
4589         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4590         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4591         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4592         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4593         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4594         gl_SIGNAL_H_DEFAULTS.
4595
4596 2011-10-09  Bruno Haible  <bruno@clisp.org>
4597
4598         poll: Make macro safer.
4599         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4600         ac_cv_header_poll_h is not set.
4601
4602 2011-10-09  Bruno Haible  <bruno@clisp.org>
4603
4604         copysign: Provide replacement.
4605         * lib/math.in.h (copysign): New declaration.
4606         * lib/copysign.c: New file.
4607         * m4/copysign.m4: New file.
4608         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4610         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4611         HAVE_COPYSIGN.
4612         * modules/copysign (Description): Clarify.
4613         (Files): Add lib/copysign.c, m4/copysign.m4.
4614         (Depends-on): Add math, signbit.
4615         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4616         gl_MATH_MODULE_INDICATOR.
4617         * tests/test-math-c++.cc: Check the declaration of copysign.
4618         * doc/posix-functions/copysign.texi: Mention the effects of the module
4619         on Minix and MSVC.
4620
4621 2011-10-09  Bruno Haible  <bruno@clisp.org>
4622
4623         isinf: Ensure macro on AIX 5.1.
4624         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4625         macro.
4626         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4627
4628 2011-10-09  Bruno Haible  <bruno@clisp.org>
4629
4630         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4631         * modules/snprintf-posix-tests (configure.ac): Require
4632         gl_LONG_DOUBLE_VS_DOUBLE.
4633         * modules/sprintf-posix-tests (configure.ac): Likewise.
4634         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4635         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4636         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4637         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4638         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4639         tests on platforms where 'long double' is the same as 'double'.
4640         * tests/test-sprintf-posix.h (test_function): Likewise.
4641         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4642         * tests/test-vasprintf-posix.c (test_function): Likewise.
4643
4644         *printf: Fix for platforms where 'long double' == 'double'.
4645         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4646         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4647         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4648         * modules/fprintf-posix (Files): Likewise.
4649         * modules/obstack-printf-posix (Files): Likewise.
4650         * modules/snprintf-posix (Files): Likewise.
4651         * modules/sprintf-posix (Files): Likewise.
4652         * modules/vasnprintf (Files): Likewise.
4653         * modules/vasnprintf-posix (Files): Likewise.
4654         * modules/vasprintf-posix (Files): Likewise.
4655         * modules/vdprintf-posix (Files): Likewise.
4656         * modules/vfprintf-posix (Files): Likewise.
4657         * modules/vsnprintf-posix (Files): Likewise.
4658         * modules/vsprintf-posix (Files): Likewise.
4659         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4660         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4661         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4662         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4663         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4664         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4665         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4666
4667         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4668         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4669         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4670         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4671         'long double'.
4672         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4673
4674         isinf: Fix for platforms where 'long double' == 'double'.
4675         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4676         Don't blindly assume 80-bit 'long double'.
4677
4678         isfinite: Fix for platforms where 'long double' == 'double'.
4679         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4680         Don't blindly assume 80-bit 'long double'.
4681
4682         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4683         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4684         * modules/isfinite-tests (configure.ac): Require
4685         gl_LONG_DOUBLE_VS_DOUBLE.
4686         * modules/isinf-tests (configure.ac): Likewise.
4687         * modules/isnan-tests (configure.ac): Likewise.
4688         * modules/isnanl-tests (configure.ac): Likewise.
4689         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4690         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4691         tests on platforms where 'long double' is the same as 'double'.
4692         * tests/test-isinf.c (test_isinfl): Likewise.
4693         * tests/test-isnan.c (test_long_double): Likewise.
4694         * tests/test-isnanl.h (main): Likewise.
4695
4696 2011-10-08  Bruno Haible  <bruno@clisp.org>
4697
4698         Tests for module 'tanhf'.
4699         * modules/tanhf-tests: New file.
4700         * tests/test-tanhf.c: New file.
4701
4702         New module 'tanhf'.
4703         * lib/math.in.h (tanhf): New declaration.
4704         * lib/tanhf.c: New file.
4705         * m4/tanhf.m4: New file.
4706         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4708         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4709         * modules/tanhf: New file.
4710         * tests/test-math-c++.cc: Check the declaration of tanhf.
4711         * doc/posix-functions/tanhf.texi: Mention the new module.
4712
4713         tanh: Use a .m4 file.
4714         * m4/tanh.m4: New file.
4715         * modules/tanh (Files): Add it.
4716         (configure.ac): Just invoke gl_FUNC_TANH.
4717
4718 2011-10-08  Bruno Haible  <bruno@clisp.org>
4719
4720         Tests for module 'coshf'.
4721         * modules/coshf-tests: New file.
4722         * tests/test-coshf.c: New file.
4723
4724         New module 'coshf'.
4725         * lib/math.in.h (coshf): New declaration.
4726         * lib/coshf.c: New file.
4727         * m4/coshf.m4: New file.
4728         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4730         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4731         * modules/coshf: New file.
4732         * tests/test-math-c++.cc: Check the declaration of coshf.
4733         * doc/posix-functions/coshf.texi: Mention the new module.
4734
4735         cosh: Use a .m4 file.
4736         * m4/cosh.m4: New file.
4737         * modules/cosh (Files): Add it.
4738         (configure.ac): Just invoke gl_FUNC_COSH.
4739
4740 2011-10-08  Bruno Haible  <bruno@clisp.org>
4741
4742         Tests for module 'sinhf'.
4743         * modules/sinhf-tests: New file.
4744         * tests/test-sinhf.c: New file.
4745
4746         New module 'sinhf'.
4747         * lib/math.in.h (sinhf): New declaration.
4748         * lib/sinhf.c: New file.
4749         * m4/sinhf.m4: New file.
4750         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4752         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4753         * modules/sinhf: New file.
4754         * tests/test-math-c++.cc: Check the declaration of sinhf.
4755         * doc/posix-functions/sinhf.texi: Mention the new module.
4756
4757         sinh: Use a .m4 file.
4758         * m4/sinh.m4: New file.
4759         * modules/sinh (Files): Add it.
4760         (configure.ac): Just invoke gl_FUNC_SINH.
4761
4762 2011-10-08  Bruno Haible  <bruno@clisp.org>
4763
4764         Tests for module 'atan2f'.
4765         * modules/atan2f-tests: New file.
4766         * tests/test-atan2f.c: New file.
4767
4768         New module 'atan2f'.
4769         * lib/math.in.h (atan2f): New declaration.
4770         * lib/atan2f.c: New file.
4771         * m4/atan2f.m4: New file.
4772         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4774         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4775         * modules/atan2f: New file.
4776         * tests/test-math-c++.cc: Check the declaration of atan2f.
4777         * doc/posix-functions/atan2f.texi: Mention the new module.
4778
4779         atan2: Use a .m4 file.
4780         * m4/atan2.m4: New file.
4781         * modules/atan2 (Files): Add it.
4782         (configure.ac): Just invoke gl_FUNC_ATAN2.
4783
4784 2011-10-08  Bruno Haible  <bruno@clisp.org>
4785
4786         Tests for module 'atanf'.
4787         * modules/atanf-tests: New file.
4788         * tests/test-atanf.c: New file.
4789
4790         New module 'atanf'.
4791         * lib/math.in.h (atanf): New declaration.
4792         * lib/atanf.c: New file.
4793         * m4/atanf.m4: New file.
4794         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4796         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4797         * modules/atanf: New file.
4798         * tests/test-math-c++.cc: Check the declaration of atanf.
4799         * doc/posix-functions/atanf.texi: Mention the new module.
4800
4801         atan: Use a .m4 file.
4802         * m4/atan.m4: New file.
4803         * modules/atan (Files): Add it.
4804         (configure.ac): Just invoke gl_FUNC_ATAN.
4805
4806 2011-10-08  Bruno Haible  <bruno@clisp.org>
4807
4808         Tests for module 'acosf'.
4809         * modules/acosf-tests: New file.
4810         * tests/test-acosf.c: New file.
4811
4812         New module 'acosf'.
4813         * lib/math.in.h (acosf): New declaration.
4814         * lib/acosf.c: New file.
4815         * m4/acosf.m4: New file.
4816         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4818         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4819         * modules/acosf: New file.
4820         * tests/test-math-c++.cc: Check the declaration of acosf.
4821         * doc/posix-functions/acosf.texi: Mention the new module.
4822
4823         acos: Use a .m4 file.
4824         * m4/acos.m4: New file.
4825         * modules/acos (Files): Add it.
4826         (configure.ac): Just invoke gl_FUNC_ACOS.
4827
4828 2011-10-08  Bruno Haible  <bruno@clisp.org>
4829
4830         Tests for module 'asinf'.
4831         * modules/asinf-tests: New file.
4832         * tests/test-asinf.c: New file.
4833
4834         New module 'asinf'.
4835         * lib/math.in.h (asinf): New declaration.
4836         * lib/asinf.c: New file.
4837         * m4/asinf.m4: New file.
4838         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4840         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4841         * modules/asinf: New file.
4842         * tests/test-math-c++.cc: Check the declaration of asinf.
4843         * doc/posix-functions/asinf.texi: Mention the new module.
4844
4845         asin: Use a .m4 file.
4846         * m4/asin.m4: New file.
4847         * modules/asin (Files): Add it.
4848         (configure.ac): Just invoke gl_FUNC_ASIN.
4849
4850 2011-10-08  Bruno Haible  <bruno@clisp.org>
4851
4852         Tests for module 'tanf'.
4853         * modules/tanf-tests: New file.
4854         * tests/test-tanf.c: New file.
4855
4856         New module 'tanf'.
4857         * lib/math.in.h (tanf): New declaration.
4858         * lib/tanf.c: New file.
4859         * m4/tanf.m4: New file.
4860         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4862         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4863         * modules/tanf: New file.
4864         * tests/test-math-c++.cc: Check the declaration of tanf.
4865         * doc/posix-functions/tanf.texi: Mention the new module.
4866
4867         tan: Use a .m4 file.
4868         * m4/tan.m4: New file.
4869         * modules/tan (Files): Add it.
4870         (configure.ac): Just invoke gl_FUNC_TAN.
4871
4872 2011-10-08  Bruno Haible  <bruno@clisp.org>
4873
4874         Tests for module 'cosf'.
4875         * modules/cosf-tests: New file.
4876         * tests/test-cosf.c: New file.
4877
4878         New module 'cosf'.
4879         * lib/math.in.h (cosf): New declaration.
4880         * lib/cosf.c: New file.
4881         * m4/cosf.m4: New file.
4882         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4884         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4885         * modules/cosf: New file.
4886         * tests/test-math-c++.cc: Check the declaration of cosf.
4887         * doc/posix-functions/cosf.texi: Mention the new module.
4888
4889         cos: Use a .m4 file.
4890         * m4/cos.m4: New file.
4891         * modules/cos (Files): Add it.
4892         (configure.ac): Just invoke gl_FUNC_COS.
4893
4894 2011-10-08  Bruno Haible  <bruno@clisp.org>
4895
4896         Tests for module 'sinf'.
4897         * modules/sinf-tests: New file.
4898         * tests/test-sinf.c: New file.
4899
4900         New module 'sinf'.
4901         * lib/math.in.h (sinf): New declaration.
4902         * lib/sinf.c: New file.
4903         * m4/sinf.m4: New file.
4904         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4906         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4907         * modules/sinf: New file.
4908         * tests/test-math-c++.cc: Check the declaration of sinf.
4909         * doc/posix-functions/sinf.texi: Mention the new module.
4910
4911         sin: Use a .m4 file.
4912         * m4/sin.m4: New file.
4913         * modules/sin (Files): Add it.
4914         (configure.ac): Just invoke gl_FUNC_SIN.
4915
4916 2011-10-08  Bruno Haible  <bruno@clisp.org>
4917
4918         Tests for module 'powf'.
4919         * modules/powf-tests: New file.
4920         * tests/test-powf.c: New file.
4921
4922         New module 'powf'.
4923         * lib/math.in.h (powf): New declaration.
4924         * lib/powf.c: New file.
4925         * m4/powf.m4: New file.
4926         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4928         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4929         * modules/powf: New file.
4930         * tests/test-math-c++.cc: Check the declaration of powf.
4931         * doc/posix-functions/powf.texi: Mention the new module.
4932
4933         pow: Use a .m4 file.
4934         * m4/pow.m4: New file.
4935         * modules/pow (Files): Add it.
4936         (configure.ac): Just invoke gl_FUNC_POW.
4937
4938 2011-10-08  Bruno Haible  <bruno@clisp.org>
4939
4940         Tests for module 'log10f'.
4941         * modules/log10f-tests: New file.
4942         * tests/test-log10f.c: New file.
4943
4944         New module 'log10f'.
4945         * lib/math.in.h (log10f): New declaration.
4946         * lib/log10f.c: New file.
4947         * m4/log10f.m4: New file.
4948         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4950         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4951         * modules/log10f: New file.
4952         * tests/test-math-c++.cc: Check the declaration of log10f.
4953         * doc/posix-functions/log10f.texi: Mention the new module.
4954
4955         log10: Use a .m4 file.
4956         * m4/log10.m4: New file.
4957         * modules/log10 (Files): Add it.
4958         (configure.ac): Just invoke gl_FUNC_LOG10.
4959
4960 2011-10-08  Bruno Haible  <bruno@clisp.org>
4961
4962         Tests for module 'logf'.
4963         * modules/logf-tests: New file.
4964         * tests/test-logf.c: New file.
4965
4966         New module 'logf'.
4967         * lib/math.in.h (logf): New declaration.
4968         * lib/logf.c: New file.
4969         * m4/logf.m4: New file.
4970         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4972         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4973         * modules/logf: New file.
4974         * tests/test-math-c++.cc: Check the declaration of logf.
4975         * doc/posix-functions/logf.texi: Mention the new module.
4976
4977         log: Use a .m4 file.
4978         * m4/log.m4: New file.
4979         * modules/log (Files): Add it.
4980         (configure.ac): Just invoke gl_FUNC_LOG.
4981
4982 2011-10-08  Bruno Haible  <bruno@clisp.org>
4983
4984         Tests for module 'expf'.
4985         * modules/expf-tests: New file.
4986         * tests/test-expf.c: New file.
4987
4988         New module 'expf'.
4989         * lib/math.in.h (expf): New declaration.
4990         * lib/expf.c: New file.
4991         * m4/expf.m4: New file.
4992         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4994         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4995         * modules/expf: New file.
4996         * tests/test-math-c++.cc: Check the declaration of expf.
4997         * doc/posix-functions/expf.texi: Mention the new module.
4998
4999         exp: Use a .m4 file.
5000         * m4/exp.m4: New file.
5001         * modules/exp (Files): Add it.
5002         (configure.ac): Just invoke gl_FUNC_EXP.
5003
5004 2011-10-08  Bruno Haible  <bruno@clisp.org>
5005
5006         Tests for module 'sqrtf'.
5007         * modules/sqrtf-tests: New file.
5008         * tests/test-sqrtf.c: New file.
5009
5010         New module 'sqrtf'.
5011         * lib/math.in.h (sqrtf): New declaration.
5012         * lib/sqrtf.c: New file.
5013         * m4/sqrtf.m4: New file.
5014         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5016         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5017         * modules/sqrtf: New file.
5018         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5019         * doc/posix-functions/sqrtf.texi: Mention the new module.
5020
5021 2011-10-08  Bruno Haible  <bruno@clisp.org>
5022
5023         Tests: Avoid link failures w.r.t. libintl.
5024         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5025         $(LIBINTL).
5026         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5027         $(LIBINTL).
5028         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5029         against $(LIBINTL).
5030         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5031         $(LIBINTL).
5032         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5033         $(LIBINTL).
5034         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5035
5036 2011-10-08  Bruno Haible  <bruno@clisp.org>
5037
5038         pow tests: Defeat compiler optimizations.
5039         * tests/test-pow.c (main): Assign arguments to x and y before use.
5040
5041 2011-10-08  Bruno Haible  <bruno@clisp.org>
5042
5043         gnulib-tool: Improve last commit.
5044         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5045         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5046         ignore dependencies that are not among the modules list.
5047
5048 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5049
5050         gnulib-tool: don't follow dependencies to avoided modules
5051         This fixes a bug that is related to the previous one.
5052         * gnulib-tool (func_modules_transitive_closure)
5053         (func_emit_autoconf_snippets):
5054         Check whether a dependency is acceptable before using it.
5055         (--extract-dependencies): Report an error if --avoid is also used,
5056         since this combination of options is not yet supported.
5057
5058         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5059         Problem reported by Peter Dyballa in
5060         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5061         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5062         when echoing "$condition".
5063
5064 2011-10-07  Bruno Haible  <bruno@clisp.org>
5065
5066         Fix documentation about math functions on MacOS X.
5067         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5068         MacOS X 10.5.
5069         * doc/posix-functions/fdim.texi: Likewise.
5070         * doc/posix-functions/feclearexcept.texi: Likewise.
5071         * doc/posix-functions/fegetenv.texi: Likewise.
5072         * doc/posix-functions/fegetround.texi: Likewise.
5073         * doc/posix-functions/feholdexcept.texi: Likewise.
5074         * doc/posix-functions/feraiseexcept.texi: Likewise.
5075         * doc/posix-functions/fesetenv.texi: Likewise.
5076         * doc/posix-functions/fesetround.texi: Likewise.
5077         * doc/posix-functions/fetestexcept.texi: Likewise.
5078         * doc/posix-functions/feupdateenv.texi: Likewise.
5079         * doc/posix-functions/fmax.texi: Likewise.
5080         * doc/posix-functions/fmin.texi: Likewise.
5081         * doc/posix-functions/log2.texi: Likewise.
5082         * doc/posix-functions/modff.texi: Likewise.
5083         * doc/posix-functions/nan.texi: Likewise.
5084         * doc/posix-functions/nanf.texi: Likewise.
5085         * doc/posix-functions/nextafterf.texi: Likewise.
5086         * doc/posix-functions/remquo.texi: Likewise.
5087
5088 2011-10-07  Bruno Haible  <bruno@clisp.org>
5089
5090         modff: Drop assumption about library that defines modff.
5091         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5092         AC_CHECK_FUNCS.
5093         * modules/modff (Files): Add m4/mathfunc.m4.
5094
5095 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5096
5097         raise tests: Avoid a GCC warning.
5098         * tests/test-raise.c (handler): Use _Noreturn.
5099
5100 2011-10-07  Bruno Haible  <bruno@clisp.org>
5101
5102         Tests for module 'ldexpf'.
5103         * modules/ldexpf-tests: New file.
5104         * tests/test-ldexpf.c: New file.
5105
5106         New module 'ldexpf'.
5107         * lib/math.in.h (ldexpf): New declaration.
5108         * lib/ldexpf.c: New file.
5109         * m4/ldexpf.m4: New file.
5110         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5112         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5113         * modules/ldexpf: New file.
5114         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5115         * doc/posix-functions/ldexpf.texi: Mention the new module.
5116
5117 2011-10-06  Bruno Haible  <bruno@clisp.org>
5118
5119         frexpf: Work around problems on IRIX and mingw.
5120         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5122         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5123         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5124         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5125         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5126         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5127
5128 2011-10-06  Bruno Haible  <bruno@clisp.org>
5129
5130         fabsf: Drop assumption about library that defines fabsf.
5131         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5132         AC_CHECK_FUNCS.
5133         * modules/fabsf (Files): Add m4/mathfunc.m4.
5134
5135 2011-10-06  Bruno Haible  <bruno@clisp.org>
5136
5137         frexpf: Drop assumption about library that defines frexpf.
5138         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5139         'int *', 'float *', 'long double *', 'float', 'long double'.
5140         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5141         AC_CHECK_FUNCS.
5142         * modules/frexpf (Files): Add m4/mathfunc.m4.
5143
5144         Tests for module 'frexpf'.
5145         * modules/frexpf-tests: New file.
5146         * tests/test-frexpf.c: New file.
5147
5148         New module 'frexpf'.
5149         * lib/math.in.h (frexpf): New declaration.
5150         * lib/frexpf.c: New file.
5151         * m4/frexpf.m4: New file.
5152         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5154         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5155         * modules/frexpf: New file.
5156         * tests/test-math-c++.cc: Check the declaration of frexpf.
5157         * doc/posix-functions/frexpf.texi: Mention the new module.
5158
5159 2011-10-06  Bruno Haible  <bruno@clisp.org>
5160
5161         math: Sort function declarations of math.in.h.
5162         * lib/math.in.h (frexp, logb): Move declarations.
5163
5164 2011-10-05  Bruno Haible  <bruno@clisp.org>
5165
5166         Tests for module 'modff'.
5167         * modules/modff-tests: New file.
5168         * tests/test-modff.c: New file.
5169
5170         New module 'modff'.
5171         * lib/math.in.h (modff): New declaration.
5172         * lib/modff.c: New file.
5173         * m4/modff.m4: New file.
5174         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5176         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5177         * modules/modff: New file.
5178         * tests/test-math-c++.cc: Check the declaration of modff.
5179         * doc/posix-functions/modff.texi: Mention the new module.
5180
5181         modf tests: Make test sharper.
5182         * tests/test-modf.c (main): Strengthen upper bound.
5183
5184         modf: Use a .m4 file.
5185         * m4/modf.m4: New file.
5186         * modules/modf (Files): Add it.
5187         (configure.ac): Just invoke gl_FUNC_MODF.
5188
5189 2011-10-05  Bruno Haible  <bruno@clisp.org>
5190
5191         Tests for module 'fmodf'.
5192         * modules/fmodf-tests: New file.
5193         * tests/test-fmodf.c: New file.
5194
5195         New module 'fmodf'.
5196         * lib/math.in.h (fmodf): New declaration.
5197         * lib/fmodf.c: New file.
5198         * m4/fmodf.m4: New file.
5199         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5201         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5202         * modules/fmodf: New file.
5203         * tests/test-math-c++.cc: Check the declaration of fmodf.
5204         * doc/posix-functions/fmodf.texi: Mention the new module.
5205
5206         fmod: Use a .m4 file.
5207         * m4/fmod.m4: New file.
5208         * modules/fmod (Files): Add it.
5209         (configure.ac): Just invoke gl_FUNC_FMOD.
5210
5211 2011-10-05  Bruno Haible  <bruno@clisp.org>
5212
5213         Tests for module 'fabsf'.
5214         * modules/fabsf-tests: New file.
5215         * tests/test-fabsf.c: New file.
5216
5217         New module 'fabsf'.
5218         * lib/math.in.h (fabsf): New declaration.
5219         * lib/fabsf.c: New file.
5220         * m4/fabsf.m4: New file.
5221         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5223         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5224         * modules/fabsf: New file.
5225         * tests/test-math-c++.cc: Check the declaration of fabsf.
5226         * doc/posix-functions/fabsf.texi: Mention the new module.
5227
5228         fabs: Use a .m4 file.
5229         * m4/fabs.m4: New file.
5230         * modules/fabs (Files): Add it.
5231         (configure.ac): Just invoke gl_FUNC_FABS.
5232
5233 2011-10-05  Jim Meyering  <meyering@redhat.com>
5234
5235         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5236         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5237         ls -lL regression introduced in coreutils-8.12, it does so at the
5238         cost of an additional stat call in the common case.  Besides, now
5239         that the kernel change that prompted commit 95f7c57f has been reverted
5240         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5241         we have no use for commit 95f7c57f, "file-has-acl: use
5242         acl_extended_file_nofollow if available".
5243
5244 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5245
5246         file-has-acl: revert unintended change in behavior of ls -L
5247         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5248         derived from...
5249         (file_has_acl): ...code here.  Call it.
5250         This problem was introduced with 2011-07-22 commit 95f7c57f,
5251         "file-has-acl: use acl_extended_file_nofollow if available".
5252         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5253
5254 2011-10-03  Bruno Haible  <bruno@clisp.org>
5255
5256         poll: Avoid link errors on MSVC.
5257         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5258         * modules/poll (Depends-on): Add sockets.
5259         (Link): New section.
5260         * NEWS: Mention the change.
5261         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5262         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5263         $(LIB_POLL) instead of $(LIBSOCKET).
5264
5265 2011-10-03  Bruno Haible  <bruno@clisp.org>
5266
5267         sys_select tests: Fix link error on MSVC 9.
5268         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5269         with $(LIB_SELECT) instead of $(LIBSOCKET).
5270
5271 2011-10-03  Bruno Haible  <bruno@clisp.org>
5272
5273         sys_select: Fix compilation error on mingw.
5274         * lib/sys_select.in.h: On native Windows, include <io.h>.
5275
5276 2011-10-03  Bruno Haible  <bruno@clisp.org>
5277
5278         wmemset: Support for MSVC.
5279         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5280         whether wmemset() exists.
5281
5282 2011-10-03  Bruno Haible  <bruno@clisp.org>
5283
5284         wmemmove: Support for MSVC.
5285         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5286         whether wmemmove() exists.
5287
5288 2011-10-03  Bruno Haible  <bruno@clisp.org>
5289
5290         wmemcpy: Support for MSVC.
5291         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
5292         whether wmemcpy() exists.
5293
5294 2011-10-03  Bruno Haible  <bruno@clisp.org>
5295
5296         wmemcmp: Support for MSVC.
5297         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5298         whether wmemcmp() exists.
5299
5300 2011-10-03  Bruno Haible  <bruno@clisp.org>
5301
5302         wmemchr: Support for MSVC.
5303         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5304         whether wmemchr() exists.
5305
5306 2011-10-03  Bruno Haible  <bruno@clisp.org>
5307
5308         glthread/*, strsignal: Support for MSVC.
5309         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5310         including <winsock.h> on MSVC 9.
5311         * lib/glthread/lock.h: Likewise.
5312         * lib/glthread/thread.h: Likewise.
5313         * lib/glthread/tls.h: Likewise.
5314         * lib/glthread/yield.h: Likewise.
5315         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5316         if HAVE_UNISTD_H is false.
5317         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5318
5319 2011-10-03  Bruno Haible  <bruno@clisp.org>
5320
5321         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5322         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5323         Set to 100000.
5324
5325 2011-10-03  Bruno Haible  <bruno@clisp.org>
5326
5327         acl: Fix specification.
5328         * lib/file-has-acl.c (file_has_acl): Fix specification.
5329
5330 2011-10-03  Bruno Haible  <bruno@clisp.org>
5331
5332         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5333         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5334         (compute_curr_prefix, shared_library_fullname,
5335         find_shared_library_fullname, get_shared_library_fullname, relocate):
5336         Use it together with PIC && INSTALLDIR.
5337         Reported by <jojelino@gmail.com>
5338         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5339
5340 2011-10-01  Jim Meyering  <meyering@redhat.com>
5341
5342         maint.mk: adjust a release-related rule not to require use of gzip
5343         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5344         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5345         projects that build only .tar.xz files.  Also fix an erroneous test.
5346
5347         test-linkat: don't leave behind a temporary file
5348         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5349         Otherwise, coreutils' "make distcheck" would fail with this:
5350           Only in /c/cu/tests/torture/coreutils/test/\
5351             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5352           make[2]: *** [my-distcheck] Error 1
5353
5354         float, math: add omitted file
5355         * lib/itold.c: Add file, required for yesterday's float change.
5356
5357 2011-10-01  Bruno Haible  <bruno@clisp.org>
5358
5359         isinf: Fix for OpenBSD/x86.
5360         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5361         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5362         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5363
5364 2011-10-01  Bruno Haible  <bruno@clisp.org>
5365
5366         isfinite: Fix syntax error in configure test.
5367         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5368
5369         isfinite: Fix typo.
5370         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5371         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5372
5373 2011-10-01  Bruno Haible  <bruno@clisp.org>
5374
5375         nonblocking tests: Fix test failure on Linux/IA-64.
5376         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5377         Set to 270000.
5378
5379 2011-10-01  Bruno Haible  <bruno@clisp.org>
5380
5381         mkfifoat tests: Fix a test failure on mingw.
5382         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5383         with error ENOSYS.
5384
5385 2011-09-30  Bruno Haible  <bruno@clisp.org>
5386
5387         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5388         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5389         'long double'. Set REPLACE_ITOLD.
5390         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5391         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5392         * lib/itold.c: New file.
5393         * modules/float (Files): Add lib/itold.c.
5394         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5395         (Makefile.am): Substitute REPLACE_ITOLD.
5396         * modules/math (Depends-on): Add float.
5397         (Makefile.am): Substitute REPLACE_ITOLD.
5398         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5399         * doc/posix-headers/math.texi: Likewise.
5400         * doc/posix-functions/logl.texi: Likewise.
5401
5402 2011-09-30  Bruno Haible  <bruno@clisp.org>
5403
5404         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5405         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5406         Set to 140000.
5407
5408 2011-09-30  Bruno Haible  <bruno@clisp.org>
5409
5410         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5411         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5412         invocation, say "right after AC_PROG_CC_STDC", not "right after
5413         AC_PROG_CC".
5414         Reported by Gary V. Vaughan <gary@gnu.org>.
5415
5416 2011-09-30  Bruno Haible  <bruno@clisp.org>
5417
5418         Centralize C99 requirement.
5419         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5420         * modules/stdarg (configure.ac-early): Invoke it instead of
5421         AC_PROG_CC_STDC.
5422         Reported by Gary V. Vaughan and Paul Eggert.
5423
5424 2011-09-29  Bruno Haible  <bruno@clisp.org>
5425
5426         float: Fix LDBL_MAX value on Linux/PowerPC.
5427         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5428         on Linux/PowerPC.
5429         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5430         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5431         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5432         platform.
5433         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5434
5435 2011-09-29  Bruno Haible  <bruno@clisp.org>
5436
5437         doc: Improve doc about gl_EARLY.
5438         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5439         AC_PROG_CC_STDC invocation.
5440         Reported by Gary V. Vaughan <gary@gnu.org>.
5441
5442 2011-09-28  Bruno Haible  <bruno@clisp.org>
5443
5444         fgetc, fputc, fread, fwrite tests: Fix link error.
5445         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5446         on non-MSVC platforms.
5447         * tests/test-fputc.c (main): Likewise.
5448         * tests/test-fread.c (main): Likewise.
5449         * tests/test-fwrite.c (main): Likewise.
5450         Reported by Jim Meyering.
5451
5452 2011-09-27  Bruno Haible  <bruno@clisp.org>
5453
5454         fputc, fwrite tests: Avoid test failure on MSVC.
5455         * tests/test-fgetc.c: Include msvc-inval.h.
5456         (main): Invoke gl_msvc_inval_ensure_handler.
5457         * tests/test-fputc.c: Include msvc-inval.h.
5458         (main): Invoke gl_msvc_inval_ensure_handler.
5459         * tests/test-fread.c: Include msvc-inval.h.
5460         (main): Invoke gl_msvc_inval_ensure_handler.
5461         * tests/test-fwrite.c: Include msvc-inval.h.
5462         (main): Invoke gl_msvc_inval_ensure_handler.
5463         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5464         * modules/fputc-tests (Depends-on): Likewise.
5465         * modules/fread-tests (Depends-on): Likewise.
5466         * modules/fwrite-tests (Depends-on): Likewise.
5467
5468 2011-09-27  Bruno Haible  <bruno@clisp.org>
5469
5470         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5471         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5472         (raise): Remove older, duplicated declaration.
5473         (_gl_raise_SIGPIPE): New declaration.
5474         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5475         (rpl_raise): Remove function.
5476         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5477         a gnulib-defined SIGPIPE here.
5478         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5479         'sigprocmask' has detected missing signal-blocking and the module
5480         'sigpipe' is enabled.
5481         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5482
5483 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5484
5485         base64-tests: avoid memory leak
5486         * tests/test-base64.c (main): Plug memory leak.
5487
5488         base32: new module
5489         * modules/base32: New module.
5490         * lib/base32.c: New file.
5491         * lib/base32.h: Likewise.
5492         * m4/base32.m4: Likewise.
5493         * modules/base32-tests: New test.
5494         * tests/test-base32.c: Likewise.
5495         * MODULES.html.sh (Misc): Mention it.
5496
5497 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5498
5499         gnulib: use more-standard license notice wording
5500         * gnulib-tool (func_emit_copyright_notice): When emitting a
5501         license notice into a file, use the standard wording as suggested
5502         by the current information for GNU maintainers, except say "file"
5503         rather than "program".  The new wording gives a license version
5504         number, which addresses an issue raised by Glenn Morris in
5505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5506         * m4/onceonly.m4: Use that same wording here, too.
5507
5508         dup2: minor simplification
5509         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5510         as lib/dup2.c no longer uses 'inline'.
5511
5512 2011-09-25  Bruno Haible  <bruno@clisp.org>
5513
5514         strings: Fix compilation error on MSVC.
5515         * lib/strings.in.h: Include <stddef.h> for size_t.
5516
5517 2011-09-25  Bruno Haible  <bruno@clisp.org>
5518
5519         fflush et al.: Document limitation on MSVC.
5520         * doc/posix-functions/fflush.texi: Document possible crash in handling
5521         mode other than DEFAULT_HANDLING.
5522         * doc/posix-functions/fgetc.texi: Likewise.
5523         * doc/posix-functions/fputc.texi: Likewise.
5524         * doc/posix-functions/fread.texi: Likewise.
5525         * doc/posix-functions/fwrite.texi: Likewise.
5526
5527 2011-09-25  Bruno Haible  <bruno@clisp.org>
5528
5529         msvc-inval: Allow three invalid parameter handling modes.
5530         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5531         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5532         macros.
5533         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5534         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5535         SANE_LIBRARY_HANDLING as a no-op.
5536         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5537         <stdlib.h>.
5538         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5539
5540 2011-09-25  Bruno Haible  <bruno@clisp.org>
5541
5542         msvc-inval: Make handler multithread-safe.
5543         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5544         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5545         declarations.
5546         (gl_msvc_inval_current): New declaration.
5547         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5548         Operate on the structure returned by gl_msvc_inval_current().
5549         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5550         Remove varaiables.
5551         (tls_index, tls_initialized): New variables.
5552         (not_per_thread): New variable.
5553         (gl_msvc_inval_current): New function.
5554         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5555         returned by gl_msvc_inval_current().
5556
5557 2011-09-25  Bruno Haible  <bruno@clisp.org>
5558
5559         msvc-inval: Install handler globally.
5560         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5561         !_MSC_VER.
5562         (gl_msvc_invalid_parameter_handler): Remove declaration.
5563         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5564         declarations.
5565         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5566         Install the handler globally, don't uninstall it.
5567         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5568         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5569         currently valid, call RaiseException instead.
5570         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5571         for !_MSC_VER.
5572
5573 2011-09-25  Bruno Haible  <bruno@clisp.org>
5574
5575         strerror_r-posix: Fix for MSVC 9.
5576         * lib/strerror_r.c (local_snprintf): New function.
5577         (snprintf): Define to local_snprintf, not to _snprintf.
5578
5579 2011-09-25  Bruno Haible  <bruno@clisp.org>
5580
5581         ftruncate: Support for MSVC 9.
5582         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5583         (chsize_nothrow): New function.
5584         (chsize): Redefine as a macro.
5585         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5586         * modules/ftruncate (Depends-on): Add msvc-inval.
5587
5588 2011-09-25  Bruno Haible  <bruno@clisp.org>
5589
5590         New module 'fstat'.
5591         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5592         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5593         * lib/fchdir.c (rpl_fstat): Remove function.
5594         * m4/fstat.m4: New file.
5595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5597         declared.
5598         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5599         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5600         * modules/fstat: New file.
5601         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5602         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5603         is set.
5604         * doc/posix-functions/fstat.texi: Mention the new module and the
5605         problem on MSVC.
5606         * NEWS: Mention the change.
5607         * modules/acl (Depends-on): Add fstat.
5608         * modules/chdir-safer (Depends-on): Likewise.
5609         * modules/chown (Depends-on): Likewise.
5610         * modules/copy-file (Depends-on): Likewise.
5611         * modules/fchdir (Depends-on): Likewise.
5612         * modules/fdopendir (Depends-on): Likewise.
5613         * modules/fopen (Depends-on): Likewise.
5614         * modules/fts (Depends-on): Likewise.
5615         * modules/getcwd (Depends-on): Likewise.
5616         * modules/isapipe (Depends-on): Likewise.
5617         * modules/linkat (Depends-on): Likewise.
5618         * modules/lseek (Depends-on): Likewise.
5619         * modules/mkdir-p (Depends-on): Likewise.
5620         * modules/open (Depends-on): Likewise.
5621         * modules/openat (Depends-on): Likewise.
5622         * modules/read-file (Depends-on): Likewise.
5623         * modules/renameat (Depends-on): Likewise.
5624         * modules/utimens (Depends-on): Likewise.
5625
5626 2011-09-25  Bruno Haible  <bruno@clisp.org>
5627
5628         linkat: Fix compilation on MSVC 9.
5629         * lib/linkat.c: Don't include <stdint.h>.
5630
5631 2011-09-25  Bruno Haible  <bruno@clisp.org>
5632
5633         fclose: Support for MSVC 9.
5634         * lib/fclose.c: Include msvc-inval.h.
5635         (fclose_nothrow): New function.
5636         (rpl_fclose): Use it.
5637         * modules/fclose (Depends-on): Add msvc-inval.
5638         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5639
5640 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5641
5642         dup2: minor simplifications
5643         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5644         that it's a performance win.
5645         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5646         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5647
5648 2011-09-24  Jim Meyering  <meyering@redhat.com>
5649
5650         test-futimens: avoid a warning from gcc -Wshadow
5651         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5652         to avoid a shadowing warning.
5653
5654 2011-09-24  Bruno Haible  <bruno@clisp.org>
5655
5656         fdopen: Support for MSVC 9.
5657         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5658         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5659         * lib/fdopen.c: Include msvc-inval.h.
5660         (fdopen_nothrow): New function.
5661         (rpl_fdopen): Use it.
5662         * modules/fdopen (Depends-on): Add msvc-inval.
5663         * modules/fclose-tests (Depends-on): Add fdopen.
5664         * modules/fflush-tests (Depends-on): Likewise.
5665         * modules/fgetc-tests (Depends-on): Likewise.
5666         * modules/fputc-tests (Depends-on): Likewise.
5667         * modules/fread-tests (Depends-on): Likewise.
5668         * modules/freopen-tests (Depends-on): Likewise.
5669         * modules/fseeko-tests (Depends-on): Likewise.
5670         * modules/ftello-tests (Depends-on): Likewise.
5671         * modules/fwrite-tests  (Depends-on): Likewise.
5672         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5673
5674 2011-09-24  Bruno Haible  <bruno@clisp.org>
5675
5676         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5677         * modules/fgetc-tests (Depends-on): Add unistd.
5678         * modules/fputc-tests (Depends-on): Likewise.
5679         * modules/fread-tests (Depends-on): Likewise.
5680         * modules/fwrite-tests (Depends-on): Likewise.
5681
5682 2011-09-24  Bruno Haible  <bruno@clisp.org>
5683
5684         dup: Simplify autoconf test.
5685         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5686         on gl_MSVC_INVAL's result.
5687
5688 2011-09-24  Bruno Haible  <bruno@clisp.org>
5689
5690         Tests for function fwrite().
5691         * modules/fwrite-tests: New file.
5692         * tests/test-fwrite.c: New file.
5693         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5694
5695         Tests for function fread().
5696         * modules/fread-tests: New file.
5697         * tests/test-fread.c: New file.
5698         * modules/stdio-tests (Depends-on): Add fread-tests.
5699
5700         Activate fputc tests.
5701         * modules/stdio-tests (Depends-on): Add fputc-tests.
5702
5703         Enhance fgetc, fputc tests.
5704         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5705         * tests/test-fputc.c (main): Likewise.
5706
5707 2011-09-24  Bruno Haible  <bruno@clisp.org>
5708
5709         write: Support for MSVC 9.
5710         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5711         is not 1.
5712         * lib/write.c (write_nothrow): New function.
5713         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5714         not 1. Use write_nothrow.
5715         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5716         invalid parameter handler.
5717         (gl_PREREQ_WRITE): New macro.
5718         * modules/write (Depends-on): Add msvc-inval.
5719         (configure.ac): Invoke gl_PREREQ_WRITE.
5720         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5721
5722 2011-09-24  Bruno Haible  <bruno@clisp.org>
5723
5724         read: Fix last commit.
5725         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5726
5727 2011-09-24  Bruno Haible  <bruno@clisp.org>
5728
5729         dup2: Fix last commit.
5730         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5731         (rpl_dup2): Disable fcntl workaround on native Windows.
5732
5733         sigprocmask: Make code safer.
5734         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5735         section that changes macro definitions for this compilation unit.
5736
5737 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         dup2: clarify by coalescing Windows-specific material
5740         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5741         "msvc-nothrow.h"' to the Windows-specific section, so that the
5742         Emacs source need not contain these include files.
5743         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5744         Windows-specific fixes into this function rather than just the
5745         nothrow fix, as this shortens and clarifies the code.  Always
5746         define as a function, as that's a bit cleaner than having it be
5747         sometimes a function and sometimes a macro.
5748         (rpl_dup2): Move the Windows-specific stuff out of here and into
5749         ms_windows_dup2.  Don't protect the Haiku-related fix with
5750         "#if !defined __linux__", as the same code also works around
5751         a Linux kernel bug, and it doesn't add any system calls on any
5752         platform.  Add comment about FreeBSD 6.1.
5753
5754         sigprocmask: move #include directive
5755         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5756         Windows-specific section, so that the Emacs source need not
5757         contain msvc-inval.h.
5758
5759 2011-09-23  Bruno Haible  <bruno@clisp.org>
5760
5761         read: Support for MSVC 9.
5762         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5763         is not 1.
5764         * lib/read.c (read_nothrow): New function.
5765         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5766         read_nothrow.
5767         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5768         invalid parameter handler.
5769         (gl_PREREQ_READ): New macro.
5770         * modules/read (Depends-on): Add msvc-inval.
5771         (configure.ac): Invoke gl_PREREQ_READ.
5772         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5773
5774 2011-09-23  Bruno Haible  <bruno@clisp.org>
5775
5776         close: Support for MSVC 9.
5777         * lib/close.c: Include <errno.h>, msvc-inval.h.
5778         (close_nothrow): New function.
5779         (rpl_close): Use it.
5780         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5781         invalid parameter handler.
5782         * modules/close (Depends-on): Add msvc-inval.
5783         * modules/dup2-tests (Depends-on): Add close.
5784         * modules/dup3-tests (Depends-on): Likewise.
5785         * modules/fcntl-tests (Depends-on): Likewise.
5786         * modules/spawn-pipe-tests (Depends-on): Likewise.
5787         * modules/unistd-safer-tests (Depends-on): Likewise.
5788         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5789
5790 2011-09-23  Bruno Haible  <bruno@clisp.org>
5791
5792         New module 'dup'.
5793         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5794         Allow replacement.
5795         * lib/dup.c: New file.
5796         * lib/fchdir.c (rpl_dup): Remove function.
5797         * m4/dup.m4: New file.
5798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5799         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5800         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5801         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5802         * modules/dup: New file.
5803         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5804         'dup' module is in use.
5805         * modules/fdopendir (Depends-on): Add dup.
5806         * modules/fdutimensat-tests (Depends-on): Likewise.
5807         * modules/fts (Depends-on): Likewise.
5808         * modules/futimens-tests (Depends-on): Likewise.
5809         * modules/posix_spawnp-tests (Depends-on): Likewise.
5810         * modules/unistd-safer-tests (Depends-on): Likewise.
5811         * modules/utimens-tests (Depends-on): Likewise.
5812         * doc/posix-functions/dup.texi: Mention the new module and the problem
5813         on MSVC.
5814
5815 2011-09-23  Bruno Haible  <bruno@clisp.org>
5816
5817         getdtablesize: Support for MSVC 9.
5818         * lib/getdtablesize.c: Include msvc-inval.h.
5819         (_setmaxstdio_nothrow): New function.
5820         (_setmaxstdio): Redefine it.
5821         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5822         * modules/getdtablesize (Depends-on): Add msvc-inval.
5823         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5824
5825 2011-09-23  Bruno Haible  <bruno@clisp.org>
5826
5827         signal-h: Rename from signal.
5828         * modules/signal-h: Renamed from modules/signal.
5829         * modules/pthread_sigmask (Depends-on): Update.
5830         * modules/raise (Depends-on): Likewise.
5831         * modules/sigaction (Depends-on): Likewise.
5832         * modules/sigpipe (Depends-on): Likewise.
5833         * modules/sigprocmask (Depends-on): Likewise.
5834         * modules/sys_select (Depends-on): Likewise.
5835         * modules/signal-h-tests: Renamed from modules/signal-tests.
5836         (Files, Depends-on, Makefile.am): Update.
5837         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5838         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5839         (Files, Makefile.am): Update.
5840         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5841         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5842         * modules/signal: New placeholder file.
5843         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5844         * doc/posix-headers/signal.texi: Update.
5845         * NEWS: Mention the change.
5846
5847 2011-09-23  Bruno Haible  <bruno@clisp.org>
5848
5849         sigprocmask: Avoid crashes through signal() on MSVC 9.
5850         * lib/sigprocmask.c: Include msvc-inval.h.
5851         (signal_nothrow): New function.
5852         (signal): Redefine it.
5853         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5854         * modules/sigprocmask (Depends-on): Add msvc-inval.
5855         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5856
5857 2011-09-23  Bruno Haible  <bruno@clisp.org>
5858
5859         Tests for module 'raise'.
5860         * modules/raise-tests: New file.
5861         * tests/test-raise.c: New file.
5862
5863         raise: Support for MSVC.
5864         * lib/signal.in.h (raise): New declaration.
5865         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5866         for native Windows platforms.
5867         * m4/raise.m4: New file.
5868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5869         HAVE_RAISE, REPLACE_RAISE.
5870         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5871         REPLACE_RAISE.
5872         * modules/raise (Status, Notice): Remove fields.
5873         (Files): Add m4/raise.m4.
5874         (Depends-on): Add signal, msvc-inval.
5875         (configure.ac): Use the common idioms.
5876         (Maintainer): Add me.
5877         * tests/test-signal-c++.cc: Check the signature of raise.
5878         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5879
5880 2011-09-23  Bruno Haible  <bruno@clisp.org>
5881
5882         pipe2: Fix compilation on pre-C99 compilers.
5883         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5884
5885 2011-09-23  Bruno Haible  <bruno@clisp.org>
5886
5887         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5888         * lib/msvc-nothrow.h: New file.
5889         * lib/msvc-nothrow.c: New file.
5890         * m4/msvc-nothrow.m4: New file.
5891         * modules/msvc-nothrow: New file.
5892         * lib/dup2.c: Include msvc-nothrow.h.
5893         (rpl_dup2): No need to protect _get_osfhandle call here.
5894         * lib/accept4.c: Include msvc-nothrow.h.
5895         * lib/error.c: Likewise.
5896         * lib/fcntl.c: Likewise.
5897         * lib/lseek.c: Likewise.
5898         * lib/nonblocking.c: Likewise.
5899         * lib/poll.c: Likewise.
5900         * lib/read.c: Likewise.
5901         * lib/select.c: Likewise.
5902         * lib/sockets.h: Likewise.
5903         * lib/sockets.c: Likewise.
5904         * lib/stdio-read.c: Likewise.
5905         * lib/stdio-write.c: Likewise.
5906         * lib/write.c: Likewise.
5907         * lib/w32sock.h: Likewise.
5908         * lib/w32spawn.h: Likewise.
5909         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5910         * lib/fsync.c: Likewise.
5911         * lib/isapipe.c: Likewise.
5912         * modules/dup2 (Depends-on): Add msvc-nothrow.
5913         * modules/accept4 (Depends-on): Likewise.
5914         * modules/error (Depends-on): Likewise.
5915         * modules/fcntl (Depends-on): Likewise.
5916         * modules/lseek (Depends-on): Likewise.
5917         * modules/nonblocking (Depends-on): Likewise.
5918         * modules/poll (Depends-on): Likewise.
5919         * modules/read (Depends-on): Likewise.
5920         * modules/select (Depends-on): Likewise.
5921         * modules/sockets (Depends-on): Likewise.
5922         * modules/sigpipe (Depends-on): Likewise.
5923         * modules/write (Depends-on): Likewise.
5924         * modules/accept (Depends-on): Likewise.
5925         * modules/bind (Depends-on): Likewise.
5926         * modules/connect (Depends-on): Likewise.
5927         * modules/gethostname (Depends-on): Likewise.
5928         * modules/getpeername (Depends-on): Likewise.
5929         * modules/getsockname (Depends-on): Likewise.
5930         * modules/getsockopt (Depends-on): Likewise.
5931         * modules/ioctl (Depends-on): Likewise.
5932         * modules/listen (Depends-on): Likewise.
5933         * modules/recv (Depends-on): Likewise.
5934         * modules/recvfrom (Depends-on): Likewise.
5935         * modules/send (Depends-on): Likewise.
5936         * modules/sendto (Depends-on): Likewise.
5937         * modules/setsockopt (Depends-on): Likewise.
5938         * modules/shutdown (Depends-on): Likewise.
5939         * modules/socket (Depends-on): Likewise.
5940         * modules/execute (Depends-on): Likewise.
5941         * modules/spawn-pipe (Depends-on): Likewise.
5942         * modules/flock (Depends-on): Likewise.
5943         * modules/fsync (Depends-on): Likewise.
5944         * modules/isapipe (Depends-on): Likewise.
5945         * tests/test-cloexec.c: Include msvc-nothrow.h.
5946         * tests/test-dup-safer.c: Likewise.
5947         * tests/test-dup2.c: Likewise.
5948         * tests/test-dup3.c: Likewise.
5949         * tests/test-fcntl.c: Likewise.
5950         * tests/test-pipe.c: Likewise.
5951         * tests/test-pipe2.c: Likewise.
5952         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5953         * modules/unistd-safer-tests (Depends-on): Likewise.
5954         * modules/dup2-tests (Depends-on): Likewise.
5955         * modules/dup3-tests (Depends-on): Likewise.
5956         * modules/fcntl-tests (Depends-on): Likewise.
5957         * modules/pipe-posix-tests (Depends-on): Likewise.
5958         * modules/pipe2-tests (Depends-on): Likewise.
5959
5960 2011-09-23  Bruno Haible  <bruno@clisp.org>
5961
5962         dup2: Make code more maintainable.
5963         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5964         (rpl_dup2): Use it.
5965         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5966         * modules/dup2 (configure.ac): Invoke it.
5967         Reported by Paul Eggert.
5968
5969 2011-09-23  Bruno Haible  <bruno@clisp.org>
5970
5971         msvc-inval: Fix compilation error.
5972         * lib/msvc-inval.h: Include <excpt.h>.
5973
5974 2011-09-23  Bruno Haible  <bruno@clisp.org>
5975
5976         mkdir: Tweak for MSVC 9.
5977         * lib/sys_stat.in.h: Update comments.
5978         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5979
5980         Tests for module 'chdir'.
5981         * modules/chdir-tests: New file.
5982         * tests/test-chdir.c: New file.
5983
5984         New module 'chdir'.
5985         * modules/chdir: New file.
5986         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5987         (chdir): New declaration.
5988         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5989         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5990         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5991         * tests/test-unistd-c++.cc: Check signature of chdir.
5992         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5993         * modules/chdir-long (Depends-on): Add chdir.
5994         * modules/fchdir (Depends-on): Likewise.
5995         * modules/rename (Depends-on): Likewise.
5996         * modules/savewd (Depends-on): Likewise.
5997
5998         rmdir: Support for mingw, MSVC 9.
5999         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
6000         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
6001
6002         getcwd: Tweak for MSVC 9.
6003         * lib/unistd.in.h: Update comments.
6004         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
6005
6006 2011-09-22  Bruno Haible  <bruno@clisp.org>
6007
6008         strerror_r-posix: Avoid a link error on MSVC.
6009         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
6010         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6011
6012 2011-09-22  Bruno Haible  <bruno@clisp.org>
6013
6014         select: Avoid link errors on MSVC.
6015         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6016         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6017         * modules/pselect (Link): Likewise.
6018         * NEWS: Mention the change.
6019         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6020         test-select-stdin against $(LIB_SELECT).
6021         * modules/pselect-tests (Makefile.am): Link test-pselect against
6022         $(LIB_SELECT).
6023
6024 2011-09-22  Bruno Haible  <bruno@clisp.org>
6025
6026         select: Avoid compilation error on MSVC.
6027         * lib/select.c: Don't include <stdbool.h>.
6028
6029 2011-09-21  Bruno Haible  <bruno@clisp.org>
6030
6031         Consolidate all uses of PATH_MAX in *.m4 files.
6032         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6033         macros.
6034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6035         and gl_PATHMAX_SNIPPET.
6036         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6037         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6038         * modules/chdir-long (Files): Add m4/pathmax.m4.
6039         * modules/getcwd (Files): Likewise.
6040
6041 2011-09-21  Bruno Haible  <bruno@clisp.org>
6042
6043         ftruncate: Un-deprecate, concentrate on Win32 support.
6044         * modules/ftruncate (Status, Notice): Remove sections.
6045         (Depends-on): Add largefile.
6046         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6047         non-mingw platforms.
6048         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6049         include <io.h>.
6050         * modules/perror-tests (Depends-on): Add ftruncate.
6051         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6052         'ftruncate' module.
6053
6054 2011-09-21  Bruno Haible  <bruno@clisp.org>
6055
6056         Add dependencies to new dirent related modules.
6057         * modules/opendir (Depends-on): Add closedir.
6058         * modules/getcwd (Depends-on): Add opendir, closedir.
6059         * modules/dirent-safer-tests (Depends-on): Likewise.
6060         * modules/fdopendir-tests (Depends-on): Likewise.
6061         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6062         * modules/renameat-tests (Depends-on): Likewise.
6063
6064 2011-09-21  Bruno Haible  <bruno@clisp.org>
6065
6066         opendir: Avoid compilation error on mingw.
6067         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6068         * modules/opendir (Depends-on): Add unistd.
6069
6070 2011-09-21  Bruno Haible  <bruno@clisp.org>
6071
6072         ftruncate tests: Avoid a test failure on mingw.
6073         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6074
6075 2011-09-21  Bruno Haible  <bruno@clisp.org>
6076
6077         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6078         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6079         native Windows.
6080
6081 2011-09-21  Bruno Haible  <bruno@clisp.org>
6082
6083         New module 'fdopen'.
6084         * lib/stdio.in.h (fdopen): New declaration.
6085         * lib/fdopen.c: New file.
6086         * m4/fdopen.m4: New file.
6087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6088         REPLACE_FDOPEN.
6089         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6090         REPLACE_FDOPEN.
6091         * modules/fdopen: New file.
6092         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6093         * tests/test-stdio-c++.cc: Check signature of fdopen.
6094         * doc/posix-functions/fdopen.texi: Mention the new module.
6095
6096 2011-09-21  Bruno Haible  <bruno@clisp.org>
6097
6098         unlockpt tests: Avoid test failure on NetBSD 5.1.
6099         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6100         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6101
6102 2011-09-21  Bruno Haible  <bruno@clisp.org>
6103
6104         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6105         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6106         * tests/test-getlogin_r.c (main): Likewise.
6107
6108 2011-09-20  Bruno Haible  <bruno@clisp.org>
6109
6110         time tests: Don't require pid_t.
6111         * doc/posix-headers/time.texi: Revert last change.
6112         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6113         * tests/test-time.c: Comment out the check for pid_t.
6114
6115 2011-09-20  Bruno Haible  <bruno@clisp.org>
6116
6117         fsync tests: Avoid a test failure on mingw.
6118         * tests/test-fsync.c (main): Allow a failure with EIO.
6119
6120 2011-09-20  Bruno Haible  <bruno@clisp.org>
6121
6122         euidaccess: Update comments.
6123         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6124
6125 2011-09-20  Bruno Haible  <bruno@clisp.org>
6126
6127         Ensure EBADF returns for socket functions on mingw.
6128         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6129         descriptor is invalid.
6130         * lib/bind.c (rpl_bind): Likewise.
6131         * lib/connect.c (rpl_connect): Likewise.
6132         * lib/getpeername.c (rpl_getpeername): Likewise.
6133         * lib/getsockname.c (rpl_getsockname): Likewise.
6134         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6135         * lib/listen.c (rpl_listen): Likewise.
6136         * lib/recv.c (rpl_recv): Likewise.
6137         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6138         * lib/send.c (rpl_send): Likewise.
6139         * lib/sendto.c (rpl_sendto): Likewise.
6140         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6141         * lib/shutdown.c (rpl_shutdown): Likewise.
6142
6143 2011-09-20  Bruno Haible  <bruno@clisp.org>
6144
6145         select tests: EBADF tests.
6146         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6147         test_bad_fd): New functions.
6148         (test_function): Invoke also test_bad_fd.
6149
6150 2011-09-20  Bruno Haible  <bruno@clisp.org>
6151
6152         Tests for module 'posix_spawn_file_actions_addopen.
6153         * modules/posix_spawn_file_actions_addopen-tests: New file.
6154         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6155
6156         Tests for module 'posix_spawn_file_actions_adddup2'.
6157         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6158         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6159
6160         Tests for module 'posix_spawn_file_actions_addclose'.
6161         * modules/posix_spawn_file_actions_addclose-tests: New file.
6162         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6163
6164 2011-09-20  Bruno Haible  <bruno@clisp.org>
6165
6166         Tests for module 'unlockpt'.
6167         * modules/unlockpt-tests: New file.
6168         * tests/test-unlockpt.c: New file.
6169         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6170
6171         Tests for module 'grantpt'.
6172         * modules/grantpt-tests: New file.
6173         * tests/test-grantpt.c: New file.
6174         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6175
6176 2011-09-20  Bruno Haible  <bruno@clisp.org>
6177
6178         freopen tests: EBADF tests.
6179         * tests/test-freopen.c: Include errno.h, unistd.h.
6180         (main): Add tests for EBADF, commented out for the moment.
6181
6182         fclose tests: EBADF tests.
6183         * tests/test-fclose.c (main): Add tests for EBADF.
6184
6185         fflush tests: EBADF tests.
6186         * tests/test-fflush.c: Include errno.h, macros.h.
6187         (main): Add tests for EBADF.
6188
6189         ftello tests: EBADF tests.
6190         * tests/test-ftello4.sh: New file.
6191         * tests/test-ftello4.c: New file.
6192         * modules/ftello-tests (Files): Add them.
6193         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6194
6195         fseeko tests: EBADF tests.
6196         * tests/test-fseeko4.sh: New file.
6197         * tests/test-fseeko4.c: New file.
6198         * modules/fseeko-tests (Files): Add them.
6199         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6200
6201         Tests for function fputc().
6202         * modules/fputc-tests: New file.
6203         * tests/test-fputc.c: New file.
6204         * modules/stdio-tests (Depends-on): Add fputc-tests.
6205
6206         Tests for function fgetc().
6207         * modules/fgetc-tests: New file.
6208         * tests/test-fgetc.c: New file.
6209         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6210
6211         Tests for function fdopen().
6212         * modules/fdopen-tests: New file.
6213         * tests/test-fdopen.c: New file.
6214         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6215
6216         Tests for module 'vdprintf'.
6217         * modules/vdprintf-tests: New file.
6218         * tests/test-vdprintf.c: New file.
6219
6220         Tests for module 'dprintf'.
6221         * modules/dprintf-tests: New file.
6222         * tests/test-dprintf.c: New file.
6223
6224 2011-09-20  Bruno Haible  <bruno@clisp.org>
6225
6226         Tests for module 'ioctl'.
6227         * modules/ioctl-tests: New file.
6228         * tests/test-ioctl.c: New file.
6229
6230 2011-09-20  Bruno Haible  <bruno@clisp.org>
6231
6232         fcntl tests: EBADF tests.
6233         * tests/test-fcntl.c (main): Add more tests for EBADF.
6234
6235 2011-09-20  Bruno Haible  <bruno@clisp.org>
6236
6237         utimensat tests: EBADF tests.
6238         * tests/test-utimensat.c (main): Add tests for EBADF.
6239
6240         renameat tests: EBADF tests.
6241         * tests/test-renameat.c (main): Add tests for EBADF.
6242
6243         mkfifoat tests: EBADF tests.
6244         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6245
6246         readlinkat tests: EBADF tests.
6247         * tests/test-readlinkat.c (main): Add tests for EBADF.
6248
6249         symlinkat tests: EBADF tests.
6250         * tests/test-symlinkat.c (main): Add tests for EBADF.
6251
6252         linkat tests: EBADF tests.
6253         * tests/test-linkat.c (main): Add tests for EBADF.
6254
6255         Tests for module 'faccessat'.
6256         * modules/faccessat-tests: New file.
6257         * tests/test-faccessat.c: New file.
6258
6259         fdopendir tests: EBADF tests.
6260         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6261
6262         openat tests: EBADF tests.
6263         * tests/test-fchownat.c (main): Add tests for EBADF.
6264         * tests/test-fstatat.c (main): Likewise.
6265         * tests/test-mkdirat.c (main): Likewise.
6266         * tests/test-openat.c (main): Likewise.
6267         * tests/test-unlinkat.c (main): Likewise.
6268         * tests/test-fchmodat.c: New file.
6269         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6270         (Makefile.am): Also run 'test-fchmodat'.
6271
6272 2011-09-20  Bruno Haible  <bruno@clisp.org>
6273
6274         utimens, futimens, fdutimensat tests: EBADF tests.
6275         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6276
6277         Tests for function fstat().
6278         * modules/fstat-tests: New file.
6279         * tests/test-fstat.c: New file.
6280         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6281
6282 2011-09-20  Bruno Haible  <bruno@clisp.org>
6283
6284         test-ttyname_r tests: EBADF tests.
6285         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6286
6287         Tests for module 'isatty'.
6288         * modules/isatty-tests: New file.
6289         * tests/test-isatty.c: New file.
6290
6291         Tests for module 'write'.
6292         * modules/write-tests: New file.
6293         * tests/test-write.c: New file.
6294
6295         Tests for module 'read'.
6296         * modules/read-tests: New file.
6297         * tests/test-read.c: New file.
6298
6299         pwrite tests: EBADF tests.
6300         * tests/test-pwrite.c (main): Add tests for EBADF.
6301
6302         pread tests: EBADF tests.
6303         * tests/test-pread.c (main): Add tests for EBADF.
6304
6305         lseek tests: EBADF tests.
6306         * tests/test-lseek.c (main): Add more tests for EBADF.
6307
6308         Tests for module 'ftruncate'.
6309         * modules/ftruncate-tests: New file.
6310         * tests/test-ftruncate.sh: New file.
6311         * tests/test-ftruncate.c: New file.
6312
6313         fsync tests: EBADF tests.
6314         * tests/test-fsync.c (main): Add more tests for EBADF.
6315
6316         fdatasync tests: EBADF tests.
6317         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6318
6319         Tests for module 'fchown'.
6320         * modules/fchown-tests: New file.
6321         * tests/test-fchown.c: New file.
6322
6323         Tests for module 'fchmod'.
6324         * modules/fchmod-tests: New file.
6325         * tests/test-fchmod.c: New file.
6326
6327         fchdir tests: EBADF tests.
6328         * tests/test-fchdir.c (main): Add more tests for EBADF.
6329
6330         dup2 tests: EBADF tests.
6331         * tests/test-dup2.c (main): Add more tests for EBADF.
6332
6333         Tests for module 'dup'.
6334         * modules/dup-tests: New file.
6335         * tests/test-dup.c: New file.
6336
6337         Tests for module 'close'.
6338         * modules/close-tests: New file.
6339         * tests/test-close.c: New file.
6340
6341 2011-09-20  Bruno Haible  <bruno@clisp.org>
6342
6343         Tests for module 'shutdown'.
6344         * modules/shutdown-tests: New file.
6345         * tests/test-shutdown.c: New file.
6346
6347         Tests for module 'setsockopt'.
6348         * modules/setsockopt-tests: New file.
6349         * tests/test-setsockopt.c: New file.
6350
6351         Tests for module 'sendto'.
6352         * modules/sendto-tests: New file.
6353         * tests/test-sendto.c: New file.
6354
6355         Tests for module 'send'.
6356         * modules/send-tests: New file.
6357         * tests/test-send.c: New file.
6358
6359         Tests for module 'recvfrom'.
6360         * modules/recvfrom-tests: New file.
6361         * tests/test-recvfrom.c: New file.
6362
6363         Tests for module 'recv'.
6364         * modules/recv-tests: New file.
6365         * tests/test-recv.c: New file.
6366
6367         Tests for module 'listen'.
6368         * modules/listen-tests: New file.
6369         * tests/test-listen.c: New file.
6370
6371         Tests for module 'getsockopt'.
6372         * modules/getsockopt-tests: New file.
6373         * tests/test-getsockopt.c: New file.
6374
6375         Tests for module 'getsockname'.
6376         * modules/getsockname-tests: New file.
6377         * tests/test-getsockname.c: New file.
6378
6379         Tests for module 'getpeername'.
6380         * modules/getpeername-tests: New file.
6381         * tests/test-getpeername.c: New file.
6382
6383         Tests for module 'connect'.
6384         * modules/connect-tests: New file.
6385         * tests/test-connect.c: New file.
6386
6387         Tests for module 'bind'.
6388         * modules/bind-tests: New file.
6389         * tests/test-bind.c: New file.
6390
6391         accept4 tests: Fix for native Windows.
6392         * tests/test-accept4.c: Include sockets.h.
6393         (main): Invoke gl_sockets_startup.
6394         * modules/accept4-tests (Depends-on): Add sockets.
6395
6396         accept tests: Fix for native Windows.
6397         * tests/test-accept.c: Include sockets.h.
6398         (main): Invoke gl_sockets_startup.
6399         * modules/accept-tests (Depends-on): Add sockets.
6400
6401 2011-09-19  Bruno Haible  <bruno@clisp.org>
6402
6403         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6404         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6405         do...while(0).
6406         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6407         Suggested by Paul Eggert.
6408
6409 2011-09-19  Bruno Haible  <bruno@clisp.org>
6410
6411         sched: Ensure pid_t is defined.
6412         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6413         not define pid_t.
6414         * lib/sched.in.h: Include <sys/types.h>.
6415         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6417
6418 2011-09-19  Bruno Haible  <bruno@clisp.org>
6419
6420         msvc-inval: Ensure the entire expansion is a single statement.
6421         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6422         of braces.
6423
6424 2011-09-19  Jim Meyering  <meyering@redhat.com>
6425
6426         tests: use printf, not echo in init.sh's warn_ function
6427         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6428         misbehave when given strings containing a backslash or starting
6429         with e.g., -n.  James Youngman suggested setting IFS.
6430
6431 2011-09-19  Eric Blake  <eblake@redhat.com>
6432
6433         futimens: enhance test
6434         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6435         closed non-negative fd.
6436
6437         date: accept 'hence' as opposite of 'ago'
6438         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6439         * tests/test-parse-datetime.c (main): Enhance test.
6440         Suggested by Jesse Wilson.
6441
6442 2011-09-19  Jim Meyering  <meyering@redhat.com>
6443
6444         getcwd: don't fail in a deep directory on a system without openat
6445         Before this change, getcwd would fail when called from a directory
6446         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6447         the non-openat implementation used "..", "../..", "../../..", etc.
6448         to access ancestor directories.  With too many, that string would
6449         be longer than PATH_MAX.
6450         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6451         using gnulib's openat replacement.
6452         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6453         we're using the replacement function.
6454
6455 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6456
6457         maint.mk: avoid warnings from perl about missing files
6458         * top/maint.mk (def_sym_regex): Ignore files listed in
6459         $(gl_other_headers_) that do not exist, say because a project
6460         does not use a corresponding module.
6461
6462 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6463
6464         stat: use pathmax.h only if needed
6465         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6466         This is better for Emacs, which does not have a mingw port and
6467         therefore can avoid the pathmax module.
6468
6469         utimens: remove dependency on dup2
6470         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6471         to work around the Linux kernel bug.
6472         * modules/utimens (Depends-on): Remove dup2.
6473
6474 2011-09-18  Bruno Haible  <bruno@clisp.org>
6475
6476         inet_ntop, inet_pton: Look for it also in libresolv.
6477         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6478         libnsl, search for it in libresolv.
6479         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6480         Needed on Solaris 7.
6481
6482 2011-09-18  Bruno Haible  <bruno@clisp.org>
6483
6484         accept, accept4 tests: Avoid link error on Solaris.
6485         * modules/accept-tests (Makefile.am): Link test-accept against
6486         $(LIBSOCKET).
6487         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6488         $(LIBSOCKET).
6489
6490         accept4: Avoid link error on Solaris.
6491         * modules/accept4 (Link): New section.
6492
6493         socket functions: Avoid link errors on Solaris.
6494         * modules/accept (Depends-on): Add socketlib.
6495         (Link): New section.
6496         * modules/bind (Depends-on): Add socketlib.
6497         (Link): New section.
6498         * modules/connect (Depends-on): Add socketlib.
6499         (Link): New section.
6500         * modules/getpeername (Depends-on): Add socketlib.
6501         (Link): New section.
6502         * modules/getsockname (Depends-on): Add socketlib.
6503         (Link): New section.
6504         * modules/getsockopt (Depends-on): Add socketlib.
6505         (Link): New section.
6506         * modules/listen (Depends-on): Add socketlib.
6507         (Link): New section.
6508         * modules/recv (Depends-on): Add socketlib.
6509         (Link): New section.
6510         * modules/recvfrom (Depends-on): Add socketlib.
6511         (Link): New section.
6512         * modules/send (Depends-on): Add socketlib.
6513         (Link): New section.
6514         * modules/sendto (Depends-on): Add socketlib.
6515         (Link): New section.
6516         * modules/setsockopt (Depends-on): Add socketlib.
6517         (Link): New section.
6518         * modules/shutdown (Depends-on): Add socketlib.
6519         (Link): New section.
6520         * modules/socket (Depends-on): Add socketlib.
6521         (Link): New section.
6522
6523 2011-09-18  Bruno Haible  <bruno@clisp.org>
6524
6525         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6526         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6527         than 5 seconds.
6528         * modules/ptsname-tests (configure.ac): Test for alarm.
6529
6530 2011-09-18  Bruno Haible  <bruno@clisp.org>
6531
6532         posix_spawn_file_actions_add*: Fix module dependencies.
6533         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6534         posix_spawn_file_actions_init.
6535         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6536         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6537
6538 2011-09-18  Bruno Haible  <bruno@clisp.org>
6539
6540         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6541         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6542         * tests/test-renameat.c (main): Likewise.
6543
6544 2011-09-18  Bruno Haible  <bruno@clisp.org>
6545
6546         Tests for module 'accept4'.
6547         * modules/accept4-tests: New file.
6548         * tests/test-accept4.c: New file.
6549
6550 2011-09-18  Bruno Haible  <bruno@clisp.org>
6551
6552         Tests for module 'accept'.
6553         * modules/accept-tests: New file.
6554         * tests/test-accept.c: New file.
6555
6556 2011-09-18  Bruno Haible  <bruno@clisp.org>
6557
6558         dup2: Support for MSVC.
6559         * lib/dup2.c: Include msvc-inval.h.
6560         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6561         _get_osfhandle calls.
6562         * modules/dup2 (Depends-on): Add msvc-inval.
6563         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6564
6565         New module 'msvc-inval'.
6566         * lib/msvc-inval.h: New file.
6567         * lib/msvc-inval.c: New file.
6568         * m4/msvc-inval.m4: New file.
6569         * modules/msvc-inval: New file.
6570
6571 2011-09-17  Bruno Haible  <bruno@clisp.org>
6572
6573         Tests for module 'pclose'.
6574         * modules/pclose-tests: New file.
6575
6576         New module 'pclose'.
6577         * lib/stdio.in.h (pclose): New declaration.
6578         * lib/pclose.c: New file.
6579         * m4/pclose.m4: New file.
6580         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6581         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6582         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6583         * modules/pclose: New file.
6584         * modules/popen-tests (Depends-on): Add pclose.
6585         * modules/popen-safer-tests (Depends-on): Likewise.
6586         * doc/posix-functions/pclose.texi: Mention the new module.
6587
6588 2011-09-17  Bruno Haible  <bruno@clisp.org>
6589
6590         popen: Support for MSVC.
6591         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6592         * lib/popen.c (popen): Provide alternate definition for native Windows.
6593         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6595         * modules/popen (Depends-on, configure.ac): Update condition.
6596         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6597         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6598         fixed.
6599
6600 2011-09-17  Bruno Haible  <bruno@clisp.org>
6601
6602         isnanl, isnand, isnanf: Work around MSVC bug.
6603         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6604
6605 2011-09-17  Bruno Haible  <bruno@clisp.org>
6606
6607         sys_socket tests: Fix recent mistake.
6608         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6609
6610 2011-09-17  Bruno Haible  <bruno@clisp.org>
6611
6612         putenv: Support for MSVC.
6613         * modules/putenv (Depends-on): Add environ.
6614         * lib/putenv.c (environ): Disable declaration.
6615         * lib/unistd.in.h: Update comment.
6616
6617 2011-09-17  Bruno Haible  <bruno@clisp.org>
6618
6619         math: Avoid macro redefinition warnings on MSVC.
6620         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6621         Undefine before redefining.
6622
6623 2011-09-17  Bruno Haible  <bruno@clisp.org>
6624
6625         doc: Mention functions which are declared as macros.
6626         * doc/posix-functions/*[fl].texi: Mention that some functions are
6627         defined as macros with arguments only.
6628
6629 2011-09-17  Bruno Haible  <bruno@clisp.org>
6630
6631         Add dependencies to new dirent related modules.
6632         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6633         * modules/fts (Depends-on): Likewise.
6634         * modules/glob (Depends-on): Likewise.
6635         * modules/savedir (Depends-on): Likewise.
6636         * modules/scandir (Depends-on): Likewise.
6637         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6638         * modules/fdopendir (Depends-on): Add opendir.
6639
6640 2011-09-17  Bruno Haible  <bruno@clisp.org>
6641
6642         inet_pton: Support for MSVC on Windows Vista or newer.
6643         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6644         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6645         HAVE_DECL_INET_PTON is defined.
6646         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6647         On platforms with <winsock2.h>, test whether inet_pton is declared in
6648         <ws2tcpip.h>. If so, arrange to replace it.
6649         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6650         REPLACE_INET_PTON.
6651         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6652         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6653         (Depends-on, configure.ac): Update condition.
6654         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6655
6656 2011-09-17  Bruno Haible  <bruno@clisp.org>
6657
6658         inet_ntop: Support for MSVC on Windows Vista or newer.
6659         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6660         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6661         HAVE_DECL_INET_NTOP is defined.
6662         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6663         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6664         <ws2tcpip.h>. If so, arrange to replace it.
6665         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6666         REPLACE_INET_NTOP.
6667         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6668         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6669         (Depends-on, configure.ac): Update condition.
6670         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6671
6672 2011-09-16  Eric Blake  <eblake@redhat.com>
6673
6674         test-fsync: yet another enhancement
6675         * tests/test-fsync.c (main): Also test behavior on read-only text
6676         file.
6677
6678 2011-09-16  Bruno Haible  <bruno@clisp.org>
6679
6680         Enhance fsync, fdatasync tests.
6681         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6682         * tests/test-fdatasync.c (main): Likewise.
6683
6684 2011-09-16  Bruno Haible  <bruno@clisp.org>
6685
6686         Support for MSVC compiler: Ensure mode_t gets defined.
6687         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6688         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6689         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6690         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6691         * tests/test-fcntl-h.c: Check that mode_t is defined.
6692         * tests/test-sys_stat.c: Likewise.
6693         * tests/test-sys_types.c: Likewise.
6694         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6695         * doc/posix-headers/sys_stat.texi: Likewise.
6696         * doc/posix-headers/sys_types.texi: Likewise.
6697
6698 2011-09-16  Bruno Haible  <bruno@clisp.org>
6699
6700         sys_stat: Support for MSVC.
6701         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6702         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6703         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6704         MSVC.
6705
6706 2011-09-16  Bruno Haible  <bruno@clisp.org>
6707
6708         Support for MSVC compiler: Ensure off_t gets defined.
6709         * lib/unistd.in.h: Include <sys/types.h>.
6710         * tests/test-fcntl-h.c: Check that off_t is defined.
6711         * tests/test-sys_stat.c: Likewise.
6712         * tests/test-sys_types.c: Likewise.
6713
6714 2011-09-16  Eric Blake  <eblake@redhat.com>
6715
6716         fdatasync: port to Solaris
6717         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6718         * modules/fdatasync (Link): Document it.
6719         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6720
6721         fdatasync: port to MacOS X 10.7
6722         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6723         declared.
6724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6725         * modules/unistd (Makefile.am): Substitute it.
6726         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6727         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6728
6729         fdatasync: minor improvements
6730         * modules/fdatasync (Depends-on): Add condition for fsync.
6731         * lib/fdatasync.c (fdatasync): Add comment.
6732         * tests/test-unistd-c++.cc: Test fdatasync.
6733
6734         unistd: update refs to newer POSIX
6735         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6736         Suggested by Bruno Haible.
6737
6738         fdatasync: new module
6739         * modules/fsync (Description): Document difference to fdatasync.
6740         * modules/fdatasync: New module.
6741         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6742         * lib/fdatasync.c (fdatasync): Likewise.
6743         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6744         defaults.
6745         * modules/unistd (Makefile.am): Set witnesses.
6746         * lib/unistd.in.h (fdatasync): Declare.
6747         * MODULES.html.sh: Document it.
6748         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6749         * modules/fdatasync-tests: New test.
6750         * tests/test-fdatasync.c: Likewise.
6751
6752 2011-09-16  Eric Blake  <eblake@redhat.com>
6753
6754         test-fsync: enhance tests
6755         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6756         * tests/test-fsync.c (main): Enhance test.
6757
6758 2011-09-15  Bruno Haible  <bruno@clisp.org>
6759
6760         Support for MSVC compiler: Ensure ssize_t gets defined.
6761         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6762         * doc/posix-headers/stdio.texi: Likewise.
6763         * modules/stdio (Depends-on): Add ssize_t.
6764         * modules/sys_socket (Depends-on): Likewise.
6765         * modules/sys_types (Depends-on): Likewise.
6766         * modules/sys_uio (Depends-on): Likewise.
6767         * modules/unistd (Depends-on): Likewise.
6768         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6769         * tests/test-sys_types.c: Check that ssize_t is defined.
6770
6771 2011-09-14  Bruno Haible  <bruno@clisp.org>
6772
6773         Avoid using #, the m4 comment starter character, near brackets.
6774         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6775         delimiter character in sed expressions.
6776         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6777         Suggested by Eric Blake.
6778
6779         Properly quote AC_CHECK_DECLS' 4th argument.
6780         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6781         argument.
6782         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6783         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6785         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6786         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6787         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6788         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6789         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6790         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6791         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6792         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6793         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6794         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6795         * m4/isinf.m4 (gl_ISINF): Likewise.
6796         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6797         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6798         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6799         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6800         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6802         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6803         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6804         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6805         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6806         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6807         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6809         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6811         Reported by Eric Blake.
6812
6813         Properly quote AC_CHECK_DECL's 4th argument.
6814         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6815         argument.
6816         * m4/argp.m4 (gl_ARGP): Likewise.
6817         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6818         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6819         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6820         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6821         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6822         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6824         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6826         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6827         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6828         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6829         Reported by Eric Blake.
6830
6831 2011-09-14  Eric Blake  <eblake@redhat.com>
6832
6833         opendir: avoid compile warning
6834         * lib/opendir.c (includes): Always include errno.h.
6835         Reported by Tatsuro MATSUOKA.
6836
6837 2011-09-14  Jim Meyering  <meyering@redhat.com>
6838
6839         maint.mk: sc_tight_scope: propagate failure from sub-make
6840         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6841         Reported by Martin von Gagern.
6842
6843 2011-09-13  Bruno Haible  <bruno@clisp.org>
6844
6845         tempname: Support for MSVC.
6846         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6847         MSVC.
6848         * modules/tempname (Depends-on): Add fcntl-h.
6849
6850 2011-09-13  Bruno Haible  <bruno@clisp.org>
6851
6852         sys_time: Support for MSVC.
6853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6854         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6855         include <winsock2.h>.
6856         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6857         function declarations that collide with POSIX.
6858         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6859         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6860
6861 2011-09-13  Bruno Haible  <bruno@clisp.org>
6862
6863         stat: Support for MSVC.
6864         * lib/stat.c: Include pathmax.h.
6865         * modules/stat (Depends-on): Add pathmax.
6866
6867         pathmax: Support for native Windows.
6868         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6869
6870 2011-09-12  Bruno Haible  <bruno@clisp.org>
6871
6872         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6873         * lib/dirent.in.h (struct dirent): New type.
6874         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6875         DT_WHT): New macros.
6876         (DIR): New type.
6877         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6878         (readdir, rewinddir): New declarations.
6879         * lib/dirent-private.h: New file.
6880         * lib/opendir.c: New file.
6881         * lib/readdir.c: New file.
6882         * lib/rewinddir.c: New file.
6883         * lib/closedir.c: New file.
6884         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6885         * m4/opendir.m4: New file.
6886         * m4/readdir.m4: New file.
6887         * m4/rewinddir.m4: New file.
6888         * m4/closedir.m4: New file.
6889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6890         REPLACE_CLOSEDIR here.
6891         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6892         readdir, rewinddir are declared.
6893         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6894         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6895         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6896         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6897         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6898         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6899         * modules/opendir: New file.
6900         * modules/readdir: New file.
6901         * modules/rewinddir: New file.
6902         * modules/closedir: New file.
6903         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6904         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6905         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6906         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6907         * NEWS: Mention the 'fchdir' change.
6908
6909 2011-09-11  Bruno Haible  <bruno@clisp.org>
6910
6911         asm-underscore.m4: Support for MSVC.
6912         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6913         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6914
6915 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6916
6917         Doc about crypt functions.
6918         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6919         needing for _GNU_SOURCE to get crypt.
6920         * doc/posix-functions/encrypt.texi: Likewise.
6921         * doc/posix-functions/setkey.texi: Likewise.
6922
6923 2011-09-11  Bruno Haible  <bruno@clisp.org>
6924
6925         doc: Update regarding MSVC 9.
6926         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6927         tested".
6928         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6929         * doc/posix-headers/*.texi: Likewise.
6930         * doc/pastposix-functions/*.texi: Likewise.
6931         * doc/glibc-functions/*.texi: Likewise.
6932         * doc/glibc-headers/*.texi: Likewise.
6933
6934 2011-09-11  Bruno Haible  <bruno@clisp.org>
6935
6936         unistd et al.: Don't assume <unistd.h> exists.
6937         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6938         does not exist.
6939         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6940         exist. But include <stdlib.h>.
6941         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6942         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6943         symlink() does not exist.
6944         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6945         include <io.h> instead.
6946         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6947         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6948         include <direct.h> instead.
6949         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6951         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6952         <io.h> instead.
6953         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6954         correctly if the system does not have hard links.
6955         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6956         <direct.h> instead.
6957         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6958         it when looking for function declarations.
6959         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6960         <direct.h> and <io.h> instead.
6961         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6962
6963 2011-09-11  Bruno Haible  <bruno@clisp.org>
6964
6965         strcase: Support for MSVC.
6966         * modules/strcase (Status, Notice): Remove obsoletion mark.
6967         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6968         * doc/posix-functions/strncasecmp.texi: Likewise.
6969
6970         strings: Don't assume <strings.h> exists.
6971         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6972         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6973         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6974         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6975
6976 2011-09-11  Bruno Haible  <bruno@clisp.org>
6977
6978         dirent: Don't assume <dirent.h> exists.
6979         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6980         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6981         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6982         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6983
6984 2011-09-11  Bruno Haible  <bruno@clisp.org>
6985
6986         Fix wint_t on MSVC.
6987         * lib/wchar.in.h (wint_t): On MSVC, override it.
6988         * lib/wctype.in.h (wint_t): Likewise.
6989         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6990         MSVC.
6991         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6992         * doc/posix-headers/wctype.texi: Likewise.
6993
6994 2011-09-11  Bruno Haible  <bruno@clisp.org>
6995
6996         sys_types: Fix typo.
6997         * lib/sys_types.in.h: Fix typo in comment.
6998         Reported by Paul Eggert.
6999
7000         Support for MSVC compiler: Ensure size_t gets defined.
7001         * modules/strings (Depends-on): Add 'sys_types'.
7002         * modules/sys_uio (Depends-on): Likewise.
7003         * lib/sys_uio.in.h: Update comment.
7004
7005         C++ tests for module 'sys_types'.
7006         * modules/sys_types-c++-tests: New file.
7007         * tests/test-sys_types-c++.cc: New file.
7008
7009         Tests for module 'sys_types'.
7010         * modules/sys_types-tests: New file.
7011         * tests/test-sys_types.c: New file.
7012
7013         New module 'sys_types'.
7014         * lib/sys_types.in.h: New file.
7015         * m4/sys_types_h.m4: New file.
7016         * modules/sys_types: New file.
7017         * doc/posix-headers/sys_types.texi: Mention the new module and the
7018         size_t problem on MSVC 9.
7019
7020 2011-09-11  Bruno Haible  <bruno@clisp.org>
7021
7022         Support for MSVC compiler: Avoid division by a literal 0.
7023         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7024         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7025         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7026         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7027         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7028         * tests/infinity.h: New file.
7029         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7030         on MSVC.
7031         * tests/test-ceilf1.c: Include infinity.h.
7032         (main): Use Infinityf.
7033         * tests/test-ceil1.c: Include infinity.h.
7034         (main): Use Infinityd.
7035         * tests/test-ceill.c: Include infinity.h.
7036         (main): Use Infinityl.
7037         * tests/test-dprintf-posix.c: Include infinity.h.
7038         (test_function): Use Infinityd.
7039         * tests/test-floorf1.c: Include infinity.h.
7040         (main): Use Infinityf.
7041         * tests/test-floor1.c: Include infinity.h.
7042         (main): Use Infinityd.
7043         * tests/test-floorl.c: Include infinity.h.
7044         (main): Use Infinityl.
7045         * tests/test-fprintf-posix.c: Include infinity.h.
7046         (test_function): Use Infinityd.
7047         * tests/test-frexp.c: Include infinity.h.
7048         (main): Use Infinityd.
7049         * tests/test-frexpl.c: Include infinity.h.
7050         (main): Use Infinityl.
7051         * tests/test-isfinite.c: Include infinity.h.
7052         (test_isfinitef): Use Infinityf.
7053         (test_isfinited): Use Infinityd.
7054         (test_isfinitel): Use Infinityl.
7055         * tests/test-isinf.c: Include infinity.h.
7056         (test_isinff): Use Infinityf.
7057         (test_isinfd): Use Infinityd.
7058         (test_isinfl): Use Infinityl.
7059         * tests/test-isnan.c: Include infinity.h.
7060         (test_float): Use Infinityf.
7061         (test_double): Use Infinityd.
7062         (test_long_double): Use Infinityl.
7063         * tests/test-isnanf.h: Include infinity.h.
7064         (main): Use Infinityf.
7065         * tests/test-isnand.h: Include infinity.h.
7066         (main): Use Infinityd.
7067         * tests/test-isnanl.h: Include infinity.h.
7068         (main): Use Infinityl.
7069         * tests/test-ldexpl.c: Include infinity.h.
7070         (main): Use Infinityl.
7071         * tests/test-printf-posix.h: Include infinity.h.
7072         (test_function): Use Infinityd.
7073         * tests/test-roundf1.c: Include infinity.h.
7074         (main): Use Infinityf.
7075         * tests/test-round1.c: Include infinity.h.
7076         (main): Use Infinityd.
7077         * tests/test-roundl.c: Include infinity.h.
7078         (main): Use Infinityl.
7079         * tests/test-signbit.c: Include infinity.h.
7080         (test_signbitf): Use Infinityf.
7081         (test_signbitd): Use Infinityd.
7082         (test_signbitl): Use Infinityl.
7083         * tests/test-snprintf-posix.h: Include infinity.h.
7084         (test_function): Use Infinityd, Infinityl.
7085         * tests/test-sprintf-posix.h: Include infinity.h.
7086         (test_function): Use Infinityd, Infinityl.
7087         * tests/test-truncf1.c: Include infinity.h.
7088         (main): Use Infinityf.
7089         * tests/test-trunc1.c: Include infinity.h.
7090         (main): Use Infinityd.
7091         * tests/test-truncl.c: Include infinity.h.
7092         (main): Use Infinityl.
7093         * tests/test-vasnprintf-posix.c: Include infinity.h.
7094         (test_function): Use Infinityd, Infinityl.
7095         * tests/test-vasprintf-posix.c: Include infinity.h.
7096         (test_function): Use Infinityd, Infinityl.
7097         * modules/ceilf-tests (Files): Add tests/infinity.h.
7098         * modules/ceil-tests (Files): Likewise.
7099         * modules/ceill-tests (Files): Likewise.
7100         * modules/dprintf-posix-tests (Files): Likewise.
7101         * modules/floorf-tests (Files): Likewise.
7102         * modules/floor-tests (Files): Likewise.
7103         * modules/floorl-tests (Files): Likewise.
7104         * modules/fprintf-posix-tests (Files): Likewise.
7105         * modules/frexp-tests (Files): Likewise.
7106         * modules/frexp-nolibm-tests (Files): Likewise.
7107         * modules/frexpl-tests (Files): Likewise.
7108         * modules/frexpl-nolibm-tests (Files): Likewise.
7109         * modules/isfinite-tests (Files): Likewise.
7110         * modules/isinf-tests (Files): Likewise.
7111         * modules/isnan-tests (Files): Likewise.
7112         * modules/isnanf-tests (Files): Likewise.
7113         * modules/isnanf-nolibm-tests (Files): Likewise.
7114         * modules/isnand-tests (Files): Likewise.
7115         * modules/isnand-nolibm-tests (Files): Likewise.
7116         * modules/isnanl-tests (Files): Likewise.
7117         * modules/isnanl-nolibm-tests (Files): Likewise.
7118         * modules/ldexpl-tests (Files): Likewise.
7119         * modules/printf-posix-tests (Files): Likewise.
7120         * modules/roundf-tests (Files): Likewise.
7121         * modules/round-tests (Files): Likewise.
7122         * modules/roundl-tests (Files): Likewise.
7123         * modules/signbit-tests (Files): Likewise.
7124         * modules/snprintf-posix-tests (Files): Likewise.
7125         * modules/sprintf-posix-tests (Files): Likewise.
7126         * modules/truncf-tests (Files): Likewise.
7127         * modules/trunc-tests (Files): Likewise.
7128         * modules/truncl-tests (Files): Likewise.
7129         * modules/vasnprintf-posix-tests (Files): Likewise.
7130         * modules/vasprintf-posix-tests (Files): Likewise.
7131         * modules/vdprintf-posix-tests (Files): Likewise.
7132         * modules/vfprintf-posix-tests (Files): Likewise.
7133         * modules/vprintf-posix-tests (Files): Likewise.
7134         * modules/vsnprintf-posix-tests (Files): Likewise.
7135         * modules/vsprintf-posix-tests (Files): Likewise.
7136         * modules/xprintf-posix-tests (Files): Likewise.
7137
7138 2011-09-11  Bruno Haible  <bruno@clisp.org>
7139
7140         Ensure pid_t gets defined.
7141         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7142         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7143         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7144         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7145         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7146         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7147         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7148         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7149         * tests/test-fcntl-h.c: Check that pid_t is defined.
7150         * tests/test-sched.c: Likewise.
7151         * tests/test-termios.c: Likewise.
7152         * tests/test-time.c: Likewise.
7153         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7154         * doc/posix-headers/signal.texi: Likewise.
7155         * doc/posix-headers/sys_types.texi: Likewise.
7156         * doc/posix-headers/time.texi: Likewise.
7157
7158 2011-09-11  Bruno Haible  <bruno@clisp.org>
7159
7160         acl: Fix compilation on Solaris 10 (older version).
7161         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7162         of ACE_EVERYONE.
7163         * lib/set-mode-acl.c (qset_acl): Likewise.
7164         Reported by Christian Jullien <eligis@orange.fr>.
7165
7166 2011-09-10  Bruno Haible  <bruno@clisp.org>
7167
7168         iconv, unsetenv: Add support for MSVC compiler.
7169         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7170         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7171
7172 2011-09-10  Bruno Haible  <bruno@clisp.org>
7173
7174         *printf: Add support for MSVC compiler.
7175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7176         handles the exception caused by the %n directive. When cross-compiling,
7177         guess no on native Windows.
7178         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7179         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7180         emulate it through vsnprintf.
7181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7182         * doc/posix-functions/dprintf.texi: Update documentation regarding
7183         MSVC 9.
7184         * doc/posix-functions/fprintf.texi: Likewise.
7185         * doc/posix-functions/printf.texi: Likewise.
7186         * doc/posix-functions/snprintf.texi: Likewise.
7187         * doc/posix-functions/sprintf.texi: Likewise.
7188         * doc/posix-functions/swprintf.texi: Likewise.
7189         * doc/posix-functions/vdprintf.texi: Likewise.
7190         * doc/posix-functions/vfprintf.texi: Likewise.
7191         * doc/posix-functions/vprintf.texi: Likewise.
7192         * doc/posix-functions/vsnprintf.texi: Likewise.
7193         * doc/posix-functions/vsprintf.texi: Likewise.
7194         * doc/glibc-functions/asprintf.texi: Likewise.
7195         * doc/glibc-functions/obstack_printf.texi: Likewise.
7196         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7197         * doc/glibc-functions/vasprintf.texi: Likewise.
7198
7199 2011-09-10  Bruno Haible  <bruno@clisp.org>
7200
7201         nocrash: Add support for native Windows.
7202         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7203
7204 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7205             Bruno Haible  <bruno@clisp.org>
7206
7207         absolute-header, include-next: Add support for MSVC compiler.
7208         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7209         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7210         directory separator in #line directives.
7211         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7212         recognize also backslash as directory separator in #line directives.
7213
7214 2011-09-08  Jim Meyering  <meyering@redhat.com>
7215
7216         maint.mk: mark the post-release commit log with "maint: " prefix
7217         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7218         one-line commit-log summary.
7219
7220 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7221             Bruno Haible  <bruno@clisp.org>
7222
7223         Doc about crypt functions.
7224         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7225         systems.
7226         * doc/posix-functions/encrypt.texi: Likewise.
7227         * doc/posix-functions/setkey.texi: Likewise.
7228
7229 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7230
7231         * lib/gc.h: Fix copyright header.
7232
7233 2011-09-07  Bruno Haible  <bruno@clisp.org>
7234
7235         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7236         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7237         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7238
7239 2011-09-07  Bruno Haible  <bruno@clisp.org>
7240
7241         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7242         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7243         * lib/freopen.c: Likewise.
7244         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7245         * lib/lstat.c: Likewise.
7246         * lib/stat.c: Likewise.
7247         * lib/open.c: Use different syntax for include of <fcntl.h>.
7248         * lib/openat.c: Include fcntl.h again, explicitly.
7249
7250 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7251
7252         parse-datetime: document the newly accepted format
7253         * doc/parse-datetime.texi (Combined date and time of day items):
7254         New section.
7255
7256 2011-09-06  Bruno Haible  <bruno@clisp.org>
7257
7258         acl: Fix a test failure on newer Solaris 10 with ZFS.
7259         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7260         ENOSYS as no ACL.
7261         Reported by Jim Meyering.
7262
7263 2011-09-06  Bruno Haible  <bruno@clisp.org>
7264
7265         acl: Update for AIX >= 5.3 with NFS.
7266         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7267         ENOSYS as no ACL.
7268
7269         acl: Fix a test failure on AIX >= 5.3 with NFS.
7270         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7271         as no ACL.
7272
7273 2011-09-06  Bruno Haible  <bruno@clisp.org>
7274
7275         acl: Fix a test failure on IRIX 6.5 with NFS.
7276         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7277         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7278         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7279         * lib/copy-acl.c (qcopy_acl): Likewise.
7280
7281 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7282
7283         openat: port to AIX 7.1 with large files
7284         AIX 7.1 does a "#define openat open64at" if large files are in use,
7285         so we can't simply #undef openat.  Use the orig_openat trick (similar
7286         to orig_open in lib/open.c) to work around the problem.  Problem
7287         reported by Kevin Brott for GNU tar, in the thread containing
7288         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
7289         * lib/openat.c (__need_system_fcntl_h): Define first.
7290         Include <fcntl.h> and <sys/types.h> before undefining.
7291         (orig_openat) [HAVE_OPENAT]: New inline function.
7292         (openat) [HAVE_OPENAT]: Do not undef.
7293         (rpl_openat): Use orig_openat, not openat.
7294
7295 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7296             Bruno Haible  <bruno@clisp.org>
7297
7298         acl: Avoid errors on NonStop Kernel.
7299         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7300         ENOTSUP errors.
7301
7302 2011-09-05  Bruno Haible  <bruno@clisp.org>
7303
7304         acl: Clean up Solaris code.
7305         * lib/acl-internal.h: Remove no-op #if.
7306         * lib/file-has-acl.c: Likewise.
7307         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7308         * lib/copy-acl.c (qcopy_acl): Likewise.
7309
7310 2011-09-05  Bruno Haible  <bruno@clisp.org>
7311
7312         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7313         binaries built on the original Solaris 10.
7314         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7315         trivial.
7316
7317 2011-09-05  Bruno Haible  <bruno@clisp.org>
7318
7319         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7320         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7321         10.
7322         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7323         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7324         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7325         instead of acl_get, facl_get, acl_set, facl_set.
7326
7327 2011-09-05  Bruno Haible  <bruno@clisp.org>
7328
7329         copy-file: Try unit tests on more file systems.
7330         * tests/test-copy-file-1.sh: New file.
7331         * tests/test-copy-file-2.sh: New file.
7332         * modules/copy-file-tests (Files): Add them.
7333         (Makefile.am): Add them to TESTS.
7334
7335         acl: Try unit tests on more file systems.
7336         * tests/test-file-has-acl-1.sh: New file.
7337         * tests/test-file-has-acl-2.sh: New file.
7338         * tests/test-set-mode-acl-1.sh: New file.
7339         * tests/test-set-mode-acl-2.sh: New file.
7340         * tests/test-copy-acl-1.sh: New file.
7341         * tests/test-copy-acl-2.sh: New file.
7342         * modules/acl-tests (Files): Add them.
7343         (Makefile.am): Add them to TESTS.
7344
7345 2011-09-04  Bruno Haible  <bruno@clisp.org>
7346
7347         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7348         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7349         10.
7350         (OLD_ALLOW, OLD_DENY): New macros.
7351         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7352         ACE_ACCESS_ALLOWED_ACE_TYPE.
7353         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7354         ACE_ACCESS_DENIED_ACE_TYPE.
7355         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7356         (NEW_ACE_EXECUTE): Fix value.
7357         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7358         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7359         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7360         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7361         NEW_ACE_SYNCHRONIZE): New macros.
7362         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7363         instead of acl_fromtext, acl_set, facl_set.
7364         Fixes a coreutils/tests/cp/perm failure.
7365
7366 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7367
7368         openat: test for fstatat (..., 0) bug
7369         Further testing with tar suggests that fstatat (..., 0)
7370         does not work in general, on AIX 7.1; see
7371         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7372         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7373         replacement fstatat (which is what older AIX releases were using
7374         anyway).
7375         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7376         use is now changed to orig_fstatat.  This was probably the right
7377         thing to do anyway.
7378         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7379         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7380         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7381         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7382         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7383         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7384         if the bug is found.
7385
7386         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7387         This tests for another fstatat bug on AIX 7.1:
7388         fstatat (AT_FDCWD, ..., 0) does not work.  See
7389         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7390         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7391         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7392         (rpl_fstatat): Adjust so that it works around either (or both)
7393         bugs if present.
7394         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7395
7396 2011-09-03  Karl Berry  <karl@gnu.org>
7397
7398         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7399         in index entries.
7400
7401 2011-09-02  Bruno Haible  <bruno@clisp.org>
7402
7403         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7404         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7405         values of AR, ARFLAGS, RANLIB.
7406         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7407
7408 2011-09-02  Bruno Haible  <bruno@clisp.org>
7409
7410         Find 'ar' program that fits with --host argument.
7411         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7412
7413 2011-09-02  Bruno Haible  <bruno@clisp.org>
7414
7415         tests: init.sh: Support any non-GNU diff.
7416         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7417         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7418         Solaris 8.
7419
7420 2011-09-02  Bruno Haible  <bruno@clisp.org>
7421
7422         tests: init.sh: work also with any non-GNU diff that supports -u
7423         * tests/init.sh: Relax check for diff -u support.
7424         Rather than checking for GNU diff via --version, simply check
7425         for support for -u itself.  Useful at least on OpenBSD 4.9,
7426         AIX 7.1, IRIX 6.5, and Solaris 10.
7427
7428 2011-09-01  Bruno Haible  <bruno@clisp.org>
7429
7430         strtoimax, strtoumax: Document problem on HP-UX 11.
7431         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7432         * doc/posix-functions/strtoumax.texi: Likewise.
7433
7434 2011-09-01  Bruno Haible  <bruno@clisp.org>
7435
7436         strtoumax: Avoid link error on OSF/1 with DTK cc.
7437         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7438         defined as a function.
7439         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7440         strtoumax is defined, not whether it is declared.
7441
7442 2011-09-01  Bruno Haible  <bruno@clisp.org>
7443
7444         strtoimax: Avoid link error on OSF/1 with DTK cc.
7445         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7446         defined as a function.
7447         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7448         strtoimax is defined, not whether it is declared.
7449
7450 2011-09-01  Bruno Haible  <bruno@clisp.org>
7451
7452         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7453         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7454         as a function.
7455         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7456         whether it is declared.
7457
7458 2011-09-01  Bruno Haible  <bruno@clisp.org>
7459
7460         imaxabs: Avoid link error on OSF/1 with DTK cc.
7461         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7462         as a function.
7463         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7464         whether it is declared.
7465
7466 2011-09-01  Bruno Haible  <bruno@clisp.org>
7467
7468         Tests for module 'strtoumax'.
7469         * modules/strtoumax-tests: New file.
7470         * tests/test-strtoumax.c: New file.
7471
7472         Tests for module 'strtoimax'.
7473         * modules/strtoimax-tests: New file.
7474         * tests/test-strtoimax.c: New file.
7475
7476         Tests for module 'imaxdiv'.
7477         * modules/imaxdiv-tests: New file.
7478         * tests/test-imaxdiv.c: New file.
7479
7480         Tests for module 'imaxabs'.
7481         * modules/imaxabs-tests: New file.
7482         * tests/test-imaxabs.c: New file.
7483
7484 2011-09-01  Bruno Haible  <bruno@clisp.org>
7485
7486         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7487         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7488         pthread_create.
7489
7490 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7491
7492         openat: work around AIX 7.1 fstatat issue
7493         This should fix the problem that was not properly fixed
7494         in the previous change, dated 2011-08-30.
7495         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7496         __need_system_stat_h defined.
7497         (orig_fstatat) [HAVE_FSTATAT]: New function.
7498         (rpl_fstatat): Go back to the old way of doing things,
7499         except call orig_fstatat instead of fstatat.
7500         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7501         Remove unnecessary check whether fstatat fills in st_size etc.
7502
7503 2011-09-01  Bruno Haible  <bruno@clisp.org>
7504
7505         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7506         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7507         just include the system's header.
7508
7509 2011-08-31  Jim Meyering  <meyering@redhat.com>
7510
7511         tests: avoid spurious assertion failure in test-float.c on ppc64
7512         * tests/test-float.c (test_long_double): Comment out an assertion,
7513         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7514         with gcc-4.4.4.
7515
7516         maint: indent with spaces, not TABs
7517         I need to get in the habit of running gnulib's "make check".
7518         Both of these would have been caught.
7519         * m4/largefile.m4: Indent with spaces, not TABs.
7520         * lib/parse-datetime.y (iso_8601_time): Likewise.
7521         Spotted by Pádraig Brady.
7522
7523         test-parse-datetime.c: accommodate a relatively strict gcc warning
7524         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7525         to avoid a warning from gcc's -Werror=missing-declarations.
7526         Insert a few spaces-before-funcall-parenthesis.
7527
7528 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7529
7530         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7531         The parser now accepts ISO 8601 date-time strings with "T" as the
7532         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7533         with a space between the date and time strings.  Now it also parses
7534         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7535         variants like "2004-02-29T16:21:42.333-07:00"
7536         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7537         of day representation using the 'T' separator character.
7538         * doc/parse-datetime.texi (General date syntax): replace use of
7539         deprecated --iso-8601 option with --rfc-3339 in example of date
7540         command output formats that can be parsed.
7541         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7542         lib/parse-datetime.y.
7543         (gmt_offset): New function.
7544         (main): Add additional test cases to validate ISO8601 extended
7545         date and time of day parsing.
7546
7547 2011-08-31  Bruno Haible  <bruno@clisp.org>
7548
7549         freopen: Documentation.
7550         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7551         name.
7552         Reported by Claudio Bley <claudio.bley@gmail.com>.
7553
7554 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7555
7556         freopen: Don't crash if the filename argument is NULL.
7557         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7558         NULL.
7559
7560 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7561
7562         openat: work around AIX 7.1 fstatat bug
7563         Problem reported by Kevin Brott for GNU tar, in the thread containing
7564         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7565         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7566         FSTATAT_ST_SIZE_ETC_BROKEN.
7567         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7568         rpl_fstatat.
7569         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7570         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7571         AC_CHECK_FUNCS_ONCE for fstatat.
7572         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7573         fchmodat, mkdirat, openat and unlinkat.
7574
7575 2011-08-30  Bruno Haible  <bruno@clisp.org>
7576
7577         Avoid endless recursions if config.h includes some header files.
7578         * lib/fopen.c (__need_FILE): Define already before including config.h.
7579         * lib/freopen.c (__need_FILE): Likewise.
7580         * lib/open.c (__need_system_fcntl_h): Likewise.
7581         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7582         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7583         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7584
7585 2011-08-25  Karl Berry  <karl@gnu.org>
7586
7587         * config/srclist.txt (ylwrap): new try.
7588         * build-aux/ylwrap: new file.
7589
7590 2011-08-23  Bruno Haible  <bruno@clisp.org>
7591
7592         tmpdir: Use a good default directory on native Windows.
7593         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7594         (P_tmpdir): Default to _P_tmpdir on native Windows.
7595         (path_search): On native Windows, try the value returned by GetTempPath
7596         before trying P_tmpdir.
7597         * modules/tmpdir (Depends-on): Add pathmax.
7598         Suggested by John Darrington <john@darrington.wattle.id.au>.
7599
7600 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7601
7602         doc: fix typo in README-release
7603         * top/README-release: Capitalize first word of a sentence.
7604
7605 2011-08-19  Jim Meyering  <meyering@redhat.com>
7606
7607         fts: do not exhaust memory when processing million-entry directories
7608         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7609         directory would require about 256*N bytes of memory.  Thus, it was
7610         easy to construct a directory too large to be processed by any of
7611         those tools.  With this change, fts' maximum memory utilization is
7612         now limited to around 30MB.
7613         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7614         (fts_read): When we've processed the final entry (i.e., when
7615         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7616         using the parent entry to read any remaining entries.  Dispatch
7617         depending on what fts_build returns:
7618         - NULL+stop, aka failure: stop
7619         - NULL otherwise: move up in the dir hierarchy
7620         - non-NULL: handle this new entry
7621         (fts_build): Declare and use new local, continue_readdir.
7622         Prepare to be called from fts_read, when the entries
7623         from a partially-read directory have just been exhausted.
7624         In that case, we'll skip the opendir and instead use the parent's
7625         fts_dirp and derive dir_fd from that.
7626         Finally, in the readdir loop, if we read max_entries entries,
7627         exit the loop ensuring *not* to call closedir.  This is required
7628         so that fts_dirp can be reused on a subsequent call.
7629         Prompted by Ben England's report of memory exhaustion in find
7630         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7631
7632         maint: fts: move decl of `dp' down into while loop; split a long line
7633         * lib/fts.c (fts_build): No semantic change.
7634
7635         fts: add/use new struct member, fts_dirp
7636         We are about to use this to manage any directory with
7637         too many entries to read all of them into memory at once.
7638         To do that, we'll need to save the DIR* pointer in each
7639         affected FTSENT struct.
7640         * lib/fts_.h: Include <dirent.h>.
7641         (struct FTSENT) [fts_dirp]: New member.
7642         * lib/fts.c (closedir_and_clear): Define.
7643         Use it in place of closedir so that we are sure to
7644         clear the new fts_dirp member when done with it.
7645         (fts_alloc): Initialize the new member.
7646         (fts_lfree): Free, if needed.
7647
7648         maint: fts: give __opendir2 a new parameter and rename
7649         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7650         than surreptitiously using sole caller's "dir_fd".
7651         (fts_opendir): Rename from __opendir2.
7652
7653         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7654         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7655
7656         maint: fts.c: correct off-by-one indentation
7657         * lib/fts.c (fts_build): Correct indentation, change style
7658         of a couple of block comments, and bracing style.
7659
7660         maint: fts.c: move __opendir2 #define "up" out of function body
7661         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7662
7663         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7664         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7665         out for a long time and besides was useful only on BSD systems.
7666
7667 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         regex: port to Stratus OpenVOS
7670         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7671         define to empty, rather than attempting nonportable optimizations.
7672         Problem reported by Paul Green in:
7673         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7674         and fix suggested by Eric Blake in:
7675         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7676
7677 2011-08-17  Eric Blake  <eblake@redhat.com>
7678
7679         getcwd: fix test failures on mingw
7680         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7681         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7682         test if long directory cannot be created, and allow mingw errno.
7683
7684         getcwd-lgpl: fix m4 to match relaxed test for BSD
7685         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7686         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7687         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7688         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7689         signature problem.
7690
7691         getcwd: fix compilation on mingw64
7692         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7693         getcwd.
7694         Reported by Marc-André Lureau.
7695
7696         pipe2: silence compiler warning
7697         * lib/pipe2.c (pipe2): Hide label if it is not used.
7698
7699 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7700
7701         relocatable-prog: fix link error
7702         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7703         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7704         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7705         into modules/relocatable-lib without noticing that
7706         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7707         also needs to build relocatable.c.
7708
7709 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7710
7711         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7713         shell code: it contained a 'break' that was not in a loop.
7714         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7715         via a shell-language loop; this may have been true in old Autoconf
7716         versions, but it's not true in Autoconf 2.68.  I found this bug
7717         when testing coreutils git on Solaris 8, whose shell complains
7718         about the syntax error.
7719
7720 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7721
7722         * lib/base64.c: Fix comment to reference RFC 4648.
7723         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7724         <gvtulder@gmail.com>.
7725
7726 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7727
7728         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7729
7730         po/Makefile.in.in: fix make -q problem
7731         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7732         rule, since there's no file named 'check-macro-version' and its
7733         use as a file breaks make -q.
7734         (all): Don't depend on check-macro-version.
7735         (CHECK_MACRO_VERSION): New macro.
7736         (stamp-po): Use it.
7737
7738         configmake: fix make -q problem
7739         * modules/configmake (configmake.h): Update configmake.h's time stamp
7740         even if the file does not change.  Otherwise, 'make -q' fails.
7741         Problem reported by Simon Josefsson in
7742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7743
7744 2011-08-11  Jim Meyering  <meyering@redhat.com>
7745
7746         git-version-gen: correct the advice in a comment
7747         * build-aux/git-version-gen: Correct comment.
7748         Don't recommend to list .tarball-version in .gitignore.
7749
7750 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7751
7752         base64: fix off-by-one buffer size bug
7753         Problem and (trivial) fix reported by Gijs van Tulder in
7754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7755         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7756         * tests/test-base64.c (main): Catch the bug.
7757
7758 2011-08-10  Eric Blake  <eblake@redhat.com>
7759
7760         closein: correct comments
7761         * lib/closein.c (close_stdin): Improve comments.
7762
7763 2011-08-09  Bruno Haible  <bruno@clisp.org>
7764
7765         More tests for 'fseeko'.
7766         * tests/test-fseeko3.c: New file, from Eric Blake.
7767         * tests/test-fseeko3.sh: New file.
7768         * modules/fseeko-tests (Files): Add them.
7769         (TESTS): Add test-fseeko3.sh.
7770         (check_PROGRAMS): Add test-fseeko3.
7771
7772 2011-08-09  Eric Blake  <eblake@redhat.com>
7773
7774         fseeko: remove unneeded hack
7775         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7776
7777         fseeko: fix bug on glibc
7778         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7779         Reported by John W. Eaton.
7780
7781 2011-08-08  Bruno Haible  <bruno@clisp.org>
7782
7783         unictype/base: Fix interoperability with preinstalled libunistring.
7784         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7785         Reported by Simon Josefsson.
7786
7787 2011-08-08  Bruno Haible  <bruno@clisp.org>
7788
7789         iswblank: Detect declaration correctly.
7790         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7791         AC_CHECK_DECLS invocation.
7792
7793 2011-08-08  Bruno Haible  <bruno@clisp.org>
7794
7795         tcgetsid: Detect declaration correctly.
7796         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7797         AC_CHECK_DECLS invocation.
7798         Reported by Simon Josefsson.
7799
7800 2011-08-08  Eric Blake  <eblake@redhat.com>
7801
7802         largefile: fix typo that regressed large file support
7803         * modules/largefile (configure.ac-early): Fix section name.
7804
7805 2011-08-06  Karl Berry  <karl@gnu.org>
7806
7807         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7808         a separate module.
7809
7810 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7811
7812         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7813         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7814         get prototype for free.
7815
7816 2011-08-04  Bruno Haible  <bruno@clisp.org>
7817
7818         Tests for module 'pathmax'.
7819         * modules/pathmax-tests: New file.
7820         * tests/test-pathmax.c: New file.
7821
7822         canonicalize-lgpl: Support larger filenames on the Hurd.
7823         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7824         Reported by Paul Eggert.
7825
7826         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7827         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7828         * lib/chdir-long.h: Include pathmax.h.
7829         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7830         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7831         (PATH_MAX): Remove code that is done by pathmax.h.
7832         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7833         * lib/tmpfile.c: Add a comment.
7834         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7835         * modules/chdir-long (Depends-on): Add pathmax.
7836         * modules/getcwd (Depends-on): Add pathmax.
7837         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7838         is not defined.
7839         * doc/posix-headers/limits.texi: Mention the pathmax module.
7840         * NEWS: Mention the change.
7841
7842 2011-08-02  Bruno Haible  <bruno@clisp.org>
7843
7844         pthread_sigmask: Actually use results of gl_THREADLIB.
7845         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7846         gl_THREADLIB, not gl_[]THREADLIB.
7847         Reported by Eric Blake.
7848
7849 2011-08-02  Jim Meyering  <meyering@redhat.com>
7850
7851         maint.mk: relax the default _gl_TS_function_match regexp
7852         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7853         space between function name and "(" in an "extern" declaration.
7854         That would fail to match a decl with no space there: extern void foo();
7855
7856 2011-07-31  Iain Nicol  <iain@thenicols.net>
7857
7858         git-version-gen: document that EXTRA_DIST must include .version
7859         * build-aux/git-version-gen: In the how-to-use comment, document
7860         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7861         will fail when run from an unpacked distribution tarball.
7862
7863 2011-08-01  Bruno Haible  <bruno@clisp.org>
7864
7865         wctype-h: Fix last change.
7866         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7867         REPLACE_TOWLOWER to 0.
7868         Reported by Sam Steingold <sds@gnu.org>.
7869
7870 2011-07-31  Bruno Haible  <bruno@clisp.org>
7871
7872         frexpl: Update autoconf test.
7873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7874         according to changes of 2011-06-20.
7875
7876 2011-07-31  Bruno Haible  <bruno@clisp.org>
7877
7878         sys_utsname: Add support for Minix.
7879         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7880         <sys/utsname.h>.
7881         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7882         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7883
7884 2011-07-31  Bruno Haible  <bruno@clisp.org>
7885
7886         strings: Add support for Minix.
7887         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7888         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7889         * doc/posix-headers/strings.texi: Document the Minix problem.
7890
7891 2011-07-31  Bruno Haible  <bruno@clisp.org>
7892
7893         wctype-h: Add support for Minix.
7894         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7895         REPLACE_TOWLOWER.
7896         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7897         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7898         REPLACE_ISWCNTRL.
7899
7900 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7901
7902         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7903         This is a performance improvement for 64-bit hosts: it causes the
7904         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7905
7906 2011-07-31  Bruno Haible  <bruno@clisp.org>
7907
7908         stdioext: Add support for Minix.
7909         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7910         * lib/fpurge.c (fpurge): Likewise.
7911         * lib/freadahead.c (freadahead): Likewise.
7912         * lib/freadable.c (freadable): Likewise.
7913         * lib/freading.c (freading): Likewise.
7914         * lib/freadptr.c (freadptr): Likewise.
7915         * lib/freadseek.c (freadptrinc): Likewise.
7916         * lib/fseeko.c (rpl_fseeko): Likewise.
7917         * lib/fseterr.c (fseterr): Likewise.
7918         * lib/fwritable.c (fwritable): Likewise.
7919         * lib/fwriting.c (fwriting): Likewise.
7920         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7921         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7922
7923 2011-07-31  Bruno Haible  <bruno@clisp.org>
7924
7925         errno: Port to Minix.
7926         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7927         ECONNABORTED are defined.
7928         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7929         GNULIB_defined_ECONNABORTED): New macros.
7930         * lib/strerror-override.h (strerror_override): Test also
7931         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7932         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7933         ECONNABORTED.
7934         * doc/posix-headers/errno.texi: Mention the Minix problem.
7935
7936 2011-07-31  Bruno Haible  <bruno@clisp.org>
7937
7938         Work around declaration collisions on Minix.
7939         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7940         defined, set REPLACE_MBSINIT.
7941         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7942         defined, set REPLACE_MBRTOWC.
7943         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7944         set REPLACE_MBRLEN.
7945         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7946         defined, set REPLACE_MBSRTOWCS.
7947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7948         defined, set REPLACE_WCRTOMB.
7949         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7950         defined, set REPLACE_WCSRTOMBS.
7951
7952 2011-07-31  Bruno Haible  <bruno@clisp.org>
7953
7954         Add support for Minix with ACK compiler.
7955         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7956         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7957         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7958
7959 2011-07-31  Bruno Haible  <bruno@clisp.org>
7960
7961         Documentation about Minix.
7962         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7963         * doc/glibc-headers/*.texi: Likewise.
7964         * doc/posix-functions/*.texi: Likewise.
7965         * doc/glibc-functions/*.texi: Likewise.
7966
7967 2011-07-31  Bruno Haible  <bruno@clisp.org>
7968
7969         snippet/warn-on-use: Fix indentation.
7970         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7971
7972 2011-07-25  Jim Meyering  <meyering@redhat.com>
7973
7974         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7975         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7976         commands.
7977
7978 2011-07-27  Jim Meyering  <meyering@redhat.com>
7979
7980         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7981         * top/maint.mk (gl_extract_significant_defines_): Now that
7982         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7983         gnulib/lib/signal.in.h, and now that we recommend to
7984         define-if-undefined those two symbols in application code,
7985         we must filter them out of the "significant" list.
7986         This avoids a "make syntax-check" failure in coreutils.
7987
7988 2011-07-26  Eric Blake  <eblake@redhat.com>
7989
7990         warnings: add comments about previous patch
7991         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7992         * m4/include_next.m4: Likewise.
7993         * m4/warn-on-use.m4: Likewise.
7994         * m4/warnings.m4: Likewise, and simplify use.
7995         Suggested by Stefano Lattarini.
7996
7997         include-next, warnings: support older autoconf
7998         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7999         AS_VAR_PUSHDEF in a way that works with older autoconf.
8000         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
8001         Reported by Daniel P. Berrange.
8002
8003 2011-07-25  Bruno Haible  <bruno@clisp.org>
8004
8005         fseek, ftell: Fix doc.
8006         * doc/posix-functions/fseek.texi: Reword statement about
8007         AC_SYS_LARGEFILE.
8008         * doc/posix-functions/ftell.texi: Likewise.
8009
8010 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8011             Bruno Haible  <bruno@clisp.org>
8012
8013         Add dependencies to the 'largefile' module.
8014         * modules/fopen (Depends-on): Add 'largefile'.
8015         * modules/freopen (Depends-on): Likewise.
8016         * modules/fseeko (Depends-on): Likewise.
8017         * modules/ftello (Depends-on): Likewise.
8018         * modules/glob (Depends-on): Likewise.
8019         * modules/lseek (Depends-on): Likewise.
8020         * modules/lstat (Depends-on): Likewise.
8021         * modules/mkostemp (Depends-on): Likewise.
8022         * modules/mkostemps (Depends-on): Likewise.
8023         * modules/mkstemp (Depends-on): Likewise.
8024         * modules/mkstemps (Depends-on): Likewise.
8025         * modules/open (Depends-on): Likewise.
8026         * modules/openat (Depends-on): Likewise.
8027         * modules/pread (Depends-on): Likewise.
8028         * modules/pwrite (Depends-on): Likewise.
8029         * modules/scandir (Depends-on): Likewise.
8030         * modules/stat (Depends-on): Likewise.
8031         * modules/tmpfile (Depends-on): Likewise.
8032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8033         since the containing module now depends on the largefile module.
8034         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8035         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8036         off_t is fixed by gnulib.
8037         * doc/posix-functions/freopen.texi: Likewise.
8038         * doc/posix-functions/fseeko.texi: Likewise.
8039         * doc/posix-functions/fstatat.texi: Likewise.
8040         * doc/posix-functions/ftello.texi: Likewise.
8041         * doc/posix-functions/glob.texi: Likewise.
8042         * doc/posix-functions/lseek.texi: Likewise.
8043         * doc/posix-functions/lstat.texi: Likewise.
8044         * doc/posix-functions/mkstemp.texi: Likewise.
8045         * doc/posix-functions/open.texi: Likewise.
8046         * doc/posix-functions/openat.texi: Likewise.
8047         * doc/posix-functions/pread.texi: Likewise.
8048         * doc/posix-functions/pwrite.texi: Likewise.
8049         * doc/posix-functions/scandir.texi: Likewise.
8050         * doc/posix-functions/stat.texi: Likewise.
8051         * doc/posix-functions/tmpfile.texi: Likewise.
8052         * doc/glibc-functions/mkostemp.texi: Likewise.
8053         * doc/glibc-functions/mkostemps.texi: Likewise.
8054         * doc/glibc-functions/mkstemps.texi: Likewise.
8055
8056 2011-07-25  Bruno Haible  <bruno@clisp.org>
8057
8058         fcntl: Move AC_LIBOBJ invocation to module description.
8059         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8060         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8061
8062         fcntl: Remove call-in from fchdir.m4.
8063         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8065
8066         dup3: Remove potential call-in from fchdir.m4.
8067         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8069
8070         dup2: Move AC_LIBOBJ invocation to module description.
8071         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8072         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8073         Don't invoke AC_LIBOBJ.
8074         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8075
8076         dup2: Remove call-in from fchdir.m4.
8077         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8079
8080         fclose: Move AC_LIBOBJ invocation to module description.
8081         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8082         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8083         to 1.
8084         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8085
8086         fclose: Remove call-in from close.m4.
8087         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8088         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8089
8090         close: Move AC_LIBOBJ invocation to module description.
8091         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8092         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8093         1.
8094         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8095
8096         close: Remove call-in from fchdir.m4.
8097         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8099
8100         open: Move AC_LIBOBJ invocation to module description.
8101         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8102         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8103         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8104
8105         open: Remove call-in from fchdir.m4.
8106         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8108
8109         fchdir: Start to remove gl_REPLACE_* idiom.
8110         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8111         (gl_FUNC_FCHDIR): Invoke it.
8112
8113 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8114
8115         * lib/ftell.c (ftell): Comment out cast.
8116
8117         close: use gl_REPLACE_FCLOSE only if defined
8118         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8119         is defined.  The close module doesn't depend on the fclose module
8120         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8122         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8123
8124 2011-07-24  Jim Meyering  <meyering@redhat.com>
8125
8126         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8127         * tests/test-select.h (test_function): Declare as "static".
8128
8129 2011-07-24  Bruno Haible  <bruno@clisp.org>
8130
8131         doc: Mention the effects of AC_SYS_LARGEFILE.
8132         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8133         on this function.
8134         * doc/posix-functions/aio_error.texi: Likewise.
8135         * doc/posix-functions/aio_fsync.texi: Likewise.
8136         * doc/posix-functions/aio_read.texi: Likewise.
8137         * doc/posix-functions/aio_return.texi: Likewise.
8138         * doc/posix-functions/aio_suspend.texi: Likewise.
8139         * doc/posix-functions/aio_write.texi: Likewise.
8140         * doc/posix-functions/fgetpos.texi: Likewise.
8141         * doc/posix-functions/fopen.texi: Likewise.
8142         * doc/posix-functions/freopen.texi: Likewise.
8143         * doc/posix-functions/fsetpos.texi: Likewise.
8144         * doc/posix-functions/fstatvfs.texi: Likewise.
8145         * doc/posix-functions/ftruncate.texi: Likewise.
8146         * doc/posix-functions/ftw.texi: Likewise.
8147         * doc/posix-functions/getrlimit.texi: Likewise.
8148         * doc/posix-functions/glob.texi: Likewise.
8149         * doc/posix-functions/lio_listio.texi: Likewise.
8150         * doc/posix-functions/lockf.texi: Likewise.
8151         * doc/posix-functions/mkstemp.texi: Likewise.
8152         * doc/posix-functions/mmap.texi: Likewise.
8153         * doc/posix-functions/nftw.texi: Likewise.
8154         * doc/posix-functions/openat.texi: Likewise.
8155         * doc/posix-functions/opendir.texi: Likewise.
8156         * doc/posix-functions/posix_fadvise.texi: Likewise.
8157         * doc/posix-functions/posix_fallocate.texi: Likewise.
8158         * doc/posix-functions/pread.texi: Likewise.
8159         * doc/posix-functions/pwrite.texi: Likewise.
8160         * doc/posix-functions/readdir.texi: Likewise.
8161         * doc/posix-functions/readdir_r.texi: Likewise.
8162         * doc/posix-functions/rewinddir.texi: Likewise.
8163         * doc/posix-functions/scandir.texi: Likewise.
8164         * doc/posix-functions/seekdir.texi: Likewise.
8165         * doc/posix-functions/setrlimit.texi: Likewise.
8166         * doc/posix-functions/statvfs.texi: Likewise.
8167         * doc/posix-functions/telldir.texi: Likewise.
8168         * doc/posix-functions/tmpfile.texi: Likewise.
8169         * doc/posix-functions/truncate.texi: Likewise.
8170         * doc/glibc-functions/fallocate.texi: Likewise.
8171         * doc/glibc-functions/fstatfs.texi: Likewise.
8172         * doc/glibc-functions/fts_children.texi: Likewise.
8173         * doc/glibc-functions/fts_read.texi: Likewise.
8174         * doc/glibc-functions/getdirentries.texi: Likewise.
8175         * doc/glibc-functions/mkostemp.texi: Likewise.
8176         * doc/glibc-functions/mkostemps.texi: Likewise.
8177         * doc/glibc-functions/mkstemps.texi: Likewise.
8178         * doc/glibc-functions/preadv.texi: Likewise.
8179         * doc/glibc-functions/pwritev.texi: Likewise.
8180         * doc/glibc-functions/sendfile.texi: Likewise.
8181         * doc/glibc-functions/statfs.texi: Likewise.
8182
8183 2011-07-24  Bruno Haible  <bruno@clisp.org>
8184
8185         doc: Fix typo.
8186         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8187
8188 2011-07-24  Bruno Haible  <bruno@clisp.org>
8189
8190         doc: Mention fsusage.
8191         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8192
8193 2011-07-24  Bruno Haible  <bruno@clisp.org>
8194
8195         doc: Mention new glibc headers and functions.
8196         * doc/glibc-headers/gshadow.texi: New file.
8197         * doc/glibc-functions/endsgent.texi: New file.
8198         * doc/glibc-functions/fgetsgent.texi: New file.
8199         * doc/glibc-functions/fgetsgent_r.texi: New file.
8200         * doc/glibc-functions/getsgent.texi: New file.
8201         * doc/glibc-functions/getsgent_r.texi: New file.
8202         * doc/glibc-functions/getsgnam.texi: New file.
8203         * doc/glibc-functions/getsgnam_r.texi: New file.
8204         * doc/glibc-functions/putsgent.texi: New file.
8205         * doc/glibc-functions/setsgent.texi: New file.
8206         * doc/glibc-functions/sgetsgent.texi: New file.
8207         * doc/glibc-functions/sgetsgent_r.texi: New file.
8208         * doc/glibc-functions/malloc_info.texi: New file.
8209         * doc/glibc-functions/preadv.texi: New file.
8210         * doc/glibc-functions/pwritev.texi: New file.
8211         * doc/glibc-functions/register_printf_modifier.texi: New file.
8212         * doc/glibc-functions/register_printf_specifier.texi: New file.
8213         * doc/glibc-functions/register_printf_type.texi: New file.
8214         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8215         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8216         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8217         * doc/glibc-functions/pthread_getname_np.texi: New file.
8218         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8219         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8220         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8221         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8222         * doc/glibc-functions/pthread_setname_np.texi: New file.
8223         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8224         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8225         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8226         * doc/glibc-functions/qsort_r.texi: New file.
8227         * doc/glibc-functions/quick_exit.texi: New file.
8228         * doc/glibc-functions/syncfs.texi: New file.
8229         * doc/gnulib.texi: Include them.
8230         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8231         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8232         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8233         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8234         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8235         * doc/glibc-functions/execvpe.texi: Likewise.
8236
8237 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8238
8239         ftell: don't include <unistd.h>
8240         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8241         guaranteed to define off_t, and the ftell module depends on the
8242         stdio module.
8243
8244         ftell: do not assume wraparound signed arithmetic
8245         * lib/ftell.c: Include <limits.h>.
8246         (ftell): Don't assume wraparound signed arithmetic.
8247
8248 2011-07-24  Bruno Haible  <bruno@clisp.org>
8249
8250         close: No longer depend on module 'fclose'.
8251         * modules/close (Depends-on): Remove fclose.
8252         * NEWS: Mention the change.
8253         Suggested by Sam Steingold <sds@gnu.org>.
8254
8255 2011-07-24  Bruno Haible  <bruno@clisp.org>
8256
8257         fsusage: Enable large volume support on AIX >= 5.2.
8258         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8259         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8260         instead of STAT_STATVFS.
8261         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8262
8263         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8265         f_blocks field only on MacOS X.
8266
8267         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8269         * modules/fsusage (Depends-on): Add largefile.
8270
8271 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8272
8273         * README: Modernize discussion of signed integers.
8274         Assuming overflow wraparound is no longer safe.
8275         Mention ones' complement and signed magnitude.
8276
8277 2011-07-22  Bruno Haible  <bruno@clisp.org>
8278
8279         select tests, pselect tests: Refactor.
8280         * tests/test-select.h: New file, extracted from tests/test-select.c.
8281         (select_fn): New type.
8282         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8283         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8284         test_pipe): Add my_select argument.
8285         (test_function): Renamed from main. Add my_select argument.
8286         * tests/test-select.c: Move most code to tests/test-select.h. Include
8287         test-select.h.
8288         * modules/select-tests (Files): Add tests/test-select.h.
8289         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
8290         (my_select, main): New functions.
8291         * modules/pselect-tests (Files): Add tests/test-select.h,
8292         tests/macros.h, tests/signature.h.
8293         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
8294         (configure.ac): Check for <sys/wait.h>.
8295
8296 2011-07-22  Bruno Haible  <bruno@clisp.org>
8297
8298         sys_select tests: Check the signature of FD_*.
8299         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8300         signature tests from here...
8301         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8302         here.
8303         * modules/sys_select-tests (Files): Add tests/signature.h.
8304
8305 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8306
8307         largefile: new module, replacing large-inode
8308         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8309         * MODULES.html.sh: Add largefile, remove large-inode.
8310         * modules/largefile, m4/largefile.m4: New files.
8311         * modules/large-inode, m4/large-inode.m4: Remove.
8312
8313         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8315         implementations that use only 32 bits to count blocks.
8316         On typical hosts with 1024-byte blocks, this fails with file
8317         systems as small as 4 TiB.  Problem reported by Herb Wartens
8318         <http://debbugs.gnu.org/9140> and this should also fix a similar
8319         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8320
8321         large-inode: New module
8322         * MODULES.html.sh: Add it.
8323         * modules/large-inode, m4/large-inode.m4: New files.
8324
8325         extensions: Enable extensions on MacOS X 10.5 and later.
8326         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8327
8328 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8329
8330         file-has-acl: use acl_extended_file_nofollow if available
8331         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8332         (acl_extended_file): New macro.
8333         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8334         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8335
8336 2011-07-21  Bruno Haible  <bruno@clisp.org>
8337
8338         Declare system functions in a way that works with C++.
8339         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8340         declare fdopendir as extern "C".
8341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8342         declare frexpl as extern "C".
8343         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8344         declare gai_strerror as extern "C".
8345         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8346         programs, declare gai_strerror as extern "C".
8347         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8348         declare getlogin_r as extern "C".
8349         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8350         as extern "C".
8351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8352         declare ldexpl as extern "C".
8353         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8354         as extern "C".
8355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8356         program, declare getmntinfo as extern "C".
8357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8358         stpncpy as extern "C".
8359         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8360         program, declare __xpg_strerror_r as extern "C".
8361         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8362         strndup as extern "C".
8363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8364         declare memset and bzero as extern "C".
8365         Reported by Sam Steingold <sds@gnu.org>.
8366
8367 2011-07-12  Jim Meyering  <meyering@redhat.com>
8368
8369         maint.mk: prohibit inclusion of "verify.h" without use
8370         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8371
8372 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8373
8374         timer-time: A new module to check for timer_settime()
8375         * m4/timer_time.m4: Check for the posix function.
8376         * modules/timer-time: Add the new module.
8377         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8378         Mention it.
8379
8380 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8381             Bruno Haible  <bruno@clisp.org>
8382
8383         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8384         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8385         not defined, assume POSIX threads and look for pthread_sigmask in
8386         $LIBS, without changing $CPPFLAGS.
8387
8388 2011-07-19  Bruno Haible  <bruno@clisp.org>
8389
8390         strstr: Update cross-compilation guess.
8391         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8392         CPUs, guess no, in view of glibc
8393         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8394         Suggested by Eric Blake. Reported by Reuben Thomas.
8395
8396 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8397
8398         getopt-gnu: suppress core dumps from detection code
8399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8400         to suppress core dumps that may well occur on glibc systems.
8401         * modules/getopt-gnu: Depend on nocrash.
8402
8403 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8404
8405         pthread_sigmask: ensure usleep is declared
8406         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8407         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8408
8409 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8410
8411         doc: Document NonStop portability issues.
8412         * doc/posix-functions/sigaction.texi (sigaction):
8413         * doc/posix-headers/signal.texi (signal.h):
8414         Document NonStop.  See Joachim Schmitz in
8415         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8416
8417 2011-07-15  Bruno Haible  <bruno@clisp.org>
8418
8419         ffsl, ffsll: Avoid unportable behaviour.
8420         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8421
8422 2011-07-15  Bruno Haible  <bruno@clisp.org>
8423
8424         ffs: More tests.
8425         * tests/test-ffs.c (NBITS): New macro.
8426         (main): Add more tests.
8427         * tests/test-ffsl.c (NBITS): New macro.
8428         (main): Add more tests.
8429         * tests/test-ffsll.c (NBITS): New macro.
8430         (main): Add more tests.
8431
8432 2011-07-15  Eric Blake  <eblake@redhat.com>
8433
8434         ffsl, ffsll: new modules
8435         * modules/ffsl: New file.
8436         * modules/ffsll: Likewise.
8437         * m4/ffsl.m4: Likewise.
8438         * m4/ffsll.m4: Likewise.
8439         * lib/ffsl.c: Likewise.
8440         * lib/ffsl.h: Likewise.
8441         * lib/ffsll.c: Likewise.
8442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8443         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8444         * modules/string (Makefile.am): Substitute witnesses.
8445         * lib/strings.in.h (ffsl, ffsll): Declare.
8446         * modules/ffsl-tests: New test file.
8447         * modules/ffsll-tests: Likewise.
8448         * tests/test-ffsl.c: Likewise.
8449         * tests/test-ffsll.c: Likewise.
8450         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8451         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8452         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8453
8454         ffs: fix m4 prerequisite
8455         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8456
8457         ffs: avoid undefined behavior
8458         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8459         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8460         Reported by Bruno Haible.
8461
8462 2011-07-12  Bruno Haible  <bruno@clisp.org>
8463
8464         pthread_sigmask: Rely on module 'threadlib'.
8465         * modules/pthread_sigmask (Depends-on): Add threadlib.
8466         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8467         is defined.
8468
8469 2011-07-12  Bruno Haible  <bruno@clisp.org>
8470
8471         regex: Depend on module 'strcase'.
8472         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8473
8474 2011-07-12  Jim Meyering  <meyering@redhat.com>
8475
8476         warn-on-use: fix typo in file name
8477         * modules/snippet/warn-on-use (Files): Correct file name:
8478         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8479
8480 2011-07-12  Bruno Haible  <bruno@clisp.org>
8481
8482         strings: Document module.
8483         * doc/posix-headers/strings.texi: Mention module 'strings'.
8484
8485 2011-07-12  Bruno Haible  <bruno@clisp.org>
8486
8487         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8488         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8489         (Files, Makefile.am): Update.
8490         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8491         * modules/stdlib (Depends-on): Update.
8492
8493 2011-07-12  Bruno Haible  <bruno@clisp.org>
8494
8495         * NEWS: Mention the changes.
8496
8497         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8498         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8499         (Files, Makefile.am): Update.
8500         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8501         * modules/arpa_inet (Depends-on): Update.
8502         * modules/ctype (Depends-on): Update.
8503         * modules/dirent (Depends-on): Update.
8504         * modules/fcntl-h (Depends-on): Update.
8505         * modules/glob (Depends-on): Update.
8506         * modules/iconv-h (Depends-on): Update.
8507         * modules/inttypes-incomplete (Depends-on): Update.
8508         * modules/langinfo (Depends-on): Update.
8509         * modules/locale (Depends-on): Update.
8510         * modules/math (Depends-on): Update.
8511         * modules/netdb (Depends-on): Update.
8512         * modules/poll-h (Depends-on): Update.
8513         * modules/pty (Depends-on): Update.
8514         * modules/search (Depends-on): Update.
8515         * modules/signal (Depends-on): Update.
8516         * modules/spawn (Depends-on): Update.
8517         * modules/stdio (Depends-on): Update.
8518         * modules/stdlib (Depends-on): Update.
8519         * modules/string (Depends-on): Update.
8520         * modules/strings (Depends-on): Update.
8521         * modules/sys_file (Depends-on): Update.
8522         * modules/sys_ioctl (Depends-on): Update.
8523         * modules/sys_select (Depends-on): Update.
8524         * modules/sys_socket (Depends-on): Update.
8525         * modules/sys_stat (Depends-on): Update.
8526         * modules/sys_time (Depends-on): Update.
8527         * modules/sys_times (Depends-on): Update.
8528         * modules/sys_utsname (Depends-on): Update.
8529         * modules/sys_wait (Depends-on): Update.
8530         * modules/termios (Depends-on): Update.
8531         * modules/time (Depends-on): Update.
8532         * modules/unistd (Depends-on): Update.
8533         * modules/wchar (Depends-on): Update.
8534         * modules/wctype-h (Depends-on): Update.
8535         * MODULES.html.sh (Support for building libraries and executables):
8536         Update.
8537
8538         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8539         * modules/snippet/unused-parameter: Renamed from
8540         modules/unused-parameter.
8541         (Files, Makefile.am): Update.
8542         * build-aux/snippet/unused-parameter.h: Renamed from
8543         build-aux/unused-parameter.h.
8544         * modules/selinux-h (Depends-on): Update.
8545         * modules/unistr/base (Depends-on): Update.
8546         * MODULES.html.sh (Core language properties): Update.
8547
8548         Rename module 'link-warning' to 'snippet/link-warning'.
8549         * modules/snippet/link-warning: Renamed from modules/link-warning.
8550         (Files, Makefile.am): Update.
8551         * build-aux/snippet/link-warning.h: Renamed from
8552         build-aux/link-warning.h.
8553         * MODULES.html.sh (Support for building libraries and executables):
8554         Update.
8555
8556         Rename module 'c++defs' to 'snippet/c++defs'.
8557         * modules/snippet/c++defs: Renamed from modules/c++defs.
8558         (Files, Makefile.am): Update.
8559         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8560         * modules/arpa_inet (Depends-on): Update.
8561         * modules/ctype (Depends-on): Update.
8562         * modules/dirent (Depends-on): Update.
8563         * modules/fcntl-h (Depends-on): Update.
8564         * modules/glob (Depends-on): Update.
8565         * modules/iconv-h (Depends-on): Update.
8566         * modules/langinfo (Depends-on): Update.
8567         * modules/locale (Depends-on): Update.
8568         * modules/math (Depends-on): Update.
8569         * modules/netdb (Depends-on): Update.
8570         * modules/poll-h (Depends-on): Update.
8571         * modules/pty (Depends-on): Update.
8572         * modules/search (Depends-on): Update.
8573         * modules/signal (Depends-on): Update.
8574         * modules/spawn (Depends-on): Update.
8575         * modules/stdio (Depends-on): Update.
8576         * modules/stdlib (Depends-on): Update.
8577         * modules/string (Depends-on): Update.
8578         * modules/strings (Depends-on): Update.
8579         * modules/sys_ioctl (Depends-on): Update.
8580         * modules/sys_select (Depends-on): Update.
8581         * modules/sys_socket (Depends-on): Update.
8582         * modules/sys_stat (Depends-on): Update.
8583         * modules/sys_time (Depends-on): Update.
8584         * modules/sys_wait (Depends-on): Update.
8585         * modules/termios (Depends-on): Update.
8586         * modules/time (Depends-on): Update.
8587         * modules/unistd (Depends-on): Update.
8588         * modules/wchar (Depends-on): Update.
8589         * modules/wctype-h (Depends-on): Update.
8590
8591         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8592         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8593         (Files, Makefile.am): Update.
8594         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8595         * modules/argv-iter (Depends-on): Update.
8596         * modules/arpa_inet (Depends-on): Update.
8597         * modules/dirent (Depends-on): Update.
8598         * modules/fcntl-h (Depends-on): Update.
8599         * modules/fnmatch (Depends-on): Update.
8600         * modules/getopt-posix (Depends-on): Update.
8601         * modules/glob (Depends-on): Update.
8602         * modules/iconv-h (Depends-on): Update.
8603         * modules/inttypes-incomplete (Depends-on): Update.
8604         * modules/locale (Depends-on): Update.
8605         * modules/math (Depends-on): Update.
8606         * modules/netdb (Depends-on): Update.
8607         * modules/search (Depends-on): Update.
8608         * modules/signal (Depends-on): Update.
8609         * modules/spawn (Depends-on): Update.
8610         * modules/stdio (Depends-on): Update.
8611         * modules/stdlib (Depends-on): Update.
8612         * modules/string (Depends-on): Update.
8613         * modules/strings (Depends-on): Update.
8614         * modules/sys_socket (Depends-on): Update.
8615         * modules/sys_stat (Depends-on): Update.
8616         * modules/sys_time (Depends-on): Update.
8617         * modules/sys_times (Depends-on): Update.
8618         * modules/sys_utsname (Depends-on): Update.
8619         * modules/time (Depends-on): Update.
8620         * modules/unistd (Depends-on): Update.
8621         * modules/wchar (Depends-on): Update.
8622         * MODULES.html.sh (Support for building libraries and executables):
8623         Update.
8624
8625 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         Improvements on _Noreturn and related modules.
8628
8629         modules/_Exit-tests: test _Noreturn too
8630         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8631         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8632         (main): Use them.
8633
8634         stdnoreturn, stdnoreturn-tests: remove modules
8635         They're not needed here and a bit premature for use elsewhere.  See
8636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8637         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8638         * tests/test-stdnoreturn.c: Remove files.
8639         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8640         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8641         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8642         and using noreturn.
8643         * modules/openat, modules/sigpipe-die, modules/xalloc:
8644         * modules/xmemdup0, modules/xstrtol:
8645         Remove dependency on stdnoreturn.
8646
8647         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8648         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8649         Reparenthesize to avoid GCC warning.
8650         Support Microsoft's syntax.
8651         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8652
8653         _Noreturn-tests: remove module
8654         * modules/_Noreturn-tests: Remove.
8655         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8656         * tests/test-_Noreturn.c: Remove.
8657         * tests/test-stdnoreturn.c: Merge from the old
8658         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8659
8660 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8661
8662         _Noreturn, stdnoreturn, and related modules.
8663
8664         * top/maint.mk: Adjust to new noreturn support.
8665         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8666         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8667
8668         xalloc: use stdnoreturn.h
8669         * lib/xalloc.h: Include <stdnoreturn.h>.
8670         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8671         * modules/xalloc (Depends-on): Add stdnoreturn.
8672
8673         xstrtol: use stdnoreturn.h
8674         * lib/xstrtol.h: Include <stdnoreturn.h>.
8675         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8676         * modules/xstrtol (Depends-on): Add stdnoreturn.
8677
8678         xmemdup0: use stdnoreturn.h
8679         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8680         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8681         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8682
8683         sigpipe-die: use stdnoreturn.h
8684         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8685         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8686         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8687
8688         openat: use stdnoreturn.h
8689         * lib/openat.h: Include <stdnoreturn.h>.
8690         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8691         * modules/openat (Depends-on): Add stdnoreturn.
8692
8693         * lib/openat-die.c (openat_save_fail): Modernize comment.
8694
8695         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8696
8697         * lib/glthread/thread.h: Modernize comment.
8698
8699         obstack: use _Noreturn
8700         * lib/obstack.c (__attribute__): Remove macro.
8701         (print_and_abort): Use _Noreturn.
8702
8703         c-stack: use _Noreturn
8704         * lib/c-stack.c (die, overflow_handler, segv_handler):
8705         Use _Noreturn rather than __attribute__((noreturn)).
8706
8707         argmatch-tests, exclude_tests: use _Noreturn
8708         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8709         Remove.
8710         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8711
8712         stdlib: use _Noreturn
8713         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8714         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8715         * modules/stdlib (Depends-on): Add _Noreturn.
8716         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8717
8718         stdnoreturn-tests: new module
8719         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8720
8721         stdnoreturn: new module
8722         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8723         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8724
8725         _Noreturn-tests: new module
8726         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8727
8728         _Noreturn: new module
8729         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8730         New section, mentioning it.
8731         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8732
8733         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8734
8735 2011-07-11  Eric Blake  <eblake@redhat.com>
8736
8737         ffs: new module
8738         * modules/ffs: New file.
8739         * m4/ffs.m4: Likewise.
8740         * lib/ffs.c: Likewise.
8741         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8742         * modules/strings (Makefile.am): Substitute witness.
8743         (Depends-on): Add c++defs.
8744         * lib/strings.in.h (ffs): Declare.
8745         * modules/ffs-tests: New test file.
8746         * tests/test-ffs.c: Test new module.
8747         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8748         * doc/posix-functions/ffs.texi (ffs): Likewise.
8749
8750         regex: avoid compiler warning
8751         * lib/regex.c (includes): Include <strings.h>, for use of
8752         strcasecmp in regcomp.c.
8753         Reported by Joachim Schmitz.
8754
8755 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8756
8757         stdint: respect system's intmax_t if INTMAX_MAX
8758         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8759         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8760         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8761         long but int64_t is long long, and where we will clash with the
8762         system intmax_t if we override it.  See
8763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8764         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8765         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8766         similarly for UINTMAX_C.
8767
8768 2011-07-08  Bruno Haible  <bruno@clisp.org>
8769
8770         pthread_sigmask tests: Avoid a compiler warning.
8771         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8772         non-zero.
8773
8774         sigprocmask tests: A better way to avoid a compiler warning.
8775         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8776         (main): Complain if system() returns non-zero.
8777         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8778
8779 2011-07-08  Bruno Haible  <bruno@clisp.org>
8780
8781         pthread_sigmask: Work around IRIX bug.
8782         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8783         bug.
8784         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8785         there may be unblocked pending signals.
8786         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8787
8788 2011-07-08  Bruno Haible  <bruno@clisp.org>
8789
8790         pthread_sigmask: Work around Cygwin bug.
8791         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8792         bug.
8793         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8794         the system's pthread_sigmask function.
8795         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8796
8797 2011-07-08  Bruno Haible  <bruno@clisp.org>
8798
8799         pthread_sigmask: Work around bug in single-threaded implementation.
8800         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8801         FreeBSD, HP-UX, Solaris bug.
8802         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8803         * lib/pthread_sigmask.c: Include <stddef.h>.
8804         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8805         the system's pthread_sigmask function.
8806         * modules/pthread_sigmask (configure.ac): Invoke
8807         gl_PREREQ_PTHREAD_SIGMASK.
8808         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8809         HP-UX, Solaris.
8810
8811 2011-07-08  Eric Blake  <eblake@redhat.com>
8812
8813         test-sigprocmask: avoid compiler warning
8814         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8815         * tests/test-sigprocmask.c (main): Use it to silence warning.
8816         Reported by Jim Meyering.
8817
8818         test-snprintf: avoid compiler warning
8819         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8820         * tests/test-vsnprintf.c (main): Likewise.
8821         Reported by Jim Meyering.
8822
8823 2011-07-08  Bruno Haible  <bruno@clisp.org>
8824
8825         Tests for module 'pthread_sigmask'.
8826         * modules/pthread_sigmask-tests: New file.
8827         * tests/test-pthread_sigmask1.c: New file, based on
8828         tests/test-sigprocmask.c.
8829         * tests/test-pthread_sigmask2.c: New file.
8830
8831 2011-07-08  Jim Meyering  <meyering@redhat.com>
8832
8833         test-getopt.h: avoid warning about an unused variable
8834         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8835
8836 2011-07-07  Jim Meyering  <meyering@redhat.com>
8837
8838         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8839         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8840         now that it no longer contains leading TABs.
8841         Remove unused "url=FIXME" statement.
8842
8843 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8844
8845         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8846         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8847         When gl_THREADLIB is not in use, assume that the POSIX sematics
8848         are desired.  This is better for Emacs, which uses POSIX semantics
8849         on GNUish and/or POSIXish platforms, and does not use threads at
8850         all otherwise.
8851
8852         pthread_sigmask: fix typo when testing for libraries
8853         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8854         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8855
8856 2011-07-08  Eric Blake  <eblake@redhat.com>
8857
8858         fts: introduce FTS_NOATIME
8859         * lib/fts_.h (FTS_NOATIME): New bit flag.
8860         (FTS_OPTIONMASK): Adjust.
8861         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8862         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8863
8864 2011-07-08  Bruno Haible  <bruno@clisp.org>
8865
8866         Tests for module 'thread'.
8867         * modules/thread-tests: New file.
8868         * tests/test-thread_self.c: New file.
8869         * tests/test-thread_create.cc: New file.
8870
8871 2011-07-08  Bruno Haible  <bruno@clisp.org>
8872
8873         thread: Avoid gcc warnings when using gl_thread_self().
8874         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8875         'void *'.
8876         (gl_thread_self_pointer): Update.
8877
8878 2011-07-07  Bruno Haible  <bruno@clisp.org>
8879
8880         signal-c++-tests: Check declaration of pthread_sigmask.
8881         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8882         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8883         $(LIB_PTHREAD_SIGMASK).
8884
8885 2011-07-07  Bruno Haible  <bruno@clisp.org>
8886
8887         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8888         * lib/signal.in.h (pthread_sigmask): Override if
8889         REPLACE_PTHREAD_SIGMASK is 1.
8890         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8891         REPLACE_PTHREAD_SIGMASK.
8892         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8893         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8894         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8895         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8896         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8897
8898 2011-07-07  Bruno Haible  <bruno@clisp.org>
8899
8900         pthread_sigmask: Ensure declaration in <signal.h>.
8901         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8902         include <pthread.h>.
8903         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8904         problem.
8905
8906 2011-07-07  Bruno Haible  <bruno@clisp.org>
8907
8908         pthread_sigmask: Document the module.
8909         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8910
8911 2011-07-07  Bruno Haible  <bruno@clisp.org>
8912
8913         pthread_sigmask: Follow gnulib conventions.
8914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8915         gl_PTHREAD_SIGMASK.
8916         * modules/pthread_sigmask (configure.ac): Update.
8917
8918 2011-07-07  Bruno Haible  <bruno@clisp.org>
8919
8920         pthread_sigmask: Make declaration C++ safe.
8921         * lib/signal.in.h: In two special conditions, just do an #include_next.
8922         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8923         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8924         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8925         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8926         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8927         not REPLACE_PTHREAD_MASK.
8928         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8929         not REPLACE_PTHREAD_MASK.
8930         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8931
8932 2011-07-07  Bruno Haible  <bruno@clisp.org>
8933
8934         pthread_sigmask: Fix return value.
8935         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8936         * lib/pthread_sigmask.c: New file.
8937         * modules/pthread_sigmask (Files): Add it.
8938         (configure.ac): Invoke AC_LIBOBJ.
8939
8940 2011-07-07  Eric Blake  <eblake@redhat.com>
8941
8942         getopt: more portable argv creation
8943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8944         const, use char arrays rather than strings.
8945         Suggested by Paul Eggert.
8946
8947 2011-07-07  Bruno Haible  <bruno@clisp.org>
8948
8949         Tests for module 'sigprocmask'.
8950         * modules/sigprocmask-tests: New file.
8951         * tests/test-sigprocmask.c: New file.
8952
8953 2011-07-07  Bruno Haible  <bruno@clisp.org>
8954
8955         float tests: Tweak.
8956         * tests/test-float.c (main): Tweak skip message.
8957
8958 2011-07-07  Eric Blake  <eblake@redhat.com>
8959
8960         getopt: avoid compiler warning during configure
8961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8962         assigning string literals to non-const pointer.
8963
8964         getopt-gnu: avoid crash in glibc getopt
8965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8966         * tests/test-getopt.h (test_getopt): Enhance test.
8967         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8968         * doc/posix-functions/getopt.texi (getopt): Document it.
8969         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8970         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8971         Likewise.
8972
8973 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8974
8975         getopt: handle W; without long options in getopt [BZ #12922]
8976         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8977         but no long options are defined, just return 'W'.
8978
8979 2011-07-07  Bruno Haible  <bruno@clisp.org>
8980
8981         Avoid literal tabs.
8982         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8983         variable containing a tab instead of a literal tab.
8984         Reported by Jim Meyering.
8985
8986 2011-07-07  Bruno Haible  <bruno@clisp.org>
8987
8988         Comments.
8989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8990
8991 2011-07-06  Bruno Haible  <bruno@clisp.org>
8992
8993         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8994         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8995         <winsock2.h>.
8996         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8997         lib/sys_socket.in.h.
8998         (close, gethostname): Hide declarations from <winsock2.h>.
8999         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9000         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
9001         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
9002         (select): Don't override if gnulib's <sys/select.h> was already
9003         included.
9004         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9005         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9006         setsockopt, shutdown, select): Tweak indentation.
9007
9008 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9009
9010         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9011         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9012         in an application that does not use the sys_select module.
9013
9014 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9015
9016         poll: do not return 0 on timeout=-1
9017         * lib/poll.c: Loop with yield if no events occured
9018
9019 2011-07-06  Eric Blake  <eblake@redhat.com>
9020
9021         pthread_sigmask: always replace when not using pthread
9022         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9023         replacement when using some threading other than pthread.  Fix
9024         logic bug.
9025
9026 2011-07-06  Bruno Haible  <bruno@clisp.org>
9027
9028         Comments.
9029         * m4/printf.m4: Update comments about mingw.
9030
9031 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9032
9033         sys_select: define sigset_t more portably
9034         * lib/sys_select.in.h: Always include <sys/types.h>, since
9035         we now need sigset_t and mingw defines it there.
9036         Include <signal.h> before split inclusion guard, to avoid
9037         mishaps on Solaris, whose <signal.h> eventually includes us.
9038         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9039         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9040         which come from ...
9041         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9042         gl_CHECK_TYPE_SIGSET_T.
9043         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9044         does the real work.
9045         * modules/sys_select (Depends-on): Add 'signal'.
9046
9047         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9048         Suggested by Bruno Haible.
9049
9050         pselect: Use pthread_sigmask, not sigprocmask.
9051         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9052         multithreaded apps better than sigprocmask does.
9053         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9054         sigprocmask directly.
9055
9056 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9057
9058         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9059         Don't #undef,  since we don't need any underlying pselect.
9060         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9061         (Depends-on): Add select.
9062         (Link): Add $(LIBSOCKET).
9063         These changes suggested by Bruno Haible.
9064
9065         pselect: document better
9066         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9067         * doc/posix-functions/pselect.texi (pselect): Document new module.
9068
9069         pthread_sigmask: new module
9070         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9071         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9072         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9073         This is done only as a macro; I don't know how well that'll
9074         work for C++.  Move <sys/types.h> include before the include_next,
9075         to avoid mishap on Solaris.
9076         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9077         * modules/signal (Makefile.am): Substitute the check's results.
9078         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9079
9080         test-pselect: new module
9081         * modules/pselect-tests, tests/test-pselect.c: New files.
9082         * tests/test-select.c, tests/test-sys_select-c++.cc:
9083         If TEST_PSELECT is defined, test pselect instead of testing select.
9084
9085         * tests/test-sys_select.c (sigset_t): Test for it, too.
9086         Suggested by Bruno Haible.
9087
9088 2011-07-05  Eric Blake  <eblake@redhat.com>
9089
9090         snprintf: guarantee %1$d, for libintl
9091         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9092         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9093         * doc/posix-functions/snprintf.texi (snprintf): Update.
9094         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9095         * tests/test-snprintf.c (main): Enhance test.
9096         * tests/test-vsnprintf.c (main): Likewise.
9097
9098 2011-07-05  Jim Meyering  <meyering@redhat.com>
9099
9100         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9101         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9102         per Bruno's request, to accommodate this idiom (no space after "#")
9103         even when the function is inside an #if block:
9104         char *
9105         gets (char *s)
9106         #undef gets
9107         {
9108           ...
9109         }
9110
9111 2011-07-04  Jim Meyering  <meyering@redhat.com>
9112
9113         maint: indent with spaces, not TABs, and add a rule to check this
9114         * tests/test-userspec.c: Indent with spaces, not TABs.
9115         * tests/test-argp.c: Likewise.
9116         * tests/test-c-stack2.sh: Likewise.
9117         * tests/test-parse-duration.sh: Likewise
9118         * m4/strtod.m4: Likewise.
9119         * m4/alloca.m4: Likewise.
9120         * m4/pselect.m4: Likewise.
9121         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9122
9123 2011-07-03  Jim Meyering  <meyering@redhat.com>
9124
9125         maint.mk: correct omissions in prohibit_argmatch_without_use check
9126         This rule would mistakenly report that argmatch.h is included without
9127         use even when both the argmatch and invalid_arg macro were used.
9128         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9129         of argmatch and invalid_arg.
9130
9131 2011-07-03  Bruno Haible  <bruno@clisp.org>
9132
9133         Comments about EINTR.
9134         * lib/safe-read.h: Explain the purpose of this module.
9135         * lib/safe-write.h: Likewise.
9136         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9137         module.
9138         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9139         module.
9140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9141
9142 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9143
9144         xnanosleep: Rewrite to use new dtotimespec module.
9145         It has the conversion code that used to be in xnanosleep.
9146         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9147         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9148         (TIME_T_MAX): Remove.
9149         (xnanosleep): Rewrite in terms of dtotimespec.
9150         * modules/xnanosleep (Depends-on): Add dtotimespec.
9151         Remove intprops, stdbool.
9152
9153         timespec-add, timespec-sub: new modules
9154         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9155         * lib/timespec-add.c, lib/timespec-sub.c:
9156         * modules/timespec-add, modules/timespec-sub: New files.
9157
9158         dtotimespec: new module
9159         * lib/timespec.h (dtotimespec): New decl.
9160         * lib/dtotimespec.c, modules/dtotimespec: New files.
9161
9162         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9163
9164         pselect: new module
9165         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9166         (pselect): New decls.
9167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9168         since the standard pselect decl uses 'restrict'.
9169         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9170         HAVE_PSELECT, REPLACE_PSELECT.
9171         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9172         HAVE_PSELECT, REPLACE_PSELECT.
9173         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9174
9175         sys_select: don't depend on sys_socket
9176         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9178         This fix works on GNU and GNU-like platforms, but has not been tested
9179         on native Windows.
9180         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9182         gl_HEADER_SYS_SOCKET.
9183         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9184         gl_PREREQ_SYS_H_WINSOCK2.
9185
9186 2011-06-29  Eric Blake  <eblake@redhat.com>
9187
9188         pipe2: fix C89 compile problem
9189         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9190         Reported by Bruno Haible.
9191
9192         pipe, pipe2: don't corrupt fd on error
9193         * lib/pipe.c (pipe): Leave fd unchanged on error.
9194         * lib/pipe2.c (pipe2): Likewise.
9195         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9196         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9197
9198 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9199
9200         mmap-anon: do not use regular expressions inadvertently
9201         * m4/mmap-anon.m4: Remove trailing period from strings sought
9202         in the output.
9203
9204 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9205
9206         nanosleep: fix integer overflow problem
9207         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9208         arithmetic wraps around on overflow.
9209
9210         nanosleep: simplify carrying
9211         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9212         first call to the underyling nanosleep, not for the last one.
9213         This doesn't fix any bugs, but it simplifies the computation of
9214         the remaining delay.  Found while auditing integer overflow issues.
9215
9216         dup2: remove test for existence of fcntl
9217         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9218         "#if HAVE_FCNTL", in the configure-time test program.
9219         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9220         and therefore speeds up "configure" a bit.  Found while
9221         adding the dup2 module to Emacs.
9222
9223 2011-06-24  Eric Blake  <eblake@redhat.com>
9224
9225         maint.mk: enhance useless header checks
9226         * top/maint.mk (_sc_header_without_use): Check both include
9227         styles.
9228         (sc_prohibit_assert_without_use)
9229         (sc_prohibit_close_stream_without_use)
9230         (sc_prohibit_getopt_without_use)
9231         (sc_prohibit_quotearg_without_use)
9232         (sc_prohibit_quote_without_use)
9233         (sc_prohibit_long_options_without_use)
9234         (sc_prohibit_inttostr_without_use)
9235         (sc_prohibit_ignore_value_without_use)
9236         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9237         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9238         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9239         (sc_prohibit_hash_pjw_without_use)
9240         (sc_prohibit_safe_read_without_use)
9241         (sc_prohibit_argmatch_without_use)
9242         (sc_prohibit_canonicalize_without_use)
9243         (sc_prohibit_root_dev_ino_without_use)
9244         (sc_prohibit_openat_without_use)
9245         (sc_prohibit_c_ctype_without_use)
9246         (sc_prohibit_signal_without_use)
9247         (sc_prohibit_stdio--_without_use)
9248         (sc_prohibit_stdio-safer_without_use)
9249         (sc_prohibit_strings_without_use)
9250         (sc_prohibit_intprops_without_use)
9251         (sc_prohibit_stddef_without_use)
9252         (sc_prohibit_xfreopen_without_use): Update clients.
9253
9254 2011-06-24  Jim Meyering  <meyering@redhat.com>
9255
9256         syntax-check: keep one maint.mk rule in sync with its header
9257         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9258         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9259         I prefer to avoid temporary files here, so use <(...), but that
9260         is not supported by /bin/sh, so...
9261         (SHELL): Define to /bin/bash.
9262
9263 2011-06-24  Eric Blake  <eblake@redhat.com>
9264
9265         maint.mk: update sc_prohibit_intprops_without_use
9266         * top/maint.mk (_intprops_names): Match recent changes.
9267
9268 2011-06-24  Bruno Haible  <bruno@clisp.org>
9269
9270         strerror-override: No-op tweak.
9271         * lib/strerror-override.h (strerror_override): Reorder conditions,
9272         for consistency with lib/strerror-override.c.
9273
9274 2011-06-23  Eric Blake  <eblake@redhat.com>
9275
9276         maint.mk: test further PATH_MAX issues
9277         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9278         (sc_prohibit_path_max_allocation): ...and also test alloca.
9279         Suggested by Jim Meyering.
9280
9281 2011-06-22  Eric Blake  <eblake@redhat.com>
9282
9283         maint.mk: add syntax-check to avoid char[PATH_MAX]
9284         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9285
9286         stat: be robust to PATH_MAX definition
9287         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9288         * modules/stat (Depends-on): Add verify.
9289
9290         link: work around IRIX bug
9291         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
9292         * lib/link.c (rpl_link): Work around it.
9293         * tests/test-link.h (test_link): Enhance test.
9294         * doc/posix-functions/link.texi (link): Document the bug.
9295
9296         getopt: silence clang warning
9297         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9298         dereference.
9299         Reported by Gustavo Martin Domato.
9300
9301 2011-06-22  Jim Meyering  <meyering@redhat.com>
9302
9303         bootstrap: do not insert a blank line into each .gitignore file
9304         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9305
9306 2011-06-21  Eric Blake  <eblake@redhat.com>
9307
9308         perror: test for output mismatch
9309         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9310         perror on IRIX.
9311
9312         strerror_r: fix OpenBSD behavior on out-of-range
9313         * lib/strerror_r.c (strerror_r): Always use maximal string.
9314         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9315
9316         strerror_r: fix OpenBSD behavior on 0
9317         * lib/strerror-override.c (strerror_override): Also override 0
9318         when needed.
9319         * lib/strerror-override.h (strerror_override): Likewise.
9320         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9321         earlier.
9322         * lib/strerror_r.c (strerror_r): Likewise.
9323         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9324         behavior...
9325         (gl_FUNC_STRERROR_0): ...into new macro.
9326         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9327         is overridden.
9328         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9329         * modules/strerror-override (Files): Add strerror.m4.
9330         (configure.ac): Also provide override for 0 when needed.
9331         * doc/posix-functions/strerror.texi (strerror): Document this.
9332         * doc/posix-functions/perror.texi (perror): Likewise.
9333
9334         perror: adjust array size
9335         * modules/perror (Depends-on): Add strerror-override.
9336         * lib/perror.c (perror): Use it to avoid magic number.
9337
9338         strerror-override: reduce size
9339         * lib/strerror-override.c (strerror_override): Use fewer lines.
9340
9341 2011-06-20  Bruno Haible  <bruno@clisp.org>
9342
9343         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9344         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9345
9346 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9347
9348         alloca: port to compilers that can optimize like GCC 4.6.0
9349         * lib/alloca.c (find_stack_direction): New signature, taken from
9350         Autoconf git.  This works with GCC 4.6.0.  This code should never
9351         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9352         be used with other compilers that optimize as well as GCC 4.6.0 does.
9353         (alloca): Adjust to new signature.
9354         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9355         New macro, which patches Autoconf in a similar way.
9356
9357         c-stack: stop worrying about stack direction
9358         * lib/c-stack.c (find_stack_direction): Remove.
9359         (segv_handler): Don't worry about stack direction growth, as it's
9360         too much of a pain to configure this correctly, given how compilers
9361         are optimizing-away our stack-growth detection code.  Instead, assume
9362         that any access to just before or just after the stack is OK.
9363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9364         Don't require AC_FUNC_ALLOCA; no longer needed.
9365
9366 2011-06-20  Eric Blake  <eblake@redhat.com>
9367
9368         test-stat: don't allocate PATH_MAX bytes
9369         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9370         PATH_MAX-sized buffer.
9371         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9372         * modules/stat-tests (Depends-on): Likewise.
9373         * tests/test-fstatat.c (includes): Drop pathmax.h.
9374         * tests/test-stat.c (includes): Likewise.
9375         Reported by Bruno Haible.
9376
9377 2011-06-20  Bruno Haible  <bruno@clisp.org>
9378
9379         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9380         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9381         * lib/float.c: New file.
9382         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9383         REPLACE_FLOAT_LDBL.
9384         * modules/float (Files): Add lib/float.c.
9385         (configure.ac): Invoke AC_LIBOBJ.
9386         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9387
9388 2011-06-20  Bruno Haible  <bruno@clisp.org>
9389
9390         Tests for module 'float'.
9391         * modules/float-tests: New file.
9392         * tests/test-float.c: New file.
9393
9394 2011-06-19  Bruno Haible  <bruno@clisp.org>
9395
9396         isinf: Coding style.
9397         * lib/isinf.c: Use GNU coding style.
9398
9399 2011-06-19  Bruno Haible  <bruno@clisp.org>
9400
9401         linkat test: Avoid test failure on AIX 7.1.
9402         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9403         * tests/test-link.h (test_link): Likewise.
9404
9405 2011-06-19  Bruno Haible  <bruno@clisp.org>
9406
9407         pread test: Avoid test failure on OpenBSD 4.9.
9408         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9409
9410 2011-06-19  Bruno Haible  <bruno@clisp.org>
9411
9412         sprintf-posix: Fix test failure on AIX 7.1.
9413         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9414         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9415         on AIX.
9416         * doc/posix-functions/fprintf.texi: Likewise.
9417         * doc/posix-functions/printf.texi: Likewise.
9418         * doc/posix-functions/snprintf.texi: Likewise.
9419         * doc/posix-functions/sprintf.texi: Likewise.
9420         * doc/posix-functions/vdprintf.texi: Likewise.
9421         * doc/posix-functions/vfprintf.texi: Likewise.
9422         * doc/posix-functions/vprintf.texi: Likewise.
9423         * doc/posix-functions/vsnprintf.texi: Likewise.
9424         * doc/posix-functions/vsprintf.texi: Likewise.
9425
9426 2011-06-19  Bruno Haible  <bruno@clisp.org>
9427
9428         roundl-ieee: Fix test failure on AIX 7.1.
9429         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9430         * doc/posix-functions/roundl.texi: Mention problem with negative
9431         arguments.
9432
9433 2011-06-19  Bruno Haible  <bruno@clisp.org>
9434
9435         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9436         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9437         * doc/posix-functions/round.texi: Mention problem with negative
9438         arguments.
9439         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9440
9441 2011-06-19  Bruno Haible  <bruno@clisp.org>
9442
9443         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9445         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9446         * doc/posix-functions/roundf.texi: Mention problem with negative
9447         arguments.
9448         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9449
9450 2011-06-19  Bruno Haible  <bruno@clisp.org>
9451
9452         ceilf-ieee: Work around bug on MacOS X 10.5.
9453         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9454
9455         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9456         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9457         IEEE compliant, avoid compiler optimizations.
9458         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9459         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9460         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9461         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9462         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9463         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9464         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9466         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9467         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9468
9469 2011-06-19  Bruno Haible  <bruno@clisp.org>
9470
9471         ceilf-ieee: Work around bug on AIX 7.1.
9472         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9473         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9474
9475 2011-06-19  Bruno Haible  <bruno@clisp.org>
9476
9477         ceil-ieee: Work around bug on AIX 7.1.
9478         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9479         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9480
9481 2011-06-18  Bruno Haible  <bruno@clisp.org>
9482
9483         fsync test: Avoid test failure on MacOS X and AIX.
9484         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9485         EINVAL.
9486
9487 2011-06-18  Bruno Haible  <bruno@clisp.org>
9488
9489         openat, fdopendir tests: Fix link errors.
9490         * modules/openat-tests (Depends-on): Add progname.
9491         * modules/fdopendir-tests (Depends-on): Likewise.
9492         * tests/test-fchownat.c: Include progname.h.
9493         (main): Call set_program_name.
9494         * tests/test-fstatat.c: Include progname.h.
9495         (main): Call set_program_name.
9496         * tests/test-mkdirat.c: Include progname.h.
9497         (main): Call set_program_name.
9498         * tests/test-openat.c: Include progname.h.
9499         (main): Call set_program_name.
9500         * tests/test-unlinkat.c: Include progname.h.
9501         (main): Call set_program_name.
9502         * tests/test-fdopendir.c: Include progname.h.
9503         (main): Call set_program_name.
9504
9505 2011-06-18  Bruno Haible  <bruno@clisp.org>
9506
9507         Doc update.
9508         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9509         HP-UX.
9510         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9511
9512 2011-06-18  Bruno Haible  <bruno@clisp.org>
9513
9514         getcwd tests: Avoid compilation error on HP-UX 11.31.
9515         * modules/getcwd-tests (Depends-on): Add pathmax.
9516         * tests/test-getcwd.c: Include pathmax.h.
9517
9518 2011-06-18  Bruno Haible  <bruno@clisp.org>
9519
9520         isfinite, isinf: Fix link error on AIX 6 and 7.
9521         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9522         needed, also test the macro with a 'float' argument.
9523         * m4/isinf.m4 (gl_ISINF): Likewise.
9524
9525 2011-06-18  Bruno Haible  <bruno@clisp.org>
9526
9527         getloadavg: Don't clobber LIBS. Regression from previous commit.
9528         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9529         AC_CHECK_LIB from here...
9530         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9531         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9532         gl_func_getloadavg_done.
9533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9534
9535 2011-06-18  Bruno Haible  <bruno@clisp.org>
9536
9537         clean-temp: Improve documentation.
9538         * lib/clean-temp.h: Explain better how to use this module.
9539         Reported by John Darrington <john@darrington.wattle.id.au>.
9540
9541 2011-06-17  Bruno Haible  <bruno@clisp.org>
9542
9543         pread, pwrite: Avoid cc warning on AIX.
9544         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9545         (pwrite): Likewise.
9546
9547 2011-06-17  Bruno Haible  <bruno@clisp.org>
9548
9549         spawn-pipe tests: Fix link error.
9550         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9552
9553 2011-06-17  Bruno Haible  <bruno@clisp.org>
9554
9555         Tests: Remove unnecessary dependency.
9556         * modules/canonicalize-tests (Depends-on): Remove progname.
9557         * modules/chown-tests (Depends-on): Likewise.
9558         * modules/dirname-tests (Depends-on): Likewise.
9559         * modules/fdopendir-tests (Depends-on): Likewise.
9560         * modules/fdutimensat-tests (Depends-on): Likewise.
9561         * modules/hash-tests (Depends-on): Likewise.
9562         * modules/lchown-tests (Depends-on): Likewise.
9563         * modules/linkat-tests (Depends-on): Likewise.
9564         * modules/renameat-tests (Depends-on): Likewise.
9565         * modules/spawn-pipe-tests (Depends-on): Likewise.
9566         * modules/utimensat-tests (Depends-on): Likewise.
9567
9568 2011-06-17  Bruno Haible  <bruno@clisp.org>
9569
9570         spawn-pipe tests: Fix link error.
9571         * tests/test-spawn-pipe-child.c: Undefine fflush.
9572
9573 2011-06-17  Bruno Haible  <bruno@clisp.org>
9574
9575         Fix tests link errors.
9576         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9577         * modules/chown-tests (Makefile.am): Don't link test-chown with
9578         LIBINTL.
9579         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9580         LIBINTL.
9581         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9582         LIBINTL.
9583         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9584         LIBINTL.
9585
9586 2011-06-16  Bruno Haible  <bruno@clisp.org>
9587
9588         crypto/gc-sha1: Fix recent regression.
9589         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9590         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9591
9592         crypto/gc-md5: Fix recent regression.
9593         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9594
9595         crypto/gc-md4: Fix recent regression.
9596         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9597         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9598
9599         crypto/gc-arctwo: Fix recent regression.
9600         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9601         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9602
9603         crypto/gc-rijndael: Fix recent regression.
9604         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9605         (configure.ac): Invoke AC_LIBOBJ here.
9606         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9608
9609         crypto/gc-hmac-sha1: Fix recent regression.
9610         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9611         (configure.ac): Invoke AC_LIBOBJ here.
9612         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9614
9615         crypto/gc-hmac-md5: Fix recent regression.
9616         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9617         (configure.ac): Invoke AC_LIBOBJ here.
9618         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9620
9621         crypto/gc-des: Fix recent regression.
9622         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9623         (configure.ac): Invoke AC_LIBOBJ here.
9624         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9626
9627         crypto/gc-arcfour: Fix recent regression.
9628         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9629         (configure.ac): Invoke AC_LIBOBJ here.
9630         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9632
9633 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9634
9635         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9636         After the 2011-05-21 change, this macro requires
9637         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9638         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9639
9640 2011-06-16  Bruno Haible  <bruno@clisp.org>
9641
9642         fprintftime: Move AC_LIBOBJ invocations to module description.
9643         * m4/fprintftime.m4: Remove file.
9644         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9645         (configure.ac): Remove gl_FPRINTFTIME call.
9646         (Makefile.am): Augment lib_SOURCES.
9647         Reported by Jim Meyering.
9648
9649 2011-06-16  Bruno Haible  <bruno@clisp.org>
9650
9651         tmpfile-safer: Finish 2011-05-23 commit.
9652         * m4/stdio-safer.m4: Really remove file.
9653         Reported by Jim Meyering.
9654
9655 2011-06-16  Bruno Haible  <bruno@clisp.org>
9656
9657         syntax-check: Fix typo.
9658         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9659         printf-posix.m4.
9660         Reported by Jim Meyering.
9661
9662 2011-06-13  Jim Meyering  <meyering@redhat.com>
9663
9664         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9665         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9666
9667 2011-05-23  Bruno Haible  <bruno@clisp.org>
9668
9669         yesno: Move AC_LIBOBJ invocations to module description.
9670         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9671         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9672
9673 2011-05-23  Bruno Haible  <bruno@clisp.org>
9674
9675         xstrtol: Move AC_LIBOBJ invocations to module description.
9676         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9677         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9678
9679 2011-05-23  Bruno Haible  <bruno@clisp.org>
9680
9681         xstrtold: Move AC_LIBOBJ invocations to module description.
9682         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9683         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9684
9685 2011-05-23  Bruno Haible  <bruno@clisp.org>
9686
9687         xstrtod: Move AC_LIBOBJ invocations to module description.
9688         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9689         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9690
9691 2011-05-23  Bruno Haible  <bruno@clisp.org>
9692
9693         xnanosleep: Move AC_LIBOBJ invocations to module description.
9694         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9695         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9696
9697 2011-05-23  Bruno Haible  <bruno@clisp.org>
9698
9699         xgetcwd: Move AC_LIBOBJ invocations to module description.
9700         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9701         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9702
9703 2011-05-23  Bruno Haible  <bruno@clisp.org>
9704
9705         xalloc: Move AC_LIBOBJ invocations to module description.
9706         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9707         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9708
9709 2011-05-23  Bruno Haible  <bruno@clisp.org>
9710
9711         write-any-file: Move AC_LIBOBJ invocations to module description.
9712         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9713         invocation.
9714         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9715
9716 2011-05-23  Bruno Haible  <bruno@clisp.org>
9717
9718         utimens: Move AC_LIBOBJ invocations to module description.
9719         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9720         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9721
9722 2011-05-23  Bruno Haible  <bruno@clisp.org>
9723
9724         utimecmp: Move AC_LIBOBJ invocations to module description.
9725         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9726         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9727
9728 2011-05-23  Bruno Haible  <bruno@clisp.org>
9729
9730         userspec: Move AC_LIBOBJ invocations to module description.
9731         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9732         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9733
9734 2011-05-23  Bruno Haible  <bruno@clisp.org>
9735
9736         unlinkdir: Move AC_LIBOBJ invocations to module description.
9737         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9738         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9739
9740 2011-05-23  Bruno Haible  <bruno@clisp.org>
9741
9742         unistd-safer: Move AC_LIBOBJ invocations to module description.
9743         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9744         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9745
9746 2011-05-23  Bruno Haible  <bruno@clisp.org>
9747
9748         tempname: Move AC_LIBOBJ invocations to module description.
9749         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9750         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9751
9752 2011-05-23  Bruno Haible  <bruno@clisp.org>
9753
9754         strftime: Move AC_LIBOBJ invocations to module description.
9755         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9756         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9757
9758 2011-05-23  Bruno Haible  <bruno@clisp.org>
9759
9760         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9761         * m4/stdlib-safer.m4: Remove file.
9762         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9763         (configure.ac): Remove gl_STDLIB_SAFER call.
9764         (Makefile.am): Augment lib_SOURCES.
9765
9766 2011-05-23  Bruno Haible  <bruno@clisp.org>
9767
9768         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9769         * m4/stdio-safer.m4: Remove file.
9770         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9771         (configure.ac): Remove gl_TMPFILE_SAFER call.
9772         (Makefile.am): Augment lib_SOURCES.
9773
9774 2011-05-23  Bruno Haible  <bruno@clisp.org>
9775
9776         popen-safer: Move AC_LIBOBJ invocations to module description.
9777         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9778         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9779         (configure.ac): Remove gl_POPEN_SAFER call.
9780         (Makefile.am): Augment lib_SOURCES.
9781
9782 2011-05-23  Bruno Haible  <bruno@clisp.org>
9783
9784         freopen-safer: Move AC_LIBOBJ invocations to module description.
9785         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9786         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9787         (configure.ac): Remove gl_FREOPEN_SAFER call.
9788         (Makefile.am): Augment lib_SOURCES.
9789
9790 2011-05-23  Bruno Haible  <bruno@clisp.org>
9791
9792         fopen-safer: Move AC_LIBOBJ invocations to module description.
9793         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9794         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9795         (configure.ac): Remove gl_FOPEN_SAFER call.
9796         (Makefile.am): Augment lib_SOURCES.
9797
9798 2011-05-23  Bruno Haible  <bruno@clisp.org>
9799
9800         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9801         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9802         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9803
9804 2011-05-23  Bruno Haible  <bruno@clisp.org>
9805
9806         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9807         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9808         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9809
9810 2011-05-23  Bruno Haible  <bruno@clisp.org>
9811
9812         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9813         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9814         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9815
9816 2011-05-23  Bruno Haible  <bruno@clisp.org>
9817
9818         settime: Move AC_LIBOBJ invocations to module description.
9819         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9820         * modules/settime (Makefile.am): Augment lib_SOURCES.
9821
9822 2011-05-23  Bruno Haible  <bruno@clisp.org>
9823
9824         savedir: Move AC_LIBOBJ invocations to module description.
9825         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9826         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9827
9828 2011-05-23  Bruno Haible  <bruno@clisp.org>
9829
9830         save-cwd: Move AC_LIBOBJ invocations to module description.
9831         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9832         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9833
9834 2011-05-23  Bruno Haible  <bruno@clisp.org>
9835
9836         same: Move AC_LIBOBJ invocations to module description.
9837         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9838         * modules/same (Makefile.am): Augment lib_SOURCES.
9839
9840 2011-05-23  Bruno Haible  <bruno@clisp.org>
9841
9842         safe-write: Move AC_LIBOBJ invocations to module description.
9843         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9844         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9845         instead of gl_SAFE_WRITE.
9846         (Makefile.am): Augment lib_SOURCES.
9847
9848 2011-05-23  Bruno Haible  <bruno@clisp.org>
9849
9850         safe-read: Move AC_LIBOBJ invocations to module description.
9851         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9852         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9853         of gl_SAFE_READ.
9854         (Makefile.am): Augment lib_SOURCES.
9855
9856 2011-05-23  Bruno Haible  <bruno@clisp.org>
9857
9858         safe-alloc: Move AC_LIBOBJ invocations to module description.
9859         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9860         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9861
9862 2011-05-23  Bruno Haible  <bruno@clisp.org>
9863
9864         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9865         * m4/rijndael.m4: Remove file.
9866         * modules/crypto/rijndael (Files): Remove it.
9867         (configure.ac): Remove gl_RIJNDAEL call.
9868         (Makefile.am): Augment lib_SOURCES.
9869
9870 2011-05-23  Bruno Haible  <bruno@clisp.org>
9871
9872         readtokens: Move AC_LIBOBJ invocations to module description.
9873         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9874         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9875
9876 2011-05-23  Bruno Haible  <bruno@clisp.org>
9877
9878         read-file: Move AC_LIBOBJ invocations to module description.
9879         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9880         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9881         of gl_FUNC_READ_FILE.
9882         (Makefile.am): Augment lib_SOURCES.
9883
9884 2011-05-23  Bruno Haible  <bruno@clisp.org>
9885
9886         quotearg: Move AC_LIBOBJ invocations to module description.
9887         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9888         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9889
9890 2011-05-23  Bruno Haible  <bruno@clisp.org>
9891
9892         quote: Move AC_LIBOBJ invocations to module description.
9893         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9894         * modules/quote (Makefile.am): Augment lib_SOURCES.
9895
9896 2011-05-23  Bruno Haible  <bruno@clisp.org>
9897
9898         posixver: Move AC_LIBOBJ invocations to module description.
9899         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9900         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9901
9902 2011-05-23  Bruno Haible  <bruno@clisp.org>
9903
9904         posixtm: Move AC_LIBOBJ invocations to module description.
9905         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9906         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9907
9908 2011-05-23  Bruno Haible  <bruno@clisp.org>
9909
9910         physmem: Move AC_LIBOBJ invocations to module description.
9911         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9912         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9913
9914 2011-05-23  Bruno Haible  <bruno@clisp.org>
9915
9916         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9917         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9918         invocation.
9919         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9920
9921 2011-05-23  Bruno Haible  <bruno@clisp.org>
9922
9923         mpsort: Move AC_LIBOBJ invocations to module description.
9924         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9925         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9926
9927 2011-05-23  Bruno Haible  <bruno@clisp.org>
9928
9929         modechange: Move AC_LIBOBJ invocations to module description.
9930         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9931         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9932
9933 2011-05-23  Bruno Haible  <bruno@clisp.org>
9934
9935         mkdir-p: Move AC_LIBOBJ invocations to module description.
9936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9937         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9938
9939 2011-05-23  Bruno Haible  <bruno@clisp.org>
9940
9941         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9942         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9943         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9944
9945 2011-05-23  Bruno Haible  <bruno@clisp.org>
9946
9947         mgetgroups: Move AC_LIBOBJ invocations to module description.
9948         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9949         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9950
9951 2011-05-23  Bruno Haible  <bruno@clisp.org>
9952
9953         memxor: Move AC_LIBOBJ invocations to module description.
9954         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9955         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9956
9957 2011-05-23  Bruno Haible  <bruno@clisp.org>
9958
9959         memcoll: Move AC_LIBOBJ invocations to module description.
9960         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9961         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9962
9963 2011-05-23  Bruno Haible  <bruno@clisp.org>
9964
9965         memcasecmp: Move AC_LIBOBJ invocations to module description.
9966         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9967         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9968
9969 2011-05-23  Bruno Haible  <bruno@clisp.org>
9970
9971         crypto/md5: Move AC_LIBOBJ invocations to module description.
9972         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9973         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9974
9975 2011-05-23  Bruno Haible  <bruno@clisp.org>
9976
9977         crypto/md4: Move AC_LIBOBJ invocations to module description.
9978         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9979         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9980
9981 2011-05-23  Bruno Haible  <bruno@clisp.org>
9982
9983         crypto/md2: Move AC_LIBOBJ invocations to module description.
9984         * m4/md2.m4: Remove file.
9985         * modules/crypto/md2 (Files): Remove it.
9986         (configure.ac): Remove gl_MD2 call.
9987         (Makefile.am): Augment lib_SOURCES.
9988
9989 2011-05-23  Bruno Haible  <bruno@clisp.org>
9990
9991         long-options: Move AC_LIBOBJ invocations to module description.
9992         * m4/long-options.m4: Remove file.
9993         * modules/long-options (Files): Remove it.
9994         (configure.ac): Remove gl_LONG_OPTIONS call.
9995         (Makefile.am): Augment lib_SOURCES.
9996
9997 2011-05-23  Bruno Haible  <bruno@clisp.org>
9998
9999         i-ring: Move AC_LIBOBJ invocations to module description.
10000         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
10001         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
10002
10003 2011-05-23  Bruno Haible  <bruno@clisp.org>
10004
10005         idcache: Move AC_LIBOBJ invocations to module description.
10006         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
10007         * modules/idcache (Makefile.am): Augment lib_SOURCES.
10008
10009 2011-05-23  Bruno Haible  <bruno@clisp.org>
10010
10011         human: Move AC_LIBOBJ invocations to module description.
10012         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10013         * modules/human (Makefile.am): Augment lib_SOURCES.
10014
10015 2011-05-23  Bruno Haible  <bruno@clisp.org>
10016
10017         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10018         * m4/hmac-sha1.m4: Remove file.
10019         * modules/crypto/hmac-sha1 (Files): Remove it.
10020         (configure.ac): Remove gl_HMAC_SHA1 call.
10021         (Makefile.am): Augment lib_SOURCES.
10022
10023 2011-05-23  Bruno Haible  <bruno@clisp.org>
10024
10025         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10026         * m4/hmac-md5.m4: Remove file.
10027         * modules/crypto/hmac-md5 (Files): Remove it.
10028         (configure.ac): Remove gl_HMAC_MD5 call.
10029         (Makefile.am): Augment lib_SOURCES.
10030
10031 2011-05-23  Bruno Haible  <bruno@clisp.org>
10032
10033         hash: Move AC_LIBOBJ invocations to module description.
10034         * m4/hash.m4: Remove file.
10035         * modules/hash (Files): Remove it.
10036         (configure.ac): Remove gl_HASH call.
10037         (Makefile.am): Augment lib_SOURCES.
10038
10039 2011-05-23  Bruno Haible  <bruno@clisp.org>
10040
10041         hard-locale: Move AC_LIBOBJ invocations to module description.
10042         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10043         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10044
10045 2011-05-23  Bruno Haible  <bruno@clisp.org>
10046
10047         getugroups: Move AC_LIBOBJ invocations to module description.
10048         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10049         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10050
10051 2011-05-23  Bruno Haible  <bruno@clisp.org>
10052
10053         gettime: Move AC_LIBOBJ invocations to module description.
10054         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10055         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10056
10057 2011-05-23  Bruno Haible  <bruno@clisp.org>
10058
10059         getndelim2: Move AC_LIBOBJ invocations to module description.
10060         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10061         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10062
10063 2011-05-23  Bruno Haible  <bruno@clisp.org>
10064
10065         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10066         * m4/gc-pbkdf2-sha1.m4: Remove file.
10067         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10068         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10069         (Makefile.am): Augment lib_SOURCES.
10070
10071 2011-05-23  Bruno Haible  <bruno@clisp.org>
10072
10073         fts: Move AC_LIBOBJ invocations to module description.
10074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10075         * modules/fts (configure.ac): ... to here.
10076
10077 2011-05-23  Bruno Haible  <bruno@clisp.org>
10078
10079         file-type: Move AC_LIBOBJ invocations to module description.
10080         * m4/file-type.m4: Remove file.
10081         * modules/file-type (Files): Remove it.
10082         (configure.ac): Remove gl_FILE_TYPE call.
10083         (Makefile.am): Augment lib_SOURCES.
10084
10085 2011-05-23  Bruno Haible  <bruno@clisp.org>
10086
10087         filenamecat*: Respect rules for use of AC_LIBOBJ.
10088         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10089         Remove AC_LIBOBJ invocation.
10090         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10091         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10092
10093 2011-05-23  Bruno Haible  <bruno@clisp.org>
10094
10095         filemode: Move AC_LIBOBJ invocations to module description.
10096         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10097         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10098
10099 2011-05-23  Bruno Haible  <bruno@clisp.org>
10100
10101         openat-safer: Move AC_LIBOBJ invocations to module description.
10102         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10103         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10104
10105 2011-05-23  Bruno Haible  <bruno@clisp.org>
10106
10107         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10108         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10109         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10110
10111 2011-05-23  Bruno Haible  <bruno@clisp.org>
10112
10113         exclude: Move AC_LIBOBJ invocations to module description.
10114         * m4/exclude.m4: Remove file.
10115         * modules/exclude (Files): Remove it.
10116         (configure.ac): Remove gl_EXCLUDE call.
10117         (Makefile.am): Augment lib_SOURCES.
10118
10119 2011-05-23  Bruno Haible  <bruno@clisp.org>
10120
10121         dirname*: Respect rules for use of AC_LIBOBJ.
10122         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10123         invocations.
10124         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10125         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10126
10127 2011-05-23  Bruno Haible  <bruno@clisp.org>
10128
10129         dirent-safer: Move AC_LIBOBJ invocations to module description.
10130         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10131         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10132
10133 2011-05-23  Bruno Haible  <bruno@clisp.org>
10134
10135         crypto/des: Move AC_LIBOBJ invocations to module description.
10136         * m4/des.m4: Remove file.
10137         * modules/crypto/des (Files): Remove it.
10138         (configure.ac): Remove gl_DES call.
10139         (Makefile.am): Augment lib_SOURCES.
10140
10141 2011-05-23  Bruno Haible  <bruno@clisp.org>
10142
10143         cycle-check: Move AC_LIBOBJ invocations to module description.
10144         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10145         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10146
10147 2011-05-23  Bruno Haible  <bruno@clisp.org>
10148
10149         c-strtold: Move AC_LIBOBJ invocations to module description.
10150         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10151         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10152
10153 2011-05-23  Bruno Haible  <bruno@clisp.org>
10154
10155         c-strtod: Move AC_LIBOBJ invocations to module description.
10156         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10157         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10158
10159 2011-05-23  Bruno Haible  <bruno@clisp.org>
10160
10161         crc: Move AC_LIBOBJ invocations to module description.
10162         * m4/crc.m4: Remove file.
10163         * modules/crc (Files): Remove it.
10164         (configure.ac): Remove gl_CRC call.
10165         (Makefile.am): Augment lib_SOURCES.
10166
10167 2011-05-23  Bruno Haible  <bruno@clisp.org>
10168
10169         close-stream: Move AC_LIBOBJ invocations to module description.
10170         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10171         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10172
10173 2011-05-23  Bruno Haible  <bruno@clisp.org>
10174
10175         closeout: Move AC_LIBOBJ invocations to module description.
10176         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10177         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10178
10179 2011-05-23  Bruno Haible  <bruno@clisp.org>
10180
10181         closein: Move AC_LIBOBJ invocations to module description.
10182         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10183         * modules/closein (Makefile.am): Augment lib_SOURCES.
10184
10185 2011-05-23  Bruno Haible  <bruno@clisp.org>
10186
10187         cloexec: Move AC_LIBOBJ invocations to module description.
10188         * m4/cloexec.m4: Remove file.
10189         * modules/cloexec (Files): Remove it.
10190         (configure.ac): Remove gl_CLOEXEC call.
10191         (Makefile.am): Augment lib_SOURCES.
10192
10193 2011-05-23  Bruno Haible  <bruno@clisp.org>
10194
10195         check-version: Move AC_LIBOBJ invocations to module description.
10196         * m4/check-version.m4: Remove file.
10197         * modules/check-version (Files): Remove it.
10198         (configure.ac): Remove gl_CHECK_VERSION call.
10199         (Makefile.am): Augment lib_SOURCES.
10200
10201 2011-05-23  Bruno Haible  <bruno@clisp.org>
10202
10203         chdir-safer: Move AC_LIBOBJ invocations to module description.
10204         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10205         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10206
10207 2011-05-23  Bruno Haible  <bruno@clisp.org>
10208
10209         canonicalize: Move AC_LIBOBJ invocations to module description.
10210         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10211         AC_LIBOBJ invocation.
10212         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10213
10214 2011-05-23  Bruno Haible  <bruno@clisp.org>
10215
10216         canon-host: Move AC_LIBOBJ invocations to module description.
10217         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10218         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10219         instead of gl_CANON_HOST.
10220         (Makefile.am): Augment lib_SOURCES.
10221
10222 2011-05-23  Bruno Haible  <bruno@clisp.org>
10223
10224         backupfile: Move AC_LIBOBJ invocations to module description.
10225         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10226         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10227
10228 2011-05-23  Bruno Haible  <bruno@clisp.org>
10229
10230         argmatch: Move AC_LIBOBJ invocations to module description.
10231         * m4/argmatch.m4: Remove file.
10232         * modules/argmatch (Files): Remove it.
10233         (configure.ac): Remove gl_ARGMATCH call.
10234         (Makefile.am): Augment lib_SOURCES.
10235
10236 2011-05-23  Bruno Haible  <bruno@clisp.org>
10237
10238         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10239         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10240         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10241
10242 2011-05-23  Bruno Haible  <bruno@clisp.org>
10243
10244         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10245         * m4/arcfour.m4: Remove file.
10246         * modules/crypto/arcfour (Files): Remove it.
10247         (configure.ac): Remove gl_ARCFOUR call.
10248         (Makefile.am): Augment lib_SOURCES.
10249
10250 2011-05-22  Bruno Haible  <bruno@clisp.org>
10251
10252         write: Move AC_LIBOBJ invocations to module description.
10253         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10254         * modules/write (configure.ac): ... to here.
10255
10256 2011-05-22  Bruno Haible  <bruno@clisp.org>
10257
10258         wmemset: Move AC_LIBOBJ invocations to module description.
10259         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10260         here...
10261         * modules/wmemset (configure.ac): ... to here.
10262
10263 2011-05-22  Bruno Haible  <bruno@clisp.org>
10264
10265         wmemmove: Move AC_LIBOBJ invocations to module description.
10266         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10267         here...
10268         * modules/wmemmove (configure.ac): ... to here.
10269
10270 2011-05-22  Bruno Haible  <bruno@clisp.org>
10271
10272         wmemcpy: Move AC_LIBOBJ invocations to module description.
10273         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10274         here...
10275         * modules/wmemcpy (configure.ac): ... to here.
10276
10277 2011-05-22  Bruno Haible  <bruno@clisp.org>
10278
10279         wmemcmp: Move AC_LIBOBJ invocations to module description.
10280         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10281         here...
10282         * modules/wmemcmp (configure.ac): ... to here.
10283
10284 2011-05-22  Bruno Haible  <bruno@clisp.org>
10285
10286         wmemchr: Move AC_LIBOBJ invocations to module description.
10287         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10288         here...
10289         * modules/wmemchr (configure.ac): ... to here.
10290
10291 2011-05-22  Bruno Haible  <bruno@clisp.org>
10292
10293         wcswidth: Move AC_LIBOBJ invocations to module description.
10294         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
10295         here...
10296         * modules/wcswidth (configure.ac): ... to here.
10297
10298 2011-05-22  Bruno Haible  <bruno@clisp.org>
10299
10300         wcwidth: Respect rules for use of AC_LIBOBJ.
10301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10302         invocation from here...
10303         * modules/wcwidth (configure.ac): ... to here.
10304         (Depends-on): Update conditions.
10305
10306 2011-05-22  Bruno Haible  <bruno@clisp.org>
10307
10308         wctype: Move AC_LIBOBJ invocations to module description.
10309         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10310         invocation from here...
10311         * modules/wctype (configure.ac): ... to here.
10312         (Depends-on): Update conditions.
10313
10314 2011-05-22  Bruno Haible  <bruno@clisp.org>
10315
10316         wctrans: Move AC_LIBOBJ invocations to module description.
10317         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10318         invocation from here...
10319         * modules/wctrans (configure.ac): ... to here.
10320
10321 2011-05-22  Bruno Haible  <bruno@clisp.org>
10322
10323         wctomb: Move AC_LIBOBJ invocations to module description.
10324         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10325         invocations from here...
10326         * modules/wctomb (configure.ac): ... to here.
10327
10328 2011-05-22  Bruno Haible  <bruno@clisp.org>
10329
10330         wctob: Move AC_LIBOBJ invocations to module description.
10331         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10332         gl_PREREQ_WCTOB invocations from here...
10333         * modules/wctob (configure.ac): ... to here.
10334         (Depends-on): Update conditions.
10335
10336 2011-05-22  Bruno Haible  <bruno@clisp.org>
10337
10338         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10339         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10340         here...
10341         * modules/wcsxfrm (configure.ac): ... to here.
10342
10343 2011-05-22  Bruno Haible  <bruno@clisp.org>
10344
10345         wcstok: Move AC_LIBOBJ invocations to module description.
10346         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10347         * modules/wcstok (configure.ac): ... to here.
10348
10349 2011-05-22  Bruno Haible  <bruno@clisp.org>
10350
10351         wcsstr: Move AC_LIBOBJ invocations to module description.
10352         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10353         * modules/wcsstr (configure.ac): ... to here.
10354
10355 2011-05-22  Bruno Haible  <bruno@clisp.org>
10356
10357         wcsspn: Move AC_LIBOBJ invocations to module description.
10358         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10359         * modules/wcsspn (configure.ac): ... to here.
10360
10361 2011-05-22  Bruno Haible  <bruno@clisp.org>
10362
10363         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10364         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10365         gl_PREREQ_WCSRTOMBS invocations from here...
10366         * modules/wcsrtombs (configure.ac): ... to here.
10367
10368 2011-05-22  Bruno Haible  <bruno@clisp.org>
10369
10370         wcsrchr: Move AC_LIBOBJ invocations to module description.
10371         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10372         here...
10373         * modules/wcsrchr (configure.ac): ... to here.
10374
10375 2011-05-22  Bruno Haible  <bruno@clisp.org>
10376
10377         wcspbrk: Move AC_LIBOBJ invocations to module description.
10378         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10379         here...
10380         * modules/wcspbrk (configure.ac): ... to here.
10381
10382 2011-05-22  Bruno Haible  <bruno@clisp.org>
10383
10384         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10385         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10386         gl_PREREQ_WCSNRTOMBS invocations from here...
10387         * modules/wcsnrtombs (configure.ac): ... to here.
10388
10389 2011-05-22  Bruno Haible  <bruno@clisp.org>
10390
10391         wcsnlen: Move AC_LIBOBJ invocations to module description.
10392         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10393         here...
10394         * modules/wcsnlen (configure.ac): ... to here.
10395
10396 2011-05-22  Bruno Haible  <bruno@clisp.org>
10397
10398         wcsncpy: Move AC_LIBOBJ invocations to module description.
10399         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10400         here...
10401         * modules/wcsncpy (configure.ac): ... to here.
10402
10403 2011-05-22  Bruno Haible  <bruno@clisp.org>
10404
10405         wcsncmp: Move AC_LIBOBJ invocations to module description.
10406         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10407         here...
10408         * modules/wcsncmp (configure.ac): ... to here.
10409
10410 2011-05-22  Bruno Haible  <bruno@clisp.org>
10411
10412         wcsncat: Move AC_LIBOBJ invocations to module description.
10413         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10414         here...
10415         * modules/wcsncat (configure.ac): ... to here.
10416
10417 2011-05-22  Bruno Haible  <bruno@clisp.org>
10418
10419         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10420         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10421         from here...
10422         * modules/wcsncasecmp (configure.ac): ... to here.
10423
10424 2011-05-22  Bruno Haible  <bruno@clisp.org>
10425
10426         wcslen: Move AC_LIBOBJ invocations to module description.
10427         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10428         * modules/wcslen (configure.ac): ... to here.
10429
10430 2011-05-22  Bruno Haible  <bruno@clisp.org>
10431
10432         wcsdup: Move AC_LIBOBJ invocations to module description.
10433         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10434         * modules/wcsdup (configure.ac): ... to here.
10435
10436 2011-05-22  Bruno Haible  <bruno@clisp.org>
10437
10438         wcscspn: Move AC_LIBOBJ invocations to module description.
10439         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10440         here...
10441         * modules/wcscspn (configure.ac): ... to here.
10442
10443 2011-05-22  Bruno Haible  <bruno@clisp.org>
10444
10445         wcscpy: Move AC_LIBOBJ invocations to module description.
10446         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10447         * modules/wcscpy (configure.ac): ... to here.
10448
10449 2011-05-22  Bruno Haible  <bruno@clisp.org>
10450
10451         wcscoll: Move AC_LIBOBJ invocations to module description.
10452         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10453         here...
10454         * modules/wcscoll (configure.ac): ... to here.
10455
10456 2011-05-22  Bruno Haible  <bruno@clisp.org>
10457
10458         wcscmp: Move AC_LIBOBJ invocations to module description.
10459         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10460         * modules/wcscmp (configure.ac): ... to here.
10461
10462 2011-05-22  Bruno Haible  <bruno@clisp.org>
10463
10464         wcschr: Move AC_LIBOBJ invocations to module description.
10465         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10466         * modules/wcschr (configure.ac): ... to here.
10467
10468 2011-05-22  Bruno Haible  <bruno@clisp.org>
10469
10470         wcscat: Move AC_LIBOBJ invocations to module description.
10471         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10472         * modules/wcscat (configure.ac): ... to here.
10473
10474 2011-05-22  Bruno Haible  <bruno@clisp.org>
10475
10476         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10477         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10478         here...
10479         * modules/wcscasecmp (configure.ac): ... to here.
10480
10481 2011-05-22  Bruno Haible  <bruno@clisp.org>
10482
10483         wcrtomb: Move AC_LIBOBJ invocations to module description.
10484         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10485         invocations from here...
10486         * modules/wcrtomb (configure.ac): ... to here.
10487
10488 2011-05-22  Bruno Haible  <bruno@clisp.org>
10489
10490         wcpncpy: Move AC_LIBOBJ invocations to module description.
10491         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10492         here...
10493         * modules/wcpncpy (configure.ac): ... to here.
10494
10495 2011-05-22  Bruno Haible  <bruno@clisp.org>
10496
10497         wcpcpy: Move AC_LIBOBJ invocations to module description.
10498         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10499         * modules/wcpcpy (configure.ac): ... to here.
10500
10501 2011-05-22  Bruno Haible  <bruno@clisp.org>
10502
10503         waitpid: Move AC_LIBOBJ invocations to module description.
10504         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10505         invocation from here...
10506         * modules/waitpid (configure.ac): ... to here.
10507
10508 2011-05-22  Bruno Haible  <bruno@clisp.org>
10509
10510         utimensat: Move AC_LIBOBJ invocations to module description.
10511         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10512         here...
10513         * modules/utimensat (configure.ac): ... to here.
10514
10515 2011-05-22  Bruno Haible  <bruno@clisp.org>
10516
10517         usleep: Move AC_LIBOBJ invocations to module description.
10518         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10519         here...
10520         * modules/usleep (configure.ac): ... to here.
10521
10522 2011-05-22  Bruno Haible  <bruno@clisp.org>
10523
10524         unlockpt: Move AC_LIBOBJ invocations to module description.
10525         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10526         gl_PREREQ_UNLOCKPT invocations from here...
10527         * modules/unlockpt (configure.ac): ... to here.
10528
10529 2011-05-22  Bruno Haible  <bruno@clisp.org>
10530
10531         unlink: Respect rules for use of AC_LIBOBJ.
10532         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10533         * modules/unlink (configure.ac): ... to here.
10534
10535 2011-05-22  Bruno Haible  <bruno@clisp.org>
10536
10537         uname: Move AC_LIBOBJ invocations to module description.
10538         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10540         here...
10541         * modules/uname (configure.ac): ... to here.
10542
10543 2011-05-22  Bruno Haible  <bruno@clisp.org>
10544
10545         ttyname_r: Move AC_LIBOBJ invocations to module description.
10546         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10547         gl_PREREQ_TTYNAME_R invocations from here...
10548         * modules/ttyname_r (configure.ac): ... to here.
10549
10550 2011-05-22  Bruno Haible  <bruno@clisp.org>
10551
10552         tsearch: Move AC_LIBOBJ invocations to module description.
10553         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10554         invocations from here...
10555         * modules/tsearch (configure.ac): ... to here.
10556
10557 2011-05-22  Bruno Haible  <bruno@clisp.org>
10558
10559         towctrans: Move AC_LIBOBJ invocations to module description.
10560         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10561         AC_LIBOBJ invocation from here...
10562         * modules/towctrans (configure.ac): ... to here.
10563
10564 2011-05-22  Bruno Haible  <bruno@clisp.org>
10565
10566         tmpfile: Move AC_LIBOBJ invocations to module description.
10567         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10568         invocations from here...
10569         * modules/tmpfile (configure.ac): ... to here.
10570
10571 2011-05-22  Bruno Haible  <bruno@clisp.org>
10572
10573         times: Move AC_LIBOBJ invocations to module description.
10574         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10575         * modules/times (configure.ac): ... to here.
10576
10577 2011-05-22  Bruno Haible  <bruno@clisp.org>
10578
10579         time_r: Move AC_LIBOBJ invocations to module description.
10580         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10581         invocations from here...
10582         * modules/time_r (configure.ac): ... to here.
10583
10584 2011-05-22  Bruno Haible  <bruno@clisp.org>
10585
10586         timegm: Move AC_LIBOBJ invocations to module description.
10587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10588         invocations from here...
10589         * modules/timegm (configure.ac): ... to here.
10590
10591 2011-05-22  Bruno Haible  <bruno@clisp.org>
10592
10593         tcgetsid: Move AC_LIBOBJ invocations to module description.
10594         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10595         and gl_PREREQ_TCGETSID invocations from here...
10596         * modules/tcgetsid (configure.ac): ... to here.
10597         (Depends-on): Update conditions.
10598
10599 2011-05-22  Bruno Haible  <bruno@clisp.org>
10600
10601         symlinkat: Move AC_LIBOBJ invocations to module description.
10602         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10603         here...
10604         * modules/symlinkat (configure.ac): ... to here.
10605
10606 2011-05-22  Bruno Haible  <bruno@clisp.org>
10607
10608         symlink: Move AC_LIBOBJ invocations to module description.
10609         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10610         here...
10611         * modules/symlink (configure.ac): ... to here.
10612
10613 2011-05-22  Bruno Haible  <bruno@clisp.org>
10614
10615         strverscmp: Move AC_LIBOBJ invocations to module description.
10616         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10618         from here...
10619         * modules/strverscmp (configure.ac): ... to here.
10620
10621 2011-05-22  Bruno Haible  <bruno@clisp.org>
10622
10623         strtok_r: Move AC_LIBOBJ invocations to module description.
10624         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10625         and gl_PREREQ_STRTOK_R invocations from here...
10626         * modules/strtok_r (configure.ac): ... to here.
10627         (Depends-on): Update conditions.
10628
10629 2011-05-22  Bruno Haible  <bruno@clisp.org>
10630
10631         strtoumax: Move AC_LIBOBJ invocations to module description.
10632         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10633         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10634         from here...
10635         * modules/strtoumax (configure.ac): ... to here.
10636
10637 2011-05-22  Bruno Haible  <bruno@clisp.org>
10638
10639         strtoimax: Move AC_LIBOBJ invocations to module description.
10640         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10642         from here...
10643         * modules/strtoimax (configure.ac): ... to here.
10644
10645 2011-05-22  Bruno Haible  <bruno@clisp.org>
10646
10647         strtoull: Move AC_LIBOBJ invocations to module description.
10648         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10650         from here...
10651         * modules/strtoull (configure.ac): ... to here.
10652
10653 2011-05-22  Bruno Haible  <bruno@clisp.org>
10654
10655         strtoll: Move AC_LIBOBJ invocations to module description.
10656         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10658         here...
10659         * modules/strtoll (configure.ac): ... to here.
10660
10661 2011-05-22  Bruno Haible  <bruno@clisp.org>
10662
10663         strtoul: Move AC_LIBOBJ invocations to module description.
10664         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10665         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10666         * modules/strtoul (configure.ac): ... to here.
10667
10668 2011-05-22  Bruno Haible  <bruno@clisp.org>
10669
10670         strtol: Move AC_LIBOBJ invocations to module description.
10671         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10672         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10673         * modules/strtol (configure.ac): ... to here.
10674
10675 2011-05-22  Bruno Haible  <bruno@clisp.org>
10676
10677         strtod: Move AC_LIBOBJ invocations to module description.
10678         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10679         invocations from here...
10680         * modules/strtod (configure.ac): ... to here.
10681
10682 2011-05-22  Bruno Haible  <bruno@clisp.org>
10683
10684         strstr*: Move AC_LIBOBJ invocations to module description.
10685         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10686         invocations from here...
10687         * modules/strstr-simple (configure.ac): ... to here.
10688         * modules/strstr (configure.ac): ... and here.
10689
10690 2011-05-22  Bruno Haible  <bruno@clisp.org>
10691
10692         strsignal: Move AC_LIBOBJ invocations to module description.
10693         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10694         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10695         * modules/strsignal (configure.ac): ... to here.
10696         (Depends-on): Update conditions.
10697
10698 2011-05-22  Bruno Haible  <bruno@clisp.org>
10699
10700         strsep: Move AC_LIBOBJ invocations to module description.
10701         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10702         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10703         here...
10704         * modules/strsep (configure.ac): ... to here.
10705
10706 2011-05-22  Bruno Haible  <bruno@clisp.org>
10707
10708         strptime: Move AC_LIBOBJ invocations to module description.
10709         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10710         gl_PREREQ_STRPTIME invocations from here...
10711         * modules/strptime (configure.ac): ... to here.
10712
10713 2011-05-22  Bruno Haible  <bruno@clisp.org>
10714
10715         strpbrk: Move AC_LIBOBJ invocations to module description.
10716         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10718         here...
10719         * modules/strpbrk (configure.ac): ... to here.
10720
10721 2011-05-22  Bruno Haible  <bruno@clisp.org>
10722
10723         strnlen: Move AC_LIBOBJ invocations to module description.
10724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10725         invocations from here...
10726         * modules/strnlen (configure.ac): ... to here.
10727
10728 2011-05-22  Bruno Haible  <bruno@clisp.org>
10729
10730         strndup: Move AC_LIBOBJ invocations to module description.
10731         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10732         invocations from here...
10733         * modules/strndup (configure.ac): ... to here.
10734         (Depends-on): Update conditions.
10735
10736 2011-05-22  Bruno Haible  <bruno@clisp.org>
10737
10738         strncat: Move AC_LIBOBJ invocations to module description.
10739         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10740         invocations from here...
10741         * modules/strncat (configure.ac): ... to here.
10742
10743 2011-05-22  Bruno Haible  <bruno@clisp.org>
10744
10745         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10746         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10747         invocations from here...
10748         * modules/strdup (configure.ac): ... to here.
10749         * modules/strdup-posix (configure.ac): ... and here.
10750
10751 2011-05-22  Bruno Haible  <bruno@clisp.org>
10752
10753         strcspn: Move AC_LIBOBJ invocations to module description.
10754         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10756         here...
10757         * modules/strcspn (configure.ac): ... to here.
10758
10759 2011-05-22  Bruno Haible  <bruno@clisp.org>
10760
10761         strchrnul: Move AC_LIBOBJ invocations to module description.
10762         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10763         gl_PREREQ_STRCHRNUL invocations from here...
10764         * modules/strchrnul (configure.ac): ... to here.
10765
10766 2011-05-22  Bruno Haible  <bruno@clisp.org>
10767
10768         strcasestr*: Move AC_LIBOBJ invocations to module description.
10769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10770         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10771         * modules/strcasestr-simple (configure.ac): ... to here.
10772         * modules/strcasestr (configure.ac): ... and here.
10773
10774 2011-05-22  Bruno Haible  <bruno@clisp.org>
10775
10776         strcase: Move AC_LIBOBJ invocations to module description.
10777         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10778         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10779         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10780         gl_PREREQ_STRNCASECMP invocations from here...
10781         * modules/strcase (configure.ac): ... to here.
10782
10783 2011-05-22  Bruno Haible  <bruno@clisp.org>
10784
10785         stpncpy: Move AC_LIBOBJ invocations to module description.
10786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10787         here...
10788         * modules/stpncpy (configure.ac): ... to here.
10789
10790 2011-05-22  Bruno Haible  <bruno@clisp.org>
10791
10792         stpcpy: Move AC_LIBOBJ invocations to module description.
10793         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10795         here...
10796         * modules/stpcpy (configure.ac): ... to here.
10797
10798 2011-05-21  Bruno Haible  <bruno@clisp.org>
10799
10800         stat: Move AC_LIBOBJ invocations to module description.
10801         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10802         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10803         here...
10804         * modules/stat (configure.ac): ... to here.
10805
10806 2011-05-21  Bruno Haible  <bruno@clisp.org>
10807
10808         sleep: Move AC_LIBOBJ invocations to module description.
10809         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10810         * modules/sleep (configure.ac): ... to here.
10811
10812 2011-05-21  Bruno Haible  <bruno@clisp.org>
10813
10814         signbit: Move AC_LIBOBJ invocations to module description.
10815         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10816         * modules/signbit (configure.ac): ... to here.
10817
10818 2011-05-21  Bruno Haible  <bruno@clisp.org>
10819
10820         sigprocmask: Move AC_LIBOBJ invocations to module description.
10821         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10822         gl_PREREQ_SIGPROMASK invocations from here...
10823         * modules/sigprocmask (configure.ac): ... to here.
10824
10825 2011-05-21  Bruno Haible  <bruno@clisp.org>
10826
10827         sigaction: Move AC_LIBOBJ invocations to module description.
10828         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10829         gl_PREREQ_SIGACTION invocations from here...
10830         * modules/sigaction (configure.ac): ... to here.
10831
10832 2011-05-21  Bruno Haible  <bruno@clisp.org>
10833
10834         sig2str: Move AC_LIBOBJ invocations to module description.
10835         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10836         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10837         here...
10838         * modules/sig2str (configure.ac): ... to here.
10839
10840 2011-05-21  Bruno Haible  <bruno@clisp.org>
10841
10842         setlocale: Move AC_LIBOBJ invocations to module description.
10843         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10844         gl_PREREQ_SETLOCALE invocations from here...
10845         * modules/setlocale (configure.ac): ... to here.
10846
10847 2011-05-21  Bruno Haible  <bruno@clisp.org>
10848
10849         unsetenv: Move AC_LIBOBJ invocations to module description.
10850         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10851         and gl_PREREQ_UNSETENV invocations from here...
10852         * modules/unsetenv (configure.ac): ... to here.
10853         (Depends-on): Update.
10854
10855 2011-05-21  Bruno Haible  <bruno@clisp.org>
10856
10857         setenv: Move AC_LIBOBJ invocations to module description.
10858         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10859         here...
10860         * modules/setenv (configure.ac): ... to here.
10861
10862 2011-05-21  Bruno Haible  <bruno@clisp.org>
10863
10864         selinux-h: Move AC_LIBOBJ invocations to module description.
10865         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10866         AC_LIBOBJ invocation from here...
10867         * modules/selinux-h (configure.ac): ... to here.
10868
10869 2011-05-21  Bruno Haible  <bruno@clisp.org>
10870
10871         select: Respect rules for use of AC_LIBOBJ.
10872         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10873         here...
10874         * modules/select (configure.ac): ... to here.
10875
10876 2011-05-21  Bruno Haible  <bruno@clisp.org>
10877
10878         scandir: Move AC_LIBOBJ invocations to module description.
10879         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10880         invocations from here...
10881         * modules/scandir (configure.ac): ... to here.
10882
10883 2011-05-21  Bruno Haible  <bruno@clisp.org>
10884
10885         rpmatch: Move AC_LIBOBJ invocations to module description.
10886         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10888         here...
10889         * modules/rpmatch (configure.ac): ... to here.
10890
10891 2011-05-21  Bruno Haible  <bruno@clisp.org>
10892
10893         rmdir: Respect rules for use of AC_LIBOBJ.
10894         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10895         * modules/rmdir (configure.ac): ... to here.
10896
10897 2011-05-21  Bruno Haible  <bruno@clisp.org>
10898
10899         renameat: Move AC_LIBOBJ invocations to module description.
10900         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10901         here...
10902         * modules/renameat (configure.ac): ... to here.
10903
10904 2011-05-21  Bruno Haible  <bruno@clisp.org>
10905
10906         rename: Respect rules for use of AC_LIBOBJ.
10907         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10908         here...
10909         * modules/rename (configure.ac): ... to here.
10910
10911 2011-05-21  Bruno Haible  <bruno@clisp.org>
10912
10913         remove: Move AC_LIBOBJ invocations to module description.
10914         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10915         here...
10916         * modules/remove (configure.ac): ... to here.
10917
10918 2011-05-21  Bruno Haible  <bruno@clisp.org>
10919
10920         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10921         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10922         macro.
10923         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10924         * modules/relocatable-lib (configure.ac): ... to here.
10925         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10926         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10927
10928 2011-05-21  Bruno Haible  <bruno@clisp.org>
10929
10930         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10931         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10932         here...
10933         * modules/relocatable-prog (configure.ac): ... to here.
10934
10935 2011-05-21  Bruno Haible  <bruno@clisp.org>
10936
10937         regex: Move AC_LIBOBJ invocations to module description.
10938         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10939         invocations from here...
10940         * modules/regex (configure.ac): ... to here.
10941
10942 2011-05-21  Bruno Haible  <bruno@clisp.org>
10943
10944         realloc-*: Move AC_LIBOBJ invocations to module description.
10945         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10946         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10947         AC_LIBOBJ invocations from here...
10948         * modules/realloc-gnu (configure.ac): ... to here.
10949         * modules/realloc-posix (configure.ac): ... and here.
10950
10951 2011-05-21  Bruno Haible  <bruno@clisp.org>
10952
10953         readutmp: Move AC_LIBOBJ invocations to module description.
10954         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10955         * modules/readutmp (configure.ac): ... to here.
10956
10957 2011-05-21  Bruno Haible  <bruno@clisp.org>
10958
10959         readlinkat: Move AC_LIBOBJ invocations to module description.
10960         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10961         here...
10962         * modules/readlinkat (configure.ac): ... to here.
10963
10964 2011-05-21  Bruno Haible  <bruno@clisp.org>
10965
10966         readlink: Move AC_LIBOBJ invocations to module description.
10967         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10968         gl_PREREQ_READLINK invocations from here...
10969         * modules/readlink (configure.ac): ... to here.
10970
10971 2011-05-21  Bruno Haible  <bruno@clisp.org>
10972
10973         readline: Move AC_LIBOBJ invocations to module description.
10974         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10975         gl_PREREQ_READLINE invocations from here...
10976         * modules/readline (configure.ac): ... to here.
10977
10978 2011-05-21  Bruno Haible  <bruno@clisp.org>
10979
10980         read: Move AC_LIBOBJ invocations to module description.
10981         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10982         * modules/read (configure.ac): ... to here.
10983
10984 2011-05-21  Bruno Haible  <bruno@clisp.org>
10985
10986         rawmemchr: Move AC_LIBOBJ invocations to module description.
10987         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10989         from here...
10990         * modules/rawmemchr (configure.ac): ... to here.
10991
10992 2011-05-21  Bruno Haible  <bruno@clisp.org>
10993
10994         random_r: Move AC_LIBOBJ invocations to module description.
10995         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10996         gl_PREREQ_RANDOM_R invocations from here...
10997         * modules/random_r (configure.ac): ... to here.
10998
10999 2011-05-21  Bruno Haible  <bruno@clisp.org>
11000
11001         pwrite: Move AC_LIBOBJ invocations to module description.
11002         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
11003         * modules/pwrite (configure.ac): ... to here.
11004
11005 2011-05-21  Bruno Haible  <bruno@clisp.org>
11006
11007         putenv: Move AC_LIBOBJ invocations to module description.
11008         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
11009         * modules/putenv (configure.ac): ... to here.
11010
11011 2011-05-21  Bruno Haible  <bruno@clisp.org>
11012
11013         login_tty: Move AC_LIBOBJ invocations to module description.
11014         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11015         * modules/login_tty (configure.ac): ... to here.
11016
11017 2011-05-21  Bruno Haible  <bruno@clisp.org>
11018
11019         openpty: Move AC_LIBOBJ invocations to module description.
11020         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11021         * modules/openpty (configure.ac): ... to here.
11022
11023 2011-05-21  Bruno Haible  <bruno@clisp.org>
11024
11025         forkpty: Move AC_LIBOBJ invocations to module description.
11026         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11027         * modules/forkpty (configure.ac): ... to here.
11028
11029 2011-05-21  Bruno Haible  <bruno@clisp.org>
11030
11031         ptsname: Move AC_LIBOBJ invocations to module description.
11032         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11033         invocations from here...
11034         * modules/ptsname (configure.ac): ... to here.
11035
11036 2011-05-21  Bruno Haible  <bruno@clisp.org>
11037
11038         pread: Move AC_LIBOBJ invocations to module description.
11039         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11040         * modules/pread (configure.ac): ... to here.
11041
11042 2011-05-21  Bruno Haible  <bruno@clisp.org>
11043
11044         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11045         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11046         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11047         * modules/posix_spawn (configure.ac): ... to here.
11048         * modules/posix_spawnp (configure.ac): ... and here.
11049
11050 2011-05-21  Bruno Haible  <bruno@clisp.org>
11051
11052         popen: Move AC_LIBOBJ invocations to module description.
11053         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11054         invocations from here...
11055         * modules/popen (configure.ac): ... to here.
11056
11057 2011-05-21  Bruno Haible  <bruno@clisp.org>
11058
11059         poll: Move AC_LIBOBJ invocations to module description.
11060         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11061         invocations from here...
11062         * modules/poll (configure.ac): ... to here.
11063
11064 2011-05-21  Bruno Haible  <bruno@clisp.org>
11065
11066         pipe-posix: Move AC_LIBOBJ invocations to module description.
11067         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11068         * modules/pipe-posix (configure.ac): ... to here.
11069
11070 2011-05-21  Bruno Haible  <bruno@clisp.org>
11071
11072         openat: Respect rules for use of AC_LIBOBJ.
11073         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11074         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11075         * modules/openat (configure.ac): ... to here.
11076
11077 2011-05-21  Bruno Haible  <bruno@clisp.org>
11078
11079         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11080         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11081         invocation from here...
11082         * modules/obstack-printf (configure.ac): ... to here.
11083         * modules/obstack-printf-posix (configure.ac): ... and here.
11084
11085 2011-05-21  Bruno Haible  <bruno@clisp.org>
11086
11087         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11088         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11089         from here...
11090         * modules/nl_langinfo (configure.ac): ... to here.
11091
11092 2011-05-21  Bruno Haible  <bruno@clisp.org>
11093
11094         nanosleep: Move AC_LIBOBJ invocations to module description.
11095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11096         gl_PREREQ_NANOSLEEP invocations from here...
11097         * modules/nanosleep (configure.ac): ... to here.
11098
11099 2011-05-21  Bruno Haible  <bruno@clisp.org>
11100
11101         mountlist: Move AC_LIBOBJ invocations to module description.
11102         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11103         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11104         * modules/mountlist (configure.ac): ... to here.
11105
11106 2011-05-21  Bruno Haible  <bruno@clisp.org>
11107
11108         mktime: Respect rules for use of AC_LIBOBJ.
11109         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11110         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11111         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11112         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11113         * modules/mktime (configure.ac): ... to here.
11114         * modules/mktime-internal (configure.ac): ... and here.
11115         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11116
11117 2011-05-21  Bruno Haible  <bruno@clisp.org>
11118
11119         mkstemps: Move AC_LIBOBJ invocations to module description.
11120         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11121         here...
11122         * modules/mkstemps (configure.ac): ... to here.
11123
11124 2011-05-21  Bruno Haible  <bruno@clisp.org>
11125
11126         mkstemp: Move AC_LIBOBJ invocations to module description.
11127         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11128         gl_PREREQ_MKSTEMP invocations from here...
11129         * modules/mkstemp (configure.ac): ... to here.
11130
11131 2011-05-21  Bruno Haible  <bruno@clisp.org>
11132
11133         mkostemps: Move AC_LIBOBJ invocations to module description.
11134         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11135         here...
11136         * modules/mkostemps (configure.ac): ... to here.
11137
11138 2011-05-21  Bruno Haible  <bruno@clisp.org>
11139
11140         mkostemp: Move AC_LIBOBJ invocations to module description.
11141         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11142         gl_PREREQ_MKOSTEMP invocations from here...
11143         * modules/mkostemp (configure.ac): ... to here.
11144
11145 2011-05-21  Bruno Haible  <bruno@clisp.org>
11146
11147         mknod: Move AC_LIBOBJ invocations to module description.
11148         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11149         * modules/mknod (configure.ac): ... to here.
11150
11151 2011-05-21  Bruno Haible  <bruno@clisp.org>
11152
11153         mkfifoat: Move AC_LIBOBJ invocations to module description.
11154         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11155         here...
11156         * modules/mkfifoat (configure.ac): ... to here.
11157
11158 2011-05-21  Bruno Haible  <bruno@clisp.org>
11159
11160         mkfifo: Respect rules for use of AC_LIBOBJ.
11161         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11162         here...
11163         * modules/mkfifo (configure.ac): ... to here.
11164
11165 2011-05-21  Bruno Haible  <bruno@clisp.org>
11166
11167         mkdtemp: Move AC_LIBOBJ invocations to module description.
11168         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11169         invocations from here...
11170         * modules/mkdtemp (configure.ac): ... to here.
11171
11172 2011-05-21  Bruno Haible  <bruno@clisp.org>
11173
11174         mkdir: Move AC_LIBOBJ invocations to module description.
11175         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11176         * modules/mkdir (configure.ac): ... to here.
11177
11178 2011-05-21  Bruno Haible  <bruno@clisp.org>
11179
11180         memset: Move AC_LIBOBJ invocations to module description.
11181         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11183         here...
11184         * modules/memset (configure.ac): ... to here.
11185
11186 2011-05-21  Bruno Haible  <bruno@clisp.org>
11187
11188         memrchr: Move AC_LIBOBJ invocations to module description.
11189         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11191         here...
11192         * modules/memrchr (configure.ac): ... to here.
11193
11194 2011-05-21  Bruno Haible  <bruno@clisp.org>
11195
11196         mempcpy: Move AC_LIBOBJ invocations to module description.
11197         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11199         here...
11200         * modules/mempcpy (configure.ac): ... to here.
11201
11202 2011-05-21  Bruno Haible  <bruno@clisp.org>
11203
11204         memmove: Move AC_LIBOBJ invocations to module description.
11205         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11206         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11207         here...
11208         * modules/memmove (configure.ac): ... to here.
11209
11210 2011-05-21  Bruno Haible  <bruno@clisp.org>
11211
11212         memmem*: Move AC_LIBOBJ invocations to module description.
11213         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11214         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11215         here...
11216         (gl_FUNC_MEMMEM): ... and here...
11217         * modules/memmem-simple (configure.ac): ... to here.
11218         * modules/memmem (configure.ac): ... and here.
11219
11220 2011-05-21  Bruno Haible  <bruno@clisp.org>
11221
11222         memcpy: Move AC_LIBOBJ invocations to module description.
11223         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11224         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11225         here...
11226         * modules/memcpy (configure.ac): ... to here.
11227
11228 2011-05-21  Bruno Haible  <bruno@clisp.org>
11229
11230         memcmp: Simplify autoconf macro.
11231         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11232         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11233         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11234
11235 2011-05-21  Bruno Haible  <bruno@clisp.org>
11236
11237         memcmp: Move AC_LIBOBJ invocations to module description.
11238         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11239         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11240         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11241         * modules/memcmp (configure.ac): ... to here.
11242         (Depends-on): Update conditions.
11243
11244 2011-05-21  Bruno Haible  <bruno@clisp.org>
11245
11246         memchr: Respect rules for use of AC_LIBOBJ.
11247         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11248         invocations from here...
11249         * modules/memchr (configure.ac): ... to here.
11250
11251 2011-05-21  Bruno Haible  <bruno@clisp.org>
11252
11253         mbtowc: Move AC_LIBOBJ invocations to module description.
11254         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11255         invocations from here...
11256         * modules/mbtowc (configure.ac): ... to here.
11257
11258 2011-05-21  Bruno Haible  <bruno@clisp.org>
11259
11260         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11261         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11262         gl_PREREQ_MBSRTOWCS invocations from here...
11263         * modules/mbsrtowcs (configure.ac): ... to here.
11264
11265 2011-05-21  Bruno Haible  <bruno@clisp.org>
11266
11267         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11268         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11269         gl_PREREQ_MBSNRTOWCS invocations from here...
11270         * modules/mbsnrtowcs (configure.ac): ... to here.
11271
11272 2011-05-21  Bruno Haible  <bruno@clisp.org>
11273
11274         mbsinit: Move AC_LIBOBJ invocations to module description.
11275         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11276         invocations from here...
11277         * modules/mbsinit (configure.ac): ... to here.
11278
11279 2011-05-21  Bruno Haible  <bruno@clisp.org>
11280
11281         mbrlen: Move AC_LIBOBJ invocations to module description.
11282         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11283         invocations from here...
11284         * modules/mbrlen (configure.ac): ... to here.
11285
11286 2011-05-21  Bruno Haible  <bruno@clisp.org>
11287
11288         mbrtowc: Respect rules for use of AC_LIBOBJ.
11289         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
11290         invocations from here...
11291         * modules/mbrtowc (configure.ac): ... to here.
11292
11293 2011-05-21  Bruno Haible  <bruno@clisp.org>
11294
11295         malloc-*: Move AC_LIBOBJ invocations to module description.
11296         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11297         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11298         AC_LIBOBJ invocations from here...
11299         * modules/malloc-gnu (configure.ac): ... to here.
11300         * modules/malloc-posix (configure.ac): ... and here.
11301
11302 2011-05-21  Bruno Haible  <bruno@clisp.org>
11303
11304         lstat, openat: Respect rules for use of AC_LIBOBJ.
11305         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11306         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11307         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11308         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11309         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11310         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11311         here.
11312         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11313
11314 2011-05-21  Bruno Haible  <bruno@clisp.org>
11315
11316         lseek: Move AC_LIBOBJ invocations to module description.
11317         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11318         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11319         * modules/lseek (configure.ac): ... to here.
11320
11321 2011-05-21  Bruno Haible  <bruno@clisp.org>
11322
11323         linkat: Move AC_LIBOBJ invocations to module description.
11324         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11325         here...
11326         * modules/linkat (configure.ac): ... to here.
11327
11328 2011-05-21  Bruno Haible  <bruno@clisp.org>
11329
11330         link: Respect rules for use of AC_LIBOBJ.
11331         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11332         * modules/link (configure.ac): ... to here.
11333
11334 2011-05-21  Bruno Haible  <bruno@clisp.org>
11335
11336         lchown: Move AC_LIBOBJ invocations to module description.
11337         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11338         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11339         * modules/lchown (configure.ac): ... to here.
11340
11341 2011-05-21  Bruno Haible  <bruno@clisp.org>
11342
11343         iswctype: Move AC_LIBOBJ invocations to module description.
11344         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11345         here...
11346         * modules/iswctype (configure.ac): ... to here.
11347
11348 2011-05-21  Bruno Haible  <bruno@clisp.org>
11349
11350         iswblank: Move AC_LIBOBJ invocations to module description.
11351         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11352         here...
11353         * modules/iswblank (configure.ac): ... to here.
11354
11355 2011-05-21  Bruno Haible  <bruno@clisp.org>
11356
11357         atanl: Move AC_LIBOBJ invocations to module description.
11358         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11359         * modules/atanl (configure.ac): ... to here.
11360
11361 2011-05-21  Bruno Haible  <bruno@clisp.org>
11362
11363         acosl: Move AC_LIBOBJ invocations to module description.
11364         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11365         * modules/acosl (configure.ac): ... to here.
11366
11367 2011-05-21  Bruno Haible  <bruno@clisp.org>
11368
11369         asinl: Respect rules for use of AC_LIBOBJ.
11370         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11371         * modules/asinl (configure.ac): ... to here.
11372
11373 2011-05-21  Bruno Haible  <bruno@clisp.org>
11374
11375         tanl: Move AC_LIBOBJ invocations to module description.
11376         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11377         * modules/tanl (configure.ac): ... to here.
11378
11379 2011-05-21  Bruno Haible  <bruno@clisp.org>
11380
11381         cosl: Move AC_LIBOBJ invocations to module description.
11382         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11383         * modules/cosl (configure.ac): ... to here.
11384
11385 2011-05-21  Bruno Haible  <bruno@clisp.org>
11386
11387         sinl: Move AC_LIBOBJ invocations to module description.
11388         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11389         * modules/sinl (configure.ac): ... to here.
11390
11391 2011-05-21  Bruno Haible  <bruno@clisp.org>
11392
11393         logl: Move AC_LIBOBJ invocations to module description.
11394         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11395         * modules/logl (configure.ac): ... to here.
11396
11397 2011-05-21  Bruno Haible  <bruno@clisp.org>
11398
11399         expl: Move AC_LIBOBJ invocations to module description.
11400         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11401         * modules/expl (configure.ac): ... to here.
11402
11403 2011-05-21  Bruno Haible  <bruno@clisp.org>
11404
11405         roundl: Move AC_LIBOBJ invocations to module description.
11406         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11407         * modules/roundl (configure.ac): ... to here.
11408
11409 2011-05-21  Bruno Haible  <bruno@clisp.org>
11410
11411         round: Move AC_LIBOBJ invocations to module description.
11412         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11413         * modules/round (configure.ac): ... to here.
11414
11415 2011-05-21  Bruno Haible  <bruno@clisp.org>
11416
11417         roundf: Move AC_LIBOBJ invocations to module description.
11418         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11419         * modules/roundf (configure.ac): ... to here.
11420
11421 2011-05-21  Bruno Haible  <bruno@clisp.org>
11422
11423         truncl: Move AC_LIBOBJ invocations to module description.
11424         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11425         * modules/truncl (configure.ac): ... to here.
11426
11427 2011-05-21  Bruno Haible  <bruno@clisp.org>
11428
11429         trunc: Move AC_LIBOBJ invocations to module description.
11430         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11431         * modules/trunc (configure.ac): ... to here.
11432
11433 2011-05-21  Bruno Haible  <bruno@clisp.org>
11434
11435         truncf: Move AC_LIBOBJ invocations to module description.
11436         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11437         * modules/truncf (configure.ac): ... to here.
11438
11439 2011-05-21  Bruno Haible  <bruno@clisp.org>
11440
11441         ceill: Move AC_LIBOBJ invocations to module description.
11442         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11443         * modules/ceill (configure.ac): ... to here.
11444
11445 2011-05-21  Bruno Haible  <bruno@clisp.org>
11446
11447         ceil: Move AC_LIBOBJ invocations to module description.
11448         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11449         * modules/ceil (configure.ac): ... to here.
11450
11451 2011-05-21  Bruno Haible  <bruno@clisp.org>
11452
11453         ceilf: Move AC_LIBOBJ invocations to module description.
11454         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11455         * modules/ceilf (configure.ac): ... to here.
11456
11457 2011-05-21  Bruno Haible  <bruno@clisp.org>
11458
11459         floorl: Respect rules for use of AC_LIBOBJ.
11460         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11461         * modules/floorl (configure.ac): ... to here.
11462
11463 2011-05-21  Bruno Haible  <bruno@clisp.org>
11464
11465         floor: Respect rules for use of AC_LIBOBJ.
11466         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11467         * modules/floor (configure.ac): ... to here.
11468
11469 2011-05-21  Bruno Haible  <bruno@clisp.org>
11470
11471         floorf: Move AC_LIBOBJ invocations to module description.
11472         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11473         * modules/floorf (configure.ac): ... to here.
11474
11475 2011-05-20  Bruno Haible  <bruno@clisp.org>
11476
11477         sqrtl: Respect rules for use of AC_LIBOBJ.
11478         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11479         * modules/sqrtl (configure.ac): ... to here.
11480
11481 2011-05-20  Bruno Haible  <bruno@clisp.org>
11482
11483         ldexpl: Respect rules for use of AC_LIBOBJ.
11484         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11485         * modules/ldexpl (configure.ac): ... to here.
11486
11487 2011-05-20  Bruno Haible  <bruno@clisp.org>
11488
11489         frexpl*: Respect rules for use of AC_LIBOBJ.
11490         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11491         invocation from here...
11492         * modules/frexpl (configure.ac): ... to here.
11493         * modules/frexpl-nolibm (configure.ac): ... and here.
11494
11495 2011-05-20  Bruno Haible  <bruno@clisp.org>
11496
11497         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11498         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11499         invocation from here...
11500         * modules/frexp (configure.ac): ... to here.
11501         * modules/frexp-nolibm (configure.ac): ... and here.
11502
11503 2011-05-20  Bruno Haible  <bruno@clisp.org>
11504
11505         isnan: Respect rules for use of AC_LIBOBJ.
11506         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11507         invocations here.
11508         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11509         REPLACE_ISNAN.
11510         * modules/isnand (configure.ac): Likewise.
11511         * modules/isnanl (configure.ac): Likewise.
11512
11513 2011-05-20  Bruno Haible  <bruno@clisp.org>
11514
11515         isnanl*: Respect rules for use of AC_LIBOBJ.
11516         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11517         invocation from here...
11518         * modules/isnanl (configure.ac): ... to here.
11519         * modules/isnanl-nolibm (configure.ac): ... and here.
11520
11521 2011-05-20  Bruno Haible  <bruno@clisp.org>
11522
11523         isnand*: Move AC_LIBOBJ invocations to module description.
11524         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11525         invocation from here...
11526         * modules/isnand (configure.ac): ... to here.
11527         * modules/isnand-nolibm (configure.ac): ... and here.
11528
11529 2011-05-20  Bruno Haible  <bruno@clisp.org>
11530
11531         isnanf*: Move AC_LIBOBJ invocations to module description.
11532         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11533         invocation from here...
11534         * modules/isnanf (configure.ac): ... to here.
11535         * modules/isnanf-nolibm (configure.ac): ... and here.
11536
11537 2011-05-20  Bruno Haible  <bruno@clisp.org>
11538
11539         isnan*: Separate the AC_LIBOBJ invocations.
11540         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11541         AC_LIBOBJ invocation.
11542         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11543         here.
11544         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11545         AC_LIBOBJ invocation.
11546         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11547         here.
11548         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11549         AC_LIBOBJ invocation.
11550         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11551         here.
11552         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11553
11554 2011-05-08  Bruno Haible  <bruno@clisp.org>
11555
11556         isinf: Move AC_LIBOBJ invocations to module description.
11557         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11558         * modules/isinf (configure.ac): ... to here.
11559
11560 2011-05-08  Bruno Haible  <bruno@clisp.org>
11561
11562         isfinite: Move AC_LIBOBJ invocations to module description.
11563         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11564         * modules/isfinite (configure.ac): ... to here.
11565
11566 2011-05-08  Bruno Haible  <bruno@clisp.org>
11567
11568         isblank: Move AC_LIBOBJ invocations to module description.
11569         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11570         here...
11571         * modules/isblank (configure.ac): ... to here.
11572
11573 2011-05-08  Bruno Haible  <bruno@clisp.org>
11574
11575         isapipe: Move AC_LIBOBJ invocations to module description.
11576         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11577         gl_PREREQ_ISAPIPE invocations from here...
11578         * modules/isapipe (configure.ac): ... to here.
11579         (Depends-on): Update condition.
11580
11581 2011-05-08  Bruno Haible  <bruno@clisp.org>
11582
11583         ioctl: Move AC_LIBOBJ invocations to module description.
11584         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11585         invocations from here...
11586         * modules/ioctl (configure.ac): ... to here.
11587         (Depends-on): Update condition.
11588
11589 2011-05-08  Bruno Haible  <bruno@clisp.org>
11590
11591         imaxdiv: Move AC_LIBOBJ invocations to module description.
11592         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11593         invocations from here...
11594         * modules/imaxdiv (configure.ac): ... to here.
11595
11596 2011-05-08  Bruno Haible  <bruno@clisp.org>
11597
11598         imaxabs: Move AC_LIBOBJ invocations to module description.
11599         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11600         invocations from here...
11601         * modules/imaxabs (configure.ac): ... to here.
11602
11603 2011-05-08  Bruno Haible  <bruno@clisp.org>
11604
11605         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11607         AC_LIBOBJ invocations from here...
11608         * modules/getaddrinfo (configure.ac): ... to here.
11609         (Depends-on): Add conditions.
11610
11611 2011-05-08  Bruno Haible  <bruno@clisp.org>
11612
11613         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11614         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11615         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11616         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11617         (gl_PREREQ_INET_PTON): ... from here.
11618         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11619         gl_PREREQ_INET_PTON here.
11620         (Depends-on): Update condition.
11621
11622 2011-05-08  Bruno Haible  <bruno@clisp.org>
11623
11624         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11625         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11626         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11627         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11628         (gl_PREREQ_INET_NTOP): ... from here.
11629         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11630         gl_PREREQ_INET_NTOP here.
11631         (Depends-on): Update condition.
11632
11633 2011-05-08  Bruno Haible  <bruno@clisp.org>
11634
11635         iconv_open: Move AC_LIBOBJ invocations to module description.
11636         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11637         AC_LIBOBJ invocations from here...
11638         * modules/iconv_open (configure.ac): ... to here.
11639
11640 2011-05-08  Bruno Haible  <bruno@clisp.org>
11641
11642         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11643         If module 'iconv_open' is among the main modules and module
11644         'iconv_open-utf' is among the tests dependencies, then
11645         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11646         return the special iconv_t values. Therefore iconv() and iconv_close()
11647         must support these special iconv_t values, already in lib, not only in
11648         tests.
11649         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11650         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11651         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11652         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11653         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11654         (Depends-on): Add the dependencies of iconv_open-utf.
11655         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11656         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11657         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11658
11659 2011-05-08  Bruno Haible  <bruno@clisp.org>
11660
11661         group-member: Move AC_LIBOBJ invocations to module description.
11662         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11663         gl_PREREQ_GROUP_MEMBER invocations from here...
11664         * modules/group-member (configure.ac): ... to here.
11665
11666 2011-05-08  Bruno Haible  <bruno@clisp.org>
11667
11668         grantpt: Move AC_LIBOBJ invocations to module description.
11669         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11670         invocations from here...
11671         * modules/grantpt (configure.ac): ... to here.
11672
11673 2011-05-08  Bruno Haible  <bruno@clisp.org>
11674
11675         glob: Move AC_LIBOBJ invocations to module description.
11676         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11677         from here...
11678         * modules/glob (configure.ac): ... to here.
11679
11680 2011-05-08  Bruno Haible  <bruno@clisp.org>
11681
11682         getusershell: Move AC_LIBOBJ invocations to module description.
11683         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11684         Move AC_LIBOBJ invocation from here...
11685         * modules/getusershell (configure.ac): ... to here.
11686         (Depends-on): Update condition.
11687
11688 2011-05-08  Bruno Haible  <bruno@clisp.org>
11689
11690         gettimeofday: Move AC_LIBOBJ invocations to module description.
11691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11692         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11693         gl_PREREQ_GETTIMEOFDAY invocations from here...
11694         * modules/gettimeofday (configure.ac): ... to here.
11695
11696 2011-05-08  Bruno Haible  <bruno@clisp.org>
11697
11698         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11699         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11700         just gl_FUNC_TZSET.
11701         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11702         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11703         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11704         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11705
11706 2011-05-08  Bruno Haible  <bruno@clisp.org>
11707
11708         getsubopt: Move AC_LIBOBJ invocations to module description.
11709         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11710         gl_PREREQ_GETSUBOPT invocations from here...
11711         * modules/getsubopt (configure.ac): ... to here.
11712
11713 2011-05-08  Bruno Haible  <bruno@clisp.org>
11714
11715         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11716         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11717         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11718         * modules/getpass-gnu (configure.ac): ... to here.
11719
11720 2011-05-08  Bruno Haible  <bruno@clisp.org>
11721
11722         getpass: Move AC_LIBOBJ invocations to module description.
11723         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11724         gl_PREREQ_GETPASS invocations from here...
11725         * modules/getpass (configure.ac): ... to here.
11726
11727 2011-05-08  Bruno Haible  <bruno@clisp.org>
11728
11729         getpagesize: Move AC_LIBOBJ invocations to module description.
11730         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11731         from here...
11732         * modules/getpagesize (configure.ac): ... to here.
11733
11734 2011-05-08  Bruno Haible  <bruno@clisp.org>
11735
11736         getopt: Move AC_LIBOBJ invocations to module description.
11737         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11738         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11739         invocations from here...
11740         * modules/getopt-gnu (configure.ac): ... to here.
11741         * modules/getopt-posix (configure.ac): ... and here.
11742         (Depends-on): Update condition.
11743
11744 2011-05-08  Bruno Haible  <bruno@clisp.org>
11745
11746         getopt, argp: Respect rules for use of AC_LIBOBJ.
11747         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11748         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11749         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11750         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11751
11752 2011-05-08  Bruno Haible  <bruno@clisp.org>
11753
11754         getlogin_r: Move AC_LIBOBJ invocations to module description.
11755         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11756         gl_PREREQ_GETLOGIN_R invocations from here...
11757         * modules/getlogin_r (configure.ac): ... to here.
11758
11759 2011-05-08  Bruno Haible  <bruno@clisp.org>
11760
11761         getlogin: Move AC_LIBOBJ invocations to module description.
11762         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11763         here...
11764         * modules/getlogin (configure.ac): ... to here.
11765
11766 2011-05-08  Bruno Haible  <bruno@clisp.org>
11767
11768         getloadavg: Move AC_LIBOBJ invocations to module description.
11769         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11770         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11771         * modules/getloadavg (configure.ac): ... to here.
11772
11773 2011-05-08  Bruno Haible  <bruno@clisp.org>
11774
11775         gethrxtime: Move AC_LIBOBJ invocations to module description.
11776         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11777         LIB_GETHRXTIME from here...
11778         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11779         invocations from here...
11780         * modules/gethrxtime (configure.ac): ... to here.
11781
11782 2011-05-08  Bruno Haible  <bruno@clisp.org>
11783
11784         gethostname: Move AC_LIBOBJ invocations to module description.
11785         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11786         gl_PREREQ_GETHOSTNAME invocations from here...
11787         * modules/gethostname (configure.ac): ... to here.
11788
11789 2011-05-08  Bruno Haible  <bruno@clisp.org>
11790
11791         getgroups: Move AC_LIBOBJ invocations to module description.
11792         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11793         here...
11794         * modules/getgroups (configure.ac): ... to here.
11795
11796 2011-05-08  Bruno Haible  <bruno@clisp.org>
11797
11798         getdtablesize: Move AC_LIBOBJ invocations to module description.
11799         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11800         invocation from here...
11801         * modules/getdtablesize (configure.ac): ... to here.
11802
11803 2011-05-08  Bruno Haible  <bruno@clisp.org>
11804
11805         getdomainname: Move AC_LIBOBJ invocations to module description.
11806         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11807         gl_PREREQ_GETDOMAINNAME invocations from here...
11808         * modules/getdomainname (configure.ac): ... to here.
11809
11810 2011-05-08  Bruno Haible  <bruno@clisp.org>
11811
11812         getline: Move AC_LIBOBJ invocations to module description.
11813         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11814         invocations from here...
11815         * modules/getline (configure.ac): ... to here.
11816
11817 2011-05-08  Bruno Haible  <bruno@clisp.org>
11818
11819         getline: Simplify.
11820         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11821         It's already handled through the module dependency.
11822
11823 2011-05-08  Bruno Haible  <bruno@clisp.org>
11824
11825         getdelim: Move AC_LIBOBJ invocations to module description.
11826         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11827         and gl_PREREQ_GETDELIM invocations from here...
11828         * modules/getdelim (configure.ac): ... to here.
11829         (Depends-on): Fix condition.
11830
11831 2011-05-08  Bruno Haible  <bruno@clisp.org>
11832
11833         getcwd: Move AC_LIBOBJ invocations to module description.
11834         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11835         invocations from here...
11836         * modules/getcwd (configure.ac): ... to here.
11837
11838 2011-05-08  Bruno Haible  <bruno@clisp.org>
11839
11840         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11841         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11842         here...
11843         * modules/getcwd-lgpl (configure.ac): ... to here.
11844
11845 2011-05-07  Bruno Haible  <bruno@clisp.org>
11846
11847         crypto/gc: Move AC_LIBOBJ invocations to module description.
11848         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11849         * modules/crypto/gc (configure.ac): ... to here.
11850
11851 2011-05-07  Bruno Haible  <bruno@clisp.org>
11852
11853         fwriting: Move AC_LIBOBJ invocations to module description.
11854         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11855         here...
11856         * modules/fwriting (configure.ac): ... to here.
11857
11858 2011-05-07  Bruno Haible  <bruno@clisp.org>
11859
11860         fwritable: Move AC_LIBOBJ invocations to module description.
11861         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11862         here...
11863         * modules/fwritable (configure.ac): ... to here.
11864
11865 2011-05-07  Bruno Haible  <bruno@clisp.org>
11866
11867         futimens: Move AC_LIBOBJ invocations to module description.
11868         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11869         here...
11870         * modules/futimens (configure.ac): ... to here.
11871
11872 2011-05-07  Bruno Haible  <bruno@clisp.org>
11873
11874         ftruncate: Move AC_LIBOBJ invocations to module description.
11875         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11876         gl_PREREQ_FTRUNCATE invocations from here...
11877         * modules/ftruncate (configure.ac): ... to here.
11878
11879 2011-05-07  Bruno Haible  <bruno@clisp.org>
11880
11881         fsync: Move AC_LIBOBJ invocations to module description.
11882         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11883         invocations from here...
11884         * modules/fsync (configure.ac): ... to here.
11885
11886 2011-05-07  Bruno Haible  <bruno@clisp.org>
11887
11888         fsusage: Move AC_LIBOBJ invocations to module description.
11889         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11890         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11891         * modules/fsusage (configure.ac): ... to here.
11892
11893 2011-05-07  Bruno Haible  <bruno@clisp.org>
11894
11895         freopen: Move AC_LIBOBJ invocations to module description.
11896         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11897         invocations from here...
11898         * modules/freopen (configure.ac): ... to here.
11899
11900 2011-05-07  Bruno Haible  <bruno@clisp.org>
11901
11902         free: Move AC_LIBOBJ invocations to module description.
11903         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11904         invocations from here...
11905         * modules/free (configure.ac): ... to here.
11906
11907 2011-05-07  Bruno Haible  <bruno@clisp.org>
11908
11909         freadable: Move AC_LIBOBJ invocations to module description.
11910         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11911         here...
11912         * modules/freadable (configure.ac): ... to here.
11913
11914 2011-05-07  Bruno Haible  <bruno@clisp.org>
11915
11916         fpurge: Move AC_LIBOBJ invocations to module description.
11917         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11918         invocations from here...
11919         * modules/fpurge (configure.ac): ... to here.
11920
11921 2011-05-07  Bruno Haible  <bruno@clisp.org>
11922
11923         fpending: Move AC_LIBOBJ invocations to module description.
11924         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11925         gl_FUNC_FPENDING.
11926         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11927         invocations from here...
11928         * modules/fpending (configure.ac): ... to here.
11929
11930 2011-05-07  Bruno Haible  <bruno@clisp.org>
11931
11932         fopen: Move AC_LIBOBJ invocations to module description.
11933         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11934         invocations from here...
11935         * modules/fopen (configure.ac): ... to here.
11936
11937 2011-05-07  Bruno Haible  <bruno@clisp.org>
11938
11939         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11940         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11941         gl_FUNC_FNMATCH_POSIX.
11942         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11943         invocations from here...
11944         * modules/fnmatch (configure.ac): ... to here.
11945         * modules/fnmatch-gnu (configure.ac): ... and here.
11946
11947 2011-05-07  Bruno Haible  <bruno@clisp.org>
11948
11949         flock: Move AC_LIBOBJ invocations to module description.
11950         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11951         invocations from here...
11952         * modules/flock (configure.ac): ... to here.
11953
11954 2011-05-07  Bruno Haible  <bruno@clisp.org>
11955
11956         fileblocks: Move AC_LIBOBJ invocations to module description.
11957         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11958         gl_PREREQ_FILEBLOCKS invocations from here...
11959         * modules/fileblocks (configure.ac): ... to here.
11960
11961 2011-05-06  Bruno Haible  <bruno@clisp.org>
11962
11963         fflush: Move AC_LIBOBJ invocations to module description.
11964         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11965         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11966         invocations from here...
11967         * modules/fflush (configure.ac): ... to here.
11968
11969 2011-05-06  Bruno Haible  <bruno@clisp.org>
11970
11971         fdopendir: Move AC_LIBOBJ invocations to module description.
11972         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11973         here...
11974         * modules/fdopendir (configure.ac): ... to here.
11975         (Depends-on): Improve conditions.
11976
11977 2011-05-06  Bruno Haible  <bruno@clisp.org>
11978
11979         _Exit: Move AC_LIBOBJ invocations to module description.
11980         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11981         invocations from here...
11982         * modules/_Exit (configure.ac): ... to here.
11983
11984 2011-05-21  Bruno Haible  <bruno@clisp.org>
11985
11986         euidaccess: Respect rules for use of AC_LIBOBJ.
11987         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11989         from here...
11990         * modules/euidaccess (configure.ac): ... to here.
11991
11992 2011-05-06  Bruno Haible  <bruno@clisp.org>
11993
11994         error: Move AC_LIBOBJ invocations to module description.
11995         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11996         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11997         invocations from here...
11998         * modules/error (configure.ac): ... to here.
11999
12000 2011-05-06  Bruno Haible  <bruno@clisp.org>
12001
12002         duplocale: Move AC_LIBOBJ invocations to module description.
12003         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
12004         gl_PREREQ_DUPLOCALE invocations from here...
12005         * modules/duplocale (configure.ac): ... to here.
12006
12007 2011-05-05  Bruno Haible  <bruno@clisp.org>
12008
12009         dirfd: Move AC_LIBOBJ invocations to module description.
12010         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12011         gl_FUNC_DIRFD.
12012         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12013         here...
12014         * modules/dirfd (configure.ac): ... to here.
12015         (Depends-on): Fix condition.
12016
12017 2011-05-05  Bruno Haible  <bruno@clisp.org>
12018
12019         chown: Respect rules for use of AC_LIBOBJ.
12020         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12021         * modules/chown (configure.ac): ... to here.
12022
12023 2011-05-05  Bruno Haible  <bruno@clisp.org>
12024
12025         chdir-long: Move AC_LIBOBJ invocations to module description.
12026         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12027         gl_PREREQ_CHDIR_LONG invocations from here...
12028         * modules/chdir-long (configure.ac): ... to here.
12029
12030 2011-05-05  Bruno Haible  <bruno@clisp.org>
12031
12032         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12033         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12034         from here...
12035         * modules/canonicalize-lgpl (configure.ac): ... to here.
12036
12037 2011-05-05  Bruno Haible  <bruno@clisp.org>
12038
12039         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12040         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12041         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12042         REPLACE_CALLOC.
12043         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12044         * modules/calloc-gnu (configure.ac): Likewise.
12045
12046 2011-05-05  Bruno Haible  <bruno@clisp.org>
12047
12048         btowc: Move AC_LIBOBJ invocations to module description.
12049         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12050         invocations from here...
12051         * modules/btowc (configure.ac): ... to here.
12052
12053 2011-05-21  Bruno Haible  <bruno@clisp.org>
12054
12055         atexit: Move AC_LIBOBJ invocations to module description.
12056         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12058         here...
12059         * modules/atexit (configure.ac): ... to here.
12060
12061 2011-05-05  Bruno Haible  <bruno@clisp.org>
12062
12063         atoll: Move AC_LIBOBJ invocations to module description.
12064         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12065         invocations from here...
12066         * modules/atoll (configure.ac): ... to here.
12067
12068 2011-05-05  Bruno Haible  <bruno@clisp.org>
12069
12070         argz: Move AC_LIBOBJ invocations to module description.
12071         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12072         * modules/argz (configure.ac): ... to here.
12073
12074 2011-05-05  Bruno Haible  <bruno@clisp.org>
12075
12076         alphasort: Move AC_LIBOBJ invocations to module description.
12077         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12078         gl_PREREQ_ALPHASORT invocations from here...
12079         * modules/alphasort (configure.ac): ... to here.
12080
12081 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12082
12083         verify: new macro verify_expr; verify_true deprecated
12084         * NEWS: Mention this.
12085         * doc/verify.texi (Compile-time Assertions): Document this.
12086         * lib/verify.h (verify_true): Deprecate.
12087         (verify_expr): New macro.
12088         * tests/test-verify.c (function): Test verify_expr.
12089
12090 2011-06-14  Jim Meyering  <meyering@redhat.com>
12091
12092         init.sh: give more portable redirection-related advice in a comment
12093         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12094         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12095         for lots of discussion.  Stefano Lattarini suggested the solution
12096         of putting "9>&2" after the command.  Reported by Bruno Haible.
12097
12098 2011-06-13  Bruno Haible  <bruno@clisp.org>
12099
12100         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12101         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12102         'none'.
12103
12104 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12105
12106         ftoastr: use strtof only if HAVE_STRTOF
12107         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12109         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12110         * modules/ftoastr (configure.ac): Check for strtof.
12111
12112 2011-06-13  Bruno Haible  <bruno@clisp.org>
12113
12114         gnulib-tool: Addendum to 2011-06-08 commit.
12115         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12116         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12117
12118 2011-06-13  Bruno Haible  <bruno@clisp.org>
12119
12120         fseeko: Provide a non-inline replacement of fseek().
12121         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12122         * modules/fseeko (Depends-on): Add fseek.
12123         * modules/fseek (License): Change to LGPLv2+.
12124
12125 2011-06-13  Bruno Haible  <bruno@clisp.org>
12126
12127         ftello: Provide a non-inline replacement of ftell().
12128         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12129         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12130         not have ftello() (such as on mingw).
12131         * modules/ftello (Depends-on): Add ftell.
12132         * modules/ftell (License): Change to LGPLv2+.
12133
12134 2011-05-07  Bruno Haible  <bruno@clisp.org>
12135
12136         ftell: Move AC_LIBOBJ invocations to module description.
12137         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12138         * modules/ftell (configure.ac): ... to here.
12139
12140 2011-05-07  Bruno Haible  <bruno@clisp.org>
12141
12142         ftello: Respect rules for use of AC_LIBOBJ.
12143         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12144         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12145         here...
12146         * modules/ftello (configure.ac): ... to here.
12147
12148 2011-05-07  Bruno Haible  <bruno@clisp.org>
12149
12150         fseeko: Simplify.
12151         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12152         (gl_FUNC_FSEEKO): Inline it here.
12153
12154 2011-05-07  Bruno Haible  <bruno@clisp.org>
12155
12156         fseek: Move AC_LIBOBJ invocations to module description.
12157         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12158         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12159         * modules/fseek (configure.ac): ... to here.
12160
12161 2011-05-07  Bruno Haible  <bruno@clisp.org>
12162
12163         fseek: Respect rules for use of AC_LIBOBJ.
12164         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12165         here...
12166         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12167
12168 2011-05-07  Bruno Haible  <bruno@clisp.org>
12169
12170         fseeko: Respect rules for use of AC_LIBOBJ.
12171         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12172         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12173         here...
12174         * modules/fseeko (configure.ac): ... to here.
12175
12176 2011-06-13  Bruno Haible  <bruno@clisp.org>
12177
12178         gnulib-tool: Allow comments in the 'Depends-on' section.
12179         * doc/gnulib.texi (Module description): Mention comment syntax in the
12180         Depends-on section.
12181         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12182
12183 2011-06-13  Bruno Haible  <bruno@clisp.org>
12184
12185         file-set.h: guard __attibute__ use, now that it's not always defined
12186         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12187         versions that support it.  This fixes a coreutils build failure with
12188         the vendor cc on HP-UX 11.31.
12189
12190 2011-06-12  Bruno Haible  <bruno@clisp.org>
12191
12192         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12193         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12194         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12195         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12196         (acl, aclsort): New declarations.
12197         (aclv_nontrivial): New declaration.
12198         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12199         (file_has_acl): Read also the second kind of HP-UX ACLs.
12200         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12201         kind of HP-UX ACLs if the first kind fails.
12202         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12203         second kind of HP-UX ACLs.
12204         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12205         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12206         agree.
12207         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12208         hpuxjfs.
12209         Handle hpuxjfs.
12210         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12211         hpuxjfs.
12212         Handle hpuxjfs.
12213         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12214         (func_test_same_acls): Use both lsacl and getacl.
12215         Handle hpuxjfs.
12216         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12217         (func_test_same_acls): Use both lsacl and getacl.
12218         Handle hpuxjfs.
12219
12220 2011-06-12  Bruno Haible  <bruno@clisp.org>
12221
12222         acl: Complete the 2010-08-10 fix.
12223         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12224         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12225         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12226         explicitly.
12227         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12228         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12229
12230 2011-06-12  Bruno Haible  <bruno@clisp.org>
12231
12232         spawn-pipe tests: Comments.
12233         * tests/test-spawn-pipe-child.c (main): Update comment.
12234         Reported by James Youngman <jay@gnu.org>.
12235
12236 2011-06-11  James Youngman  <jay@gnu.org>
12237
12238         New module 'stat-size'.
12239         * modules/stat-size: New module.  Provides macros for accessing
12240         file size information in instances of struct stat.  Depends on the
12241         fileblocks module because it calls st_blocks.
12242         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12243         * doc/gnulib.texi: Include stat-size.texi.
12244         * doc/stat-size.texi: Documentation for this module.
12245         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12246         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12247         AC_STRUCT_ST_BLOCKS.
12248
12249 2011-06-09  Bruno Haible  <bruno@clisp.org>
12250
12251         thread: Support pthreads-win32.
12252         * lib/glthread/thread.h (gl_thread_self): Define differently on
12253         pthreads-win32.
12254         (gl_null_thread): New declaration.
12255         (gl_thread_self_pointer): New macro.
12256         * lib/glthread/thread.c (gl_null_thread): New constant.
12257         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12258         gl_thread_self.
12259         * tests/test-tls.c: Likewise.
12260         Suggested by Paul Eggert. Reported by Eric Blake.
12261
12262 2011-06-09  Bruno Haible  <bruno@clisp.org>
12263
12264         thread: Fix confusion between NULL and 0.
12265         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12266         Reported by Paul Eggert.
12267
12268 2011-06-09  Bruno Haible  <bruno@clisp.org>
12269
12270         spawn-pipe tests: Avoid test failure on HP-UX 11.
12271         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12272         is closed.
12273
12274 2011-06-09  Bruno Haible  <bruno@clisp.org>
12275
12276         acl tests: Fix compilation error on HP-UX 11.
12277         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12278
12279 2011-06-09  Bruno Haible  <bruno@clisp.org>
12280
12281         rmdir: Avoid test failure on HP-UX 10.20.
12282         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12283         EEXIST.
12284
12285 2011-06-08  Eric Blake  <eblake@redhat.com>
12286
12287         perror: fix test on mingw
12288         * modules/perror-tests (Depends-on): Add dup2.
12289
12290         strerror_r-posix: fix on MacOS
12291         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
12292         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
12293         logic bug.
12294         * lib/strerror_r.c (strerror_r): Fix the bug.
12295         * lib/strerror.c (strerror): Likewise.
12296         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12297         problem.
12298         * doc/posix-functions/strerror.texi (strerror): Likewise.
12299         * doc/posix-functions/perror.texi (perror): Likewise.
12300         * tests/test-strerror.c (main): Enhance test.
12301         * tests/test-strerror_r.c (main): Likewise.
12302
12303 2011-06-08  Bruno Haible  <bruno@clisp.org>
12304
12305         gnulib-tool: Better isolation between different gnulib-tool invocations.
12306         * gnulib-tool: New option --witness-c-macro.
12307         (witness_c_macro): New variable.
12308         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12309         AM_CPPFLAGS define it as a C macro.
12310         (func_emit_tests_Makefile_am): Likewise.
12311         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12312         read it from there.
12313         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12314         m4_define, not AC_DEFUN.
12315         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12316         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12317         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12318         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12319         s|...|...|, to substitute the values of the GNULIB_* module indicator
12320         variables.
12321         * modules/dirent (Makefile.am): Likewise.
12322         * modules/fcntl-h (Makefile.am): Likewise.
12323         * modules/iconv-h (Makefile.am): Likewise.
12324         * modules/langinfo (Makefile.am): Likewise.
12325         * modules/locale (Makefile.am): Likewise.
12326         * modules/math (Makefile.am): Likewise.
12327         * modules/netdb (Makefile.am): Likewise.
12328         * modules/poll-h (Makefile.am): Likewise.
12329         * modules/pty (Makefile.am): Likewise.
12330         * modules/search (Makefile.am): Likewise.
12331         * modules/signal (Makefile.am): Likewise.
12332         * modules/spawn (Makefile.am): Likewise.
12333         * modules/stdio (Makefile.am): Likewise.
12334         * modules/stdlib (Makefile.am): Likewise.
12335         * modules/string (Makefile.am): Likewise.
12336         * modules/sys_ioctl (Makefile.am): Likewise.
12337         * modules/sys_select (Makefile.am): Likewise.
12338         * modules/sys_socket (Makefile.am): Likewise.
12339         * modules/sys_stat (Makefile.am): Likewise.
12340         * modules/sys_times (Makefile.am): Likewise.
12341         * modules/sys_utsname (Makefile.am): Likewise.
12342         * modules/sys_wait (Makefile.am): Likewise.
12343         * modules/termios (Makefile.am): Likewise.
12344         * modules/time (Makefile.am): Likewise.
12345         * modules/unistd (Makefile.am): Likewise.
12346         * modules/wchar (Makefile.am): Likewise.
12347
12348 2011-06-08  Eric Blake  <eblake@redhat.com>
12349
12350         strerror: simplify replacement
12351         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12352         * modules/strerror (configure.ac): No prereqs needed here...
12353         * modules/strerror-override (configure.ac): ...but this needs it.
12354         (Files): Add file for needed prereq macro.
12355
12356 2011-06-08  Bruno Haible  <bruno@clisp.org>
12357
12358         strerror_r-posix: Tweaks.
12359         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12360         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12362         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12363         (gl_FUNC_STRERROR_R): ... to here.
12364         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12365
12366 2011-06-07  Eric Blake  <eblake@redhat.com>
12367
12368         perror: document fixed bugs
12369         * doc/posix-functions/perror.texi (perror): Document recent
12370         patches.
12371
12372 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12373
12374         stat-time: get_stat_birthtime failure is better-defined
12375         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12376         return a timestamp whose tv_sec and tv_nsec values are both -1.
12377         Previously, the spec said only that the tv_nsec value was negative.
12378         This upward-compatible change simplifies GNU tar a bit.
12379
12380 2011-06-07  Eric Blake  <eblake@redhat.com>
12381
12382         strerror_r-posix: work around cygwin 1.7.9
12383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12384         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12385         bug without replacing strerror_r.
12386         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12387         strerror_r is buggy, but without requiring strerror_r compilation.
12388         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12389
12390         test-perror: relax test to ignore cygwin bug
12391         * tests/test-perror2.c (main): Relax test on requiring detection
12392         of stream errors, and use unbuffered stream.
12393         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12394         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12395         * doc/posix-functions/fputc.texi (fputc): Likewise.
12396         * doc/posix-functions/fputs.texi (fputs): Likewise.
12397         * doc/posix-functions/fputws.texi (fputws): Likewise.
12398         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12399         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12400         * doc/posix-functions/getopt.texi (getopt): Likewise.
12401         * doc/posix-functions/perror.texi (perror): Likewise.
12402         * doc/posix-functions/printf.texi (printf): Likewise.
12403         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12404         * doc/posix-functions/psignal.texi (psignal): Likewise.
12405         * doc/posix-functions/putc.texi (putc): Likewise.
12406         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12407         Likewise.
12408         * doc/posix-functions/putchar.texi (putchar): Likewise.
12409         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12410         Likewise.
12411         * doc/posix-functions/puts.texi (puts): Likewise.
12412         * doc/posix-functions/putwc.texi (putwc): Likewise.
12413         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12414         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12415         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12416         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12417         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12418         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12419         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12420         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12421
12422 2011-05-22  Bruno Haible  <bruno@clisp.org>
12423
12424         strerror: Move AC_LIBOBJ invocations to module description.
12425         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12426         gl_PREREQ_STRERROR invocations from here...
12427         * modules/strerror (configure.ac): ... to here.
12428
12429 2011-05-21  Bruno Haible  <bruno@clisp.org>
12430
12431         perror: Use common idiom.
12432         * modules/perror (configure.ac): Reorder statements.
12433
12434 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12435
12436         tests: fix usage message in 'mktempd_'
12437         * tests/init.sh (mktempd_): In the usage message, use literal
12438         'mktempd_', not '$ME' (which is even undefined), as the name of
12439         the subroutine.
12440
12441 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12442
12443         tests init: new function 'fatal_', for hard errors
12444         Before this patch, the only way offered by tests/init.sh to
12445         properly signal a hard error was the `framework_failure_'
12446         function.  But the error message issued by that function,
12447         as its name would suggest, refers to a set-up failure in the
12448         testsuite, while hard errors can obviously also be due to
12449         other reasons.  The best way to fix this inconsistency is to
12450         introduce a new function with a more general error message.
12451         * tests/init.sh (fatal_): New function.
12452
12453 2011-06-06  Eric Blake  <eblake@redhat.com>
12454
12455         canonicalize-lgpl: use common idiom
12456         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12457         over newer POSIX -Rf.
12458         Reported by Bruno Haible.
12459
12460         canonicalize-lgpl: work around AIX realpath bug
12461         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12462         * doc/posix-functions/realpath.texi (realpath): Document it.
12463         Reported by Bruno Haible.
12464
12465         strerror: work around FreeBSD bug
12466         * lib/strerror.c (strerror): Special case 0.
12467         Reported by Bruno Haible.
12468
12469         strerror-override: avoid bloating errno module
12470         * modules/errno (Files, configure.ac): Move replacement strings...
12471         * modules/strerror-override: ...to new module.
12472         * modules/strerror (Depends-on): Add strerror-override.
12473         * modules/strerror_r-posix (Depends-on): Likewise.
12474         * MODULES.html.sh: Document new module.
12475         Reported by Bruno Haible.
12476
12477 2011-06-06  Bruno Haible  <bruno@clisp.org>
12478
12479         spawn-pipe tests: Rename program.
12480         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12481         * tests/test-spawn-pipe-child.c: Update comment.
12482         * tests/test-spawn-pipe.sh: Update.
12483         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12484
12485         spawn-pipe tests: Link the child program only against libc.
12486         * tests/test-spawn-pipe-child.c: New file, extracted from
12487         tests/test-spawn-pipe.c.
12488         (main): Expect only one argument.
12489         (is_open): New function, copied from tests/test-pipe.c.
12490         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12491         (child_main): Remove function.
12492         (test_pipe): Pass only one argument to the child program.
12493         (main): Remove child process code. Expect the child program's name as
12494         first argument.
12495         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12496         argument.
12497         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12498         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12499         test-spawn-pipe-child against no libraries.
12500
12501 2011-06-06  Bruno Haible  <bruno@clisp.org>
12502
12503         careadlinkat: Avoid mismatch between ssize_t and int.
12504         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12505         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12506
12507 2011-06-06  Jim Meyering  <meyering@redhat.com>
12508
12509         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12510         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12511         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12512
12513 2011-06-05  Bruno Haible  <bruno@clisp.org>
12514
12515         ansi-c++-opt: Interoperability with libtool.
12516         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12517         set the variable to "no", not to ":".
12518         * NEWS: Mention the change.
12519
12520 2011-06-05  Bruno Haible  <bruno@clisp.org>
12521
12522         acl: Fix test failure on AIX 7.
12523         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12524         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12525
12526 2011-06-05  Bruno Haible  <bruno@clisp.org>
12527
12528         pipe-filter-ii: Fix test failure on AIX and IRIX.
12529         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12530         with EAGAIN, retry with a smaller buffer size.
12531
12532 2011-06-05  Bruno Haible  <bruno@clisp.org>
12533
12534         localename: Fix link dependencies.
12535         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12536         * modules/localename-tests (Makefile.am): Link test-localename with
12537         $(LIBTHREAD).
12538
12539 2011-06-05  Bruno Haible  <bruno@clisp.org>
12540
12541         error: Avoid gcc warning.
12542         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12543
12544 2011-06-05  Bruno Haible  <bruno@clisp.org>
12545
12546         unsetenv: Avoid gcc warning.
12547         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12548
12549 2011-06-05  Bruno Haible  <bruno@clisp.org>
12550
12551         setenv: Avoid gcc warning.
12552         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12553
12554 2011-06-05  Bruno Haible  <bruno@clisp.org>
12555
12556         sys_select: Ensure memset is declared also on AIX 7.
12557         * lib/sys_select.in.h: Include <string.h> also on AIX.
12558         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12559         self-contained also on AIX 7.1.
12560
12561 2011-06-04  Jim Meyering  <meyering@redhat.com>
12562
12563         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12564         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12565         function name, "error".
12566         (_gl_translatable_diag_func_re): New configurable variable.
12567
12568 2011-06-04  Bruno Haible  <bruno@clisp.org>
12569
12570         getopt: Avoid gcc warning.
12571         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12572
12573 2011-06-04  Bruno Haible  <bruno@clisp.org>
12574
12575         strerror_r: Fix comments.
12576         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12577         commit.
12578
12579 2011-06-04  Bruno Haible  <bruno@clisp.org>
12580
12581         perror: Fix compilation error.
12582         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12583         Undefine fprintf, not sprintf.
12584         * modules/perror (Depends-on): Remove intprops, verify.
12585
12586 2011-06-04  Bruno Haible  <bruno@clisp.org>
12587
12588         setlocale: Enable replacement on Cygwin 1.5.
12589         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12590         Cygwin 1.5.x.
12591         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12592         LC_CTYPE category also exists on Cygwin 1.5.x.
12593
12594 2011-06-04  Bruno Haible  <bruno@clisp.org>
12595
12596         strerror-override: Don't disable symbol renamings.
12597         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12598         * lib/strerror-override.c: Include config.h.
12599         (strerror_override): Don't undefine.
12600
12601 2011-06-03  Bruno Haible  <bruno@clisp.org>
12602
12603         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12604         * lib/localename.h: Update copyright header.
12605         * lib/localename.c: Likewise.
12606         * lib/relocatable.h: Likewise.
12607         * lib/relocatable.c: Likewise.
12608
12609 2011-06-02  Bruno Haible  <bruno@clisp.org>
12610
12611         doc: Fix a module name.
12612         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12613
12614 2011-06-02  Bruno Haible  <bruno@clisp.org>
12615
12616         pipe2: Remove dependency on 'nonblocking' module.
12617         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12618         O_NONBLOCK is defined by gnulib.
12619         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12620         is zero.
12621         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12622         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12623         defined by gnulib.
12624         (get_nonblocking_flag): New function.
12625         (main): Test O_NONBLOCK flag only if it is nonzero.
12626         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12627
12628 2011-06-03  Jim Meyering  <meyering@redhat.com>
12629
12630         maint: three new prohibit-header-without-use rules
12631         Prohibit use of cloexec.h, posixver.h, same.h without use.
12632         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12633         (sc_prohibit_posixver_without_use): Likewise.
12634         (sc_prohibit_same_without_use): Likewise.
12635
12636 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12637
12638         allocator: 'die' routine is now given requested size
12639         * lib/allocator.h (struct allocator.die): New size arg.
12640         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12641         If the actual problem is an ssize_t limitation, not a size_t or
12642         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12643
12644 2011-06-01  Eric Blake  <eblake@redhat.com>
12645
12646         strerror: drop strerror_r dependency
12647         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12648         * lib/strerror-override.c (strerror_override): ...to new file.
12649         * lib/strerror-override.h: Add prototype.
12650         * lib/strerror-impl.h: Delete.
12651         * lib/strerror.c (strerror): New implementation.
12652         * modules/errno (Files): Add new files.
12653         (configure.ac): Compile new file as appropriate.
12654         * modules/strerror (Files): Drop unused file.
12655         (Depends-on): Drop strerror_r-posix.
12656         * MODULES.html.sh: Document strerror_r-posix.
12657         Requested by Sam Steingold.
12658
12659         perror: call strerror_r directly
12660         * modules/perror (Files): Drop strerror-impl.h.
12661         * lib/perror.c (perror): Use our own stack buffer, rather than
12662         calling a wrapper that uses static storage.
12663         * doc/posix-functions/perror.texi (perror): Document a limitation
12664         of our replacement.
12665
12666         strerror_r: fix includes for FreeBSD
12667         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12668         since we use abort on some platforms.
12669         Reported by Matthias Bolte.
12670
12671 2011-05-31  Bruno Haible  <bruno@clisp.org>
12672
12673         Fix link errors in tests: openat-die uses gettext-h.
12674         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12675         against $(LIBINTL).
12676         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12677         against $(LIBINTL).
12678         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12679         $(LIBINTL).
12680         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12681         against $(LIBINTL).
12682         * modules/linkat-tests (Makefile.am): Link test-linkat against
12683         $(LIBINTL).
12684         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12685         $(LIBINTL).
12686         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12687         against $(LIBINTL).
12688         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12689         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12690         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12691         $(LIBINTL).
12692         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12693         $(LIBINTL).
12694         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12695         $(LIBINTL).
12696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12697
12698 2011-05-31  Bruno Haible  <bruno@clisp.org>
12699
12700         Fix link errors in tests: wait-process uses gettext-h.
12701         * modules/nonblocking-pipe-tests (Makefile.am): Set
12702         test_nonblocking_pipe_main_LDADD.
12703         * modules/nonblocking-socket-tests (Makefile.am): Link
12704         test-nonblocking-socket-main against $(LIBINTL).
12705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12706
12707 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12708
12709         assert-h: work around 'verify' incompatibility
12710         * lib/verify.h: Use @...@ directives, not ifdef.
12711         * modules/assert-h (assert.h): Implement the directives.
12712         (assert.h): Substitute the symbol-prefix more consistently.
12713
12714 2011-05-29  Jim Meyering  <meyering@redhat.com>
12715
12716         trim: remove three superfluous assignments
12717         * lib/trim.c (trim2): Remove three superfluous assignments
12718         and correct brace positioning.
12719
12720 2011-05-29  Bruno Haible  <bruno@clisp.org>
12721
12722         wctype-h: Avoid namespace pollution on Solaris 2.6.
12723         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12724         identifiers.
12725         * doc/posix-headers/wctype.texi: Mention the problem.
12726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12727
12728 2011-05-28  Jim Meyering  <meyering@redhat.com>
12729
12730         parse-datetime.y: accommodate -Wstrict-overflow
12731         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12732         placate -Wstrict-overflow.
12733
12734         trim: avoid a warning from -O2 -Wstrict-overflow
12735         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12736
12737 2011-05-29  Bruno Haible  <bruno@clisp.org>
12738
12739         gnulib-tool: Fix bug in yesterday's commit.
12740         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12741         twice.
12742
12743 2011-05-29  Bruno Haible  <bruno@clisp.org>
12744
12745         Allow multiple gnulib generated include files to be combined.
12746         * gnulib-tool (func_compute_include_guard_prefix): New function.
12747         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12748         ${gl_include_guard_prefix} references.
12749         (func_import, func_create_testdir): Invoke
12750         func_compute_include_guard_prefix.
12751         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12752         * lib/ctype.in.h: Likewise.
12753         * lib/dirent.in.h: Likewise.
12754         * lib/errno.in.h: Likewise.
12755         * lib/fcntl.in.h: Likewise.
12756         * lib/float.in.h: Likewise.
12757         * lib/getopt.in.h: Likewise.
12758         * lib/iconv.in.h: Likewise.
12759         * lib/langinfo.in.h: Likewise.
12760         * lib/locale.in.h: Likewise.
12761         * lib/math.in.h: Likewise.
12762         * lib/netdb.in.h: Likewise.
12763         * lib/netinet_in.in.h: Likewise.
12764         * lib/poll.in.h: Likewise.
12765         * lib/pthread.in.h: Likewise.
12766         * lib/pty.in.h: Likewise.
12767         * lib/sched.in.h: Likewise.
12768         * lib/se-selinux.in.h: Likewise.
12769         * lib/search.in.h: Likewise.
12770         * lib/signal.in.h: Likewise.
12771         * lib/spawn.in.h: Likewise.
12772         * lib/stdarg.in.h: Likewise.
12773         * lib/stddef.in.h: Likewise.
12774         * lib/stdint.in.h: Likewise.
12775         * lib/stdio.in.h: Likewise.
12776         * lib/stdlib.in.h: Likewise.
12777         * lib/string.in.h: Likewise.
12778         * lib/strings.in.h: Likewise.
12779         * lib/sys_file.in.h: Likewise.
12780         * lib/sys_ioctl.in.h: Likewise.
12781         * lib/sys_select.in.h: Likewise.
12782         * lib/sys_socket.in.h: Likewise.
12783         * lib/sys_stat.in.h: Likewise.
12784         * lib/sys_time.in.h: Likewise.
12785         * lib/sys_times.in.h: Likewise.
12786         * lib/sys_uio.in.h: Likewise.
12787         * lib/sys_utsname.in.h: Likewise.
12788         * lib/sys_wait.in.h: Likewise.
12789         * lib/sysexits.in.h: Likewise.
12790         * lib/termios.in.h: Likewise.
12791         * lib/time.in.h: Likewise.
12792         * lib/unistd.in.h: Likewise.
12793         * lib/wchar.in.h: Likewise.
12794         * lib/wctype.in.h: Likewise.
12795         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12796         * modules/ctype (Makefile.am): Likewise.
12797         * modules/dirent (Makefile.am): Likewise.
12798         * modules/errno (Makefile.am): Likewise.
12799         * modules/fcntl-h (Makefile.am): Likewise.
12800         * modules/float (Makefile.am): Likewise.
12801         * modules/getopt-posix (Makefile.am): Likewise.
12802         * modules/iconv-h (Makefile.am): Likewise.
12803         * modules/langinfo (Makefile.am): Likewise.
12804         * modules/locale (Makefile.am): Likewise.
12805         * modules/math (Makefile.am): Likewise.
12806         * modules/netdb (Makefile.am): Likewise.
12807         * modules/netinet_in (Makefile.am): Likewise.
12808         * modules/poll-h (Makefile.am): Likewise.
12809         * modules/pthread (Makefile.am): Likewise.
12810         * modules/pty (Makefile.am): Likewise.
12811         * modules/sched (Makefile.am): Likewise.
12812         * modules/search (Makefile.am): Likewise.
12813         * modules/selinux-h (Makefile.am): Likewise.
12814         * modules/signal (Makefile.am): Likewise.
12815         * modules/spawn (Makefile.am): Likewise.
12816         * modules/stdarg (Makefile.am): Likewise.
12817         * modules/stddef (Makefile.am): Likewise.
12818         * modules/stdint (Makefile.am): Likewise.
12819         * modules/stdio (Makefile.am): Likewise.
12820         * modules/stdlib (Makefile.am): Likewise.
12821         * modules/string (Makefile.am): Likewise.
12822         * modules/strings (Makefile.am): Likewise.
12823         * modules/sys_file (Makefile.am): Likewise.
12824         * modules/sys_ioctl (Makefile.am): Likewise.
12825         * modules/sys_select (Makefile.am): Likewise.
12826         * modules/sys_socket (Makefile.am): Likewise.
12827         * modules/sys_stat (Makefile.am): Likewise.
12828         * modules/sys_time (Makefile.am): Likewise.
12829         * modules/sys_times (Makefile.am): Likewise.
12830         * modules/sys_uio (Makefile.am): Likewise.
12831         * modules/sys_utsname (Makefile.am): Likewise.
12832         * modules/sys_wait (Makefile.am): Likewise.
12833         * modules/sysexits (Makefile.am): Likewise.
12834         * modules/termios (Makefile.am): Likewise.
12835         * modules/time (Makefile.am): Likewise.
12836         * modules/unistd (Makefile.am): Likewise.
12837         * modules/wchar (Makefile.am): Likewise.
12838         * modules/wctype-h (Makefile.am): Likewise.
12839         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12840
12841 2011-05-29  Bruno Haible  <bruno@clisp.org>
12842
12843         assert-h: Allow multiple gnulib generated replacements to coexist.
12844         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12845
12846 2011-05-29  Bruno Haible  <bruno@clisp.org>
12847
12848         argp: Allow coexistence with strerror_r-posix module.
12849         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12850         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12851         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12852         not the glibc signature.
12853
12854 2011-05-28  Bruno Haible  <bruno@clisp.org>
12855
12856         gnulib-tool: Alternative structure of testdirs, similar to --import.
12857         * gnulib-tool: New option --single-configure.
12858         (func_usage): Document it.
12859         (single_configure): New variable.
12860         (func_modules_transitive_closure_separately,
12861         func_modules_transitive_closure_separately,
12862         func_determine_use_libtests, func_modules_add_dummy_separately,
12863         func_modules_to_filelist_separately): New functions, extracted from
12864         func_import.
12865         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12866         (func_import): Use the new functions.
12867         (func_create_testdir): Set final_modules. Handle $single_configure =
12868         true case.
12869
12870 2011-05-28  Bruno Haible  <bruno@clisp.org>
12871
12872         getloadavg: Remove an unreliable safety check.
12873         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12874         getloadavg.c is in place.
12875         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12876         Reported by Sam Steingold <sds@gnu.org>.
12877
12878 2011-05-28  Bruno Haible  <bruno@clisp.org>
12879
12880         doc: Cleanup yet another file produced by texinfo.tex.
12881         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12882
12883 2011-05-28  Bruno Haible  <bruno@clisp.org>
12884
12885         Finish the conditional dependencies mechanism.
12886         * gnulib-tool: New option --no-conditional-dependencies.
12887         (func_usage): Document it. Don't mark --conditional-dependencies as
12888         experimental.
12889         (cond_dependencies): The possible values can now be true, false, empty.
12890         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12891         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12892         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12893
12894 2011-05-28  Bruno Haible  <bruno@clisp.org>
12895
12896         doc: Use a recent texinfo.tex.
12897         * doc/Makefile (tex_opts): New variable.
12898         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12899
12900 2011-05-28  Jim Meyering  <meyering@redhat.com>
12901
12902         intprops.h: adjust comment to match code change
12903         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12904         only once, it *may* have side effects.  Also fix an unrelated typo.
12905         (_GL_INT_SIGNED): Likewise.
12906
12907 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12908
12909         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12910
12911 2011-05-26  Bruno Haible  <bruno@clisp.org>
12912
12913         mbsrchr: Avoid collision with system function on Interix.
12914         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12915         Reported by Markus Duft <mduft@gentoo.org>.
12916
12917 2011-05-15  James Youngman  <jay@gnu.org>
12918
12919         getopt: for ambiguous options, enumerate the possibilities.
12920         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12921         the ambiguous options when an ambiguous prefix is given. This was
12922         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12923         glibc change was
12924         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12925
12926 2011-05-25  Eric Blake  <eblake@redhat.com>
12927
12928         getcwd: work around mingw bug
12929         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12930         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12931         Reported by Matthias Bolte.
12932
12933 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12934
12935         test-intprops: disable -Wtype-limits diagnostics
12936         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12937         diagnostics.  Otherwise, the integer overflow macros generate many
12938         diagnostics.  Reported by Jim Meyering in
12939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12940
12941         intprops: shorten, to pacify gcc -Woverlength-strings
12942         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12943         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12944         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12945         likely to run afoul of C compiler limits for string constant lengths.
12946         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12947
12948 2011-05-24  Eric Blake  <eblake@redhat.com>
12949
12950         docs: document recently fixed glibc printf bug
12951         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12952         * doc/posix-functions/printf.texi (printf): Likewise.
12953         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12954         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12955
12956         closein-tests: convert to init.sh
12957         * modules/closein-tests (Files): Add init.sh
12958         * tests/test-closein.sh Use it.
12959
12960         yesno-tests: convert to init.sh
12961         * modules/yesno-tests (Files): Add init.sh.
12962         * tests/test-yesno.sh: Use it.
12963
12964         atexit-tests: ensure reliable exit status
12965         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12966         Reported by Bruno Haible.
12967
12968 2011-05-24  Bruno Haible  <bruno@clisp.org>
12969
12970         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12972         gl_PREREQ_STRERROR_R invocations from here...
12973         * modules/strerror_r-posix (configure.ac): ... to here.
12974
12975 2011-05-24  Eric Blake  <eblake@redhat.com>
12976
12977         strerror_r: fix missing header
12978         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12979
12980         strerror_r: fix AIX test failures
12981         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12982         ERANGE failure.
12983
12984         strerror_r: fix Solaris test failures
12985         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12986         failures.
12987         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12988
12989         strerror_r: enforce POSIX recommendations
12990         * lib/strerror_r.c (safe_copy): New helper method.
12991         (strerror_r): Guarantee a non-empty string.
12992         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12993         recent POSIX rulings and to match our strerror guarantees.
12994         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12995
12996 2011-05-24  Jim Meyering  <meyering@redhat.com>
12997
12998         test-perror2.c: avoid warning about unused variable
12999         * tests/test-perror2.c (main): Remove declaration of unused "fp".
13000
13001 2011-05-24  Eric Blake  <eblake@redhat.com>
13002
13003         perror: avoid spurious test failure on HP-UX
13004         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
13005
13006         tests: fix logic bug in init.sh
13007         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
13008         shell.
13009
13010 2011-05-24  Jim Meyering  <meyering@redhat.com>
13011
13012         utimensat: do not reference an out-of-scope buffer
13013         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13014         declared in an inner scope, yet "times" would be dereferenced outside
13015         the scope in which "ts" was valid.
13016         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13017         of ts[2] "out/up", so that the use of aliased "times" (via
13018         "times = ts;") does not end up referencing an out-of-scope "ts"
13019
13020         opendir-safer.c: don't clobber errno; don't close negative FD
13021         * lib/opendir-safer.c (opendir_safer):
13022         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13023         file descriptor, and more importantly, don't clobber the
13024         offending errno value with EINVAL.  Before, upon failure
13025         of dup_safer, we would pass the negative file descriptor to
13026         fdopendir, which would clobber errno.
13027
13028 2011-05-23  Bruno Haible  <bruno@clisp.org>
13029
13030         idcache: Fix module description.
13031         * modules/idcache (Include): Set to "idcache.h".
13032
13033 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13034
13035         gnulib-tool: fix portability problem with MacOS sed
13036         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13037         before the "}".  Problem reported by Leo in
13038         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13039         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13040         sed_extract_condition1, sed_extract_condition2.
13041
13042 2011-05-23  Bruno Haible  <bruno@clisp.org>
13043
13044         hash: Simplify autoconf macro.
13045         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13046
13047 2011-05-23  Bruno Haible  <bruno@clisp.org>
13048
13049         getugroups: Fix module description.
13050         * modules/getugroups (Include): Set to "getugroups.h".
13051
13052 2011-05-23  Bruno Haible  <bruno@clisp.org>
13053
13054         linkat: Simplify autoconf macro.
13055         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058             Eric Blake  <eblake@redhat.com>
13059
13060         linkat, renameat: Update dependencies.
13061         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13062         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13063         symlinkat.
13064
13065 2011-05-23  Jim Meyering  <meyering@redhat.com>
13066
13067         maint.mk: more tight_scope improvements
13068         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13069         (_gl_TS_headers): Define only in if-0'd block.
13070         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13071         sometimes we must *not* use it.  Adjust uses accordingly.
13072         (sc_tight_scope): Use much simpler grep-based test to determine
13073         whether we skip this rule.
13074
13075         maint.mk: generalize/improve the tight-scope rule
13076         * top/maint.mk: Emit a warning when the test is skipped.
13077         (_gl_TS_dir): Add $(srcdir)/ prefix.
13078         (_gl_TS_function_match): Simplify, rather than trying
13079         to enumerate common types.  Otherwise, it would fail to match an
13080         "extern unsigned char const *" declaration in idutils.
13081         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13082         a way to support use of that type of macro.
13083         (_gl_TS_var_match): Simplify regexp.
13084         (_gl_TS_obj_files): New configurable variable.
13085         (_gl_TS_headers): Likewise.
13086
13087 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13088
13089         verify: fix bug when gnulib <assert.h> is also included
13090         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13091         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13092         Perhaps there's a better way, but this fixes the immediate problem.
13093         Problem reported by Bruno Haible in
13094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13095
13096 2011-05-22  Bruno Haible  <bruno@clisp.org>
13097
13098         xgetcwd: Simplify autoconf macro.
13099         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13100
13101 2011-05-22  Bruno Haible  <bruno@clisp.org>
13102
13103         New module 'mktime-internal'.
13104         * modules/mktime-internal: New file.
13105         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13106         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13107         mktime_internal as a C macro if libc has __mktime_internal.
13108         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13109         conditions.
13110         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13111
13112 2011-05-22  Bruno Haible  <bruno@clisp.org>
13113
13114         timegm: Correct mktime replacement statements.
13115         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13116         defining mktime as a C macro. This completes a 2009-07-28 commit.
13117
13118 2011-05-22  Bruno Haible  <bruno@clisp.org>
13119
13120         timegm: Simplify autoconf macro.
13121         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13122
13123 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13124
13125         clock-time: change to LGPLv2+.
13126         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13127         BSD-like but we have no mark for that; this is good enough for now.
13128
13129 2011-05-21  Bruno Haible  <bruno@clisp.org>
13130
13131         strerror_r: Fix comments.
13132         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13133
13134 2011-05-21  Bruno Haible  <bruno@clisp.org>
13135
13136         relocatable-prog-wrapper: Fix possible link error.
13137         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13138         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13139         (gl_FUNC_SETENV): ... to here.
13140         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13141         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13142
13143 2011-05-21  Bruno Haible  <bruno@clisp.org>
13144
13145         relocatable-prog-wrapper: Assume strerror() exists.
13146         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13147         m4/strerror.m4.
13148         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13149         * lib/relocwrapper.c: Remove mention of strerror module.
13150         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13152         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13153         C macro.
13154
13155 2011-05-21  Bruno Haible  <bruno@clisp.org>
13156
13157         select: Simplify replacement idiom.
13158         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13159         Win32 platforms.
13160         * lib/sys_select.in.h (select): Simplify accordingly.
13161         * modules/select (Depends-on): Likewise.
13162
13163 2011-05-21  Bruno Haible  <bruno@clisp.org>
13164
13165         mkdir-p: Simplify autoconf macro.
13166         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13167         gl_FUNC_LCHOWN.
13168
13169 2011-05-21  Eric Blake  <eblake@redhat.com>
13170
13171         strerror_r: avoid clobbering strerror on cygwin
13172         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13173         fall back instead to sys_errlist.
13174         * modules/strerror (configure.ac): Add witness.
13175         * tests/test-strerror_r.c (main): Enhance test.
13176         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13177         * tests/test-perror2.c (main): Free memory before exit.
13178
13179 2011-05-21  Bruno Haible  <bruno@clisp.org>
13180
13181         mkdtemp: Use gnulib naming conventions.
13182         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13183         * modules/mkdtemp (configure.ac): Update.
13184
13185 2011-05-20  Eric Blake  <eblake@redhat.com>
13186
13187         strerror_r: avoid corrupting errno on Solaris
13188         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13189         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13190
13191         strerror_r: avoid compiler warning
13192         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13193
13194         strerror_r: simplify AIX code
13195         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13196
13197         test-perror: avoid spurious failure on FreeBSD
13198         * modules/perror-tests (Depends-on): Add strerror, now that
13199         strerror_r no longer pulls it in.
13200
13201 2011-05-20  Bruno Haible  <bruno@clisp.org>
13202
13203         strerror_r-posix: Remove unused dependencies.
13204         * modules/strerror_r-posix (Depends-on): Remove strerror.
13205         Reported by Eric Blake.
13206
13207 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         intprops: remove assumption about A|B representation
13210         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13211         is a valid integer if both A and B are.  Although this is true for
13212         all known practical hosts, the C standard doesn't guarantee it,
13213         and the code need not assume it.  Also, this change may work around
13214         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13216
13217 2011-05-20  Eric Blake  <eblake@redhat.com>
13218
13219         perror: work around FreeBSD bug
13220         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13221         is broken.  Move AC_LIBOBJ...
13222         * modules/perror (configure.ac): Here.
13223         * doc/posix-functions/perror.texi (perror): Document this.
13224         * tests/test-perror2.c (main): Enhance test.
13225
13226         test-perror: check for strerror interactions
13227         * tests/macros.h (STREQ): Add macro.
13228         * modules/perror-tests (Files): Add second test.
13229         * tests/test-perror2.c (main): New file.
13230         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13231
13232         test-perror: rewrite to use init script
13233         * modules/perror-tests (Files): Add init.sh.
13234         * tests/test-perror.sh: Use temporary directory.
13235
13236 2011-05-20  Jim Meyering  <meyering@redhat.com>
13237
13238         maint: replace misused "a" with "an"
13239         * doc/intprops.texi: "a integer"
13240         * doc/regex.texi: "a explanation"
13241         * lib/alignof.h: "a object"
13242         * lib/argmatch.h: "a explanation"
13243         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13244         * lib/stdint.in.h: "a integer"
13245         * lib/userspec.c: "a owner"
13246         * doc/gnulib.texi: Fix "a idea", and reword.
13247
13248 2011-05-19  Jim Meyering  <meyering@redhat.com>
13249
13250         maint: correct misuse of "a" and "an"
13251         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13252         * lib/argp-help.c: "an docum...": s/an/a/
13253         * lib/argp-parse.c: "An vector": s/An/A/
13254         * lib/execute.c: "an native": s/an/a/
13255         * lib/spawn-pipe.c: Likewise.
13256         * lib/gc.h: "an Gc_rc": s/an/a/
13257         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13258         * lib/fts.c: "an stat.st_dev": s/an/a/
13259
13260 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13261
13262         intprops-tests: work around HP-UX 11.23 cc bug with constants
13263         * tests/test-intprops.c (VERIFY): New macro.
13264         (main): Use it, instead of verify, to work around the compiler bug; see
13265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13266
13267         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13268         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13269         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13270         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13271         (_GL_REMAINDER_OVERFLOW): Use it.
13272
13273         intprops-tests: revert unsigned part of previous change
13274         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13275         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13276         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13278
13279 2011-05-19  Bruno Haible  <bruno@clisp.org>
13280
13281         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13282         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13283         strerror_r() returned without filling the buffer.
13284         Reported by Eric Blake.
13285
13286 2011-05-19  Eric Blake  <eblake@redhat.com>
13287
13288         strerror_r: guarantee unchanged errno
13289         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
13290         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
13291         failure.
13292         * tests/test-strerror_r.c (main): Enhance test.
13293
13294 2011-05-19  Bruno Haible  <bruno@clisp.org>
13295
13296         strerror_r: Reorder #if blocks.
13297         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13298         for consistency with the previous commit.
13299
13300 2011-05-19  Bruno Haible  <bruno@clisp.org>
13301
13302         perror: Avoid clobbering the strerror buffer when possible.
13303         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13304         * lib/strerror.c: Include it.
13305         * modules/strerror (Files): Add lib/strerror-impl.h.
13306         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13307         (my_strerror): New function, defined through lib/strerror-impl.h.
13308         (perror): Use it instead of strerror.
13309         * modules/perror (Files): Add lib/strerror-impl.h.
13310         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13311
13312 2011-05-19  Eric Blake  <eblake@redhat.com>
13313
13314         strerror_r: fix on newer cygwin
13315         * lib/strerror_r.c (strerror_r): Cygwin now has
13316         __xpg_strerror_r, use it.
13317
13318 2011-05-19  Bruno Haible  <bruno@clisp.org>
13319
13320         strerror_r: Avoid clobbering the strerror buffer when possible.
13321         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13322         (sys_nerr, sys_errlist): New declarations.
13323         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13324         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13325         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13326
13327 2011-05-19  Bruno Haible  <bruno@clisp.org>
13328
13329         strerror_r: Fix test failure on mingw.
13330         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13331         EXTEND_STRERROR_R.
13332         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13333         macros from errno.in.h instead.
13334
13335 2011-05-19  Eric Blake  <eblake@redhat.com>
13336
13337         strerror: relax test for Solaris
13338         * tests/test-strerror.c (main): Permit Solaris behavior.
13339         * tests/test-strerror_r.c (main): Likewise.
13340
13341         strerror: enforce POSIX ruling on strerror(0)
13342         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13344         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13345         * doc/posix-functions/strerror.texi (strerror): Document it.
13346         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13347         * tests/test-strerror.c (main): Strengthen test.
13348         * tests/test-strerror_r.c (main): Likewise.
13349
13350 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13351
13352         intprop-tests: port to older and more-pedantic compilers
13353         * modules/intprops-tests (Files): Add tests/macros.h.
13354         * tests/test-intprops.c: Include macros.h.
13355         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13356         it's no longer documented to expand to an integer constant expression.
13357         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13358         argument is floating point, as it's no longer documented to expand
13359         to an integer constant expression in that case.
13360         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13361         compiler bugs reported by Bruno Haible.  See
13362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13363         (U0, U1): New constants, to work around the same bugs.  Also,
13364         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13365
13366         intprops: work around C compiler bugs
13367         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13368         bug in Sun C 5.11 2010/08/13 and other compilers; see
13369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13370
13371         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13372         * doc/intprops.texi (Integer Type Determination): Fix
13373         documentation for TYPE_IS_INTEGER: it returns an constant
13374         expression, not an integer constant expression.  Fix doc for
13375         TYPE_SIGNED: it returns an integer constant expression only if its
13376         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13377         hardly worth documented that way....)
13378
13379 2011-05-18  Bruno Haible  <bruno@clisp.org>
13380
13381         strerror_r: Avoid clobbering the strerror buffer when possible.
13382         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13383         Handle gnulib defined errno values here. When strerror() returns NULL
13384         or an empty string, return EINVAL.
13385         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13386         gnulib defined errno values here.
13387         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13388
13389 2011-05-18  Eric Blake  <eblake@redhat.com>
13390
13391         fnmatch: avoid compiler warning
13392         * lib/fnmatch_loop.c (FCT): Use correct type.
13393         Reported by Matthias Bolte.
13394
13395 2011-05-13  Jim Meyering  <meyering@redhat.com>
13396
13397         maint.mk: three new prohibit_<HDR>_without_use rules
13398         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13399         (sc_prohibit_stdio-safer_without_use): Likewise.
13400         (sc_prohibit_xfreopen_without_use): Likewise.
13401
13402 2011-05-17  Jim Meyering  <meyering@redhat.com>
13403
13404         announce-gen: fail if the NEWS delta is empty
13405         If there's nothing noteworthy in NEWS, then either you forgot
13406         or you shouldn't be releasing.
13407         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13408
13409 2011-05-17  Pádraig Brady <P@draigBrady.com>
13410
13411         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13412         reserved symbols starting with double underscore from the check.
13413
13414 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13415
13416         intprops: add doc
13417         * doc/intprops.texi: New file, documenting intprops.
13418         * doc/gnulib.texi (Particular Modules): Include it.
13419
13420         verify: add doc to gnulib manual and fix example
13421         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13422         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13423         (Compile-time Assertions): Fix example so it can't overflow.
13424
13425 2011-05-17  Jim Meyering  <meyering@redhat.com>
13426
13427         warnings.m4: don't usurp save_CPPFLAGS variable name
13428         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13429
13430         doc: fix typo
13431         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13432
13433 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13434             Bruno Haible  <bruno@clisp.org>
13435
13436         doc: Tweak recent change.
13437         * README (Portability guidelines): Tweak new text.
13438         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13439         Interix 6.1.
13440
13441 2011-05-16  Eric Blake  <eblake@redhat.com>
13442
13443         inttypes: avoid autoconf warning
13444         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13445         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13446
13447 2011-05-16  Sam Steingold <sds@gnu.org>
13448         and Eric Blake  <eblake@redhat.com>
13449
13450         vc-list-files: accept multiple directory operands
13451         * build-aux/vc-list-files: Iterate over all remaining operands.
13452
13453 2011-05-16  Bruno Haible  <bruno@clisp.org>
13454
13455         Fix confusion regarding deprecated modules.
13456         * modules/calloc (Status, Notice): Mark module as deprecated, not
13457         obsolete.
13458         * modules/fnmatch-posix (Status, Notice): Likewise.
13459         * modules/getdate (Status, Notice): Likewise.
13460         * modules/getopt (Status, Notice): Likewise.
13461         * modules/malloc (Status, Notice): Likewise.
13462         * modules/pipe (Status, Notice): Likewise.
13463         * modules/realloc (Status, Notice): Likewise.
13464         * modules/rename-dest-slash (Status, Notice): Likewise.
13465         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13466         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13467         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13468         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13469         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13470
13471 2011-05-16  Bruno Haible  <bruno@clisp.org>
13472
13473         doc: List the target platforms.
13474         * doc/gnulib-intro.texi (Target Platforms): New section.
13475         * doc/gnulib.texi (Introduction): Update menu.
13476         * README (Portability guidelines): Refer to the new section. Update
13477         statement about oldest supported environment. Remove rationale why
13478         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13479         unportable C89 function.
13480         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13481         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13482
13483 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13484
13485         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13486
13487 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13488
13489         intprops-tests: new module
13490         * modules/intprops-tests, tests/test-intprops.c: New files.
13491
13492         intprops: add safe, portable integer overflow checking
13493         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13494         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13495         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13496         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13497         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13498         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13499         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13500         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13501         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13502         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13503         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13504
13505 2011-05-12  James Youngman  <jay@gnu.org>
13506
13507         Add a test for glibc's Bugzilla bug #12378.
13508         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13509         doesn't allow the literal matching of a lone "[" (which is
13510         required by POSIX).
13511         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13512
13513 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13514
13515         Sync glibc change fixing Bugzilla bug #12378.
13516         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13517         beginning and fall back to matching as normal character if the
13518         string ends before the matching ']' is found.  This is what POSIX
13519         requires.
13520
13521 2011-05-13  Eric Blake  <eblake@redhat.com>
13522
13523         getcwd-lgpl: relax test for FreeBSD
13524         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13525         issue.
13526         * tests/test-getcwd-lgpl.c (main): Relax test.
13527         Reported by Matthias Bolte.
13528
13529 2011-05-11  Eric Blake  <eblake@redhat.com>
13530
13531         test-fflush: silence compiler warning
13532         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13533
13534 2011-05-11  Bruno Haible  <bruno@clisp.org>
13535
13536         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13537         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13538         * modules/canonicalize (Depends-on): Add 'nocrash'.
13539         * modules/canonicalize-lgpl (Depends-on): Likewise.
13540         * doc/posix-functions/realpath.texi: Update platforms list.
13541         Reported by Ryan Schmidt <ryandesign@macports.org>.
13542
13543 2011-05-11  Bruno Haible  <bruno@clisp.org>
13544
13545         group-member: Declare function in <unistd.h>.
13546         * lib/unistd.in.h (group_member): New declaration.
13547         * lib/group-member.h: Remove file.
13548         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13549         * tests/test-unistd-c++.cc: Check signature of group_member.
13550         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13551         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13552         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13553         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13554         HAVE_GROUP_MEMBER.
13555         * modules/group-member (Files): Remove lib/group-member.h.
13556         (Depends-on): Add unistd. Specify conditions.
13557         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13558         (Include): Change to <unistd.h>.
13559         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13560         HAVE_GROUP_MEMBER.
13561         * NEWS: Mention the change.
13562         * lib/euidaccess.c: Don't include group-member.h.
13563
13564 2011-05-11  Bruno Haible  <bruno@clisp.org>
13565
13566         group-member: Document module.
13567         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13568         module.
13569
13570 2011-05-11  Bruno Haible  <bruno@clisp.org>
13571
13572         fclose: Fix mistake earlier today.
13573         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13574
13575 2011-05-11  Eric Blake  <eblake@redhat.com>
13576
13577         fclose: preserve fflush errors
13578         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13579         Reported by Jim Meyering.
13580
13581         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13582         * build-aux/bootstrap (check_versions): When no specific version
13583         is required, merely check that the app produces an exit status
13584         that indicates its existence.
13585
13586         maint.mk: drop redundant check
13587         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13588         the same but better.
13589
13590 2011-05-11  Bruno Haible  <bruno@clisp.org>
13591
13592         fclose: Fix possible link error.
13593         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13594         unregister_shadow_fd. Improve comments.
13595         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13596         Eric Blake.
13597
13598 2011-05-11  Jim Meyering  <meyering@redhat.com>
13599
13600         maint.mk: improve "can not" detection and generalize rule name
13601         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13602         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13603         Use the same technique as in sc_prohibit_doubled_word, so that
13604         we recognize "can not" also when the words are separated by a newline.
13605         Suggested by Eric Blake.
13606         (perl_filename_lineno_text_): Define.  Factored out of...
13607         (prohibit_doubled_word_): ...here.  Use the new definition.
13608         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13609         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13610         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13611
13612 2011-05-10  Eric Blake  <eblake@redhat.com>
13613
13614         fclose: avoid double close race when possible
13615         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13616         all but WINDOWS_SOCKETS.
13617
13618 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13619
13620         openat: correct new comment
13621         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13622
13623 2011-05-10  Jim Meyering  <meyering@redhat.com>
13624
13625         openat: add comments
13626         * lib/openat-proc.c (openat_proc_name): Add comments,
13627         mostly from Eric Blake.
13628
13629 2011-05-09  Eric Blake  <eblake@redhat.com>
13630
13631         openat: reduce syscalls in first probe of /proc
13632         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13633         be a directory.  Simplify the probe for .. bugs.
13634         * modules/openat (Depends-on): Drop same-inode.
13635         Reported by Bastien ROUCARIES.
13636
13637 2011-05-09  Jim Meyering  <meyering@redhat.com>
13638
13639         maint.mk: change semantics/name of tight_scope variables
13640         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13641         Rename variables to align with semantics that make them more useful.
13642
13643         maint.mk: tweak new rule's name not to impinge
13644         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13645         (sc_tight_scope): Use new rule name rather than $@-0.
13646
13647         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13648         * top/maint.mk (sc_tight_scope): New rule.
13649         (sc_tight_scope-0): New rule, ifdef'd out.
13650         (_gl_TS_dir): Default.
13651         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13652         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13653
13654 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13655
13656         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13657         Haible <bruno@clisp.org>.
13658
13659 2011-05-08  Bruno Haible  <bruno@clisp.org>
13660
13661         Comments.
13662         * m4/isnanf.m4: Add comment.
13663         * m4/isnanl.m4: Likewise.
13664
13665 2011-05-08  Bruno Haible  <bruno@clisp.org>
13666
13667         glob: Remove obsolete macro.
13668         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13669
13670 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13671
13672         intprops: Sun C 5.11 supports __typeof__
13673         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13674         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13675         which is new.
13676         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13677
13678         intprops: switch to usual gnulib indenting and naming
13679         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13680         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13681
13682         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13683
13684 2011-05-08  Jim Meyering  <meyering@redhat.com>
13685
13686         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13687         * top/maint.mk (release-prep): Use make's --no-print-directory
13688         option when generating the announcement.  This eliminates the
13689         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13690         generated announcement template.
13691
13692 2011-05-08  Bruno Haible  <bruno@clisp.org>
13693
13694         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13695         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13696         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13697
13698 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13699
13700         ignore-value, verify: Omit include files from lib_SOURCES.
13701         * modules/ignore-value, modules/verify (Makefile.am):
13702         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13703         that leads Automake to duplicate use of am__objects_... variables
13704         in Makefile.in.  See
13705         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13706
13707 2011-05-07  Bruno Haible  <bruno@clisp.org>
13708
13709         fclose: Simplify autoconf macro.
13710         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13711         defined.
13712
13713 2011-05-07  Bruno Haible  <bruno@clisp.org>
13714
13715         canonicalize-lgpl: Fix autoconf macro ordering bug.
13716         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13717         gl_STDLIB_H_DEFAULTS.
13718
13719 2011-05-06  Eric Blake  <eblake@redhat.com>
13720
13721         maintainer-makefile: make sc_po_check easier to tune
13722         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13723         to probe for strings, such as an alternate location for gnulib.
13724
13725         fclose: guarantee behavior on seekable stdin
13726         * modules/fclose (Depends-on): Add fflush.
13727         * doc/posix-functions/fclose.texi (fclose): Document this.
13728         * tests/test-fclose.c (main): Make test for this unconditional.
13729
13730 2011-05-06  Bruno Haible  <bruno@clisp.org>
13731
13732         fflush, fpurge: Relicense under LGPLv2+.
13733         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13734         * modules/fpurge (License): Likewise.
13735         With permission from Eric Blake and Jim Meyering.
13736         Suggested by Eric Blake.
13737
13738 2011-05-06  Karl Berry  <karl@gnu.org>
13739
13740         * MODULES.html.sh (func_all_modules): remove exit.
13741
13742 2011-05-06  Jim Meyering  <meyering@redhat.com>
13743
13744         maint.mk: use info-gnu@ as the default only for a stable release
13745         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13746         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13747         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13748         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13749
13750 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13751
13752         assert-h: new module, which supports C1X-style static_assert
13753         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13754         * lib/verify.h: Revamp so that this can be copied into assert.h,
13755         while retaining the ability to use it standalone as before.
13756         Rename private identifiers so as not to encroach on the
13757         standard C namespace, since this is now used by assert.h.
13758         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13759         the old verify_true.
13760         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13761         the old verify_true.  Use _GL_VERIFY_TYPE.
13762         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13763         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13764         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13765         defined when this file is copied into the replacement assert.h.
13766         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13767         and _Static_assert is not built in.
13768         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13769         defined, and use the new macros mentioned above.
13770         * doc/posix-headers/assert.texi: Document this.
13771
13772 2011-05-05  Bruno Haible  <bruno@clisp.org>
13773
13774         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13775         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13776         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13777         gl_REPLACE_FCLOSE here.
13778         * modules/fflush (Depends-on): Remove fclose.
13779         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13780         combination with module 'fclose'.
13781
13782 2011-05-05  Bruno Haible  <bruno@clisp.org>
13783
13784         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13785         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13786         gl_FUNC_FFLUSH.
13787         (gl_FUNC_FFLUSH): Use it.
13788         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13790         gl_REPLACE_FSEEKO here.
13791
13792 2011-05-05  Bruno Haible  <bruno@clisp.org>
13793
13794         tzset: Relicense under LGPL.
13795         * modules/tzset (License): Change to LGPL.
13796         No agreement needed; it's a no-op.
13797
13798         strtoimax, strtoumax: Relicense under LGPL.
13799         * modules/strtoimax (License): Change to LGPL.
13800         * modules/strtoumax (License): Likewise.
13801         With permission from Jim Meyering, Paul Eggert:
13802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13804
13805         getgroups: Relicense under LGPL.
13806         * modules/getgroups (License): Change to LGPL.
13807         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13811
13812         nanosleep: Relicense under LGPL.
13813         * modules/nanosleep (License): Change to LGPL.
13814         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13815         Haible:
13816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
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
13821         futimens: Relicense under LGPL.
13822         * modules/futimens (License): Change to LGPL.
13823         With permission from Eric Blake:
13824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13825
13826         fflush: Relicense under LGPL.
13827         * modules/fflush (License): Change to LGPL.
13828         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13832
13833         tmpfile: Relicense under LGPL.
13834         * modules/tmpfile (License): Change to LGPL.
13835         With permission from Ben Pfaff:
13836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13837
13838         isfinite: Relicense under LGPL.
13839         * modules/isfinite (License): Change to LGPL.
13840         With permission from Ben Pfaff, Bruno Haible:
13841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13843
13844         acosl..tanl: Relicense under LGPL.
13845         * modules/acosl (License): Change to LGPL.
13846         * modules/asinl (License): Likewise.
13847         * modules/atanl (License): Likewise.
13848         * modules/cosl (License): Likewise.
13849         * modules/expl (License): Likewise.
13850         * modules/logl (License): Likewise.
13851         * modules/sinl (License): Likewise.
13852         * modules/sqrtl (License): Likewise.
13853         * modules/tanl (License): Likewise.
13854         Source code originally from glibc and Paolo Bonzini. Agreements:
13855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13857
13858 2011-05-05  Bruno Haible  <bruno@clisp.org>
13859
13860         signal: Define sighandler_t.
13861         * lib/signal.in.h (sighandler_t): New type.
13862         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13863         whether sighandler_t is defined.
13864         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13865         * modules/signal (Depends-on): Add extensions.
13866         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13867         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13868         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13869
13870 2011-05-05  Eric Blake  <eblake@redhat.com>
13871
13872         maint: remove useless REPLACE_*_H macros
13873         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13874         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13875         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13876         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13877         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13878         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13879         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13880         * m4/btowc.m4: Update callers.
13881         * m4/dirfd.m4: Likewise.
13882         * m4/duplocale.m4: Likewise.
13883         * m4/fchdir.m4: Likewise.
13884         * m4/fdopendir.m4: Likewise.
13885         * m4/inet_ntop.m4: Likewise.
13886         * m4/inet_pton.m4: Likewise.
13887         * m4/ioctl.m4: Likewise.
13888         * m4/mbrlen.m4: Likewise.
13889         * m4/mbrtowc.m4: Likewise.
13890         * m4/mbsinit.m4: Likewise.
13891         * m4/mbsnrtowcs.m4: Likewise.
13892         * m4/mbsrtowcs.m4: Likewise.
13893         * m4/poll.m4: Likewise.
13894         * m4/setlocale.m4: Likewise.
13895         * m4/wcrtomb.m4: Likewise.
13896         * m4/wcsnrtombs.m4: Likewise.
13897         * m4/wcsrtombs.m4: Likewise.
13898         * m4/wctob.m4: Likewise.
13899         * m4/wcwidth.m4: Likewise.
13900         * modules/posix_spawn: Likewise.
13901         * modules/posix_spawn_file_actions_addclose: Likewise.
13902         * modules/posix_spawn_file_actions_adddup2: Likewise.
13903         * modules/posix_spawn_file_actions_addopen: Likewise.
13904         * modules/posix_spawn_file_actions_destroy: Likewise.
13905         * modules/posix_spawn_file_actions_init: Likewise.
13906         * modules/posix_spawnattr_destroy: Likewise.
13907         * modules/posix_spawnattr_getflags: Likewise.
13908         * modules/posix_spawnattr_getpgroup: Likewise.
13909         * modules/posix_spawnattr_getschedparam: Likewise.
13910         * modules/posix_spawnattr_getschedpolicy: Likewise.
13911         * modules/posix_spawnattr_getsigdefault: Likewise.
13912         * modules/posix_spawnattr_getsigmask: Likewise.
13913         * modules/posix_spawnattr_init: Likewise.
13914         * modules/posix_spawnattr_setflags: Likewise.
13915         * modules/posix_spawnattr_setpgroup: Likewise.
13916         * modules/posix_spawnattr_setschedparam: Likewise.
13917         * modules/posix_spawnattr_setschedpolicy: Likewise.
13918         * modules/posix_spawnattr_setsigdefault: Likewise.
13919         * modules/posix_spawnattr_setsigmask: Likewise.
13920         * modules/posix_spawnp: Likewise.
13921
13922 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13923
13924         Add option to do-release-commit-and-tag to specify branch.
13925         * build-aux/do-release-commit-and-tag: Add --branch.
13926
13927 2011-05-03  Bruno Haible  <bruno@clisp.org>
13928
13929         Avoid unnecessary compilation units, through conditional dependencies.
13930         * modules/accept (Depends-on): Add conditions to the dependencies.
13931         * modules/acosl (Depends-on): Likewise.
13932         * modules/argz (Depends-on): Likewise.
13933         * modules/asinl (Depends-on): Likewise.
13934         * modules/atanl (Depends-on): Likewise.
13935         * modules/atoll (Depends-on): Likewise.
13936         * modules/bind (Depends-on): Likewise.
13937         * modules/btowc (Depends-on): Likewise.
13938         * modules/canonicalize-lgpl (Depends-on): Likewise.
13939         * modules/ceil (Depends-on): Likewise.
13940         * modules/ceilf (Depends-on): Likewise.
13941         * modules/ceill (Depends-on): Likewise.
13942         * modules/chdir-long (Depends-on): Likewise.
13943         * modules/chown (Depends-on): Likewise.
13944         * modules/close (Depends-on): Likewise.
13945         * modules/connect (Depends-on): Likewise.
13946         * modules/cosl (Depends-on): Likewise.
13947         * modules/dirfd (Depends-on): Likewise.
13948         * modules/dprintf (Depends-on): Likewise.
13949         * modules/dprintf-posix (Depends-on): Likewise.
13950         * modules/error (Depends-on): Likewise.
13951         * modules/euidaccess (Depends-on): Likewise.
13952         * modules/expl (Depends-on): Likewise.
13953         * modules/faccessat (Depends-on): Likewise.
13954         * modules/fchdir (Depends-on): Likewise.
13955         * modules/fclose (Depends-on): Likewise.
13956         * modules/fcntl (Depends-on): Likewise.
13957         * modules/fdopendir (Depends-on): Likewise.
13958         * modules/fflush (Depends-on): Likewise.
13959         * modules/floor (Depends-on): Likewise.
13960         * modules/floorf (Depends-on): Likewise.
13961         * modules/floorl (Depends-on): Likewise.
13962         * modules/fnmatch (Depends-on): Likewise.
13963         * modules/fopen (Depends-on): Likewise.
13964         * modules/fprintf-posix (Depends-on): Likewise.
13965         * modules/frexp (Depends-on): Likewise.
13966         * modules/frexp-nolibm (Depends-on): Likewise.
13967         * modules/frexpl (Depends-on): Likewise.
13968         * modules/frexpl-nolibm (Depends-on): Likewise.
13969         * modules/fseek (Depends-on): Likewise.
13970         * modules/fsusage (Depends-on): Likewise.
13971         * modules/ftell (Depends-on): Likewise.
13972         * modules/ftello (Depends-on): Likewise.
13973         * modules/futimens (Depends-on): Likewise.
13974         * modules/getcwd (Depends-on): Likewise.
13975         * modules/getcwd-lgpl (Depends-on): Likewise.
13976         * modules/getdelim (Depends-on): Likewise.
13977         * modules/getdomainname (Depends-on): Likewise.
13978         * modules/getgroups (Depends-on): Likewise.
13979         * modules/gethostname (Depends-on): Likewise.
13980         * modules/getline (Depends-on): Likewise.
13981         * modules/getlogin_r (Depends-on): Likewise.
13982         * modules/getopt-posix (Depends-on): Likewise.
13983         * modules/getpeername (Depends-on): Likewise.
13984         * modules/getsockname (Depends-on): Likewise.
13985         * modules/getsockopt (Depends-on): Likewise.
13986         * modules/getsubopt (Depends-on): Likewise.
13987         * modules/getusershell (Depends-on): Likewise.
13988         * modules/glob (Depends-on): Likewise.
13989         * modules/grantpt (Depends-on): Likewise.
13990         * modules/iconv_open (Depends-on): Likewise.
13991         * modules/iconv_open-utf (Depends-on): Likewise.
13992         * modules/inet_ntop (Depends-on): Likewise.
13993         * modules/inet_pton (Depends-on): Likewise.
13994         * modules/ioctl (Depends-on): Likewise.
13995         * modules/isapipe (Depends-on): Likewise.
13996         * modules/isfinite (Depends-on): Likewise.
13997         * modules/isinf (Depends-on): Likewise.
13998         * modules/lchown (Depends-on): Likewise.
13999         * modules/ldexpl (Depends-on): Likewise.
14000         * modules/link (Depends-on): Likewise.
14001         * modules/linkat (Depends-on): Likewise.
14002         * modules/listen (Depends-on): Likewise.
14003         * modules/logl (Depends-on): Likewise.
14004         * modules/lstat (Depends-on): Likewise.
14005         * modules/mbrlen (Depends-on): Likewise.
14006         * modules/mbrtowc (Depends-on): Likewise.
14007         * modules/mbsinit (Depends-on): Likewise.
14008         * modules/mbsnrtowcs (Depends-on): Likewise.
14009         * modules/mbsrtowcs (Depends-on): Likewise.
14010         * modules/mbtowc (Depends-on): Likewise.
14011         * modules/memcmp (Depends-on): Likewise.
14012         * modules/mkdir (Depends-on): Likewise.
14013         * modules/mkdtemp (Depends-on): Likewise.
14014         * modules/mkfifo (Depends-on): Likewise.
14015         * modules/mkfifoat (Depends-on): Likewise.
14016         * modules/mknod (Depends-on): Likewise.
14017         * modules/mkostemp (Depends-on): Likewise.
14018         * modules/mkostemps (Depends-on): Likewise.
14019         * modules/mkstemp (Depends-on): Likewise.
14020         * modules/mkstemps (Depends-on): Likewise.
14021         * modules/mktime (Depends-on): Likewise.
14022         * modules/nanosleep (Depends-on): Likewise.
14023         * modules/open (Depends-on): Likewise.
14024         * modules/openat (Depends-on): Likewise.
14025         * modules/perror (Depends-on): Likewise.
14026         * modules/poll (Depends-on): Likewise.
14027         * modules/popen (Depends-on): Likewise.
14028         * modules/posix_spawn (Depends-on): Likewise.
14029         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14030         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14031         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14032         * modules/posix_spawnp (Depends-on): Likewise.
14033         * modules/pread (Depends-on): Likewise.
14034         * modules/printf-posix (Depends-on): Likewise.
14035         * modules/ptsname (Depends-on): Likewise.
14036         * modules/putenv (Depends-on): Likewise.
14037         * modules/pwrite (Depends-on): Likewise.
14038         * modules/readline (Depends-on): Likewise.
14039         * modules/readlink (Depends-on): Likewise.
14040         * modules/readlinkat (Depends-on): Likewise.
14041         * modules/recv (Depends-on): Likewise.
14042         * modules/recvfrom (Depends-on): Likewise.
14043         * modules/regex (Depends-on): Likewise.
14044         * modules/remove (Depends-on): Likewise.
14045         * modules/rename (Depends-on): Likewise.
14046         * modules/renameat (Depends-on): Likewise.
14047         * modules/rmdir (Depends-on): Likewise.
14048         * modules/round (Depends-on): Likewise.
14049         * modules/roundf (Depends-on): Likewise.
14050         * modules/roundl (Depends-on): Likewise.
14051         * modules/rpmatch (Depends-on): Likewise.
14052         * modules/select (Depends-on): Likewise.
14053         * modules/send (Depends-on): Likewise.
14054         * modules/sendto (Depends-on): Likewise.
14055         * modules/setenv (Depends-on): Likewise.
14056         * modules/setlocale (Depends-on): Likewise.
14057         * modules/setsockopt (Depends-on): Likewise.
14058         * modules/shutdown (Depends-on): Likewise.
14059         * modules/sigaction (Depends-on): Likewise.
14060         * modules/signbit (Depends-on): Likewise.
14061         * modules/sigprocmask (Depends-on): Likewise.
14062         * modules/sinl (Depends-on): Likewise.
14063         * modules/sleep (Depends-on): Likewise.
14064         * modules/snprintf (Depends-on): Likewise.
14065         * modules/snprintf-posix (Depends-on): Likewise.
14066         * modules/socket (Depends-on): Likewise.
14067         * modules/sprintf-posix (Depends-on): Likewise.
14068         * modules/sqrtl (Depends-on): Likewise.
14069         * modules/stat (Depends-on): Likewise.
14070         * modules/strchrnul (Depends-on): Likewise.
14071         * modules/strdup-posix (Depends-on): Likewise.
14072         * modules/strerror (Depends-on): Likewise.
14073         * modules/strerror_r-posix (Depends-on): Likewise.
14074         * modules/strndup (Depends-on): Likewise.
14075         * modules/strnlen (Depends-on): Likewise.
14076         * modules/strptime (Depends-on): Likewise.
14077         * modules/strsep (Depends-on): Likewise.
14078         * modules/strsignal (Depends-on): Likewise.
14079         * modules/strstr-simple (Depends-on): Likewise.
14080         * modules/strtod (Depends-on): Likewise.
14081         * modules/strtoimax (Depends-on): Likewise.
14082         * modules/strtok_r (Depends-on): Likewise.
14083         * modules/strtoumax (Depends-on): Likewise.
14084         * modules/symlink (Depends-on): Likewise.
14085         * modules/symlinkat (Depends-on): Likewise.
14086         * modules/tanl (Depends-on): Likewise.
14087         * modules/tcgetsid (Depends-on): Likewise.
14088         * modules/tmpfile (Depends-on): Likewise.
14089         * modules/trunc (Depends-on): Likewise.
14090         * modules/truncf (Depends-on): Likewise.
14091         * modules/truncl (Depends-on): Likewise.
14092         * modules/uname (Depends-on): Likewise.
14093         * modules/unlink (Depends-on): Likewise.
14094         * modules/unlockpt (Depends-on): Likewise.
14095         * modules/unsetenv (Depends-on): Likewise.
14096         * modules/usleep (Depends-on): Likewise.
14097         * modules/utimensat (Depends-on): Likewise.
14098         * modules/vasprintf (Depends-on): Likewise.
14099         * modules/vdprintf (Depends-on): Likewise.
14100         * modules/vdprintf-posix (Depends-on): Likewise.
14101         * modules/vfprintf-posix (Depends-on): Likewise.
14102         * modules/vprintf-posix (Depends-on): Likewise.
14103         * modules/vsnprintf (Depends-on): Likewise.
14104         * modules/vsnprintf-posix (Depends-on): Likewise.
14105         * modules/vsprintf-posix (Depends-on): Likewise.
14106         * modules/wcrtomb (Depends-on): Likewise.
14107         * modules/wcscasecmp (Depends-on): Likewise.
14108         * modules/wcscspn (Depends-on): Likewise.
14109         * modules/wcsdup (Depends-on): Likewise.
14110         * modules/wcsncasecmp (Depends-on): Likewise.
14111         * modules/wcsnrtombs (Depends-on): Likewise.
14112         * modules/wcspbrk (Depends-on): Likewise.
14113         * modules/wcsrtombs (Depends-on): Likewise.
14114         * modules/wcsspn (Depends-on): Likewise.
14115         * modules/wcsstr (Depends-on): Likewise.
14116         * modules/wcstok (Depends-on): Likewise.
14117         * modules/wcswidth (Depends-on): Likewise.
14118         * modules/wctob (Depends-on): Likewise.
14119         * modules/wctomb (Depends-on): Likewise.
14120         * modules/wctype (Depends-on): Likewise.
14121         * modules/wcwidth (Depends-on): Likewise.
14122         * modules/write (Depends-on): Likewise.
14123
14124 2011-05-03  Bruno Haible  <bruno@clisp.org>
14125
14126         Support for conditional dependencies.
14127         * doc/gnulib.texi (Module description): Document the syntax of
14128         conditional dependencies.
14129         * gnulib-tool: New option --conditional-dependencies.
14130         (func_usage): Document it.
14131         (cond_dependencies): New variable.
14132         (func_get_automake_snippet_conditional,
14133         func_get_automake_snippet_unconditional): New functions, extracted from
14134         func_get_automake_snippet.
14135         (func_get_automake_snippet): Use them.
14136         (sed_first_32_chars): New variable.
14137         (func_module_shellfunc_name): New function.
14138         (func_module_shellvar_name): New function.
14139         (func_module_conditional_name): New function.
14140         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14141         func_cond_module_condition): New functions.
14142         (func_modules_transitive_closure): Add support for conditional
14143         dependencies.
14144         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14145         conditional automake snippet in an automake conditional.
14146         (func_emit_autoconf_snippets): Emit shell functions that contain the
14147         code for conditional modules.
14148         (func_import, func_create_testdir): Update specification.
14149
14150 2011-05-03  Eric Blake  <eblake@redhat.com>
14151
14152         test-getaddrinfo: report error information
14153         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14154
14155 2011-05-03  Jim Meyering  <meyering@redhat.com>
14156
14157         bootstrap: avoid build failure when $GZIP is set
14158         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14159         program name.  If defined at all, it is supposed to list gzip options.
14160         Reported by Alan Curry in http://debbugs.gnu.org/8609
14161
14162 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14163
14164         readme-release: new module with release instructions
14165         * modules/readme-release: New module.
14166         * top/README-release: New file, from coreutils, grep, diffutils.
14167         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14168
14169 2011-05-02  Eric Blake  <eblake@redhat.com>
14170
14171         fflush: also replace fclose when fixing fflush
14172         * modules/fflush (Depends-on): Add fclose.
14173         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14174         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14175         memstreams with no backing fd.
14176         * doc/posix-functions/fclose.texi (fclose): Document the use of
14177         fflush module to fix the bug.
14178         * tests/test-fclose.c (main): Relax test when fclose is used in
14179         isolation.
14180
14181         fclose: add some tests
14182         * modules/fclose-tests: New test module.
14183         * tests/test-fclose.c: New file.
14184         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14185
14186         fclose: reduced dependencies
14187         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14188         simpler lseek.
14189         * lib/fclose.c (rpl_fclose): Likewise.
14190         Reported by Simon Josefsson.
14191
14192         exit: drop remaining clients
14193         * modules/argmatch (Depends-on): Replace exit with stdlib.
14194         * modules/copy-file (Depends-on): Likewise.
14195         * modules/execute (Depends-on): Likewise.
14196         * modules/exitfail (Depends-on): Likewise.
14197         * modules/obstack (Depends-on): Likewise.
14198         * modules/pagealign_alloc (Depends-on): Likewise.
14199         * modules/pipe-filter-gi (Depends-on): Likewise.
14200         * modules/pipe-filter-ii (Depends-on): Likewise.
14201         * modules/savewd (Depends-on): Likewise.
14202         * modules/spawn-pipe (Depends-on): Likewise.
14203         * modules/wait-process (Depends-on): Likewise.
14204         * modules/xsetenv (Depends-on): Likewise.
14205         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14206         * modules/git-merge-changelog (Depends-on): Likewise.
14207         * modules/long-options (Depends-on): Likewise.
14208         * modules/pt_chown (Depends-on): Likewise.
14209         * modules/sysexits (Depends-on): Likewise.
14210
14211         freading: relax license from LGPLv3+ to LGPLv2+
14212         * modules/freading (License): Relax LGPL version.
14213
14214 2011-05-02  Bruno Haible  <bruno@clisp.org>
14215
14216         fchdir: Remove unused dependencies.
14217         * modules/fchdir (Depends-on): Remove include_next.
14218
14219 2011-05-02  Bruno Haible  <bruno@clisp.org>
14220
14221         gnulib-tool: Refactor.
14222         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14223         from func_emit_autoconf_snippets.
14224         (func_emit_autoconf_snippets): Use it.
14225
14226 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14227
14228         * NEWS: Document removal of 'exit'.
14229         * modules/exit: Remove file.
14230
14231 2011-05-01  Bruno Haible  <bruno@clisp.org>
14232
14233         Update DEPENDENCIES.
14234         * DEPENDENCIES (gettext): Recommend the newest release.
14235         Reported by Simon Josefsson.
14236
14237 2011-05-01  Bruno Haible  <bruno@clisp.org>
14238
14239         gnulib-tool: Reduce code duplication.
14240         * gnulib-tool (func_emit_autoconf_snippets): New function.
14241         (func_import, func_create_testdir): Use it.
14242
14243 2011-04-30  Eric Blake  <eblake@redhat.com>
14244
14245         fclose: don't fail on non-seekable input stream
14246         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14247         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14248         since fflush is allowed to fail in that case.
14249
14250 2011-04-30  Bruno Haible  <bruno@clisp.org>
14251
14252         dup3: cleanup
14253         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14254
14255 2011-04-30  Bruno Haible  <bruno@clisp.org>
14256
14257         netdb: Make it work in C++ mode.
14258         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14259         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14260         module.
14261         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14262         gl_MODULE_INDICATOR_FOR_TESTS.
14263         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14264         * modules/netdb-c++-tests: New file.
14265         * tests/test-netdb-c++.cc: New file.
14266
14267 2011-04-30  Bruno Haible  <bruno@clisp.org>
14268
14269         New modules 'vfscanf', 'vscanf'.
14270         * modules/vfscanf: New file.
14271         * modules/vscanf: New file.
14272         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14273         here.
14274         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14275         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14276
14277 2011-04-30  Bruno Haible  <bruno@clisp.org>
14278
14279         passfd: Add comments.
14280         * lib/passfd.c: Add comments about platforms.
14281
14282 2011-04-30  Bruno Haible  <bruno@clisp.org>
14283
14284         sys_uio: Make <sys/uio.h> self-contained.
14285         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14286         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14287
14288 2011-04-30  Bruno Haible  <bruno@clisp.org>
14289
14290         sys_socket: Ensure 'struct iovec' definition.
14291         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
14292         <sys/socket.h>.
14293         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
14294
14295 2011-04-30  Bruno Haible  <bruno@clisp.org>
14296
14297         sys_uio: Protect definition of 'struct iovec'.
14298         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14299         it as a C struct.
14300
14301 2011-04-30  Bruno Haible  <bruno@clisp.org>
14302
14303         manywarnings: fix indentation
14304         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14305
14306 2011-04-30  Pádraig Brady <P@draigBrady.com>
14307
14308         manywarnings: add -Wno-missing-field-initializers if needed.
14309         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14310         option if it's needed to allow initialization with { 0, }
14311
14312 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14313
14314         announce-gen: cosmetic improvement
14315         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14316
14317 2011-04-29  Jim Meyering  <meyering@redhat.com>
14318
14319         vc-list-files: indent with spaces, not TABs
14320         * build-aux/vc-list-files: Convert leading TABs to spaces,
14321         to match the style of most other files in gnulib.
14322
14323         announce-gen: indent with spaces, not TABs
14324         * build-aux/announce-gen: Convert all TABs to spaces, to match
14325         the style of most other files in gnulib.
14326
14327 2011-04-29  Eric Blake  <eblake@redhat.com>
14328
14329         quotearg: avoid uninitialized variable use
14330         * lib/quotearg.c (quoting_options_from_style): Initialize
14331         remaining fields, and ensure that custom styles are only used via
14332         quoting_options rather than quoting_style.
14333
14334 2011-04-29  Jim Meyering  <meyering@redhat.com>
14335
14336         maint.mk: remove unused VC-tag variable
14337         * top/maint.mk (VC-tag): Remove unused variable.
14338
14339 2011-04-29  Bruno Haible  <bruno@clisp.org>
14340
14341         netdb: fix gai_strerror replacements
14342         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14343         * modules/netdb: Substitute it.
14344
14345 2011-04-29  Jim Meyering  <meyering@redhat.com>
14346
14347         test-getcwd.c: avoid new set-but-not-used warning
14348         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14349         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14350         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14351         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14352
14353         test-hash.c: avoid a new shadowing warning
14354         * tests/test-hash.c (main): Don't shadow "dup".
14355
14356 2011-04-28  Eric Blake  <eblake@redhat.com>
14357
14358         getaddrinfo: fix gai_strerror signature
14359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14360         and work around mingw with UNICODE defined.
14361         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14362         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14363         * modules/netdb (Makefile.am): Substitute it.
14364         * lib/netdb.in.h (gai_strerror): Declare replacement.
14365         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14366         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14367         the fix.
14368
14369         getsockopt: avoid compiler warning
14370         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14371         Reported by Matthias Bolte.
14372
14373         tests: drop unused link dependency
14374         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14375         * modules/dirent-safer-tests (Makefile.am): Likewise.
14376         * modules/fdopendir-tests (Makefile.am): Likewise.
14377         * modules/mkfifoat-tests (Makefile.am): Likewise.
14378         * modules/openat-safer-tests (Makefile.am): Likewise.
14379         * modules/openat-tests (Makefile.am): Likewise.
14380         * modules/readlinkat-tests (Makefile.am): Likewise.
14381         * modules/symlinkat-tests (Makefile.am): Likewise.
14382         * modules/linkat-tests (Makefile.am): Likewise.
14383         (Depends-on): Switch to filenamecat-lgpl.
14384         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14385         LIBINTL.
14386         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14387         * tests/test-linkat.c (main): Don't require xalloc.
14388
14389         hash, mgetgroups: drop xalloc dependency
14390         * lib/hash.c (includes): Adjust includes.
14391         * lib/mgetgroups.c (includes): Likewise.
14392         (xgetgroups): Move...
14393         * lib/xgetgroups.c: ...to new file.
14394         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14395         * modules/xgetgroups: New file, split from...
14396         * modules/mgetgroups: ...here.
14397         (Depends-on): Add xalloc-oversized.
14398         * modules/hash (Depends-on): Likewise.
14399         * modules/hash-tests (Depends-on): Drop xalloc.
14400         (test_hash_LDADD): Drop unused library.
14401         * tests/test-hash.c (main): Break xalloc dependency.
14402         (includes): Drop unused include.
14403
14404         xalloc-oversized: new module
14405         * modules/xalloc-oversized: New module.
14406         * modules/xalloc (Depends-on): Add it.
14407         * lib/xalloc.h (xalloc_oversized): Move...
14408         * lib/xalloc-oversized.h: ...into new file.
14409
14410         utimecmp: drop dependency on xmalloc
14411         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14412         due to memory pressure.
14413         * modules/utimecmp (Depends-on): Drop xalloc.
14414
14415 2011-04-27  Eric Blake  <eblake@redhat.com>
14416
14417         getcwd: fix mingw bugs
14418         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14419         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14420         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14421
14422 2011-04-27  Bruno Haible  <bruno@clisp.org>
14423
14424         mkstemps: Ensure declaration on MacOS X 10.5.
14425         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14426         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14427         MacOS X.
14428
14429 2011-04-27  Bruno Haible  <bruno@clisp.org>
14430
14431         mkstemp: More documentation.
14432         * doc/posix-functions/mkstemp.texi: Document header file problem on
14433         MacOS X.
14434
14435 2011-04-27  Bruno Haible  <bruno@clisp.org>
14436
14437         mkstemp: Tweak configure message when cross-compiling.
14438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14439         result as a guess.
14440
14441 2011-04-27  Bruno Haible  <bruno@clisp.org>
14442
14443         clean-temp: Clarify what it does.
14444         * lib/clean-temp.h: Add more comments.
14445         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14446         module.
14447         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14448         * doc/glibc-functions/mkstemps.texi: Likewise.
14449         * doc/glibc-functions/mkostemps.texi: Likewise.
14450
14451 2011-04-27  Eric Blake  <eblake@redhat.com>
14452
14453         fchdir: avoid extra chdir and fix test
14454         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14455         getcwd-lgpl.
14456         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14457         have to be canonical.
14458         (canonicalize_file_name): Drop unused macro.
14459         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14460
14461         filenamecat-lgpl: fix licence
14462         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14463         when it was first created.
14464
14465         linkat, renameat: add missing dependency
14466         * modules/linkat (Depends-on): Require getcwd-lgpl.
14467         * modules/renameat (Depends-on): Likewise.
14468
14469         tests: reduce dependencies
14470         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14471         * tests/test-renameat.c (main): Likewise.
14472         * modules/linkat-tests (Depends-on): Relax dependency.
14473         * modules/renameat-tests (Depends-on): Likewise.
14474         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14475         dependency explicit.
14476
14477         save-cwd: reduce default dependency
14478         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14479         * lib/save-cwd.c: Update comments.
14480         * NEWS: Document the semantic change.
14481
14482         getcwd: enhance tests
14483         * tests/test-getcwd-lgpl.c: New file, taken from...
14484         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14485         repeat long path stress tests from m4 probe.
14486         * modules/getcwd-lgpl-tests: New module.
14487         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14488         * m4/getcwd-abort-bug.m4: Update comment.
14489         * m4/getcwd-path-max.m4: Likewise.
14490
14491         getcwd-lgpl: new module
14492         * modules/getcwd-lgpl: New module.
14493         * lib/getcwd-lgpl.c: New file.
14494         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14495         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14496         * modules/getcwd (configure.ac): Set C witness.
14497         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14498
14499         getcwd: tweak comments
14500         * m4/getcwd-abort-bug.m4: Fix comments.
14501         * m4/getcwd-path-max.m4: Likewise.
14502         * m4/getcwd.m4: Likewise.
14503
14504 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14505         and Eric Blake  <eblake@redhat.com>
14506
14507         mkstemp: replace if system version uses wrong permissions
14508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14509         read/write mode bits set in file created by mkstemp.
14510         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14511
14512 2011-04-27  Eric Blake  <eblake@redhat.com>
14513
14514         passfd: avoid compiler warning
14515         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14516         Reported by Laine Stump.
14517
14518 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14519
14520         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14521         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14522
14523 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14524         and Eric Blake  <eblake@redhat.com>
14525
14526         mkstemp: mention clean-temp module
14527         * lib/mkstemp.c: Add comment.
14528         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14529
14530 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14531
14532         inttypes: also provide default values for 32-bit tests
14533         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14534         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14535
14536 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14537
14538         strtoumax: remove dependency on strtoimax
14539         This is like the strtoull change of yesterday.
14540         * modules/strtoumax (Files): Add lib/strtoimax.c.
14541         (Depends-on): Remove strtoimax and add verify.
14542
14543         inttypes-incomplete: new module
14544         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14545         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14546         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14547         of gl_INTTYPES_H.
14548         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14549         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14550         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14551         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14552         * modules/strtoumax, modules/xstrtol (Depends-on):
14553         Depend on inttypes-incomplete, not inttypes.
14554         * modules/inttypes-incomplete: New module, containing the contents
14555         of the old modules/inttypes module, except that the Files: section
14556         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14557         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14558         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14559         (Depends-on): Depend only on inttypes-incomplete.
14560         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14561
14562         inttypes: omit now-redundant strtoimax and strtoumax work
14563         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14564         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14565
14566         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14567         This supports apps that need pointers to strtoimax and strtoumax,
14568         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14569         nonexistent functions.  See
14570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14571         et seq.
14572         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14573         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14574         a macro.
14575         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14576
14577 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14578
14579         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14580
14581 2011-04-25  Bruno Haible  <bruno@clisp.org>
14582
14583         strtol, strtoul: Mark modules as obsolete.
14584         * modules/strtol (Status, Notice): New sections.
14585         * modules/strtoul (Status, Notice): New sections.
14586
14587 2011-04-25  Bruno Haible  <bruno@clisp.org>
14588
14589         strtod: Remove check for strtod, unless supporting old platforms.
14590         * modules/strtod-obsolete: New file.
14591         * m4/strtod-obsolete.m4: New file.
14592         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14593         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14594         * modules/strtod (Depends-on): Add strtod-obsolete.
14595         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14596
14597 2011-04-25  Bruno Haible  <bruno@clisp.org>
14598
14599         strcase: Make module obsolete.
14600         * modules/strcase (Status, Notice): New sections.
14601
14602 2011-04-25  Bruno Haible  <bruno@clisp.org>
14603
14604         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14605         * modules/dup2-obsolete: New file.
14606         * m4/dup2-obsolete.m4: New file.
14607         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14608         gl_FUNC_DUP2_OBSOLETE is not also defined.
14609         * modules/dup2 (Depends-on): Add dup2-obsolete.
14610         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14611
14612 2011-04-25  Bruno Haible  <bruno@clisp.org>
14613
14614         strnlen: Avoid memchr related link error on old obsolete platforms.
14615         * modules/memchr-obsolete: New file.
14616         * m4/memchr-obsolete.m4: New file.
14617         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14618         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14619         * modules/memchr (Depends-on): Add memchr-obsolete.
14620         * modules/strnlen (Depends-on): Likewise.
14621         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14622
14623 2011-04-25  Jim Meyering  <meyering@redhat.com>
14624
14625         maint.mk: makefile_at_at_check extend and clean up
14626         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14627         in addition to */Makefile.am.
14628         Exempt legitimate uses of @VAR@ notation, e.g.,
14629         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14630         Remove obsolete coreutils-specific comment.
14631         Prompted by discussion here:
14632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14633
14634 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         strtoul: remove dependency on strtol
14637         This is so that 'configure' need not check for strtol merely because
14638         the application needs strtoul.
14639         * modules/strtoul (Files): Add lib/strtol.c.
14640         (Depends-on): Remove strtol.
14641
14642         strtoull: remove dependency on strtoul
14643         This is like the strtoll change.
14644         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14645         (Depends-on): Remove strtoul.
14646
14647         strtoll: remove dependency on strtol
14648         This is so that 'configure' need not check for strtol merely because
14649         the application needs strtoll.
14650         * modules/strtoll (Files): Add lib/strtol.c.
14651         (Depends-on): Remove strtol.
14652
14653 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14654
14655         inttypes: Move some configure check to module 'imaxdiv'.
14656         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14657         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14658         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14659
14660 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14661
14662         inttypes: Move some configure check to module 'imaxabs'.
14663         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14664         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14665         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14666
14667 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         inttypes: Remove configure tests that are not needed since 2009-12-31.
14670         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14671         gl_cv_header_working_inttypes_h.
14672
14673 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14674
14675         * modules/strnlen (Depends-on): Remove memchr.
14676         The strnlen implementation doesn't need the memchr module's fixes; see
14677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14678
14679         strtol: remove dependency on wchar
14680         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14681         * modules/strtol (Depends-on): Remove wchar.
14682
14683 2011-04-21  Eric Blake  <eblake@redhat.com>
14684
14685         passfd: fix test regression on Linux
14686         * modules/passfd-tests (configure.ac): Correct socketpair check.
14687
14688         passfd: speed up configure and drop unused code
14689         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14690         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14691         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14692         Instead of probing at configure for unix_scm_rights_bsd44_way,
14693         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14694         check to a struct member probe.
14695         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14696         (sendfd, recvfd): Update preprocessor checks.
14697         * modules/passfd (Files): Reflect rename, and drop unused file.
14698         (Depends-on): Drop unused dependency.
14699
14700         passfd: allow compilation on mingw
14701         * modules/sys_socket (Depends-on): Add sys_uio.
14702         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14703         iovec and a minimal struct msghdr.
14704         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14705         * tests/test-sys_socket.c (main): Enhance test.
14706         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14707         guaranteed to provide what we need.
14708         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14709         * modules/passfd-tests (Depends-on): Add sys_wait.
14710         * tests/test-passfd.c (main): Skip test on mingw, for now.
14711         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14712         partial 'struct msghdr' implementation.
14713
14714         sys_uio: new module
14715         * modules/sys_uio: New module.
14716         * modules/sys_uio-tests: Likewise.
14717         * lib/sys_uio.in.h: New file.
14718         * m4/sys_uio_h.m4: Likewise.
14719         * tests/test-sys_uio.c: Likewise.
14720         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14721         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14722
14723 2011-04-20  Jim Meyering  <meyering@redhat.com>
14724
14725         useless-if-before-free: avoid false-positive
14726         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14727         disjunct so that it too requires a terminating ";".  Without that,
14728         this script would identify as useless one statement from gcc that
14729         was not:
14730           if (aligned_ptr)
14731             free (((void **) aligned_ptr) [-1]);
14732
14733 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14734
14735         doc: update users.txt.
14736         * users.txt: Add barcode.
14737
14738 2011-04-19  Bruno Haible  <bruno@clisp.org>
14739
14740         ioctl: Remove link dependency on native Windows.
14741         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14742         (gl_close_fn, gl_ioctl_fn): New types.
14743         (struct fd_hook): Renamed from struct close_hook. Change type of
14744         private_close_fn field. Add private_ioctl_fn field.
14745         (close_hook_fn): Add parameter for primary close method.
14746         (execute_close_hooks, execute_all_close_hooks): Likewise.
14747         (ioctl_hook_fn): New type.
14748         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14749         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14750         argument.
14751         (unregister_fd_hook): Renamed from unregister_close_hook.
14752         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14753         Don't include <unistd.h>.
14754         (close): Remove undef.
14755         (anchor): Update.
14756         (execute_close_hooks): Add argument for primary close method.
14757         (execute_all_close_hooks): Likewise.
14758         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14759         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14760         argument. Allow each argument to be NULL.
14761         (unregister_fd_hook): Renamed from unregister_close_hook.
14762         * lib/close.c (rpl_close): Pass 'close' function pointer to
14763         execute_all_close_hooks.
14764         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14765         (primary_ioctl): New function.
14766         (ioctl): Don't call ioctlsocket here. Instead, call
14767         execute_all_ioctl_hooks.
14768         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14769         close method.
14770         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14771         (fd_sockets_hook): Renamed from close_sockets_hook.
14772         (gl_sockets_startup, gl_sockets_cleanup): Update.
14773         * modules/fd-hook: Renamed from modules/close-hook. Update.
14774         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14775         * modules/sockets (Depends-on): Likewise.
14776         * modules/ioctl (Depends-on): Add fd-hook.
14777         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14778         GNULIB_SOCKET.
14779
14780 2011-04-19  Bruno Haible  <bruno@clisp.org>
14781
14782         Move the support of O_NONBLOCK in open() to the 'open' module.
14783         * modules/nonblocking (Depends-on): Remove 'open'.
14784         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14785         gl_cv_have_open_O_NONBLOCK.
14786         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14787         O_NONBLOCK support.
14788         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14789
14790 2011-04-17  Bruno Haible  <bruno@clisp.org>
14791
14792         pipe2: Simplify code.
14793         * lib/pipe2.c (pipe2): Reduce code duplication.
14794
14795 2011-04-17  Bruno Haible  <bruno@clisp.org>
14796
14797         nonblocking: Add comment.
14798         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14799
14800 2011-04-17  Bruno Haible  <bruno@clisp.org>
14801
14802         nonblocking: Add tests for sockets.
14803         * tests/test-nonblocking-socket.sh: New file.
14804         * tests/test-nonblocking-socket-main.c: New file.
14805         * tests/test-nonblocking-socket-child.c: New file.
14806         * tests/test-nonblocking-socket.h: New file.
14807         * tests/socket-server.h: New file.
14808         * tests/socket-client.h: New file.
14809         * modules/nonblocking-socket-tests: New file.
14810         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14811
14812 2011-04-17  Bruno Haible  <bruno@clisp.org>
14813
14814         nonblocking: Add tests for pipes.
14815         * tests/test-nonblocking-pipe.sh: New file.
14816         * tests/test-nonblocking-pipe-main.c: New file.
14817         * tests/test-nonblocking-pipe-child.c: New file.
14818         * tests/test-nonblocking-pipe.h: New file.
14819         * tests/test-nonblocking-writer.h: New file.
14820         * tests/test-nonblocking-reader.h: New file.
14821         * tests/test-nonblocking-misc.h: New file.
14822         * modules/nonblocking-pipe-tests: New file.
14823         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14824
14825 2011-04-16  Bruno Haible  <bruno@clisp.org>
14826
14827         gettext: Clarify the needed programmer actions.
14828         * modules/gettext (Notice): New field.
14829         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14830
14831 2011-04-16  Bruno Haible  <bruno@clisp.org>
14832
14833         strchrnul: Tweak last commit.
14834         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14835         bug.
14836         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14837         as in _GL_FUNCDECL_SYS.
14838         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14839         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14840
14841 2011-04-15  Eric Blake  <eblake@redhat.com>
14842
14843         strchrnul: work around cygwin bug
14844         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14845         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14847         * modules/string (Makefile.am): Substitute it.
14848         * lib/string.in.h (strchrnul): Use it.
14849
14850 2011-04-15  Bruno Haible  <bruno@clisp.org>
14851
14852         Don't require lib/stdio-write.c when only module 'stdio' is used.
14853         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14854         invocation.
14855         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14856
14857 2011-04-14  Bruno Haible  <bruno@clisp.org>
14858
14859         Support non-blocking pipe I/O in read() on native Windows.
14860         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14861         (read): New declaration.
14862         * lib/read.c: New file.
14863         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14864         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14865         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14866         vscanf): New declarations.
14867         * lib/stdio-read.c: New file.
14868         * m4/read.m4: New file.
14869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14870         REPLACE_READ.
14871         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14872         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14873         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14874         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14875         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14876         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14877         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14878         * modules/read: New file.
14879         * modules/nonblocking (Files): Add lib/stdio-read.c.
14880         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14881         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14882         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14883         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14884         * modules/pread (Depends-on): Add read.
14885         * modules/safe-read (Depends-on): Likewise.
14886         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14887         gets, scanf, vfscanf, vscanf): Verify signatures.
14888         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14889         problem with non-blocking pipes.
14890         * doc/posix-functions/fgetc.texi: Likewise.
14891         * doc/posix-functions/fgets.texi: Likewise.
14892         * doc/posix-functions/fread.texi: Likewise.
14893         * doc/posix-functions/fscanf.texi: Likewise.
14894         * doc/posix-functions/getc.texi: Likewise.
14895         * doc/posix-functions/getchar.texi: Likewise.
14896         * doc/posix-functions/gets.texi: Likewise.
14897         * doc/posix-functions/scanf.texi: Likewise.
14898         * doc/posix-functions/vfscanf.texi: Likewise.
14899         * doc/posix-functions/vscanf.texi: Likewise.
14900
14901 2011-04-14  Bruno Haible  <bruno@clisp.org>
14902
14903         Support non-blocking pipe I/O in write() on native Windows.
14904         * lib/write.c (rpl_write): Split a write request that failed merely
14905         because the byte count was larger than the pipe buffer's size.
14906         * doc/posix-functions/write.texi: Mention the problem with large byte
14907         counts.
14908
14909 2011-04-14  Bruno Haible  <bruno@clisp.org>
14910
14911         wchar: Ensure that wchar_t gets defined on uClibc.
14912         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14913         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14914
14915 2011-04-13  Bruno Haible  <bruno@clisp.org>
14916
14917         safe-write, full-read: Avoid unnecessary compilation units.
14918         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14919         (Depends-on): Remove safe-read. Add ssize_t.
14920         * modules/full-read (Files): Add lib/full-write.c.
14921         (Depends-on): Add full-write.
14922
14923 2011-04-13  Bruno Haible  <bruno@clisp.org>
14924
14925         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14926         * modules/pwrite (Depends-on): Add 'write'.
14927
14928 2011-04-13  Bruno Haible  <bruno@clisp.org>
14929
14930         Support non-blocking pipe I/O in write() on native Windows.
14931         * lib/unistd.in.h (write): Enable replacement also if
14932         GNULIB_UNISTD_H_NONBLOCKING is 1.
14933         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14934         (rpl_write): When failing to write on a non-blocking pipe, change
14935         errno from ENOSPC to EAGAIN.
14936         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14937         putchar, puts, vfprintf, vprintf): Enable replacement also if
14938         GNULIB_STDIO_H_NONBLOCKING is 1.
14939         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14940         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14941         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14942         CALL_WITH_SIGPIPE_EMULATION.
14943         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14944         * m4/nonblocking.m4: New file.
14945         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14946         for non-blocking I/O support.
14947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14948         GNULIB_UNISTD_H_NONBLOCKING.
14949         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14950         required for non-blocking I/O support.
14951         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14952         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14953         lib/stdio-write.c, m4/asm-underscore.m4.
14954         (Depends-on): Add stdio, unistd.
14955         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14956         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14957         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14958         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14959         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14960         problem with non-blocking pipes.
14961         * doc/posix-functions/fputc.texi: Likewise.
14962         * doc/posix-functions/fputs.texi: Likewise.
14963         * doc/posix-functions/fwrite.texi: Likewise.
14964         * doc/posix-functions/printf.texi: Likewise.
14965         * doc/posix-functions/putc.texi: Likewise.
14966         * doc/posix-functions/putchar.texi: Likewise.
14967         * doc/posix-functions/puts.texi: Likewise.
14968         * doc/posix-functions/vfprintf.texi: Likewise.
14969         * doc/posix-functions/vprintf.texi: Likewise.
14970         * doc/posix-functions/write.texi: Likewise.
14971
14972 2011-04-10  Jim Meyering  <meyering@redhat.com>
14973
14974         maint.mk: prohibit doubled words
14975         Detect them also when they're separated by a newline.
14976         There are 3 ways to customize it:
14977           - disable the test on a per file basis, as usual with rules using
14978             $(VC_LIST_EXCEPT)
14979           - replace the default doubled-word-selecting regexp (affects all files)
14980           - ignore a particular file-vs-doubled-word match
14981         I nearly used that last one to ignore the "is is" match in
14982         coreutils' NEWS file, since the text was "ls -is is ..."
14983         To do that, I would have added this line to cfg.mk:
14984           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14985         but it would have ignored any "is is" match in NEWS.
14986         Low probability, but still...
14987         Instead, I changed the text, slightly:
14988           -  ls -is is now consistent with ls -lis in ignoring values returned
14989           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14990         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14991         (prohibit_doubled_word_): Define.
14992         (sc_prohibit_doubled_word): New rule.
14993         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14994
14995 2011-04-10  Jim Meyering  <meyering@redhat.com>
14996
14997         maint: fix doubled-word typo in comment
14998         * m4/gethostname.m4: s/is is/it is/
14999         * m4/getdomainname.m4: Likewise.
15000
15001 2011-04-10  Jim Meyering  <meyering@redhat.com>
15002
15003         maint: remove doubled word: s/it it/it/
15004         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
15005
15006 2011-04-10  Jim Meyering  <meyering@redhat.com>
15007
15008         maint.mk: remove useless semicolon and backslash
15009         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
15010         semicolon and backslash.
15011
15012 2011-04-10  Bruno Haible  <bruno@clisp.org>
15013
15014         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15015         * modules/stdint-tests (Depends-on): Add wchar.
15016
15017 2011-04-10  Jim Meyering  <meyering@redhat.com>
15018
15019         maint: remove doubled words in comments, e.g., s/a a/a/
15020         * lib/strptime.c (day_of_the_week): s/the the/the/
15021         * tests/test-chown.h (test_chown): s/a a/a/
15022
15023         test-chown.h: correct a cast
15024         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15025         when the destination is a stat.st_gid.
15026
15027 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15028
15029         getaddrinfo: Fix test for sa_len member.
15030         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15031         include <sys/types.h> before <sys/socket.h>.
15032
15033 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15034
15035         maint: change "can not" to "cannot"
15036         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15037         boundaries.
15038
15039 2011-04-09  Jim Meyering  <meyering@redhat.com>
15040
15041         maint: change "a a" to "a"
15042         * tests/test-lchown.h (test_lchown): s/a a/a/
15043
15044         maint.mk: prohibit \<the the\>
15045         * top/maint.mk (sc_prohibit_the_the): New rule.
15046
15047         maint: fix "the the" in comment
15048         * lib/count-one-bits.h: s/the the/the/
15049
15050         maint: change "can not" to "cannot"
15051         But do not change the occurrences in maintain.texi or in
15052         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15053         * doc/gnulib-tool.texi: s/can not/cannot/
15054         * doc/posix-functions/accept.texi (accept): Likewise.
15055         * doc/posix-functions/socket.texi (socket): Likewise.
15056         * lib/mbrtowc.c: Likewise.
15057
15058         maint.mk: prohibit use of "can not"
15059         * top/maint.mk (sc_prohibit_can_not): New rule.
15060         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15061
15062 2011-04-09  Bruno Haible  <bruno@clisp.org>
15063
15064         careadlinkat: Guard against misuse of careadlinkatcwd.
15065         * lib/careadlinkat.c: Include <stdlib.h>.
15066         (careadlinkatcwd): Check that the fd argument is as expected.
15067
15068 2011-04-09  Bruno Haible  <bruno@clisp.org>
15069
15070         careadlinkat: Use common coding style.
15071         * lib/careadlinkat.c: Move gnulib includes after system includes.
15072
15073 2011-04-09  Bruno Haible  <bruno@clisp.org>
15074
15075         careadlinkat: Clarify specification.
15076         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15077         (careadlinkatcwd): Add comment.
15078         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15079
15080 2011-04-09  Bruno Haible  <bruno@clisp.org>
15081
15082         areadlinkat: Avoid link error on many platforms.
15083         * modules/areadlinkat (Depends-on): Add areadlink.
15084
15085 2011-04-09  Bruno Haible  <bruno@clisp.org>
15086
15087         allocator, careadlinkat: Fix double-inclusion guard.
15088         * lib/allocator.h: Fix double-inclusion guard.
15089         * lib/careadlinkat.h: Likewise.
15090
15091 2011-04-09  Bruno Haible  <bruno@clisp.org>
15092
15093         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15094         * lib/relocwrapper.c: Update dependencies hierarchy.
15095         * build-aux/install-reloc: Update list of files to be compiled.
15096         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15097         lib/allocator.[hc].
15098
15099 2011-04-08  Eric Blake  <eblake@redhat.com>
15100
15101         strftime: silence gnulib-tool warning
15102         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15103
15104 2011-04-08  Bruno Haible  <bruno@clisp.org>
15105
15106         verify: Fix syntax error with GCC 4.6 in C++ mode.
15107         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15108         (HAVE_STATIC_ASSERT): New macro.
15109         (verify_true, verify): Use 'static_assert' if it is supported and
15110         '_Static_assert' is not supported.
15111
15112 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15113
15114         allocator: New module.
15115         * modules/allocator, lib/allocator.c: New files.
15116         * lib/allocator.h (stdlib_allocator): New decl.
15117         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15118         Remove.  Do not include <stdlib.h>.
15119         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15120         * modules/careadlinkat (Files): Remove lib/allocator.h.
15121         (Depends-on): Add allocator.
15122
15123         stdlib: let modules use system malloc, realloc
15124         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15125         if !_GL_USE_STDLIB_ALLOC.
15126         (malloc, realloc): Limit this change to a smaller scope.
15127
15128         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15129         (malloc, realloc): Don't #undef; no longer needed.
15130         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15131         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15132         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15133         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15134         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15135         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15136         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15137         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15138
15139         careadlinkat: rename members to avoid problem
15140         * lib/allocator.h (struct allocator): Rename members from
15141         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15142         and realloc are #define'd.  Reported by Eric Blake in
15143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15144         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15145
15146 2011-04-08  Eric Blake  <eblake@redhat.com>
15147
15148         nonblocking: reduce dependency
15149         * tests/test-nonblocking.c: Only test sockets when in use.
15150         * modules/nonblocking-tests (Depends-on): Drop socket.
15151         (Makefile.am): Link even if sockets are not present.
15152         * modules/pipe2-tests (Makefile.am): Likewise.
15153         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15154
15155         pipe2: fix O_NONBLOCK support on mingw
15156         * modules/pipe2 (Depends-on): Add nonblocking.
15157         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15158         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15159         * tests/test-nonblocking.c (main): Likewise.
15160         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15161
15162         fcntl-h: fix O_ACCMODE on cygwin
15163         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15164         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15165
15166         pipe-filter: drop O_NONBLOCK workarounds
15167         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15168         * modules/pipe-filter-ii (Depends-on): Likewise.
15169         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15170
15171         nonblocking: provide O_NONBLOCK for mingw
15172         * modules/nonblocking (Depends-on): Add open.
15173         (configure.ac): Set new witness macro.
15174         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15175         * modules/fcntl-h (Makefile.am): Substitute it.
15176         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15177         nonblocking module is in use.
15178         * lib/nonblocking.c: Adjust portability test.
15179         * lib/open.c (open): Don't let native open see gnulib flag.
15180         * tests/test-fcntl-h.c (main): Enhance test.
15181         * tests/test-open.h (test_open): Likewise.
15182         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15183
15184         careadlinkat: fix compilation error on mingw
15185         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15186         within struct allocator.
15187
15188 2011-04-06  Eric Blake  <eblake@redhat.com>
15189
15190         binary-io: relicense under LGPLv2+
15191         * modules/binary-io (License): Relax to LGPLv2+.
15192         Requested for libvirt, and required by pipe2.
15193
15194 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15195
15196         verify: use _Static_assert if available
15197         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15198         (verify_true, verify): Use it if available.  This generates better
15199         diagnostics with GCC 4.6.0 and later.
15200
15201 2011-04-05  Bruno Haible  <bruno@clisp.org>
15202
15203         Remove leftover generated .h files after config.status changed.
15204
15205         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15206         GL_GENERATE_ALLOCA_H.
15207         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15208         GL_GENERATE_ALLOCA_H evaluates to false.
15209
15210         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15211         GL_GENERATE_ARGZ_H.
15212         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15213         evaluates to false.
15214
15215         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15216         GL_GENERATE_BYTESWAP_H.
15217         * modules/byteswap (Makefile.am): Remove byteswap.h if
15218         GL_GENERATE_BYTESWAP_H evaluates to false.
15219
15220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15221         GL_GENERATE_ERRNO_H.
15222         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15223         evaluates to false.
15224
15225         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15226         GL_GENERATE_FLOAT_H.
15227         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15228         evaluates to false.
15229
15230         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15231         GL_GENERATE_FNMATCH_H.
15232         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15233         GL_GENERATE_FNMATCH_H evaluates to false.
15234
15235         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15236         GL_GENERATE_GLOB_H.
15237         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15238         evaluates to false.
15239
15240         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15241         automake conditional GL_GENERATE_ICONV_H.
15242         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15243         evaluates to false.
15244
15245         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15246         GL_GENERATE_NETINET_IN_H.
15247         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15248         GL_GENERATE_NETINET_IN_H evaluates to false.
15249
15250         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15251         conditional GL_GENERATE_PTHREAD_H.
15252         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15253         * modules/pthread (Makefile.am): Remove pthread.h if
15254         GL_GENERATE_PTHREAD_H evaluates to false.
15255
15256         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15257         GL_GENERATE_SCHED_H.
15258         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15259         evaluates to false.
15260
15261         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15262         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15263         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15264         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15265
15266         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15267         GL_GENERATE_STDARG_H.
15268         * modules/stdarg (Makefile.am): Remove stdarg.h if
15269         GL_GENERATE_STDARG_H evaluates to false.
15270
15271         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15272         GL_GENERATE_STDBOOL_H.
15273         * modules/stdbool (Makefile.am): Remove stdbool.h if
15274         GL_GENERATE_STDBOOL_H evaluates to false.
15275
15276         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15277         conditional GL_GENERATE_STDDEF_H.
15278         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15279         * modules/stddef (Makefile.am): Remove stddef.h if
15280         GL_GENERATE_STDDEF_H evaluates to false.
15281
15282         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15283         GL_GENERATE_STDINT_H.
15284         * modules/stdint (Makefile.am): Remove stdint.h if
15285         GL_GENERATE_STDINT_H evaluates to false.
15286
15287         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15288         GL_GENERATE_SYSEXITS_H.
15289         * modules/sysexits (Makefile.am): Remove sysexits.h if
15290         GL_GENERATE_SYSEXITS_H evaluates to false.
15291
15292         Reported by Karl Berry and Ralf Wildenhues.
15293
15294 2011-04-05  Bruno Haible  <bruno@clisp.org>
15295
15296         Ensure to rebuild generated .h files when config.status has changed.
15297         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15298         config.status.
15299         * modules/ctype (Makefile.am): Likewise.
15300         * modules/dirent (Makefile.am): Likewise.
15301         * modules/errno (Makefile.am): Likewise.
15302         * modules/fcntl-h (Makefile.am): Likewise.
15303         * modules/float (Makefile.am): Likewise.
15304         * modules/getopt-posix (Makefile.am): Likewise.
15305         * modules/glob (Makefile.am): Likewise.
15306         * modules/iconv-h (Makefile.am): Likewise.
15307         * modules/inttypes (Makefile.am): Likewise.
15308         * modules/langinfo (Makefile.am): Likewise.
15309         * modules/locale (Makefile.am): Likewise.
15310         * modules/math (Makefile.am): Likewise.
15311         * modules/netdb (Makefile.am): Likewise.
15312         * modules/netinet_in (Makefile.am): Likewise.
15313         * modules/poll-h (Makefile.am): Likewise.
15314         * modules/pthread (Makefile.am): Likewise.
15315         * modules/pty (Makefile.am): Likewise.
15316         * modules/sched (Makefile.am): Likewise.
15317         * modules/search (Makefile.am): Likewise.
15318         * modules/selinux-h (Makefile.am): Likewise.
15319         * modules/signal (Makefile.am): Likewise.
15320         * modules/spawn (Makefile.am): Likewise.
15321         * modules/stdarg (Makefile.am): Likewise.
15322         * modules/stdbool (Makefile.am): Likewise.
15323         * modules/stddef (Makefile.am): Likewise.
15324         * modules/stdint (Makefile.am): Likewise.
15325         * modules/stdio (Makefile.am): Likewise.
15326         * modules/stdlib (Makefile.am): Likewise.
15327         * modules/string (Makefile.am): Likewise.
15328         * modules/strings (Makefile.am): Likewise.
15329         * modules/sys_file (Makefile.am): Likewise.
15330         * modules/sys_ioctl (Makefile.am): Likewise.
15331         * modules/sys_select (Makefile.am): Likewise.
15332         * modules/sys_socket (Makefile.am): Likewise.
15333         * modules/sys_stat (Makefile.am): Likewise.
15334         * modules/sys_time (Makefile.am): Likewise.
15335         * modules/sys_times (Makefile.am): Likewise.
15336         * modules/sys_utsname (Makefile.am): Likewise.
15337         * modules/sys_wait (Makefile.am): Likewise.
15338         * modules/sysexits (Makefile.am): Likewise.
15339         * modules/termios (Makefile.am): Likewise.
15340         * modules/time (Makefile.am): Likewise.
15341         * modules/unistd (Makefile.am): Likewise.
15342         * modules/wchar (Makefile.am): Likewise.
15343         * modules/wctype-h (Makefile.am): Likewise.
15344         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15345
15346 2011-04-05  Bruno Haible  <bruno@clisp.org>
15347
15348         pipe2: Relicense under LGPLv2+.
15349         * modules/pipe2 (License): Change to LGPLv2+.
15350         Requested by Eric Blake, for libvirt.
15351
15352 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15353
15354         bootstrap: compute gnulib_extra_files after updating build_aux
15355         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15356         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15357
15358 2011-04-05  Eric Blake  <eblake@redhat.com>
15359
15360         bootstrap: preserve git whitelist item sorting
15361         * build-aux/bootstrap (sort_patterns): New function.
15362         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15363
15364 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15365
15366         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15367         sc_space_tab check.
15368
15369 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15370
15371         areadlink, areadlinkat: rewrite in terms of careadlinkat
15372         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15373         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15374         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15375         (malloc, realloc): Remove #undefs.
15376         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15377         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15378         readlink, ssize_t, stdint, unistd.
15379         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15380         areadlink, stdint.
15381
15382         careadlinkat: new module
15383         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15384         * modules/careadlinkat: New files, written by me with
15385         a review and feedback from Ben Pfaff in
15386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15387
15388 2011-04-01  Bruno Haible  <bruno@clisp.org>
15389
15390         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15391         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15392         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15393         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15394         Reported by Bruce Korb <bruce.korb@gmail.com>.
15395
15396 2011-04-01  Bruno Haible  <bruno@clisp.org>
15397
15398         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15399         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15400         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15401         * modules/wcpcpy (Depends-on): Add extensions.
15402         * modules/wcpncpy (Depends-on): Likewise.
15403         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15404         systems.
15405         * doc/posix-functions/wcpncpy.texi: Likewise.
15406         * doc/posix-functions/wcwidth.texi: Likewise.
15407
15408 2011-03-31  Eric Blake  <eblake@redhat.com>
15409
15410         nonblocking: fix mingw test failures
15411         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15412         non-blocking flag on regular file.
15413         (get_nonblocking_flag): Set errno on invalid fd.
15414         * tests/test-nonblocking.c (main): Avoid test failure on
15415         directories if fchdir is not active.
15416         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15417
15418 2011-03-31  Bruno Haible  <bruno@clisp.org>
15419
15420         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15421         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15422         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15423         Reported by Simon Josefsson <simon@josefsson.org>.
15424
15425 2011-03-31  Bruno Haible  <bruno@clisp.org>
15426         and Eric Blake  <eblake@redhat.com>
15427
15428         nonblocking: new module
15429         * modules/nonblocking: New module.
15430         * modules/nonblocking-tests: Likewise.
15431         * lib/nonblocking.h: New file.
15432         * lib/nonblocking.c: Likewise.
15433         * tests/test-nonblocking.c: New test.
15434         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15435
15436 2011-03-30  Bruno Haible  <bruno@clisp.org>
15437
15438         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15439         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15440         instead of 'printf' format for GCC >= 4.4.
15441         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15442         (fprintf, printf, vfprintf, vprintf): Declare with
15443         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15444         the system's vfprintf() function.
15445         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15446
15447 2011-03-30  Eric Blake  <eblake@redhat.com>
15448
15449         passfd: fix scoping bug
15450         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15451         before sendmsg/recvmsg.
15452
15453         passfd: standardize coding conventions
15454         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15455         can be learned at compile time.
15456         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15457         ifdefs.
15458         (sendfd, recvfd): Follow gnulib code conventions.
15459
15460         passfd: fix incorrect sendmsg arguments
15461         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15462         incorrect msg_controllen value.
15463         * modules/passfd-tests (Depends-on): Check for alarm.
15464         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15465         Reported by Bastien ROUCARIES.
15466
15467 2011-03-30  Bruno Haible  <bruno@clisp.org>
15468
15469         c-strcasestr: Relicense under LGPLv2+.
15470         * modules/c-strcasestr (License): Change to LGPLv2+.
15471         Requested by Eric Blake, for libvirt.
15472
15473 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15474
15475         * users.txt: Add libidn2.  Fix libtasn1 link.
15476
15477 2011-03-30  Jim Meyering  <meyering@redhat.com>
15478
15479         tests: readlink* ("",... fails with EINVAL on newer kernels
15480         readlink and readlinkat have typically failed with ENOENT for
15481         the invalid, empty file name,  "".  However, with the advent
15482         of linux-2.6.39, they fail with EINVAL.
15483         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15484         when operating on the empty file name.
15485         * tests/test-readlink.h (test_readlink): Likewise.
15486
15487 2011-03-29  Bruno Haible  <bruno@clisp.org>
15488
15489         Relicense some modules under LGPLv2+, for libidn2.
15490         * modules/array-mergesort (License): Change to LGPLv2+.
15491         * modules/c-strcaseeq (License): Likewise.
15492         * modules/striconveh (License): Likewise.
15493         * modules/striconveha (License): Likewise.
15494         * modules/uniconv/base (License): Likewise.
15495         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15496         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15497         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15498         * modules/unictype/base (License): Likewise.
15499         * modules/unictype/bidiclass-of (License): Likewise.
15500         * modules/unictype/category-M (License): Likewise.
15501         * modules/unictype/category-none (License): Likewise.
15502         * modules/unictype/category-of (License): Likewise.
15503         * modules/unictype/category-test (License): Likewise.
15504         * modules/unictype/category-test-withtable (License): Likewise.
15505         * modules/unictype/combining-class (License): Likewise.
15506         * modules/unictype/joiningtype-of (License): Likewise.
15507         * modules/unictype/scripts (License): Likewise.
15508         * modules/uninorm/base (License): Likewise.
15509         * modules/uninorm/canonical-decomposition (License): Likewise.
15510         * modules/uninorm/composition (License): Likewise.
15511         * modules/uninorm/decompose-internal (License): Likewise.
15512         * modules/uninorm/decomposition-table (License): Likewise.
15513         * modules/uninorm/nfc (License): Likewise.
15514         * modules/uninorm/nfd (License): Likewise.
15515         * modules/uninorm/u32-normalize (License): Likewise.
15516         * modules/unistr/base (License): Likewise.
15517         * modules/unistr/u32-cpy (License): Likewise.
15518         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15519         * modules/unistr/u32-to-u8 (License): Likewise.
15520         * modules/unistr/u32-uctomb (License): Likewise.
15521         * modules/unistr/u8-check (License): Likewise.
15522         * modules/unistr/u8-mblen (License): Likewise.
15523         * modules/unistr/u8-mbtouc (License): Likewise.
15524         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15525         * modules/unistr/u8-mbtoucr (License): Likewise.
15526         * modules/unistr/u8-prev (License): Likewise.
15527         * modules/unistr/u8-strlen (License): Likewise.
15528         * modules/unistr/u8-to-u32 (License): Likewise.
15529         * modules/unistr/u8-uctomb (License): Likewise.
15530         * modules/unitypes (License): Likewise.
15531         Requested by Simon Josefsson.
15532
15533 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15534
15535         lib-symbol-visibility: Add a notice.
15536         * modules/lib-symbol-visibility (Notice): New field.
15537
15538 2011-03-29  Bruno Haible  <bruno@clisp.org>
15539
15540         getaddrinfo: Doc fix.
15541         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15542         section "fixed in Gnulib".
15543
15544 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15545
15546         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15547         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15548
15549 2011-03-26  Bruno Haible  <bruno@clisp.org>
15550
15551         unictype/property-byname: Reduce the number of load-time relocations.
15552         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15553         (UC_PROPERTY_INDEX_*): New enumeration values.
15554         (uc_property_byname): Convert an index from the lookup table to an
15555         uc_property_t.
15556         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15557         values.
15558
15559 2011-03-26  Bruno Haible  <bruno@clisp.org>
15560
15561         unictype/property-byname: Allow omitted word separators and aliases.
15562         * lib/unictype/pr_byname.gperf: Add property names without word
15563         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15564         for 'space'.
15565
15566 2011-03-26  Bruno Haible  <bruno@clisp.org>
15567
15568         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15569         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15570         also hyphens to space.
15571         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15572         without spaces.
15573         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15574
15575 2011-03-26  Bruno Haible  <bruno@clisp.org>
15576
15577         unictype/joiningtype-byname: Recognize long names as well.
15578         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15579         a long name.
15580         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15581         unictype/joiningtype_byname.h.
15582         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15583         * lib/unictype/joiningtype_byname.gperf: New file.
15584         * modules/unictype/joiningtype-byname (Files): Add
15585         lib/unictype/joiningtype_byname.gperf.
15586         (Depends-on): Add gperf.
15587         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15588         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15589         long names.
15590
15591         Tests for module 'unictype/joiningtype-longname'.
15592         * modules/unictype/joiningtype-longname-tests: New file.
15593         * tests/unictype/test-joiningtype_longname.c: New file.
15594
15595         New module 'unictype/joiningtype-longname'.
15596         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15597         * lib/unictype/joiningtype_longname.c: New file.
15598         * modules/unictype/joiningtype-longname: New file.
15599         * modules/unictype/joiningtype-all (Depends-on): Add
15600         unictype/joiningtype-longname.
15601
15602 2011-03-26  Bruno Haible  <bruno@clisp.org>
15603
15604         unictype/bidiclass-byname: Recognize long names as well.
15605         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15606         name.
15607         * lib/unictype/bidi_byname.c: Include <string.h>,
15608         unictype/bidi_byname.h.
15609         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15610         * lib/unictype/bidi_byname.gperf: New file.
15611         * modules/unictype/bidiclass-byname (Files): Add
15612         lib/unictype/bidi_byname.gperf.
15613         (Depends-on): Add gperf.
15614         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15615         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15616         long names.
15617
15618         Tests for module 'unictype/bidiclass-longname'.
15619         * modules/unictype/bidiclass-longname-tests: New file.
15620         * tests/unictype/test-bidi_longname.c: New file.
15621
15622         New module 'unictype/bidiclass-longname'.
15623         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15624         * lib/unictype/bidi_longname.c: New file.
15625         * modules/unictype/bidiclass-longname: New file.
15626         * modules/unictype/bidiclass-all (Depends-on): Add
15627         unictype/bidiclass-longname.
15628
15629 2011-03-26  Bruno Haible  <bruno@clisp.org>
15630
15631         unictype/bidi*: Rename modules.
15632         * modules/unictype/bidiclass-all: Renamed from
15633         modules/unictype/bidicategory-all.
15634         * modules/unictype/bidiclass-name: Renamed from
15635         modules/unictype/bidiclass-name.
15636         (Description): Update.
15637         * modules/unictype/bidiclass-name-tests: Renamed from
15638         modules/unictype/bidicategory-name-tests.
15639         * modules/unictype/bidiclass-byname: Renamed from
15640         modules/unictype/bidicategory-byname.
15641         (Description): Update.
15642         * modules/unictype/bidiclass-byname-tests: Renamed from
15643         modules/unictype/bidicategory-byname-tests.
15644         * modules/unictype/bidiclass-of: Renamed from
15645         modules/unictype/bidicategory-of.
15646         (Description): Update.
15647         * modules/unictype/bidiclass-of-tests: Renamed from
15648         modules/unictype/bidicategory-of-tests.
15649         * modules/unictype/bidiclass-test: Renamed from
15650         modules/unictype/bidicategory-test.
15651         (Description): Update.
15652         * modules/unictype/bidiclass-test-tests: Renamed from
15653         modules/unictype/bidicategory-test-tests.
15654         * modules/unictype/bidicategory-all: New file, a simple redirection.
15655         * modules/unictype/bidicategory-name: Likewise.
15656         * modules/unictype/bidicategory-byname: Likewise.
15657         * modules/unictype/bidicategory-of: Likewise.
15658         * modules/unictype/bidicategory-test: Likewise.
15659         * modules/unictype/property-bidi-* (Dependencies): Update.
15660         * lib/unictype/bidi_*.c: Update comment.
15661
15662 2011-03-26  Bruno Haible  <bruno@clisp.org>
15663
15664         unictype/bidi*: Rename functions, part 2.
15665         * modules/unictype/bidicategory-name (configure.ac): Update required
15666         libunistring version.
15667         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15668
15669 2011-03-25  Bruno Haible  <bruno@clisp.org>
15670
15671         New module 'unictype/combining-class-all'.
15672         * modules/unictype/combining-class-all: New file.
15673
15674         Tests for module 'unictype/combining-class-byname'.
15675         * modules/unictype/combining-class-byname-tests: New file.
15676         * tests/unictype/test-combiningclass_byname.c: New file.
15677
15678         New module 'unictype/combining-class-byname'.
15679         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15680         * lib/unictype/combiningclass_byname.c: New file.
15681         * lib/unictype/combiningclass_byname.gperf: New file.
15682         * modules/unictype/combining-class-byname: New file.
15683
15684         Tests for module 'unictype/combining-class-longname'.
15685         * modules/unictype/combining-class-longname-tests: New file.
15686         * tests/unictype/test-combiningclass_longname.c: New file.
15687
15688         New module 'unictype/combining-class-longname'.
15689         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15690         * lib/unictype/combiningclass_longname.c: New file.
15691         * modules/unictype/combining-class-longname: New file.
15692
15693         Tests for module 'unictype/combining-class-name'.
15694         * modules/unictype/combining-class-name-tests: New file.
15695         * tests/unictype/test-combiningclass_name.c: New file.
15696
15697         New module 'unictype/combining-class-name'.
15698         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15699         * lib/unictype/combiningclass_name.c: New file.
15700         * modules/unictype/combining-class-name: New file.
15701
15702 2011-03-25  Bruno Haible  <bruno@clisp.org>
15703
15704         unictype/combining-class: Rename source files.
15705         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15706         of unictype/combining.h.
15707         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15708         Update.
15709         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15710         * modules/unictype/combining-class (Description): Fix.
15711         (Files, Makefile.am): Update.
15712         * tests/unictype/test-combiningclass.c: Renamed from
15713         tests/unictype/test-combining.c.
15714         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15715
15716 2011-03-25  Bruno Haible  <bruno@clisp.org>
15717
15718         unictype: Update list of canonical combining classes.
15719         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15720
15721 2011-03-25  Bruno Haible  <bruno@clisp.org>
15722
15723         unictype/category-byname: Recognize long names as well.
15724         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15725         a long name.
15726         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15727         unictype/categ_byname.h.
15728         (UC_CATEGORY_INDEX_*): New enumeration values.
15729         (uc_general_category_byname): Use uc_general_category_lookup and
15730         convert from index to value.
15731         * lib/unictype/categ_byname.gperf: New file.
15732         * modules/unictype/category-byname (Files): Add
15733         lib/unictype/categ_byname.gperf.
15734         (Depends-on): Add gperf.
15735         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15736         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15737         long names.
15738
15739         Tests for module 'unictype/category-longname'.
15740         * modules/unictype/category-longname-tests: New file.
15741         * tests/unictype/test-categ_longname.c: New file.
15742
15743         New module 'unictype/category-longname'.
15744         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15745         * lib/unictype/categ_longname.c: New file.
15746         * modules/unictype/category-longname: New file.
15747         * modules/unictype/category-all (Depends-on): Add it.
15748
15749 2011-03-25  Bruno Haible  <bruno@clisp.org>
15750
15751         Tests for module 'unictype/category-LC'.
15752         * modules/unictype/category-LC-tests: New file.
15753         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15754
15755         New module 'unictype/category-LC'.
15756         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15757         (UC_CATEGORY_LC): New declaration.
15758         (UC_CASED_LETTER): New macro.
15759         * lib/gen-uni-tables.c (is_category_LC): New function.
15760         (output_categories): Also handle category LC.
15761         (UC_CATEGORY_MASK_LC): New enumeration value.
15762         (general_category_byname): Also handle category LC.
15763         * lib/unictype/categ_LC.c: New file.
15764         * lib/unictype/categ_LC.h: New file, automatically generated.
15765         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15766         category LC.
15767         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15768         * modules/unictype/category-LC: New file.
15769         * modules/unictype/category-byname (Depends-on): Add
15770         unictype/category-LC.
15771         * modules/unictype/category-all (Depends-on): Likewise.
15772
15773 2011-03-25  Eric Blake  <eblake@redhat.com>
15774
15775         xmalloc: revert yesterday's regression
15776         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15777         realloc's underlying behavior (allowing allocation of zero-size
15778         objects, especially if malloc-gnu is also in use).
15779
15780 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15781
15782         maint.mk: add missing version to VC-tag
15783         * top/maint.mk: git tag was missing actual tag name; add it.
15784
15785         valgrind: do leak checking, and exit with code 1 on error (not 0)
15786         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15787         to VALGRIND.
15788
15789 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15790
15791         posix-modules: say what it does.
15792         * posix-modules: Add a line to the --help output saying what it does.
15793
15794 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15795
15796         xmalloc: Do not leak if underlying realloc is C99 compatible.
15797         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15798         This avoids a leak on C99-based systems.  See
15799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15800
15801 2011-03-24  Eric Blake  <eblake@redhat.com>
15802
15803         realloc: document portability problem
15804         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15805         passing 0 size to realloc.
15806
15807 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15808
15809         doc: update users.txt
15810         * users.txt: Add cvsps, tmpwatch
15811
15812 2011-03-23  Matt Rice  <ratmice@gmail.com>
15813
15814         doc: update users.txt
15815         * users.txt: Add gdb.
15816
15817 2011-03-23  Jim Meyering  <meyering@redhat.com>
15818
15819         doc: update users.txt
15820         Looking through matches up to the following URL (there are still
15821         several more pages), I found several projects that use gnulib:
15822         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15823         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15824         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15825
15826 2011-03-22  Bruno Haible  <bruno@clisp.org>
15827
15828         unictype/bidi*: Rename functions.
15829         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15830         uc_bidi_class, uc_is_bidi_class): New declarations.
15831         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15832         uc_bidi_category_byname.
15833         (uc_bidi_category_byname): New function.
15834         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15835         u_bidi_category_name.
15836         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15837         (uc_bidi_category_name): New function.
15838         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15839         uc_bidi_category.
15840         (uc_bidi_category): New function.
15841         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15842         uc_is_bidi_category. Invoke uc_bidi_class.
15843         (uc_is_bidi_category): New function.
15844         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15845         instead of uc_bidi_category_byname.
15846         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15847         instead of uc_bidi_category_name.
15848         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15849         uc_bidi_category.
15850         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15851         instead of uc_is_bidi_category.
15852
15853 2011-03-21  Bruno Haible  <bruno@clisp.org>
15854
15855         New module 'unictype/joininggroup-all'.
15856         * modules/unictype/joininggroup-all: New file.
15857
15858         Tests for module 'unictype/joininggroup-of'.
15859         * modules/unictype/joininggroup-of-tests: New file.
15860         * tests/unictype/test-joininggroup_of.c: New file.
15861         * tests/unictype/test-joininggroup_of.h: New file, automatically
15862         generated by gen-uni-tables.
15863
15864         New module 'unictype/joininggroup-of'.
15865         * modules/unictype/joininggroup-of: New file.
15866         * lib/unictype/joininggroup_of.c: New file.
15867         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15868         gen-uni-tables.
15869
15870         Tests for module 'unictype/joininggroup-byname'.
15871         * modules/unictype/joininggroup-byname-tests: New file.
15872         * tests/unictype/test-joininggroup_byname.c: New file.
15873
15874         New module 'unictype/joininggroup-byname'.
15875         * modules/unictype/joininggroup-byname: New file.
15876         * lib/unictype/joininggroup_byname.c: New file.
15877         * lib/unictype/joininggroup_byname.gperf: New file.
15878
15879         Tests for module 'unictype/joininggroup-name'.
15880         * modules/unictype/joininggroup-name-tests: New file.
15881         * tests/unictype/test-joininggroup_name.c: New file.
15882
15883         New module 'unictype/joininggroup-name'.
15884         * modules/unictype/joininggroup-name: New file.
15885         * lib/unictype/joininggroup_name.c: New file.
15886         * lib/unictype/joininggroup_name.h: New file.
15887
15888         New module 'unictype/joiningtype-all'.
15889         * modules/unictype/joiningtype-all: New file.
15890
15891         Tests for module 'unictype/joiningtype-of'.
15892         * modules/unictype/joiningtype-of-tests: New file.
15893         * tests/unictype/test-joiningtype_of.c: New file.
15894         * tests/unictype/test-joiningtype_of.h: New file, automatically
15895         generated by gen-uni-tables.
15896
15897         New module 'unictype/joiningtype-of'.
15898         * modules/unictype/joiningtype-of: New file.
15899         * lib/unictype/joiningtype_of.c: New file.
15900         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15901         gen-uni-tables.
15902
15903         Tests for module 'unictype/joiningtype-byname'.
15904         * modules/unictype/joiningtype-byname-tests: New file.
15905         * tests/unictype/test-joiningtype_byname.c: New file.
15906
15907         New module 'unictype/joiningtype-byname'.
15908         * modules/unictype/joiningtype-byname: New file.
15909         * lib/unictype/joiningtype_byname.c: New file.
15910
15911         Tests for module 'unictype/joiningtype-name'.
15912         * modules/unictype/joiningtype-name-tests: New file.
15913         * tests/unictype/test-joiningtype_name.c: New file.
15914
15915         New module 'unictype/joiningtype-name'.
15916         * modules/unictype/joiningtype-name: New file.
15917         * lib/unictype/joiningtype_name.c: New file.
15918
15919         unictype: Add support for Arabic shaping properties.
15920         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15921         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15922         declarations.
15923         (UC_JOINING_GROUP_*): New enumeration values.
15924         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15925         declarations.
15926         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15927         (unicode_joining_type): New variable.
15928         (UC_JOINING_GROUP_*): New enumeration values.
15929         (unicode_joining_group): New variable.
15930         (fill_arabicshaping, joining_type_as_c_identifier,
15931         output_joining_type_test, output_joining_type,
15932         joining_group_as_c_identifier, output_joining_group_test,
15933         output_joining_group): New functions.
15934         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15935         fill_arabicshaping and output_joining_type_test, output_joining_type,
15936         output_joining_group_test, output_joining_group.
15937         Reported by Simon Josefsson.
15938
15939 2011-03-21  Jim Meyering  <meyering@redhat.com>
15940
15941         strftime: fix a bug in yesterday's change
15942         * lib/strftime.c (add): Accommodate width's initial value of -1.
15943         Otherwise, nstrftime would copy uninitialized data into
15944         the result buffer.
15945
15946 2011-03-21  Jim Meyering  <meyering@redhat.com>
15947
15948         tests: add strftime-tests module
15949         * tests/test-strftime.c: New file.
15950         * modules/strftime-tests: New module.
15951
15952 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15953
15954         strftime: don't assume a byte count fits in 'int'
15955         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15956         found this problem by static analysis, using gcc -Wstrict-overflow
15957         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15958         on an integer overflow having undefined behavior, but it turns out
15959         that the argument is a size, which might not fit in 'int' anyway,
15960
15961 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15962
15963         stdio: don't require ignore_value around fwrite
15964
15965         This patch works around libc bug 11959
15966         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15967         Without this patch, applications must often write
15968         ignore_value (fwrite (...)) even though the ignore_value is
15969         not helpful here.  It's common to write many objects, using
15970         fwrite/printf/etc., and then use ferror to detect output error.
15971
15972         I considered making this patch optional, but decided against it,
15973         because libc is obviously being inconsistent here: there is no
15974         reason libc should insist that user code must inspect fwrite
15975         return's value without also insisting that it inspect printf's,
15976         putchar's, etc.  If user code wants to have a strict style where
15977         all these functions' values are checked (so that ferror need not
15978         be checked), we could add support for that style in a new gnulib
15979         module, but in the meantime it's better to be consistent and to
15980         support common usage.
15981
15982         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15983         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15984         that we are compiling in checking mode, and if not C++, and
15985         if not already wrapping fwrite for some other reason.
15986         (fwrite): #define to rpl_fwrite if the latter is defined.
15987
15988 2011-03-20  Bruno Haible  <bruno@clisp.org>
15989
15990         verror: Fix compilation error introduced on 2011-02-13.
15991         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15992         instead of __attribute__.
15993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15994
15995 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15996             Bruno Haible  <bruno@clisp.org>
15997
15998         socklen: do not depend on sys_socket
15999         While trying to modify Emacs to use gnulib's socklen module,
16000         I discovered a circular dependency: socklen depends on sys_socket
16001         and vice versa.  Emacs can use socklen, but it does not need
16002         sys_socket because it has its own substitute for sys/socket.h.
16003         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
16004         gl_TYPE_SOCKLEN_T.
16005         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
16006         gl_PREREQ_SYS_H_SOCKET.
16007         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
16008         gl_PREREQ_SYS_H_SOCKET.
16009         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16010         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16011         * modules/socklen (Depends-on): Do not depend on sys_socket.
16012         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16013
16014 2011-03-20  Jim Meyering  <meyering@redhat.com>
16015
16016         maint.mk: sort file names *after* new transformation
16017         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16018         prefix would have led to an unwarranted failure in GNU parted.
16019         Sort after that transformation.
16020
16021 2011-03-19  Jim Meyering  <meyering@redhat.com>
16022
16023         maint.mk: fix po-file syntax-check rule
16024         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16025         Patch by Bruno Haible.
16026
16027 2011-03-19  Bruno Haible  <bruno@clisp.org>
16028
16029         socklen: Update comment.
16030         * m4/socklen.m4: Update comment about platforms.
16031
16032 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16033             Bruno Haible  <bruno@clisp.org>
16034
16035         inet_ntop, inet_pton: Simplify.
16036         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16037         documented to provide socklen_t and we already depend on sys_socket.
16038         * modules/inet_pton (Depends-on): Likewise.
16039         * lib/arpa_inet.in.h: Adjust comment.
16040
16041 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16042             Bruno Haible  <bruno@clisp.org>
16043
16044         netdb: Simplify.
16045         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16046         documented to provide socklen_t and we already depend on sys_socket.
16047         * lib/netdb.in.h: Adjust comment.
16048
16049 2011-03-19  Bruno Haible  <bruno@clisp.org>
16050
16051         sys_socket, netdb: Document problem with socklen_t.
16052         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16053         platforms.
16054         * doc/posix-headers/netdb.texi: Likewise.
16055
16056 2011-03-18  Eric Blake  <eblake@redhat.com>
16057
16058         maint.mk: let po check work in VPATH build
16059         * top/maint.mk (po_file): Allow cfg.mk override.
16060         (sc_po_check): Allow VPATH use.
16061         Reported by Jiri Denemark.
16062
16063 2011-03-16  Jim Meyering  <meyering@redhat.com>
16064
16065         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16066         Before, you would have had to create one .x-sc_ file per rule in order
16067         to exempt offending files.  Now, you may instead use a Make variable --
16068         usually defined in cfg.mk -- whose name identifies the affected rule.
16069         * top/maint.mk (_sc_excl): Define.
16070         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16071         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16072
16073 2011-03-13  Bruno Haible  <bruno@clisp.org>
16074
16075         ignore-value tests: Avoid warnings.
16076         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16077         empty for gcc < 3.4.
16078
16079 2011-03-13  Bruno Haible  <bruno@clisp.org>
16080
16081         passfd: Fix link error on Solaris.
16082         * modules/passfd (Description): Correct.
16083         (Depends-on): Add socketlib.
16084         (Link): New section.
16085         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16086
16087 2011-03-13  Bruno Haible  <bruno@clisp.org>
16088
16089         passfd: Fix link error on AIX 5.2.
16090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16091
16092 2011-03-13  Bruno Haible  <bruno@clisp.org>
16093
16094         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16095         * lib/sys_socket.in.h: Include <stddef.h>.
16096         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16097         CMSG_FIRSTHDR. Remove unused variable.
16098
16099 2011-03-13  Bruno Haible  <bruno@clisp.org>
16100
16101         passfd: Fix compilation error on OpenBSD.
16102         * lib/passfd.c: Include <sys/uio.h>.
16103
16104 2011-03-13  Bruno Haible  <bruno@clisp.org>
16105
16106         passfd test: Fix warnings.
16107         * tests/test-passfd.c: Include <sys/wait.h>.
16108         (main): Fix typo.
16109
16110 2011-03-13  Bruno Haible  <bruno@clisp.org>
16111
16112         passfd module, part 4, tweaks.
16113         * tests/test-passfd.c: Reorder includes.
16114         (main): Fix perror and printf calls.
16115
16116 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16117
16118         passfd module, part 4.
16119         * modules/passfd-tests: New file.
16120         * tests/test-passfd.c: New file.
16121
16122 2011-03-13  Jim Meyering  <meyering@redhat.com>
16123
16124         Makefile: rely on GNU make; derive syntax-check rule names
16125         Rather than requiring that each sc_ rule be listed as a dependent
16126         of "check", use features of GNU make to derive the list.
16127         * Makefile (syntax-check-rules): Define.
16128         (check): Depend on the new variable, not the hard-coded list.
16129
16130 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16131             Bruno Haible  <bruno@clisp.org>
16132
16133         passfd module, part 3.
16134         * lib/passfd.h (recvfd): Add a flags argument.
16135         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16136         (recvfd): Add a flags argument.
16137         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16138         exists.
16139         * modules/passfd (Depends-on): Add cloexec.
16140         Suggested by Eric Blake.
16141
16142 2011-03-13  Bruno Haible  <bruno@clisp.org>
16143
16144         passfd module, part 2, tweaks.
16145         * modules/passfd (Files): Reorder.
16146         (Depends-on): Remove errno.
16147         (Include): Remove <sys/socket.h>, <sys/un.h>.
16148         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16149         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16150         specification header. Include <sys/socket.h> always. Don't include
16151         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16152         (sendfd): Clarify that it sets errno when it fails.
16153         (recvfd): Fix specification.
16154
16155 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16156
16157         passfd module, part 2.
16158         * modules/passfd: New file.
16159         * lib/passfd.h: New file.
16160         * lib/passfd.c: New file.
16161
16162 2011-03-12  Bruno Haible  <bruno@clisp.org>
16163
16164         wcswidth, mbswidth: Avoid integer overflow.
16165         * lib/wcswidth.c: Include <limits.h>.
16166         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16167         * lib/mbswidth.c: Include <limits.h>.
16168         (mbsnwidth): Avoid 'int' overflow.
16169         Reported by Jim Meyering.
16170
16171 2011-03-12  Bruno Haible  <bruno@clisp.org>
16172
16173         futimens, utimensat: Avoid endless recursion on Solaris 10.
16174         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16175         Solaris.
16176         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16177         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16178
16179 2011-03-11  Jim Meyering  <meyering@redhat.com>
16180
16181         maint.mk: relax a regexp to accommodate other formatting styles
16182         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16183         between "ngettext" and the following "(".
16184
16185 2011-03-11  Pádraig Brady <P@draigBrady.com>
16186
16187         maint.mk: suppress a false positive warning
16188         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16189         diagnostics are marked with ngettext.
16190
16191 2011-03-10  Eric Blake  <eblake@redhat.com>
16192
16193         wchar: add explicit dependencies, for Tru64
16194         * modules/mbmemcasecoll (Depends-on): Add wchar.
16195         * modules/mbtowc (Depends-on): Likewise.
16196         * modules/vasnprintf (Depends-on): Likewise.
16197         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16198         * modules/wctomb (Depends-on): Likewise.
16199         Reported by Peter O'Gorman.
16200
16201 2011-03-08  Bruno Haible  <bruno@clisp.org>
16202
16203         passfd module, part 1, tweaks.
16204         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16205         Improve indentation. Improve AC_MSG_CHECKING messages.
16206         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16207         gl_SOCKET_FAMILIES.
16208
16209 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16210
16211         passfd module, part 1.
16212         * m4/afunix.m4: New file.
16213         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16214         sockets.
16215
16216 2011-03-08  Bruno Haible  <bruno@clisp.org>
16217
16218         regex-quote: New API.
16219         * lib/regex-quote.h: Include <stdbool.h>.
16220         (struct regex_quote_spec): New type.
16221         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16222         New declarations.
16223         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16224         'const struct regex_quote_spec *' argument.
16225         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16226         (pcre_special): New constant.
16227         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16228         New functions.
16229         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16230         'const struct regex_quote_spec *' argument.
16231         * modules/regex-quote (Depends-on): Add stdbool.
16232         * tests/test-regex-quote.c (check): Update for new API. Add test for
16233         anchored results.
16234         * NEWS: Mention the API change.
16235         Reported by Reuben Thomas and Eric Blake.
16236
16237 2011-03-06  Bruno Haible  <bruno@clisp.org>
16238
16239         regex-quote: Fix creation of POSIX extended regular expressions.
16240         * lib/regex-quote.c (ere_special): Add grouping and alternation
16241         operators.
16242
16243 2011-03-05  Bruno Haible  <bruno@clisp.org>
16244
16245         doc: Improve doc regarding autopoint vs. gnulib.
16246         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16247         disable autopoint while running autoreconf.
16248         Suggested by Ralf Wildenhues.
16249
16250 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16251
16252         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16253         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16254
16255 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16256
16257         parse-duration: remove xalloc.h dependency
16258         * lib/parse-duration.c (parse_period): handle NULL return from
16259         strdup instead of calling xstrdup().
16260         * modules/parse-duration: remove "xalloc" dependency
16261
16262 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16263
16264         bootstrap: honor m4_base when running aclocal
16265         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16266
16267 2011-03-02  Jim Meyering  <meyering@redhat.com>
16268
16269         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16270         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16271         on request from Matt Booth.
16272
16273 2011-03-01  Eric Blake  <eblake@redhat.com>
16274
16275         test-link: work on Hurd
16276         * tests/test-link.h (test_link): Hurd rejects linking directories
16277         with EISDIR instead of the POSIX-mandated EPERM.
16278
16279 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16280
16281         stdio: simplify by moving files to printf-posix, sigpipe
16282         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16283         since this symbol is needed only if printf is replaced.
16284         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16285         Require gl_ASM_SYMBOL_PREFIX.
16286         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16287         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16288         (Depends-on): Add 'raise'.
16289         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
16290         * modules/stdio (Files): Remove lib/stdio-write.c,
16291         m4/asm-underscore.m4.
16292         (Depends-on): Remove 'raise'.
16293
16294         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
16295         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16296         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16297         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16298
16299 2011-02-28  Bruno Haible  <bruno@clisp.org>
16300
16301         localcharset: Assume ANSI C behaviour of free().
16302         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16303         calling free().
16304         Suggested by Simon Josefsson <simon@josefsson.org>.
16305
16306 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16307             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16308             Bruno Haible  <bruno@clisp.org>  (tiny change)
16309
16310         On Cygwin, use /proc file system instead of win32 API.
16311         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16312         Win32 file names.
16313         (DllMain): Simplify by removing Cygwin specific code.
16314         (find_shared_library_fullname): Use Linux specific implementation also
16315         for Cygwin.
16316         (get_shared_library_fullname): Update accordingly.
16317         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16318         Win32 file names.
16319         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16320         Cygwin specific code.
16321
16322 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16323             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16324
16325         Fix OpenMP flag detection for various Fortran compilers.
16326         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16327         OpenMP-conditional compilation construct, to force compile
16328         failure with missing OpenMP flag.
16329         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16330
16331 2011-02-25  Eric Blake  <eblake@redhat.com>
16332
16333         strstr: expand test coverage
16334         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16335         compilation.
16336         * tests/test-memmem.c (main): Duplicate tests.
16337         * tests/test-strcasestr.c (main): Likewise.
16338         * tests/test-c-strcasestr.c (main): Likewise.
16339
16340 2011-02-25  Jim Meyering  <meyering@redhat.com>
16341
16342         maint.mk: detect missing-NL-at-EOF, too
16343         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16344         it also detects when a file lacks a newline at EOF.
16345         (require_exactly_one_NL_at_EOF_): Renamed from
16346         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16347         since people may well have .x-sc_... file names tied to the
16348         existing name.  Suggested by Eric Blake.
16349
16350 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16351
16352         dirname: move m4/dos.m4 functionality into lib/dosname.h
16353
16354         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16355         extracts symbols from it, puts them into config.h; but it's much
16356         easier to use the symbols directly.  filename.h already does this,
16357         but it disagrees with dos.m4 in some respects.  This patch
16358         introduces a different include file dosname.h that packages up
16359         dos.m4, and then later we can work on merging filename.h and
16360         dosname.h.  Applications that need only the easy-to-configure
16361         symbols should consider including dosname.h rather than dirname.h.
16362         * NEWS: Mention incompatible changes.
16363         * m4/dos.m4: Remove.
16364         * lib/dosname.h, modules/dosname: New files.
16365         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16366         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16367         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16368         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16369         Include dosname.h, not dirname.h.
16370         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16371         Include dosname.h, for definitions of symbols like ISSLASH
16372         that used to be in config.h.
16373         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16375         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16376         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16377         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16378         * modules/rmdir (Files): Likewise.
16379         * modules/stat (Files): Likewise.
16380         * modules/unlink (Files): Likewise.
16381         * modules/dirname-lgpl (Depends-on): Add dosname.
16382         * modules/lstat (Depends-on): Likewise.
16383         * modules/openat (Depends-on): Likewise.
16384         * modules/rmdir (Depends-on): Likewise.
16385         * modules/savewd (Depends-on): Likewise.
16386         * modules/stat (Depends-on): Likewise.
16387         * modules/unlink (Depends-on): Likewise.
16388         * modules/openat (Depends-on): Remove dirname-lgpl.
16389         * modules/savewd (Depends-on): Likewise.
16390         * tests/test-dirname.c: Do not use removed symbols like
16391         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16392         the remaining symbols, e.g., ISSLASH ('\\').
16393
16394 2011-02-25  Eric Blake  <eblake@redhat.com>
16395
16396         strstr: revert patches that introduced bug and pessimization
16397         * lib/str-two-way.h: Add another reference.
16398         (two_way_short_needle, two_way_long_needle): Revert changes from
16399         2011-02-24; they pessimize search speed.
16400         (critical_factorization): Partially revert changes from
16401         2010-06-22; they violate the requirement that the left half of the
16402         needle be smaller than the period of the needle.
16403
16404 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16405
16406         filenamecat: remove unnecessary dependency on dirname-lgpl
16407         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16408         is no direct dependency, just an indirect one via filenamecat-lgpl.
16409
16410         remove: remove unnecessary use of m4/dos.m4
16411         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16412         * modules/remove (FILES): Remove m4/dos.m4.
16413
16414         * lib/openat-proc.c: Don't include dirname.h; not needed.
16415
16416         backupfile: remove unnecessary use of m4/dos.m4
16417         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16418         of its symbols are used by the backupfile code.  backupfile.c does
16419         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16420         for the rare case of programs that want all their backup file
16421         names to live within 8+3 limits, and dos.m4 doesn't address that.
16422         * modules/backupfile (Files): Remove m4/dos.m4.
16423
16424 2011-02-24  Jim Meyering  <meyering@redhat.com>
16425
16426         strstr: fix a bug whereby strstr would mistakenly return NULL
16427         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16428         in period calculation.
16429         (two_way_long_needle): Likewise.
16430         The original problem was reported by Mike Stump in
16431         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16432         Ralf Wildenhues provided the short needle and haystack.
16433         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16434         Add a more involved test to trigger the bug in two_way_long_needle.
16435
16436 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16437
16438         gnulib-tool: remove use of bold display in help screen
16439         * gnulib-tool (func_usage): Do not use bold display anymore in the
16440         help screen.  That was just meant to be a temporary emphasis for a
16441         backward-incompatible change.
16442
16443 2011-02-23  Bruno Haible  <bruno@clisp.org>
16444
16445         Fix misindentation of preprocessor directives.
16446         * lib/argp-namefrob.h: Reindent preprocessor directives.
16447         * lib/getopt_int.h (struct _getopt_data): Likewise.
16448         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16449         * lib/vasnprintf.c (decode_long_double): Likewise.
16450         * tests/test-argmatch.c: Insert blank lines, for clarity.
16451         * tests/test-exclude.c: Likewise.
16452
16453 2011-02-22  Bruno Haible  <bruno@clisp.org>
16454
16455         ioctl: Fix for MacOS X in 64-bit mode.
16456         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16457         value.
16458         Suggested by Eric Blake.
16459         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16460
16461 2011-02-22  Jim Meyering  <meyering@redhat.com>
16462
16463         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16464         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16465         in lib/.
16466
16467 2011-02-22  Eric Blake  <eblake@redhat.com>
16468
16469         maint: avoid any CDPATH issue
16470         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16471
16472         maint: adjust cpp indentation for my modules, as well
16473         * Makefile (sc_cpp_indent_check): Add my name.
16474         * lib/fbufmode.c: Filter through cppi.
16475         * lib/fpurge.c: Likewise.
16476         * lib/freadable.c: Likewise.
16477         * lib/freading.c: Likewise.
16478         * lib/fwritable.c: Likewise.
16479         * lib/fwriting.c: Likewise.
16480         * lib/sigaction.c: Likewise.
16481
16482 2011-02-22  Jim Meyering  <meyering@redhat.com>
16483
16484         maint: adjust cpp indentation to reflect nesting depth
16485         I.e., in a block of code that begins with an unnested "#if",
16486         put one space between the "#" in column 1 and following token.
16487         For example,
16488         -#include <sys/vfs.h>
16489         +# include <sys/vfs.h>
16490         Do this only in .c files that are part of a module I maintain.
16491         * lib/linkat.c: Filter through cppi.
16492         * lib/nanosleep.c: Likewise.
16493         * lib/openat.c: Likewise.
16494         * lib/openat-die.c: Likewise.
16495         * lib/dup3.c: Likewise.
16496         * lib/fchownat.c: Likewise.
16497         * lib/flock.c: Likewise.
16498         * lib/fsync.c: Likewise.
16499         * lib/fts.c: Likewise.
16500         * lib/getpass.c: Likewise.
16501         * lib/gettimeofday.c: Likewise.
16502         * lib/userspec.c: Likewise.
16503         * Makefile (sc_cpp_indent_check): New rule, to check this.
16504
16505 2011-02-22  Bruno Haible  <bruno@clisp.org>
16506
16507         New module 'wctomb'.
16508         * lib/stdlib.in.h (wctomb): New declaration.
16509         * lib/wctomb.c: New file.
16510         * lib/wctomb-impl.h: New file.
16511         * m4/wctomb.m4: New file.
16512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16513         REPLACE_WCTOMB.
16514         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16515         REPLACE_WCTOMB.
16516         * modules/wctomb: New file.
16517         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16518         * doc/posix-functions/wctomb.texi: Mention the new module.
16519         * modules/wctob (Depends-on): Add wctomb.
16520
16521 2011-02-22  Bruno Haible  <bruno@clisp.org>
16522
16523         New module 'mbtowc'.
16524         * lib/stdlib.in.h (mbtowc): New declaration.
16525         * lib/mbtowc.c: New file.
16526         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16527         * m4/mbtowc.m4: New file.
16528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16529         REPLACE_MBTOWC.
16530         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16531         REPLACE_MBTOWC.
16532         * modules/mbtowc: New file.
16533         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16534         * doc/posix-functions/mbtowc.texi: Mention the new module.
16535         * modules/btowc (Depends-on): Add mbtowc.
16536
16537 2011-02-22  Bruno Haible  <bruno@clisp.org>
16538
16539         wcrtomb: Add more tests for native Windows platforms.
16540         * tests/test-wcrtomb-w32-1.sh: New file.
16541         * tests/test-wcrtomb-w32-2.sh: New file.
16542         * tests/test-wcrtomb-w32-3.sh: New file.
16543         * tests/test-wcrtomb-w32-4.sh: New file.
16544         * tests/test-wcrtomb-w32-5.sh: New file.
16545         * tests/test-wcrtomb-w32.c: New file.
16546         * modules/wcrtomb-tests (Files): Add them.
16547         (Makefile.am): Arrange to run these tests.
16548         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16549         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16550
16551 2011-02-20  Bruno Haible  <bruno@clisp.org>
16552
16553         wcrtomb: Enhance test.
16554         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16555
16556 2011-02-20  Bruno Haible  <bruno@clisp.org>
16557
16558         mbrtowc: Tiny optimization.
16559         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16560
16561 2011-02-20  Jim Meyering  <meyering@redhat.com>
16562
16563         test-exclude.c: remove unmatched #endif
16564         * tests/test-exclude.c: Remove stray #endif, left over from
16565         the change of a week ago.
16566
16567 2011-02-19  Jim Meyering  <meyering@redhat.com>
16568
16569         git-version-gen: skip "-dirty" check when appropriate
16570         * build-aux/git-version-gen: Don't run any git commands when the
16571         version string comes from .tarball-version.  Prior to this, we
16572         would run git update-index --refresh even from a just-unpacked
16573         tarball directory, and that could affect a .git/ directory in a
16574         parent of the build directory.  Reported by Mike Frysinger.
16575
16576 2011-02-19  Bruno Haible  <bruno@clisp.org>
16577
16578         unictype/property-byname: Reduce the size of the 'data' segment.
16579         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16580
16581 2011-02-19  Bruno Haible  <bruno@clisp.org>
16582
16583         unictype/scripts: Reduce the size of the 'data' segment.
16584         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16585         '%pic'.
16586         * lib/unictype/scripts_byname.gperf: Regenerated.
16587
16588 2011-02-19  Bruno Haible  <bruno@clisp.org>
16589
16590         stdint: Update documentation.
16591         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16592
16593 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16594
16595         stdint: omit redundant check for wchar.h
16596         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16597         always tests whether wchar.h exists, so remove the now-redundant test.
16598
16599 2011-02-18  Bruno Haible  <bruno@clisp.org>
16600
16601         stdint: Cut dependency to module 'wchar'.
16602         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16603         include the necessary prerequisites.
16604         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16605         * modules/stdint (Depends-on): Remove wchar.
16606         (Makefile.am): Substitute HAVE_WCHAR_H.
16607         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16608
16609 2011-02-18  Eric Blake  <eblake@redhat.com>
16610
16611         longlong: skip, rather than fail, on cross-compilation
16612         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16613         when cross-compiling; regression from 2011-02-16.
16614
16615 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16616
16617         * NEWS: Mention 2011-02-08 change to stdlib.
16618
16619 2011-02-17  Bruno Haible  <bruno@clisp.org>
16620
16621         getloadavg: Add comments about platforms.
16622         * m4/getloadavg.m4: Add comment.
16623         * lib/getloadavg.c: Likewise.
16624
16625 2011-02-17  Bruno Haible  <bruno@clisp.org>
16626
16627         getloadavg: Fix link error on Solaris 2.6.
16628         * modules/getloadavg (Link): New section.
16629         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16630         linking test-getloadavg.
16631         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16632         getloadavg.
16633
16634 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16635
16636         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16637         It was 'int', but this doesn't match the IRIX 6.5 manual.
16638         Suggested by Bruno Haible in
16639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16640
16641 2011-02-17  Bruno Haible  <bruno@clisp.org>
16642
16643         havelib: Fix comments.
16644         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16645         change.
16646
16647 2011-02-17  Bruno Haible  <bruno@clisp.org>
16648
16649         havelib: Update config.rpath.
16650         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16651
16652 2011-02-17  Bruno Haible  <bruno@clisp.org>
16653
16654         getloadavg test: Add some plausibility checks.
16655         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16656         is improbable.
16657
16658 2011-02-16  Eric Blake  <eblake@redhat.com>
16659
16660         maintainer-makefile: make syntax-check a no-op from tarballs
16661         * top/maint.mk (no-vc-detected): New rule.
16662         (local-checks-available): Use it to avoid hanging if someone tries
16663         'make syntax-check' from a tarball.  Also append to any non-syntax
16664         checks already defined in cfg.mk.
16665
16666 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16667
16668         longlong: tune, particularly for common case of c99
16669
16670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16671         or running anything if c99, or if unsigned long long int does not
16672         work.  In either case, we know the answer without further tests.
16673         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16674         it at most once, and use its results for both long long int and
16675         unsigned long long int.  This is more likely to be efficient in
16676         the common case where the program wants to check for both long
16677         long int and unsigned long long int.
16678         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16679         since the answer is already known.
16680
16681 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         getloadavg: set errno
16684         * lib/getloadavg.c: Set errno when returning -1.  If no other
16685         error number looks appropriate, set it to ENOSYS if the getloadavg
16686         looks like it can't possibly ever work, ENOTSUP otherwise.
16687         Suggested by Bruno Haible in
16688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16689
16690         getloadavg: trim unused parts and speed up 'configure'
16691         * NEWS: Document this.
16692         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16693         always compiled if getloadavg is absent.
16694         Move test code to ...
16695         * tests/test-getloadavg.c: New file, containing previous
16696         contents of test from lib/getloadavg.c.  It also contains
16697         suggestions by Bruno Haible in
16698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16699         * modules/getloadavg-tests: New file.
16700         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16701         Do tests in the same order as they're needed for getloadavg.c.
16702         Omit setgid-related tests that generate symbols KMEM_GROUP,
16703         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16704         Do only the tests that are needed to see whether the system has
16705         getloadavg, moving the other tests into ...
16706         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16707         NLIST_NAME_UNION; nobody should be using it.  Do not define
16708         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16709         relevant, as the user of this module shouldn't care how getloadavg
16710         is implemented.
16711
16712         getloadavg: omit unused var
16713         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16714
16715 2011-02-15  Jim Meyering  <meyering@redhat.com>
16716
16717         doc: update users.txt
16718         * users.txt: Update iwhd's URL.
16719
16720 2011-02-13  Bruno Haible  <bruno@clisp.org>
16721
16722         Consistent macro naming for macros that use GCC __attribute__.
16723         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16724         _ATTRIBUTE_NONNULL_.
16725         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16726         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16727         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16728         ATTRIBUTE_DEPRECATED.
16729         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16730         ATTRIBUTE_NORETURN.
16731         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16732         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16733         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16734         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16735         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16736         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16737         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16738         ATTRIBUTE_SENTINEL.
16739         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16740         ATTRIBUTE_RETURN_CHECK.
16741         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16742         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16743         ATTRIBUTE_NORETURN.
16744         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16745         Reported by Paul Eggert.
16746
16747 2011-02-13  Bruno Haible  <bruno@clisp.org>
16748
16749         Don't interfere with a program's definition of __attribute__.
16750         * lib/argp.h (__attribute__): Remove definition.
16751         (_GL_ATTRIBUTE_FORMAT): New macro.
16752         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16753         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16754         (_GL_ATTRIBUTE_FORMAT): New macro.
16755         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16756         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16757         GCC 3 or newer.
16758         * lib/error.h (__attribute__): Remove definition.
16759         (_GL_ATTRIBUTE_FORMAT): New macro.
16760         (error, error_at_line): Use it.
16761         * lib/hash.h (__attribute__): Remove definition.
16762         (ATTRIBUTE_WUR): Update definition. Define always.
16763         * lib/openat.h (__attribute__): Remove definition.
16764         (ATTRIBUTE_NORETURN): Update definition. Define always.
16765         * lib/sigpipe-die.h (__attribute__): Remove definition.
16766         (ATTRIBUTE_NORETURN): Update definition. Define always.
16767         * lib/vasnprintf.h (__attribute__): Remove definition.
16768         (_GL_ATTRIBUTE_FORMAT): New macro.
16769         (asnprintf, vasnprintf): Use it.
16770         * lib/xalloc.h (__attribute__): Remove definition.
16771         (ATTRIBUTE_NORETURN): Update definition. Define always.
16772         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16773         * lib/xmemdup0.h (__attribute__): Remove definition.
16774         (ATTRIBUTE_NORETURN): Update definition. Define always.
16775         * lib/xprintf.h (__attribute__): Remove definition.
16776         (_GL_ATTRIBUTE_FORMAT): New macro.
16777         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16778         * lib/xstrtol.h (__attribute__): Remove definition.
16779         (ATTRIBUTE_NORETURN): Update definition. Define always.
16780         * lib/xvasprintf.h (__attribute__): Remove definition.
16781         (_GL_ATTRIBUTE_FORMAT): New macro.
16782         (xasprintf, xvasprintf): Use it.
16783         * tests/test-argmatch.c (__attribute__): Remove definition.
16784         (ATTRIBUTE_NORETURN): Update definition. Define always.
16785         * tests/test-exclude.c (__attribute__): Remove definition.
16786         (ATTRIBUTE_NORETURN): Update definition. Define always.
16787         Reported by Paul Eggert.
16788
16789 2011-02-13  Bruno Haible  <bruno@clisp.org>
16790
16791         mbrtowc: Add more tests for native Windows platforms.
16792         * tests/test-mbrtowc-w32-1.sh: New file.
16793         * tests/test-mbrtowc-w32-2.sh: New file.
16794         * tests/test-mbrtowc-w32-3.sh: New file.
16795         * tests/test-mbrtowc-w32-4.sh: New file.
16796         * tests/test-mbrtowc-w32-5.sh: New file.
16797         * tests/test-mbrtowc-w32.c: New file.
16798         * modules/mbrtowc-tests (Files): Add them.
16799         (Makefile.am): Arrange to run these tests.
16800         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16801         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16802
16803 2011-02-13  Bruno Haible  <bruno@clisp.org>
16804
16805         mbrtowc: Work around native Windows bug.
16806         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16807         guess when no suitable locale for testing was found.
16808         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16809
16810 2011-02-13  Bruno Haible  <bruno@clisp.org>
16811
16812         mbsinit: Work around mingw bug.
16813         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16814         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16815         Windows.
16816         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16817
16818 2011-02-13  Bruno Haible  <bruno@clisp.org>
16819
16820         mbsinit: Don't crash for a NULL argument.
16821         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16822         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16823
16824 2011-02-13  Bruno Haible  <bruno@clisp.org>
16825
16826         Don't interfere with a program's definition of __attribute__.
16827         * lib/stdio.in.h (__attribute__): Remove definition.
16828         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16829         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16830         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16831         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16832         * lib/string.in.h (__attribute__): Remove definition.
16833         Reported by Paul Eggert.
16834
16835 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16836
16837         stdlib: don't get in the way of non-GCC __attribute__
16838         See thread starting at
16839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16840         Revert previous stdlib change, installing the following instead:
16841         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16842         to get in the way of a non-GCC compiler that supports __attribute__.
16843         (_GL_ATTRIBUTE_RETURN): New macro.
16844         (_Exit): Use it instead of __attribute__.
16845
16846 2011-02-12  Bruno Haible  <bruno@clisp.org>
16847
16848         quotearg test: Avoid test failure on mingw.
16849         * tests/test-quotearg.sh: Convert the locale identifier from native
16850         Windows syntax to Unix syntax.
16851
16852 2011-02-12  Bruno Haible  <bruno@clisp.org>
16853
16854         setlocale: Prefer gnulib's override over libintl's override.
16855         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16856         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16857         GNULIB_defined_setlocale is set.
16858
16859 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16860
16861         stdlib: support non-GCC __attribute__
16862
16863         Fix a serious and tricky problem encountered when attempting to
16864         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16865         5.5, but it crashed due to memory corruption on Solaris 10 with
16866         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16867         bits that are otherwise zero.  This tagging is optional inside
16868         Emacs but is preferred and is used when __attribute__ ((__aligned
16869         (8))) works, as it does with both recent-enough GCC and with Sun C
16870         5.11.  However, Sun C 5.11 is not GCC and does not #define
16871         __GNUC__ and __GNUC_MINOR__.
16872
16873         When I added the getloadavg module to Emacs, it brought in
16874         stdlib.in.h, which contained this fragment:
16875
16876            #ifndef __attribute__
16877            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16878            #  define __attribute__(Spec)   /* empty */
16879            # endif
16880            #endif
16881
16882         When files that include <stdlib.h> were compiled with Sun C 5.11,
16883         the above code disabled __attribute__ ((__aligned (8))), which
16884         caused variables to not be properly aligned, which eventually led
16885         to the pointer corruption mentioned above.  (This was a bit hard
16886         to diagnose, unfortunately.)
16887
16888         Several "#define __attribute__(X) /* empty */" code snippets need
16889         to be eradicated from Gnulib to work with non-GCC compilers that
16890         support __attribute__.  The Autoconf way to do this is to test for
16891         each kind of attribute that we want support for, and selectively
16892         enable that in source code.
16893
16894         Fix this problem just for stdlib.h, by adding a test for the
16895         __noreturn__ attribute, and change stdlib.in.h to use that test
16896         when needed.  This technique can be easily generalized to the
16897         other *.in.h files and attributes, and a similar technique can be
16898         used for *.h and *.c files.  This patch is enough to solve the
16899         problem for Emacs + getloadavg, and I thought I'd publish it for
16900         feedback before undertaking further, similar fixes in other
16901         modules.
16902
16903         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16904         because it's not needed for stdlib.h.  It merely substitutes the
16905         value directly into stdlib.h.  We may well need to #define it, or
16906         similar symbols, for other modules, but it's nice to also have an
16907         option to not #define it for applications like Emacs that do not
16908         need it.
16909
16910         * lib/stdlib.in.h (__attribute__): Do not #define.
16911         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16912         be defined only if the _Exit module is also used.
16913         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16915         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16916         platforms.
16917         * modules/_Exit (Files): Add m4/attribute.m4.
16918         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16919         * m4/attribute.m4: New file.
16920
16921 2011-02-12  Bruno Haible  <bruno@clisp.org>
16922
16923         wcsrtombs: Work around bug on native Windows.
16924         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16925         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16926         instead of len.
16927         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16928
16929 2011-02-12  Bruno Haible  <bruno@clisp.org>
16930
16931         mbsrtowcs: Work around bug on native Windows.
16932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16933         against mingw bug.
16934         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16935
16936 2011-02-12  Bruno Haible  <bruno@clisp.org>
16937
16938         Avoid setlocale bugs in tests.
16939         * modules/btowc (Dependencies): Add setlocale.
16940         * modules/c-strcase (Dependencies): Likewise.
16941         * modules/mbmemcasecmp (Dependencies): Likewise.
16942         * modules/mbmemcasecoll (Dependencies): Likewise.
16943         * modules/mbrtowc (Dependencies): Likewise.
16944         * modules/mbscasecmp (Dependencies): Likewise.
16945         * modules/mbscasestr (Dependencies): Likewise.
16946         * modules/mbschr (Dependencies): Likewise.
16947         * modules/mbscspn (Dependencies): Likewise.
16948         * modules/mbsinit (Dependencies): Likewise.
16949         * modules/mbsncasecmp (Dependencies): Likewise.
16950         * modules/mbsnrtowcs (Dependencies): Likewise.
16951         * modules/mbspbrk (Dependencies): Likewise.
16952         * modules/mbspcasecmp (Dependencies): Likewise.
16953         * modules/mbsrchr (Dependencies): Likewise.
16954         * modules/mbsrtowcs (Dependencies): Likewise.
16955         * modules/mbsspn (Dependencies): Likewise.
16956         * modules/mbsstr (Dependencies): Likewise.
16957         * modules/nl_langinfo (Dependencies): Likewise.
16958         * modules/quotearg (Dependencies): Likewise.
16959         * modules/unicase/locale-language (Dependencies): Likewise.
16960         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16961         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16962         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16963         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16964         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16965         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16966         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16967         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16968         * modules/vasnprintf-posix (Dependencies): Likewise.
16969         * modules/wcrtomb (Dependencies): Likewise.
16970         * modules/wcsnrtombs (Dependencies): Likewise.
16971         * modules/wcsrtombs (Dependencies): Likewise.
16972
16973 2011-02-12  Bruno Haible  <bruno@clisp.org>
16974
16975         setlocale: Workaround native Windows bug.
16976         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16977         succeeds but sets LC_CTYPE to "C", report a failure.
16978         * tests/test-setlocale2.sh: New file.
16979         * tests/test-setlocale2.c: New file.
16980         * modules/setlocale-tests (Files): Add the new files.
16981         (Makefile.am): Enable test-setlocale2.sh test.
16982         * doc/posix-functions/setlocale.texi: Mention workaround.
16983
16984 2011-02-11  Bruno Haible  <bruno@clisp.org>
16985
16986         Tests for module 'setlocale'.
16987         * modules/setlocale-tests: New file.
16988         * tests/test-setlocale1.sh: New file.
16989         * tests/test-setlocale1.c: New file.
16990
16991         New module 'setlocale'.
16992         * lib/locale.in.h (setlocale): New declaration.
16993         * lib/setlocale.c: New file, based on
16994         gettext/gettext-runtime/intl/setlocale.c.
16995         * m4/setlocale.m4: New file.
16996         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16997         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16998         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16999         REPLACE_SETLOCALE.
17000         * modules/setlocale: New file.
17001         * tests/test-locale-c++.cc: Test the declaration of setlocale.
17002         * doc/posix-functions/setlocale.texi: Mention the new module.
17003
17004 2011-02-11  Bruno Haible  <bruno@clisp.org>
17005
17006         Prepare for locale dependent tests on mingw.
17007         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
17008         because it has the wrong locale encoding.
17009         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
17010         French_France.1252 instead of "fr".
17011         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17012         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17013         because it has the wrong locale encoding.
17014         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17015         native Windows, try Turkish_Turkey.65001.
17016         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17017         Chinese_China.54936.
17018
17019         Prepare for locale dependent tests on mingw.
17020         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17021         differently.
17022         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17023         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17024         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17025         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17026
17027 2011-02-11  Eric Blake  <eblake@redhat.com>
17028
17029         strptime: avoid compiler warnings
17030         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17031         compiler warnings about dead code.
17032         Reported by Daniel P. Berrange.
17033
17034 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17035
17036         doc: update users.txt
17037         * users.txt: Add rcs.
17038
17039 2011-02-10  John W. Eaton  <jwe@gnu.org>
17040
17041         doc: update users.txt
17042         * users.txt: Add octave.
17043
17044 2011-02-10  Jim Meyering  <meyering@redhat.com>
17045
17046         doc: update users.txt
17047         * users.txt: Add iwhd.
17048
17049 2011-02-09  Bruno Haible  <bruno@clisp.org>
17050
17051         gnulib-tool: Make copyright notice adjustment more robust.
17052         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17053         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17054         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17055         License".
17056         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17057
17058 2011-02-06  Bruno Haible  <bruno@clisp.org>
17059
17060         New module 'towctrans'.
17061         * modules/towctrans: New file.
17062         * lib/wctype.in.h (towctrans): New declaration.
17063         * lib/towctrans.c: New file.
17064         * lib/towctrans-impl.h: New file.
17065         * m4/towctrans.m4: New file.
17066         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17067         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17068         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17069         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17070         * doc/posix-functions/towctrans.texi: Mention the new module.
17071
17072 2011-02-06  Bruno Haible  <bruno@clisp.org>
17073
17074         New module 'wctrans'.
17075         * modules/wctrans: New file.
17076         * lib/wctype.in.h (wctrans): New declaration.
17077         * lib/wctrans.c: New file.
17078         * lib/wctrans-impl.h: New file.
17079         * m4/wctrans.m4: New file.
17080         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17081         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17082         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17083         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17084         * doc/posix-functions/wctrans.texi: Mention the new module.
17085
17086 2011-02-06  Bruno Haible  <bruno@clisp.org>
17087
17088         New module 'iswctype'.
17089         * modules/iswctype: New file.
17090         * lib/wctype.in.h (iswctype): New declaration.
17091         * lib/iswctype.c: New file.
17092         * lib/iswctype-impl.h: New file.
17093         * m4/iswctype.m4: New file.
17094         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17095         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17096         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17097         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17098         * doc/posix-functions/iswctype.texi: Mention the new module and the
17099         HP-UX 11.00 problem.
17100
17101 2011-02-06  Bruno Haible  <bruno@clisp.org>
17102
17103         New module 'wctype'.
17104         * modules/wctype: Change to represent the wctype() substitute.
17105         * lib/wctype.in.h (wctype): New declaration.
17106         * lib/wctype.c: New file.
17107         * lib/wctype-impl.h: New file.
17108         * m4/wctype.m4: New file.
17109         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17110         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17111         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17112         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17113         * doc/posix-functions/wctype.texi: Mention the new module and the
17114         HP-UX 11.00 problem.
17115
17116 2011-02-06  Bruno Haible  <bruno@clisp.org>
17117
17118         wctype-h: Ensure wctype_t and wctrans_t are defined.
17119         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17120         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17121         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17122         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17123         HAVE_WCTRANS_T.
17124         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17125
17126 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17127
17128         flock: fix license typo
17129
17130         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17131         omitted.
17132
17133 2011-02-08  Bruno Haible  <bruno@clisp.org>
17134
17135         Split large sed scripts, for HP-UX sed.
17136         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17137         to avoid HP-UX limit of 99 commands, in the near future.
17138         * modules/stdlib (Makefile.am): Likewise.
17139         * modules/unistd (Makefile.am): Likewise.
17140         * modules/wchar (Makefile.am): Likewise.
17141         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17142         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17144
17145 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17146             Bruno Haible  <bruno@clisp.org>
17147
17148         stdlib: improve random_r modularization
17149         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17150         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17151         you also need the random_r module to get this material right.
17152         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17153         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17154         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17155
17156 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17157
17158         stdlib: don't depend on stdint
17159         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17160         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17161         be independent of whether stdint.h is needed.
17162         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17163         here, instead of ...
17164         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17165         struct random_data should be using the random_r module, not just
17166         the stdlib module (which wouldn't make sense: what package needs
17167         just struct random_data without also needing random_r?).
17168         * modules/stdlib (Depends-on): Remove stdint.
17169
17170         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17171         See the thread rooted at
17172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17173         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17174         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17175         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17176         __VMS)); previously it was always included (via fcntl--.h).
17177         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17178         hand; this is good enough for load averages.  Also, do not use
17179         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17180         flags directly if available and don't bother otherwise.  (Packages
17181         that need the extra reliability should use the modules that define
17182         these flags on older platforms that lack them.)
17183         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17184         fcntl-safer.
17185
17186 2011-02-08  Jim Meyering  <meyering@redhat.com>
17187
17188         di-set.h, ino-map.h: add multiple-inclusion guard
17189         Technically, the guard is required only for ino-map.h, due to its
17190         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17191         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17192         * lib/ino-map.h: Likewise.
17193
17194 2011-02-06  Bruno Haible  <bruno@clisp.org>
17195
17196         iswblank: Ensure declaration on glibc systems.
17197         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17198         * modules/iswblank (Dependencies): Add 'extensions'.
17199         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17200
17201 2011-02-06  Bruno Haible  <bruno@clisp.org>
17202
17203         New module 'iswblank'.
17204         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17205         * modules/iswblank: New file.
17206         * modules/wctype-h (Files): Remove lib/iswblank.c.
17207         (Makefile.am): Substitute GNULIB_ISWBLANK.
17208         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17209         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17210         (gl_WCTYPE_H_DEFAULTS): New macro.
17211         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17212         * modules/iswblank-tests: New file.
17213         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17214         * tests/test-wctype-h.c (main): Remove iswblank tests.
17215         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17216         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17217         of 'wctype-h'.
17218         * NEWS: Mention the change.
17219         * modules/mbchar (Depends-on): Add iswblank.
17220
17221 2011-02-08  Bruno Haible  <bruno@clisp.org>
17222
17223         di-set tests: Refactor.
17224         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17225         unnecessary includes.
17226         (ASSERT): Remove macro.
17227         (main): Make C90 compliant by avoiding variable declaration after
17228         statement.
17229         * modules/di-set-tests (Files): Add tests/macros.h.
17230
17231 2011-02-08  Bruno Haible  <bruno@clisp.org>
17232
17233         ino-map tests: Refactor.
17234         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17235         unnecessary includes.
17236         (ASSERT): Remove macro.
17237         (main): Make C90 compliant by avoiding variable declaration after
17238         statement.
17239         * modules/ino-map-tests (Files): Add tests/macros.h.
17240
17241 2011-02-08  Jim Meyering  <meyering@redhat.com>
17242
17243         di-set: add "const" to a cast
17244         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17245         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17246
17247 2011-02-06  Bruno Haible  <bruno@clisp.org>
17248
17249         Rename module 'wctype' to 'wctype-h'.
17250         * modules/wctype-h: Renamed from modules/wctype.
17251         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17252         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17253         (Files, Depends-on, Makefile.am): Update.
17254         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17255         (Files, Makefile.am): Update.
17256         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17257         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17258         * doc/posix-headers/wctype.texi: Update.
17259         * doc/posix-functions/iswalnum.texi: Update.
17260         * doc/posix-functions/iswalpha.texi: Update.
17261         * doc/posix-functions/iswblank.texi: Update.
17262         * doc/posix-functions/iswcntrl.texi: Update.
17263         * doc/posix-functions/iswdigit.texi: Update.
17264         * doc/posix-functions/iswgraph.texi: Update.
17265         * doc/posix-functions/iswlower.texi: Update.
17266         * doc/posix-functions/iswprint.texi: Update.
17267         * doc/posix-functions/iswpunct.texi: Update.
17268         * doc/posix-functions/iswspace.texi: Update.
17269         * doc/posix-functions/iswupper.texi: Update.
17270         * doc/posix-functions/iswxdigit.texi: Update.
17271         * doc/posix-functions/towlower.texi: Update.
17272         * doc/posix-functions/towupper.texi: Update.
17273         * NEWS: Mention the change.
17274         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17275         * modules/mbchar (Dependencies): Likewise.
17276         * modules/mbswidth (Dependencies): Likewise.
17277         * modules/quotearg (Dependencies): Likewise.
17278         * modules/regex (Dependencies): Likewise.
17279         * modules/wcscasecmp (Dependencies): Likewise.
17280         * modules/wcsncasecmp (Dependencies): Likewise.
17281         * modules/wcwidth (Dependencies): Likewise.
17282
17283 2011-02-06  Bruno Haible  <bruno@clisp.org>
17284
17285         New module 'wcswidth'.
17286         * modules/wcswidth: New file.
17287         * lib/wchar.in.h (wcswidth): New declaration.
17288         * lib/wcswidth.c: New file.
17289         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
17290         * m4/wcswidth.m4: New file.
17291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
17292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
17293         REPLACE_WCSWIDTH.
17294         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
17295         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17296         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17297         * doc/posix-functions/wcswidth.texi: Mention the new module.
17298
17299 2011-02-06  Bruno Haible  <bruno@clisp.org>
17300
17301         New module 'wcstok'.
17302         * modules/wcstok: New file.
17303         * lib/wchar.in.h (wcstok): New declaration.
17304         * lib/wcstok.c: New file.
17305         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17306         * m4/wcstok.m4: New file.
17307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17310         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17311         * doc/posix-functions/wcstok.texi: Mention the new module.
17312
17313 2011-02-06  Bruno Haible  <bruno@clisp.org>
17314
17315         New module 'wcsstr'.
17316         * modules/wcsstr: New file.
17317         * lib/wchar.in.h (wcsstr): New declaration.
17318         * lib/wcsstr.c: New file.
17319         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17320         * m4/wcsstr.m4: New file.
17321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17324         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17325         * doc/posix-functions/wcsstr.texi: Mention the new module.
17326
17327 2011-02-06  Bruno Haible  <bruno@clisp.org>
17328
17329         New module 'wcspbrk'.
17330         * modules/wcspbrk: New file.
17331         * lib/wchar.in.h (wcspbrk): New declaration.
17332         * lib/wcspbrk.c: New file.
17333         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17334         * m4/wcspbrk.m4: New file.
17335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17338         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17339         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17340
17341 2011-02-06  Bruno Haible  <bruno@clisp.org>
17342
17343         New module 'wcsspn'.
17344         * modules/wcsspn: New file.
17345         * lib/wchar.in.h (wcsspn): New declaration.
17346         * lib/wcsspn.c: New file.
17347         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17348         * m4/wcsspn.m4: New file.
17349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17352         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17353         * doc/posix-functions/wcsspn.texi: Mention the new module.
17354
17355 2011-02-06  Bruno Haible  <bruno@clisp.org>
17356
17357         New module 'wcscspn'.
17358         * modules/wcscspn: New file.
17359         * lib/wchar.in.h (wcscspn): New declaration.
17360         * lib/wcscspn.c: New file.
17361         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17362         * m4/wcscspn.m4: New file.
17363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17366         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17367         * doc/posix-functions/wcscspn.texi: Mention the new module.
17368
17369 2011-02-06  Bruno Haible  <bruno@clisp.org>
17370
17371         New module 'wcsrchr'.
17372         * modules/wcsrchr: New file.
17373         * lib/wchar.in.h (wcsrchr): New declaration.
17374         * lib/wcsrchr.c: New file.
17375         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17376         * m4/wcsrchr.m4: New file.
17377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17380         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17381         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17382
17383 2011-02-06  Bruno Haible  <bruno@clisp.org>
17384
17385         New module 'wcschr'.
17386         * modules/wcschr: New file.
17387         * lib/wchar.in.h (wcschr): New declaration.
17388         * lib/wcschr.c: New file.
17389         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17390         * m4/wcschr.m4: New file.
17391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17394         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17395         * doc/posix-functions/wcschr.texi: Mention the new module.
17396
17397 2011-02-06  Bruno Haible  <bruno@clisp.org>
17398
17399         New module 'wcsdup'.
17400         * modules/wcsdup: New file.
17401         * lib/wchar.in.h (wcsdup): New declaration.
17402         * lib/wcsdup.c: New file.
17403         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17404         * m4/wcsdup.m4: New file.
17405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17408         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17409         * doc/posix-functions/wcsdup.texi: Mention the new module.
17410
17411 2011-02-06  Bruno Haible  <bruno@clisp.org>
17412
17413         New module 'wcsxfrm'.
17414         * modules/wcsxfrm: New file.
17415         * lib/wchar.in.h (wcsxfrm): New declaration.
17416         * lib/wcsxfrm.c: New file.
17417         * lib/wcsxfrm-impl.h: New file.
17418         * m4/wcsxfrm.m4: New file.
17419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17422         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17423         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17424
17425 2011-02-06  Bruno Haible  <bruno@clisp.org>
17426
17427         New module 'wcscoll'.
17428         * modules/wcscoll: New file.
17429         * lib/wchar.in.h (wcscoll): New declaration.
17430         * lib/wcscoll.c: New file.
17431         * lib/wcscoll-impl.h: New file.
17432         * m4/wcscoll.m4: New file.
17433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17436         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17437         * doc/posix-functions/wcscoll.texi: Mention the new module.
17438
17439 2011-02-06  Bruno Haible  <bruno@clisp.org>
17440
17441         New module 'wcsncasecmp'.
17442         * modules/wcsncasecmp: New file.
17443         * lib/wchar.in.h (wcsncasecmp): New declaration.
17444         * lib/wcsncasecmp.c: New file.
17445         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17446         * m4/wcsncasecmp.m4: New file.
17447         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17448         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17450         HAVE_WCSNCASECMP.
17451         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17452         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17453
17454 2011-02-06  Bruno Haible  <bruno@clisp.org>
17455
17456         New module 'wcscasecmp'.
17457         * modules/wcscasecmp: New file.
17458         * lib/wchar.in.h (wcscasecmp): New declaration.
17459         * lib/wcscasecmp.c: New file.
17460         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17461         * m4/wcscasecmp.m4: New file.
17462         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17463         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17464         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17465         HAVE_WCSCASECMP.
17466         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17467         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17468
17469 2011-02-05  Bruno Haible  <bruno@clisp.org>
17470
17471         New module 'wcsncmp'.
17472         * modules/wcsncmp: New file.
17473         * lib/wchar.in.h (wcsncmp): New declaration.
17474         * lib/wcsncmp.c: New file.
17475         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17476         * m4/wcsncmp.m4: New file.
17477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17480         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17481         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17482
17483 2011-02-05  Bruno Haible  <bruno@clisp.org>
17484
17485         New module 'wcscmp'.
17486         * modules/wcscmp: New file.
17487         * lib/wchar.in.h (wcscmp): New declaration.
17488         * lib/wcscmp.c: New file.
17489         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17490         * m4/wcscmp.m4: New file.
17491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17494         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17495         * doc/posix-functions/wcscmp.texi: Mention the new module.
17496
17497 2011-02-05  Bruno Haible  <bruno@clisp.org>
17498
17499         New module 'wcsncat'.
17500         * modules/wcsncat: New file.
17501         * lib/wchar.in.h (wcsncat): New declaration.
17502         * lib/wcsncat.c: New file.
17503         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17504         * m4/wcsncat.m4: New file.
17505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17508         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17509         * doc/posix-functions/wcsncat.texi: Mention the new module.
17510
17511 2011-02-05  Bruno Haible  <bruno@clisp.org>
17512
17513         New module 'wcscat'.
17514         * modules/wcscat: New file.
17515         * lib/wchar.in.h (wcscat): New declaration.
17516         * lib/wcscat.c: New file.
17517         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17518         * m4/wcscat.m4: New file.
17519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17522         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17523         * doc/posix-functions/wcscat.texi: Mention the new module.
17524
17525 2011-02-05  Bruno Haible  <bruno@clisp.org>
17526
17527         New module 'wcpncpy'.
17528         * modules/wcpncpy: New file.
17529         * lib/wchar.in.h (wcpncpy): New declaration.
17530         * lib/wcpncpy.c: New file.
17531         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17532         * m4/wcpncpy.m4: New file.
17533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17535         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17536         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17537         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17538
17539 2011-02-05  Bruno Haible  <bruno@clisp.org>
17540
17541         New module 'wcsncpy'.
17542         * modules/wcsncpy: New file.
17543         * lib/wchar.in.h (wcsncpy): New declaration.
17544         * lib/wcsncpy.c: New file.
17545         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17546         * m4/wcsncpy.m4: New file.
17547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17550         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17551         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17552
17553 2011-02-05  Bruno Haible  <bruno@clisp.org>
17554
17555         New module 'wcpcpy'.
17556         * modules/wcpcpy: New file.
17557         * lib/wchar.in.h (wcpcpy): New declaration.
17558         * lib/wcpcpy.c: New file.
17559         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17560         * m4/wcpcpy.m4: New file.
17561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17563         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17564         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17565         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17566
17567 2011-02-05  Bruno Haible  <bruno@clisp.org>
17568
17569         New module 'wcscpy'.
17570         * modules/wcscpy: New file.
17571         * lib/wchar.in.h (wcscpy): New declaration.
17572         * lib/wcscpy.c: New file.
17573         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17574         * m4/wcscpy.m4: New file.
17575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17578         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17579         * doc/posix-functions/wcscpy.texi: Mention the new module.
17580
17581 2011-02-05  Bruno Haible  <bruno@clisp.org>
17582
17583         New module 'wcsnlen'.
17584         * modules/wcsnlen: New file.
17585         * lib/wchar.in.h (wcsnlen): New declaration.
17586         * lib/wcsnlen.c: New file.
17587         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17588         * m4/wcsnlen.m4: New file.
17589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17592         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17593         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17594
17595 2011-02-05  Bruno Haible  <bruno@clisp.org>
17596
17597         New module 'wcslen'.
17598         * modules/wcslen: New file.
17599         * lib/wchar.in.h (wcslen): New declaration.
17600         * lib/wcslen.c: New file.
17601         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17602         * m4/wcslen.m4: New file.
17603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17606         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17607         * doc/posix-functions/wcslen.texi: Mention the new module.
17608
17609 2011-02-05  Bruno Haible  <bruno@clisp.org>
17610
17611         New module 'wmemset'.
17612         * modules/wmemset: New file.
17613         * lib/wchar.in.h (wmemset): New declaration.
17614         * lib/wmemset.c: New file.
17615         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17616         * m4/wmemset.m4: New file.
17617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17619         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17620         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17621         * doc/posix-functions/wmemset.texi: Mention the new module.
17622
17623 2011-02-05  Bruno Haible  <bruno@clisp.org>
17624
17625         New module 'wmemmove'.
17626         * modules/wmemmove: New file.
17627         * lib/wchar.in.h (wmemmove): New declaration.
17628         * lib/wmemmove.c: New file.
17629         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17630         * m4/wmemmove.m4: New file.
17631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17633         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17634         HAVE_WMEMMOVE.
17635         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17636         * doc/posix-functions/wmemmove.texi: Mention the new module.
17637
17638 2011-02-05  Bruno Haible  <bruno@clisp.org>
17639
17640         New module 'wmemcpy'.
17641         * modules/wmemcpy: New file.
17642         * lib/wchar.in.h (wmemcpy): New declaration.
17643         * lib/wmemcpy.c: New file.
17644         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17645         * m4/wmemcpy.m4: New file.
17646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17648         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17649         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17650         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17651
17652 2011-02-05  Bruno Haible  <bruno@clisp.org>
17653
17654         New module 'wmemcmp'.
17655         * modules/wmemcmp: New file.
17656         * lib/wchar.in.h (wmemcmp): New declaration.
17657         * lib/wmemcmp.c: New file.
17658         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17659         * m4/wmemcmp.m4: New file.
17660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17662         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17663         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17664         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17665
17666 2011-02-07  Jim Meyering  <meyering@redhat.com>
17667
17668         di-set, ino-map: new modules, from coreutils
17669         * lib/di-set.c: New file.
17670         * lib/di-set.h: Likewise.
17671         * lib/ino-map.c: Likewise.
17672         * lib/ino-map.h: Likewise.
17673         * modules/di-set: Likewise.
17674         * modules/di-set-tests: Likewise.
17675         * modules/ino-map: Likewise.
17676         * modules/ino-map-tests: Likewise.
17677         * tests/test-di-set.c: Likewise.
17678         * tests/test-ino-map.c: Likewise.
17679
17680 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17681
17682         getloadavg: merge minor changes from Emacs
17683
17684         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17685         (getloadavg): Use memset, not bzero.
17686
17687         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17688         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17689         clash (bug#86).
17690
17691 2010-11-14  Bruno Haible  <bruno@clisp.org>
17692
17693         Allow multiple gnulib generated replacements to coexist.
17694         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17695         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17696         * lib/langinfo.in.h (nl_item): Likewise.
17697         * lib/math.in.h (_NaN, NAN): Likewise.
17698         * lib/netdb.in.h (struct addrinfo): Likewise.
17699         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17700         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17701         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17702         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17703         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17704         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17705         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17706         pthread_mutexattr_init, pthread_mutexattr_settype,
17707         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17708         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17709         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17710         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17711         * lib/sched.in.h (struct sched_param): Likewise.
17712         * lib/se-selinux.in.h (security_class_t, security_context_t,
17713         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17714         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17715         lsetfilecon, fsetfilecon, security_check_context,
17716         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17717         Likewise.
17718         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17719         Likewise.
17720         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17721         _gl_function_taking_int_returning_void_t, union sigval,
17722         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17723         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17724         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17725         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17726         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17727         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17728         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17729         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17730         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17731         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17732         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17733         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17734         socklen_t, rpl_fd_isset): Likewise.
17735         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17736         * lib/sys_time.in.h (struct timeval): Likewise.
17737         * lib/sys_times.in.h (struct tms): Likewise.
17738         * lib/sys_utsname.in.h (struct utsname):
17739         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17740         * lib/unistd.in.h (getpagesize): Likewise.
17741         * lib/wchar.in.h (mbstate_t): Likewise.
17742         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17743         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17744         towlower, towupper): Likewise.
17745         Reported by Sam Steingold <sds@gnu.org>.
17746
17747 2011-02-05  Eric Blake  <eblake@redhat.com>
17748
17749         unsetenv: work around Haiku issues
17750         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17751         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17752
17753 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17754
17755         libposix: avoid calling error() within libposix
17756         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17757         is defined.
17758
17759 2011-02-05  Eric Blake  <eblake@redhat.com>
17760
17761         strerror_r-posix: port to cygwin
17762         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17763         implementation.
17764         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17765         * tests/test-strerror_r.c (main): Fix test.
17766         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17767         issue.
17768
17769 2011-02-05  Bruno Haible  <bruno@clisp.org>
17770
17771         New module 'wmemchr'.
17772         * modules/wmemchr: New file.
17773         * lib/wchar.in.h (wmemchr): New declaration.
17774         * lib/wmemchr.c: New file.
17775         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17776         * m4/wmemchr.m4: New file.
17777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17779         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17780         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17781         * doc/posix-functions/wmemchr.texi: Mention the new module.
17782
17783 2011-02-04  Eric Blake  <eblake@redhat.com>
17784
17785         fdopendir: detect FreeBSD bug
17786         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17787         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17788
17789 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17790
17791         stdbool: do not define HAVE_STDBOOL_H
17792         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17793         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17794         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17795         imported from the latest Autoconf git.  It was motivated by Emacs,
17796         which uses gnulib but does not need HAVE_STDBOOL_H.
17797
17798 2011-02-04  Bruno Haible  <bruno@clisp.org>
17799
17800         wcsnrtombs: Prepare for new module wwcsnrtombs.
17801         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17802         * lib/wcsnrtombs.c: Include it.
17803         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17804
17805         wcsrtombs: Prepare for new module wwcsrtombs.
17806         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17807         * lib/wcsrtombs.c: Include it.
17808         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17809
17810         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17811         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17812         * lib/mbsnrtowcs.c: Include it.
17813         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17814
17815         mbsrtowcs: Prepare for new module mbsrtowwcs.
17816         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17817         * lib/mbsrtowcs.c: Include it.
17818         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17819
17820 2011-02-04  Bruno Haible  <bruno@clisp.org>
17821
17822         vasnprintf: Reduce use of malloc for small format strings.
17823         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17824         (arguments): Add room for the first 7 arguments.
17825         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17826         (char_directives, u8_directives, u16_directives, u32_directives): Add
17827         room for the first 7 directives.
17828         * lib/printf-parse.c: Include <string.h>.
17829         (PRINTF_PARSE): Change memory handling code so that it uses the first
17830         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17831         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17832         Reported by Pádraig Brady <P@draigbrady.com>.
17833
17834 2011-01-31  Eric Blake  <eblake@redhat.com>
17835
17836         dup2: work around Haiku bug
17837         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17838         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17839         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17840         * tests/test-dup2.c (main): Enhance test.
17841
17842 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17843
17844         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17845         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17846         declared by eglibc 2.11.2.
17847         * lib/stdio.in.h: Likewise.
17848
17849 2011-01-31  Eric Blake  <eblake@redhat.com>
17850
17851         ignore-value: add missing test dependency
17852         * tests/test-ignore-value.c: Revert previous change; stdio.h
17853         provides off_t.
17854         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17855
17856 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17857
17858         mktime: clarify long_int width checking
17859         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17860         the top level, to make it clearer that the assumption about
17861         long_int width is being checked.  See
17862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17863
17864 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17865
17866         ignore-value: Fix self-test.
17867         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17868
17869 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17870
17871         TYPE_MAXIMUM: avoid theoretically undefined behavior
17872         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17873         negative number, which the C Standard says has undefined behavior.
17874         In practice this is not a problem, but might as well do it by the book.
17875         Reported by Rich Felker and Eric Blake; see
17876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17877         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17878         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17880         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17881         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17882         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17883
17884         mktime: #undef mktime before #defining it
17885         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17886
17887         mktime: systematically normalize tm_isdst comparisons
17888         * lib/mktime.c (isdst_differ): New function.
17889         (__mktime_internal): Use it systematically for all isdst comparisons.
17890         This completes the fix for libc BZ #6723, and removes the need for
17891         normalizing tm_isdst.  See
17892         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17893         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17894
17895         mktime: fix some integer overflow issues and sidestep the rest
17896
17897         This was prompted by a bug report by Benjamin Lindner for MinGW
17898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17899         His bug is due to signed integer overflow (0 - INT_MIN), and I
17900         I scanned through mktime.c looking for other integer overflow
17901         problems, fixing all the bugs I found.
17902
17903         Although the C Standard says the resulting code is still not safe
17904         in the presence of integer overflow, in practice it should be good
17905         enough for all real-world two's-complement implementations, except
17906         for debugging environments that deliberately trap on integer
17907         overflow (e.g., gcc -ftrapv).
17908
17909         * lib/mktime.c (WRAPV): New macro.
17910         (SHR): Also check that long_int and time_t shift right in the
17911         usual way, before using the fast-but-unportable method.
17912         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17913         used.  The code already assumed two's complement, so there's
17914         no need to test for alternatives.  All uses removed.
17915         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17916         the C standard.  Problem reported by Rich Felker in
17917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17918         (twos_complement_arithmetic): Also check long_int and time_t.
17919         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17920         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17921         (__mktime_internal): Avoid integer overflow with unary subtraction
17922         in two instances where -1 - X is an adequate replacement for -X,
17923         since the calculations are approximate.
17924
17925 2011-01-29  Eric Blake  <eblake@redhat.com>
17926
17927         mktime: avoid infinite loop
17928         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17929         type; behavior is still undefined but portable to all known targets.
17930         Reported by Rich Felker.
17931
17932 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17933
17934         rename, unlink, same-inode: Relicense.
17935         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17936         * modules/unlink (License): Likewise.
17937         * modules/same-inode (License): Likewise.
17938
17939 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17940
17941         mktime: avoid problems on NetBSD 5 / i386
17942         * lib/mktime.c (long_int): New type.  This works around a problem
17943         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17944         but time_t is 64 bits, and where I expect the existing code is
17945         wrong in some cases.
17946         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17947         (ydhms_diff): Bring back the compile-time check for wide-enough
17948         year and yday.
17949
17950         mktime: fix misspelling in comment
17951         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17952         This merges all recent glibc changes of importance.
17953
17954 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17955
17956         move-if-change: cope with concurrent mv of identical file.
17957         * build-aux/move-if-change (CMPPROG): Accept environment
17958         variable as an override for `cmp'.
17959         (usage): Document CMPPROG.
17960         Adjust comparison to drop stdout.  Cope with failure of mv if
17961         the target file exists and is identical to the source, for
17962         parallel builds.
17963         Report from H.J. Lu against binutils in PR binutils/12283.
17964
17965 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17966
17967         * users.txt: Mention sharutils.
17968
17969 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17970
17971         * users.txt: Mention OATH Toolkit.
17972
17973 2011-01-27  Bruno Haible  <bruno@clisp.org>
17974
17975         Prepare for supporting FreeBSD 10.
17976         * build-aux/config.libpath: Remove handling of freebsd1*.
17977
17978 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17979
17980         Prepare for supporting FreeBSD 10.
17981         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17982         match FreeBSD 10.0.
17983
17984 2011-01-27  Bruno Haible  <bruno@clisp.org>
17985
17986         vma-iter, get-rusage-as: Add OpenBSD support.
17987         * modules/vma-iter (configure.ac): Test for mquery.
17988         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17989         * lib/vma-iter.c: Include <sys/mman.h>.
17990         (vma_iterate): Add an implementation based on mquery().
17991         * lib/resource-ext.h (get_rusage_as): Update comments.
17992         * lib/get-rusage-as.c: Likewise.
17993         * lib/get-rusage-data.c: Likewise.
17994
17995 2011-01-26  Karl Berry  <karl@gnu.org>
17996
17997         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17998         variables to make it easier to override the makeinfo program used.
17999
18000 2011-01-26  Eric Blake  <eblake@redhat.com>
18001
18002         fcntl: work around Haiku F_DUPFD bugs
18003         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
18004         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
18005         cloexec bit on duplication.
18006         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
18007
18008 2011-01-26  Bruno Haible  <bruno@clisp.org>
18009
18010         Enable memory leak tests on AIX.
18011         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18012         * tests/test-fprintf-posix3.c (main): Likewise.
18013
18014 2011-01-26  Bruno Haible  <bruno@clisp.org>
18015
18016         Tests for module 'get-rusage-data'.
18017         * modules/get-rusage-data-tests: New file.
18018         * tests/test-get-rusage-data.c: New file.
18019
18020         New module 'get-rusage-data'.
18021         * lib/resource-ext.h (get_rusage_data): New declaration.
18022         * lib/get-rusage-data.c: New file.
18023         * modules/get-rusage-data: New file.
18024
18025 2011-01-25  Bruno Haible  <bruno@clisp.org>
18026
18027         get-rusage-as: Allow for easier testing.
18028         * lib/resource-ext.h (get_rusage_as): Add comment.
18029         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18030         (main): New function for interactive testing.
18031
18032 2011-01-25  Bruno Haible  <bruno@clisp.org>
18033
18034         vma-iter: Treat Haiku like BeOS.
18035         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18036         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18037
18038 2011-01-25  Eric Blake  <eblake@redhat.com>
18039
18040         c-stack: fix regression on cygwin when libsigsegv is present
18041         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18042
18043 2011-01-24  Bruno Haible  <bruno@clisp.org>
18044
18045         vma-iter: Avoid empty intervals.
18046         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18047         on an empty interval.
18048
18049 2011-01-24  Jim Meyering  <meyering@redhat.com>
18050
18051         u64: remove unnecessary #include
18052         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18053
18054 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18055
18056         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18057         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18058
18059 2011-01-23  Bruno Haible  <bruno@clisp.org>
18060
18061         New module 'vma-iter'.
18062         * lib/vma-iter.h: New file.
18063         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18064         * modules/vma-iter: New file.
18065         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18066         for get_rusage_as_via_iterator.
18067         (vma_iterate_callback): New function.
18068         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18069         * modules/get-rusage-as (Depends-on): Add vma-iter.
18070
18071 2011-01-23  Bruno Haible  <bruno@clisp.org>
18072
18073         uninorm: Tweak includes.
18074         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18075         Reported by Jim Meyering.
18076
18077 2011-01-23  Bruno Haible  <bruno@clisp.org>
18078
18079         get-rusage-as: Improve on NetBSD.
18080         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18081         /proc, like on FreeBSD.
18082
18083 2011-01-23  Jim Meyering  <meyering@redhat.com>
18084
18085         xreadlink.h: remove unnecessary #include
18086         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18087
18088         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18089         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18090
18091 2011-01-23  Bruno Haible  <bruno@clisp.org>
18092
18093         get-rusage-as: Fix bug.
18094         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18095         original limit when aborting the first loop.
18096
18097 2011-01-23  Bruno Haible  <bruno@clisp.org>
18098
18099         wctype: Ensure valid C syntax.
18100         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18101         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18102
18103 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18104
18105         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18107         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18108         as they are needed only for configure's test case.
18109         This removes two unnecessary symbols from config.h.
18110
18111         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18112         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18114         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18115         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18116         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18117         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18118         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18119         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18120         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18121         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18123         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18124         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18125         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18126         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18127         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18128         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18129
18130 2011-01-21  Eric Blake  <eblake@redhat.com>
18131
18132         maintainer-makefile: work with older git for submodule check
18133         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18134         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18135         Reported by Matthias Bolte.
18136
18137         bootstrap: minor portability fixes
18138         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18139         (usage): Omit leading capital and trailing . on help phrases, per
18140         GNU Coding Standards.
18141         (check_versions, top level): Prefix messages with script name.
18142
18143 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18144
18145         bootstrap: support --no-git option
18146         * build-aux/bootstrap: Add --no-git option, to be used when
18147         --gnulib-srcdir points to the exact desired checkout.
18148
18149 2011-01-21  Eric Blake  <eblake@redhat.com>
18150
18151         strerror_r-posix: work with glibc 2.13
18152         * lib/strerror_r.c (strerror_r): Fix return type.
18153
18154 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18155             Bruno Haible  <bruno@clisp.org>
18156
18157         uN_strstr: New unit tests.
18158         * modules/unistr/u8-strstr-tests: New file.
18159         * modules/unistr/u16-strstr-tests: New file.
18160         * modules/unistr/u32-strstr-tests: New file.
18161         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18162         * tests/unistr/test-u8-strstr.c: New file.
18163         * tests/unistr/test-u16-strstr.c: New file.
18164         * tests/unistr/test-u32-strstr.c: New file.
18165
18166 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18167             Bruno Haible  <bruno@clisp.org>
18168
18169         Make uN_strstr functions O(n) worst-case.
18170         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18171         16-bit and 32-bit unit cases, use the unibyte algorithm from
18172         lib/mbsstr.c.
18173         * lib/unistr/u8-strstr.c: Include <string.h>.
18174         (UNIT_IS_UINT8_T): New macro.
18175         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18176         (U_STRLEN, U_STRNLEN): New macros.
18177         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18178         (U_STRLEN, U_STRNLEN): New macros.
18179         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18180         (configure.ac): Update required libunistring version.
18181         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18182         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18183         malloca.
18184         (configure.ac): Update required libunistring version.
18185         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18186         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18187         malloca.
18188         (configure.ac): Update required libunistring version.
18189
18190 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18191             Bruno Haible  <bruno@clisp.org>
18192
18193         Prepare for faster uN_strstr functions.
18194         * lib/str-kmp.h: Support definable UNITs.
18195         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18196         needle_len argument.
18197         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18198         * lib/mbscasestr.c (mbscasestr): Likewise.
18199
18200 2011-01-21  Pádraig Brady <P@draigBrady.com>
18201
18202         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18203         * tests/test-malloca.c (main): Unset the environment variable
18204         to greatly speed up the test.
18205         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18206         * modules/malloca-tests: Depend on unsetenv.
18207
18208 2011-01-21  Pádraig Brady <P@draigBrady.com>
18209
18210         ignore-value: remove stdint dependency
18211         * lib/ignore-value.h: Remove <stdint.h>
18212         * modules/ignore-value: Remove stdint dependency.
18213
18214 2011-01-21  Jim Meyering  <meyering@redhat.com>
18215
18216         maint.mk: adjust variable name to be consistent with other gl_ vars
18217         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18218         to be lower case.
18219
18220 2011-01-20  Jim Meyering  <meyering@redhat.com>
18221
18222         maint.mk: make "check" depend on public-submodule-commit by default
18223         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18224
18225 2011-01-20  Bruno Haible  <bruno@clisp.org>
18226
18227         mbfile, mbiter: Complete change from 2008-12-21.
18228         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18229         * m4/mbiter.m4 (gl_MBITER): Likewise.
18230
18231 2011-01-20  Jim Meyering  <meyering@redhat.com>
18232
18233         init.sh: insert space between each function name and "()"
18234         * tests/init.sh: Make it a little easier to see that a function's
18235         name is "warn_", and not "warn" when looking at the first part of
18236         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18237
18238 2011-01-20  Jim Meyering  <meyering@redhat.com>
18239
18240         mountlist: clean up code formatting
18241         * lib/mountlist.c (read_file_system_list): Split a long line,
18242         correct bracing style, use NULL in place of "(struct statfs *)0",
18243         don't parenthesize return value, add spaces around "=" and after
18244         ";-in-for-stmt".
18245
18246 2011-01-14  Markus Duft <mduft@gentoo.org>
18247
18248         mountlist: add support for Interix
18249         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18250         Apply statvfs to all entries of /dev/fs.
18251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18252         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18253
18254 2011-01-20  Jim Meyering  <meyering@redhat.com>
18255
18256         maint.mk: improve the public-submodule-commit rule
18257         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18258         to suppress printing of its commands... unless V=1.
18259         Add git submodule's --quiet option to suppress printing of e.g.,
18260         "Entering gnulib" output.
18261         "cd" into $(srcdir) before running git submodule.
18262
18263 2011-01-20  Bruno Haible  <bruno@clisp.org>
18264
18265         include_next: Fix bug introduced on 2011-01-18.
18266         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18267         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18268         ac_cv_header_... variable if the second argument is not 'check'.
18269         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18270         gl_NEXT_HEADERS_INTERNAL.
18271
18272 2011-01-20  Bruno Haible  <bruno@clisp.org>
18273
18274         Allow the user to avoid the GNULIB_TEST_* macros.
18275         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18276         Suggested by Paul Eggert.
18277
18278 2011-01-14  Jim Meyering  <meyering@redhat.com>
18279
18280         bootstrap: avoid failure when there is no .gitmodules file
18281         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18282         has been assigned to, even when its value is the empty string.
18283         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18284         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18285         Reported by John W. Eaton <jwe@gnu.org>.
18286
18287 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18288
18289         assume <ctype.h>, ..., <time.h> exist
18290         For years gnulib has been assuming the existence of the headers
18291         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
18292         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
18293         them, since they don't appear to be needed.
18294         * README (Portability guidelines): Document this.
18295         * lib/flock.c: Assume <fcntl.h> exists.
18296         * lib/regex_internal.h: Assume <locale.h> exists.
18297         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18299         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18300         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18301         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18302         * m4/regex.m4 (gl_REGEX): Likewise.
18303         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18304         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18305         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18306         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18307         * tests/test-argp.c: Likewise.
18308         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18309
18310         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18311         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18312         AA_APPLE_UNIVERSAL_BUILD.  See
18313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18314         * NEWS: Document this.
18315
18316 2011-01-19  Eric Blake  <eblake@redhat.com>
18317
18318         c-stack: assume stack overflow if SA_SIGINFO unsupported
18319         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18320         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18321         sigaction will work.
18322         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18323         behavior match Linux.
18324         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18325
18326         stdbool-tests: accomodate Haiku
18327         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18328
18329         binary-io: fix O_TEXT on Haiku
18330         * modules/binary-io (Depends-on): Add fcntl-h.
18331         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18332         than blindly undefining O_TEXT.
18333         Reported by Scott McCreary.
18334
18335 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18336
18337         include_next: do not check for standard headers like stddef.h
18338
18339         I found this problem when modifying Emacs to use gnulib.
18340         I noticed that it added HAVE_STDDEF_H to config.h, even though
18341         gnulib always assumes <stddef.h> exists as per README and this
18342         symbol is unnecessary.
18343         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18344         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18345         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18346         faster for headers like stddef.h that are known to exist.
18347         (gl_CHECK_NEXT_HEADERS): Use it.
18348         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18349         rather than gl_CHECK_NEXT_HEADERS.
18350         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18351         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18352
18353 2011-01-18  Eric Blake  <eblake@redhat.com>
18354
18355         ansi-c++-opt: skip C++ dependency style if C++ is unused
18356         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18357         tests when we know C++ compilation is not desired.
18358         Reported by Scott McCreary.
18359
18360 2011-01-18  Bruno Haible  <bruno@clisp.org>
18361
18362         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18363         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18364         (main): Perform test also when getrlimit and setrlimit don't exist or
18365         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18366         limiting the address space size using setrlimit, compare the address
18367         space size before and after the the test.
18368         * tests/test-dprintf-posix2.c: Likewise.
18369         * tests/test-fprintf-posix3.sh: Update skip messages.
18370         * tests/test-dprintf-posix2.sh: Likewise.
18371         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18372         * modules/dprintf-posix-tests (Depends-on): Likewise.
18373         Reported by Bruce Korb <bkorb@gnu.org> and
18374         Gary V. Vaughan <gary@gnu.org>.
18375
18376 2011-01-18  Bruno Haible  <bruno@clisp.org>
18377
18378         get-rusage-as: Improvement for Cygwin.
18379         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18380         areas that are merely reserved.
18381
18382 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         strftime: remove dependencies on multibyte modules
18385
18386         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18387         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18388         only if __osf__ is defined, and I suspect OSF doesn't need these
18389         other modules.  If my guess is wrong, we'll need to come up with a
18390         variant of strftime that doesn't need the multibyte modules.
18391
18392         I discovered this problem when attempting modify Emacs to use the
18393         strftime module.  With the previous gnulib, this caused Emacs to
18394         need 31 new files, ranging from lib/config.charset to
18395         m4/wint_t.m4.  This was overkill and I expect would be offputting
18396         to the Emacs maintainers.  After this change, only 6 new files are
18397         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18398         stdbool.m4, and tm_gmtoff.m4.
18399
18400         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18401         Suggested by Bruno Haible in
18402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18403         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18404         and do not check for wchar.h.
18405         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18406         (Depends-on): Remove mbrlen, mbsinit, wchar.
18407
18408 2011-01-18  Bruno Haible  <bruno@clisp.org>
18409
18410         Tests for module 'get-rusage-as'.
18411         * modules/get-rusage-as-tests: New file.
18412         * tests/test-get-rusage-as.c: New file.
18413
18414         New module 'get-rusage-as'.
18415         * modules/get-rusage-as: New file.
18416         * lib/resource-ext.h: New file.
18417         * lib/get-rusage-as.c: New file.
18418
18419 2011-01-17  Eric Blake  <eblake@redhat.com>
18420
18421         sigaction: relax license from LGPLv3+ to LGPLv2+
18422         * modules/sigaction (License): Relax to LGPLv2+.
18423
18424 2011-01-14  Bruno Haible  <bruno@clisp.org>
18425
18426         filemode: Make function declarations usable in C++ mode.
18427         * lib/filemode.h: Enclose function declarations in extern "C" block.
18428         Reported by John W. Eaton <jwe@gnu.org>.
18429
18430 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18431
18432         save-cwd: no longer include "xgetcwd.h"
18433         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18434         This avoids a compilation failure in projects that use save-cwd
18435         without also using the xgetcwd module.
18436
18437 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18438
18439         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18440         This is so that a program like Emacs, which needs only dtoastr,
18441         does not have to bother with distributing and compiling ftoastr
18442         and ldtoastr.
18443         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18444         * modules/dtoastr, modules/ldtoastr: New files.
18445         * modules/ftoastr: Now works just for 'float'.
18446         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18447         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18448         dtoastr.c, ldtoastr.c.
18449
18450 2011-01-11  Jim Meyering  <meyering@redhat.com>
18451
18452         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18453         There is no need to work around the lack of the fchdir function,
18454         since gnulib can now provide a replacement when required.
18455         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18456         * modules/save-cwd (Depends-on): Add fchdir.
18457
18458 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18459
18460         openat, save-cwd: avoid xmalloc
18461
18462         This removes a direct (but undocumented) dependency of openat on
18463         xalloc, along with an indirect dependency via save-cwd.  It also
18464         removes a dependency of save-cwd on xgetcwd, and thereby
18465         indirectly on xalloc.  This change causes the openat substitute
18466         to fall back on save_cwd when memory is tight, and for save_cwd to
18467         fail instead of dying when memory is tight, but that's good enough.
18468         Problem and initial idea for fix reported by Bastien Roucaries in
18469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18470
18471         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18472         xalloc.h (for xmalloc).
18473         (openat_proc_name): Use malloc, not xmalloc.
18474         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18475         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18476
18477         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18478         This avoids heap allocation for file names whose lengths are in
18479         the range 512..1023, with the upper bound increasing to at most
18480         4031 depending on the platform's PATH_MAX.  (We do not want
18481         pathmax.h here as it might supply a non-constant PATH_MAX.)
18482         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18483         Perhaps they should be moved to malloca.h?
18484         (OPENAT_BUFFER_SIZE): Use them.
18485
18486 2011-01-10  Bruno Haible  <bruno@clisp.org>
18487
18488         doc: Update users.txt.
18489         * users.txt: Add recutils.
18490
18491 2011-01-09  Karl Berry  <karl@gnu.org>
18492
18493         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18494
18495         * doc/configmake.texi: New file.
18496         * doc/gnulib.texi: Include it.
18497         * modules/configmake: Move documentation from here.
18498
18499 2011-01-09  Bruno Haible  <bruno@clisp.org>
18500
18501         Update to Unicode 6.0.0.
18502         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18503         (get_lbp): Update for Unicode 6.0.0.
18504         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18505         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18506         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18507         U+11001, U+11038..U+11046. Remove U+06DE.
18508         (uc_width): Fix bounds of planes.
18509         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18510         lib/uniwidth/width.c.
18511         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18512         trailing whitespace removed.
18513         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18514         without comments, but with the original copyright notice.
18515         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18516         * lib/unicase/ignorable.h: Likewise.
18517         * lib/unicase/tocasefold.h: Likewise.
18518         * lib/unicase/tolower.h: Likewise.
18519         * lib/unicase/totitle.h: Likewise.
18520         * lib/unicase/toupper.h: Likewise.
18521         * lib/unictype/bidi_of.h: Likewise.
18522         * lib/unictype/blocks.h: Likewise.
18523         * lib/unictype/categ_C.h: Likewise.
18524         * lib/unictype/categ_Cn.h: Likewise.
18525         * lib/unictype/categ_L.h: Likewise.
18526         * lib/unictype/categ_Ll.h: Likewise.
18527         * lib/unictype/categ_Lm.h: Likewise.
18528         * lib/unictype/categ_Lo.h: Likewise.
18529         * lib/unictype/categ_Lu.h: Likewise.
18530         * lib/unictype/categ_M.h: Likewise.
18531         * lib/unictype/categ_Mc.h: Likewise.
18532         * lib/unictype/categ_Me.h: Likewise.
18533         * lib/unictype/categ_Mn.h: Likewise.
18534         * lib/unictype/categ_N.h: Likewise.
18535         * lib/unictype/categ_Nd.h: Likewise.
18536         * lib/unictype/categ_No.h: Likewise.
18537         * lib/unictype/categ_P.h: Likewise.
18538         * lib/unictype/categ_Po.h: Likewise.
18539         * lib/unictype/categ_S.h: Likewise.
18540         * lib/unictype/categ_Sc.h: Likewise.
18541         * lib/unictype/categ_Sk.h: Likewise.
18542         * lib/unictype/categ_Sm.h: Likewise.
18543         * lib/unictype/categ_So.h: Likewise.
18544         * lib/unictype/categ_of.h: Likewise.
18545         * lib/unictype/combining.h: Likewise.
18546         * lib/unictype/ctype_alnum.h: Likewise.
18547         * lib/unictype/ctype_alpha.h: Likewise.
18548         * lib/unictype/ctype_graph.h: Likewise.
18549         * lib/unictype/ctype_lower.h: Likewise.
18550         * lib/unictype/ctype_print.h: Likewise.
18551         * lib/unictype/ctype_punct.h: Likewise.
18552         * lib/unictype/ctype_upper.h: Likewise.
18553         * lib/unictype/decdigit.h: Likewise.
18554         * lib/unictype/digit.h: Likewise.
18555         * lib/unictype/numeric.h: Likewise.
18556         * lib/unictype/pr_alphabetic.h: Likewise.
18557         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18558         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18559         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18560         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18561         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18562         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18563         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18564         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18565         * lib/unictype/pr_case_ignorable.h: Likewise.
18566         * lib/unictype/pr_cased.h: Likewise.
18567         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18568         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18569         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18570         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18571         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18572         * lib/unictype/pr_combining.h: Likewise.
18573         * lib/unictype/pr_composite.h: Likewise.
18574         * lib/unictype/pr_currency_symbol.h: Likewise.
18575         * lib/unictype/pr_decimal_digit.h: Likewise.
18576         * lib/unictype/pr_deprecated.h: Likewise.
18577         * lib/unictype/pr_format_control.h: Likewise.
18578         * lib/unictype/pr_grapheme_base.h: Likewise.
18579         * lib/unictype/pr_grapheme_extend.h: Likewise.
18580         * lib/unictype/pr_grapheme_link.h: Likewise.
18581         * lib/unictype/pr_id_continue.h: Likewise.
18582         * lib/unictype/pr_id_start.h: Likewise.
18583         * lib/unictype/pr_ideographic.h: Likewise.
18584         * lib/unictype/pr_lowercase.h: Likewise.
18585         * lib/unictype/pr_math.h: Likewise.
18586         * lib/unictype/pr_numeric.h: Likewise.
18587         * lib/unictype/pr_other_alphabetic.h: Likewise.
18588         * lib/unictype/pr_other_id_continue.h: Likewise.
18589         * lib/unictype/pr_other_math.h: Likewise.
18590         * lib/unictype/pr_punctuation.h: Likewise.
18591         * lib/unictype/pr_sentence_terminal.h: Likewise.
18592         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18593         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18594         * lib/unictype/pr_unified_ideograph.h: Likewise.
18595         * lib/unictype/pr_uppercase.h: Likewise.
18596         * lib/unictype/pr_xid_continue.h: Likewise.
18597         * lib/unictype/pr_xid_start.h: Likewise.
18598         * lib/unictype/scripts.h: Likewise.
18599         * lib/unictype/scripts_byname.gperf: Likewise.
18600         * lib/unictype/sy_java_ident.h: Likewise.
18601         * lib/unigbrk/gbrkprop.h: Likewise.
18602         * lib/unilbrk/lbrkprop1.h: Likewise.
18603         * lib/unilbrk/lbrkprop2.h: Likewise.
18604         * lib/uninorm/decomposition-table2.h: Likewise.
18605         * lib/uniwbrk/wbrkprop.h: Likewise.
18606         * tests/unicase/test-cased.c: Likewise.
18607         * tests/unicase/test-ignorable.c: Likewise.
18608         * tests/unicase/test-uc_tolower.c: Likewise.
18609         * tests/unicase/test-uc_totitle.c: Likewise.
18610         * tests/unicase/test-uc_toupper.c: Likewise.
18611         * tests/unictype/test-categ_C.c: Likewise.
18612         * tests/unictype/test-categ_Cn.c: Likewise.
18613         * tests/unictype/test-categ_L.c: Likewise.
18614         * tests/unictype/test-categ_Ll.c: Likewise.
18615         * tests/unictype/test-categ_Lm.c: Likewise.
18616         * tests/unictype/test-categ_Lo.c: Likewise.
18617         * tests/unictype/test-categ_Lu.c: Likewise.
18618         * tests/unictype/test-categ_M.c: Likewise.
18619         * tests/unictype/test-categ_Mc.c: Likewise.
18620         * tests/unictype/test-categ_Me.c: Likewise.
18621         * tests/unictype/test-categ_Mn.c: Likewise.
18622         * tests/unictype/test-categ_N.c: Likewise.
18623         * tests/unictype/test-categ_Nd.c: Likewise.
18624         * tests/unictype/test-categ_No.c: Likewise.
18625         * tests/unictype/test-categ_P.c: Likewise.
18626         * tests/unictype/test-categ_Po.c: Likewise.
18627         * tests/unictype/test-categ_S.c: Likewise.
18628         * tests/unictype/test-categ_Sc.c: Likewise.
18629         * tests/unictype/test-categ_Sk.c: Likewise.
18630         * tests/unictype/test-categ_Sm.c: Likewise.
18631         * tests/unictype/test-categ_So.c: Likewise.
18632         * tests/unictype/test-ctype_alnum.c: Likewise.
18633         * tests/unictype/test-ctype_alpha.c: Likewise.
18634         * tests/unictype/test-ctype_graph.c: Likewise.
18635         * tests/unictype/test-ctype_lower.c: Likewise.
18636         * tests/unictype/test-ctype_print.c: Likewise.
18637         * tests/unictype/test-ctype_punct.c: Likewise.
18638         * tests/unictype/test-ctype_upper.c: Likewise.
18639         * tests/unictype/test-decdigit.h: Likewise.
18640         * tests/unictype/test-digit.h: Likewise.
18641         * tests/unictype/test-numeric.h: Likewise.
18642         * tests/unictype/test-pr_alphabetic.c: Likewise.
18643         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18644         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18645         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18646         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18647         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18648         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18649         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18650         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18651         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18652         * tests/unictype/test-pr_cased.c: Likewise.
18653         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18654         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18655         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18656         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18657         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18658         * tests/unictype/test-pr_combining.c: Likewise.
18659         * tests/unictype/test-pr_composite.c: Likewise.
18660         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18661         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18662         * tests/unictype/test-pr_deprecated.c: Likewise.
18663         * tests/unictype/test-pr_format_control.c: Likewise.
18664         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18665         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18666         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18667         * tests/unictype/test-pr_id_continue.c: Likewise.
18668         * tests/unictype/test-pr_id_start.c: Likewise.
18669         * tests/unictype/test-pr_ideographic.c: Likewise.
18670         * tests/unictype/test-pr_lowercase.c: Likewise.
18671         * tests/unictype/test-pr_math.c: Likewise.
18672         * tests/unictype/test-pr_numeric.c: Likewise.
18673         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18674         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18675         * tests/unictype/test-pr_other_math.c: Likewise.
18676         * tests/unictype/test-pr_punctuation.c: Likewise.
18677         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18678         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18679         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18680         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18681         * tests/unictype/test-pr_uppercase.c: Likewise.
18682         * tests/unictype/test-pr_xid_continue.c: Likewise.
18683         * tests/unictype/test-pr_xid_start.c: Likewise.
18684         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18685         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18686         changes.
18687         * lib/unictype/categ_Cc.h: Likewise.
18688         * lib/unictype/categ_Cf.h: Likewise.
18689         * lib/unictype/categ_Co.h: Likewise.
18690         * lib/unictype/categ_Cs.h: Likewise.
18691         * lib/unictype/categ_Lt.h: Likewise.
18692         * lib/unictype/categ_Nl.h: Likewise.
18693         * lib/unictype/categ_Pc.h: Likewise.
18694         * lib/unictype/categ_Pd.h: Likewise.
18695         * lib/unictype/categ_Pe.h: Likewise.
18696         * lib/unictype/categ_Pf.h: Likewise.
18697         * lib/unictype/categ_Pi.h: Likewise.
18698         * lib/unictype/categ_Ps.h: Likewise.
18699         * lib/unictype/categ_Z.h: Likewise.
18700         * lib/unictype/categ_Zl.h: Likewise.
18701         * lib/unictype/categ_Zp.h: Likewise.
18702         * lib/unictype/categ_Zs.h: Likewise.
18703         * lib/unictype/ctype_blank.h: Likewise.
18704         * lib/unictype/ctype_cntrl.h: Likewise.
18705         * lib/unictype/ctype_digit.h: Likewise.
18706         * lib/unictype/ctype_space.h: Likewise.
18707         * lib/unictype/ctype_xdigit.h: Likewise.
18708         * lib/unictype/mirror.h: Likewise.
18709         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18710         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18711         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18712         * lib/unictype/pr_bidi_control.h: Likewise.
18713         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18714         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18715         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18716         * lib/unictype/pr_bidi_pdf.h: Likewise.
18717         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18718         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18719         * lib/unictype/pr_dash.h: Likewise.
18720         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18721         * lib/unictype/pr_diacritic.h: Likewise.
18722         * lib/unictype/pr_extender.h: Likewise.
18723         * lib/unictype/pr_hex_digit.h: Likewise.
18724         * lib/unictype/pr_hyphen.h: Likewise.
18725         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18726         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18727         * lib/unictype/pr_ignorable_control.h: Likewise.
18728         * lib/unictype/pr_iso_control.h: Likewise.
18729         * lib/unictype/pr_join_control.h: Likewise.
18730         * lib/unictype/pr_left_of_pair.h: Likewise.
18731         * lib/unictype/pr_line_separator.h: Likewise.
18732         * lib/unictype/pr_logical_order_exception.h: Likewise.
18733         * lib/unictype/pr_non_break.h: Likewise.
18734         * lib/unictype/pr_not_a_character.h: Likewise.
18735         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18736         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18737         * lib/unictype/pr_other_id_start.h: Likewise.
18738         * lib/unictype/pr_other_lowercase.h: Likewise.
18739         * lib/unictype/pr_other_uppercase.h: Likewise.
18740         * lib/unictype/pr_paired_punctuation.h: Likewise.
18741         * lib/unictype/pr_paragraph_separator.h: Likewise.
18742         * lib/unictype/pr_pattern_syntax.h: Likewise.
18743         * lib/unictype/pr_pattern_white_space.h: Likewise.
18744         * lib/unictype/pr_private_use.h: Likewise.
18745         * lib/unictype/pr_quotation_mark.h: Likewise.
18746         * lib/unictype/pr_radical.h: Likewise.
18747         * lib/unictype/pr_soft_dotted.h: Likewise.
18748         * lib/unictype/pr_space.h: Likewise.
18749         * lib/unictype/pr_titlecase.h: Likewise.
18750         * lib/unictype/pr_variation_selector.h: Likewise.
18751         * lib/unictype/pr_white_space.h: Likewise.
18752         * lib/unictype/pr_zero_width.h: Likewise.
18753         * lib/unictype/sy_c_ident.h: Likewise.
18754         * lib/unictype/sy_c_whitespace.h: Likewise.
18755         * lib/unictype/sy_java_whitespace.h: Likewise.
18756         * lib/uninorm/composition-table.gperf: Likewise.
18757         * lib/uninorm/decomposition-table1.h: Likewise.
18758         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18759         LB8.
18760         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18761         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18762         * modules/unictype/*: Bump version number of expected libunistring
18763         version.
18764
18765 2011-01-09  Bruno Haible  <bruno@clisp.org>
18766
18767         Update to Unicode 5.2.0.
18768         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18769         trailing whitespace removed.
18770
18771 2011-01-09  Bruno Haible  <bruno@clisp.org>
18772
18773         New Unicode character properties, from Unicode 5.2.0.
18774         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18775         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18776         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18777         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18778         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18779         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18780         uc_is_property_cased, uc_is_property_case_ignorable,
18781         uc_is_property_changes_when_lowercased,
18782         uc_is_property_changes_when_uppercased,
18783         uc_is_property_changes_when_titlecased,
18784         uc_is_property_changes_when_casefolded,
18785         uc_is_property_changes_when_casemapped): New declarations.
18786         * lib/unictype/pr_byname.gperf: Add the new properties.
18787         * modules/unictype/property-byname (Depends-on): Depend on the new
18788         properties modules.
18789         * modules/unictype/property-all (Depends-on): Likewise.
18790         * MODULES.html.sh (Unicode string functions): Add
18791         unictype/property-case-ignorable, unictype/property-cased,
18792         unictype/property-changes-when-casefolded,
18793         unictype/property-changes-when-casemapped,
18794         unictype/property-changes-when-lowercased,
18795         unictype/property-changes-when-titlecased,
18796         unictype/property-changes-when-uppercased.
18797
18798         New module 'unictype/property-changes-when-casemapped'.
18799         * modules/unictype/property-changes-when-casemapped: New file.
18800         * lib/unictype/pr_changes_when_casemapped.c: New file.
18801         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18802         generated by gen-uni-tables.
18803         * modules/unictype/property-changes-when-casemapped-tests: New file.
18804         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18805         automatically generated by gen-uni-tables.
18806
18807         New module 'unictype/property-changes-when-casefolded'.
18808         * modules/unictype/property-changes-when-casefolded: New file.
18809         * lib/unictype/pr_changes_when_casefolded.c: New file.
18810         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18811         generated by gen-uni-tables.
18812         * modules/unictype/property-changes-when-casefolded-tests: New file.
18813         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18814         automatically generated by gen-uni-tables.
18815
18816         New module 'unictype/property-changes-when-titlecased'.
18817         * modules/unictype/property-changes-when-titlecased: New file.
18818         * lib/unictype/pr_changes_when_titlecased.c: New file.
18819         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18820         generated by gen-uni-tables.
18821         * modules/unictype/property-changes-when-titlecased-tests: New file.
18822         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18823         automatically generated by gen-uni-tables.
18824
18825         New module 'unictype/property-changes-when-uppercased'.
18826         * modules/unictype/property-changes-when-uppercased: New file.
18827         * lib/unictype/pr_changes_when_uppercased.c: New file.
18828         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18829         generated by gen-uni-tables.
18830         * modules/unictype/property-changes-when-uppercased-tests: New file.
18831         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18832         automatically generated by gen-uni-tables.
18833
18834         New module 'unictype/property-changes-when-lowercased'.
18835         * modules/unictype/property-changes-when-lowercased: New file.
18836         * lib/unictype/pr_changes_when_lowercased.c: New file.
18837         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18838         generated by gen-uni-tables.
18839         * modules/unictype/property-changes-when-lowercased-tests: New file.
18840         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18841         automatically generated by gen-uni-tables.
18842
18843         New module 'unictype/property-case-ignorable'.
18844         * modules/unictype/property-case-ignorable: New file.
18845         * lib/unictype/pr_case_ignorable.c: New file.
18846         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18847         by gen-uni-tables.
18848         * modules/unictype/property-case-ignorable-tests: New file.
18849         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18850         generated by gen-uni-tables.
18851
18852         New module 'unictype/property-cased'.
18853         * modules/unictype/property-cased: New file.
18854         * lib/unictype/pr_cased.c: New file.
18855         * lib/unictype/pr_cased.h: New file, automatically generated by
18856         gen-uni-tables.
18857         * modules/unictype/property-cased-tests: New file.
18858         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18859         gen-uni-tables.
18860
18861 2011-01-09  Bruno Haible  <bruno@clisp.org>
18862
18863         Update to Unicode 5.2.0.
18864         * lib/gen-uni-tables.c (output_predicate, output_category,
18865         output_combclass, output_bidi_category, output_decimal_digit_test,
18866         output_decimal_digit, output_digit_test, output_digit,
18867         output_numeric_test, output_numeric, output_mirror, output_scripts,
18868         output_scripts_byname, output_blocks, output_ident_category): Fix
18869         comment header.
18870         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18871         get_wbp.
18872         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18873         items.
18874         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18875         Changes_When_Lowercased, Changes_When_Uppercased,
18876         Changes_When_Titlecased, Changes_When_Casefolded,
18877         Changes_When_Casemapped.
18878         (is_property_alphabetic, is_property_default_ignorable_code_point):
18879         Update for Unicode 5.2.0.
18880         (is_property_cased, is_property_case_ignorable,
18881         is_property_changes_when_lowercased,
18882         is_property_changes_when_uppercased,
18883         is_property_changes_when_titlecased,
18884         is_property_changes_when_casefolded,
18885         is_property_changes_when_casemapped): New functions.
18886         (output_properties): Output also the properties cased, case_ignorable,
18887         changes_when_lowercased, changes_when_uppercased,
18888         changes_when_titlecased, changes_when_casefolded,
18889         changes_when_casemapped.
18890         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18891         Unicode TR#11 revision 17 -> 19.
18892         (LBP_CP): New enumeration value.
18893         (LBP_*): Adjust values accordingly.
18894         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18895         TR#14 revision 22 -> 24.
18896         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18897         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18898         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18899         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18900         is_WBP_MIDLETTER.
18901         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18902         the code1 and code2 of each composition rule.
18903         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18904         * lib/unicase/ignorable.h: Likewise.
18905         * lib/unicase/tocasefold.h: Likewise.
18906         * lib/unicase/tolower.h: Likewise.
18907         * lib/unicase/totitle.h: Likewise.
18908         * lib/unicase/toupper.h: Likewise.
18909         * lib/unictype/bidi_of.h: Likewise.
18910         * lib/unictype/blocks.h: Likewise.
18911         * lib/unictype/categ_C.h: Likewise.
18912         * lib/unictype/categ_Cf.h: Likewise.
18913         * lib/unictype/categ_Cn.h: Likewise.
18914         * lib/unictype/categ_L.h: Likewise.
18915         * lib/unictype/categ_Ll.h: Likewise.
18916         * lib/unictype/categ_Lm.h: Likewise.
18917         * lib/unictype/categ_Lo.h: Likewise.
18918         * lib/unictype/categ_Lu.h: Likewise.
18919         * lib/unictype/categ_M.h: Likewise.
18920         * lib/unictype/categ_Mc.h: Likewise.
18921         * lib/unictype/categ_Mn.h: Likewise.
18922         * lib/unictype/categ_N.h: Likewise.
18923         * lib/unictype/categ_Nd.h: Likewise.
18924         * lib/unictype/categ_Nl.h: Likewise.
18925         * lib/unictype/categ_No.h: Likewise.
18926         * lib/unictype/categ_P.h: Likewise.
18927         * lib/unictype/categ_Pd.h: Likewise.
18928         * lib/unictype/categ_Po.h: Likewise.
18929         * lib/unictype/categ_S.h: Likewise.
18930         * lib/unictype/categ_Sc.h: Likewise.
18931         * lib/unictype/categ_So.h: Likewise.
18932         * lib/unictype/categ_of.h: Likewise.
18933         * lib/unictype/combining.h: Likewise.
18934         * lib/unictype/ctype_alnum.h: Likewise.
18935         * lib/unictype/ctype_alpha.h: Likewise.
18936         * lib/unictype/ctype_graph.h: Likewise.
18937         * lib/unictype/ctype_lower.h: Likewise.
18938         * lib/unictype/ctype_print.h: Likewise.
18939         * lib/unictype/ctype_punct.h: Likewise.
18940         * lib/unictype/ctype_upper.h: Likewise.
18941         * lib/unictype/decdigit.h: Likewise.
18942         * lib/unictype/digit.h: Likewise.
18943         * lib/unictype/numeric.h: Likewise.
18944         * lib/unictype/pr_alphabetic.h: Likewise.
18945         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18946         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18947         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18948         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18949         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18950         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18951         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18952         * lib/unictype/pr_combining.h: Likewise.
18953         * lib/unictype/pr_composite.h: Likewise.
18954         * lib/unictype/pr_currency_symbol.h: Likewise.
18955         * lib/unictype/pr_dash.h: Likewise.
18956         * lib/unictype/pr_decimal_digit.h: Likewise.
18957         * lib/unictype/pr_deprecated.h: Likewise.
18958         * lib/unictype/pr_diacritic.h: Likewise.
18959         * lib/unictype/pr_extender.h: Likewise.
18960         * lib/unictype/pr_grapheme_base.h: Likewise.
18961         * lib/unictype/pr_grapheme_extend.h: Likewise.
18962         * lib/unictype/pr_grapheme_link.h: Likewise.
18963         * lib/unictype/pr_id_continue.h: Likewise.
18964         * lib/unictype/pr_id_start.h: Likewise.
18965         * lib/unictype/pr_ideographic.h: Likewise.
18966         * lib/unictype/pr_ignorable_control.h: Likewise.
18967         * lib/unictype/pr_logical_order_exception.h: Likewise.
18968         * lib/unictype/pr_lowercase.h: Likewise.
18969         * lib/unictype/pr_numeric.h: Likewise.
18970         * lib/unictype/pr_other_alphabetic.h: Likewise.
18971         * lib/unictype/pr_punctuation.h: Likewise.
18972         * lib/unictype/pr_sentence_terminal.h: Likewise.
18973         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18974         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18975         * lib/unictype/pr_unified_ideograph.h: Likewise.
18976         * lib/unictype/pr_uppercase.h: Likewise.
18977         * lib/unictype/pr_xid_continue.h: Likewise.
18978         * lib/unictype/pr_xid_start.h: Likewise.
18979         * lib/unictype/pr_zero_width.h: Likewise.
18980         * lib/unictype/scripts.h: Likewise.
18981         * lib/unictype/scripts_byname.gperf: Likewise.
18982         * lib/unictype/sy_java_ident.h: Likewise.
18983         * lib/unigbrk/gbrkprop.h: Likewise.
18984         * lib/unilbrk/lbrkprop1.h: Likewise.
18985         * lib/unilbrk/lbrkprop2.h: Likewise.
18986         * lib/unilbrk/lbrktables.h: Likewise.
18987         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18988         LBP_CP. Implement rule LB30.
18989         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18990         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18991         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18992         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18993         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18994         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18995         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18996         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18997         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18998         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18999         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
19000         bits instead of 16 bits in the code1 and code2 of each composition
19001         rule.
19002         (uc_composition): Update for Unicode 5.2.0.
19003         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
19004         * lib/uninorm/decomposition-table2.h: Likewise.
19005         * lib/uniwbrk/wbrkprop.h: Likewise.
19006         * tests/unicase/test-cased.c: Likewise.
19007         * tests/unicase/test-ignorable.c: Likewise.
19008         * tests/unicase/test-uc_tolower.c: Likewise.
19009         * tests/unicase/test-uc_totitle.c: Likewise.
19010         * tests/unicase/test-uc_toupper.c: Likewise.
19011         * tests/unictype/test-categ_C.c: Likewise.
19012         * tests/unictype/test-categ_Cf.c: Likewise.
19013         * tests/unictype/test-categ_Cn.c: Likewise.
19014         * tests/unictype/test-categ_L.c: Likewise.
19015         * tests/unictype/test-categ_Ll.c: Likewise.
19016         * tests/unictype/test-categ_Lm.c: Likewise.
19017         * tests/unictype/test-categ_Lo.c: Likewise.
19018         * tests/unictype/test-categ_Lu.c: Likewise.
19019         * tests/unictype/test-categ_M.c: Likewise.
19020         * tests/unictype/test-categ_Mc.c: Likewise.
19021         * tests/unictype/test-categ_Mn.c: Likewise.
19022         * tests/unictype/test-categ_N.c: Likewise.
19023         * tests/unictype/test-categ_Nd.c: Likewise.
19024         * tests/unictype/test-categ_Nl.c: Likewise.
19025         * tests/unictype/test-categ_No.c: Likewise.
19026         * tests/unictype/test-categ_P.c: Likewise.
19027         * tests/unictype/test-categ_Pd.c: Likewise.
19028         * tests/unictype/test-categ_Po.c: Likewise.
19029         * tests/unictype/test-categ_S.c: Likewise.
19030         * tests/unictype/test-categ_Sc.c: Likewise.
19031         * tests/unictype/test-categ_So.c: Likewise.
19032         * tests/unictype/test-ctype_alnum.c: Likewise.
19033         * tests/unictype/test-ctype_alpha.c: Likewise.
19034         * tests/unictype/test-ctype_graph.c: Likewise.
19035         * tests/unictype/test-ctype_lower.c: Likewise.
19036         * tests/unictype/test-ctype_print.c: Likewise.
19037         * tests/unictype/test-ctype_punct.c: Likewise.
19038         * tests/unictype/test-ctype_upper.c: Likewise.
19039         * tests/unictype/test-decdigit.h: Likewise.
19040         * tests/unictype/test-digit.h: Likewise.
19041         * tests/unictype/test-numeric.h: Likewise.
19042         * tests/unictype/test-pr_alphabetic.c: Likewise.
19043         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19044         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19045         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19046         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19047         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19048         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19049         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19050         * tests/unictype/test-pr_combining.c: Likewise.
19051         * tests/unictype/test-pr_composite.c: Likewise.
19052         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19053         * tests/unictype/test-pr_dash.c: Likewise.
19054         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19055         * tests/unictype/test-pr_deprecated.c: Likewise.
19056         * tests/unictype/test-pr_diacritic.c: Likewise.
19057         * tests/unictype/test-pr_extender.c: Likewise.
19058         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19059         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19060         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19061         * tests/unictype/test-pr_id_continue.c: Likewise.
19062         * tests/unictype/test-pr_id_start.c: Likewise.
19063         * tests/unictype/test-pr_ideographic.c: Likewise.
19064         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19065         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19066         * tests/unictype/test-pr_lowercase.c: Likewise.
19067         * tests/unictype/test-pr_numeric.c: Likewise.
19068         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19069         * tests/unictype/test-pr_punctuation.c: Likewise.
19070         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19071         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19072         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19073         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19074         * tests/unictype/test-pr_uppercase.c: Likewise.
19075         * tests/unictype/test-pr_xid_continue.c: Likewise.
19076         * tests/unictype/test-pr_xid_start.c: Likewise.
19077         * tests/unictype/test-pr_zero_width.c: Likewise.
19078         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19079         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19080         changed behaviour: line breaking is now disallowed between a letter
19081         or '=' and '('.
19082         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19083         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19084         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19085         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19086         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19087         lib/uniwidth/width.c.
19088         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19089         without comments, but with the original copyright notice.
19090         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19091         changes.
19092         * lib/unictype/categ_Cc.h: Likewise.
19093         * lib/unictype/categ_Co.h: Likewise.
19094         * lib/unictype/categ_Cs.h: Likewise.
19095         * lib/unictype/categ_Lt.h: Likewise.
19096         * lib/unictype/categ_Me.h: Likewise.
19097         * lib/unictype/categ_Pc.h: Likewise.
19098         * lib/unictype/categ_Pe.h: Likewise.
19099         * lib/unictype/categ_Pf.h: Likewise.
19100         * lib/unictype/categ_Pi.h: Likewise.
19101         * lib/unictype/categ_Ps.h: Likewise.
19102         * lib/unictype/categ_Sk.h: Likewise.
19103         * lib/unictype/categ_Sm.h: Likewise.
19104         * lib/unictype/categ_Z.h: Likewise.
19105         * lib/unictype/categ_Zl.h: Likewise.
19106         * lib/unictype/categ_Zp.h: Likewise.
19107         * lib/unictype/categ_Zs.h: Likewise.
19108         * lib/unictype/ctype_blank.h: Likewise.
19109         * lib/unictype/ctype_cntrl.h: Likewise.
19110         * lib/unictype/ctype_digit.h: Likewise.
19111         * lib/unictype/ctype_space.h: Likewise.
19112         * lib/unictype/ctype_xdigit.h: Likewise.
19113         * lib/unictype/mirror.h: Likewise.
19114         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19115         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19116         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19117         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19118         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19119         * lib/unictype/pr_bidi_control.h: Likewise.
19120         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19121         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19122         * lib/unictype/pr_bidi_pdf.h: Likewise.
19123         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19124         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19125         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19126         * lib/unictype/pr_format_control.h: Likewise.
19127         * lib/unictype/pr_hex_digit.h: Likewise.
19128         * lib/unictype/pr_hyphen.h: Likewise.
19129         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19130         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19131         * lib/unictype/pr_iso_control.h: Likewise.
19132         * lib/unictype/pr_join_control.h: Likewise.
19133         * lib/unictype/pr_left_of_pair.h: Likewise.
19134         * lib/unictype/pr_line_separator.h: Likewise.
19135         * lib/unictype/pr_math.h: Likewise.
19136         * lib/unictype/pr_non_break.h: Likewise.
19137         * lib/unictype/pr_not_a_character.h: Likewise.
19138         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19139         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19140         * lib/unictype/pr_other_id_continue.h: Likewise.
19141         * lib/unictype/pr_other_id_start.h: Likewise.
19142         * lib/unictype/pr_other_lowercase.h: Likewise.
19143         * lib/unictype/pr_other_math.h: Likewise.
19144         * lib/unictype/pr_other_uppercase.h: Likewise.
19145         * lib/unictype/pr_paired_punctuation.h: Likewise.
19146         * lib/unictype/pr_paragraph_separator.h: Likewise.
19147         * lib/unictype/pr_pattern_syntax.h: Likewise.
19148         * lib/unictype/pr_pattern_white_space.h: Likewise.
19149         * lib/unictype/pr_private_use.h: Likewise.
19150         * lib/unictype/pr_quotation_mark.h: Likewise.
19151         * lib/unictype/pr_radical.h: Likewise.
19152         * lib/unictype/pr_soft_dotted.h: Likewise.
19153         * lib/unictype/pr_space.h: Likewise.
19154         * lib/unictype/pr_titlecase.h: Likewise.
19155         * lib/unictype/pr_variation_selector.h: Likewise.
19156         * lib/unictype/pr_white_space.h: Likewise.
19157         * lib/unictype/sy_c_ident.h: Likewise.
19158         * lib/unictype/sy_c_whitespace.h: Likewise.
19159         * lib/unictype/sy_java_whitespace.h: Likewise.
19160         * modules/uni*/*: Bump version number of expected libunistring version.
19161         Reported by Simon Josefsson.
19162
19163 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19164
19165         useless-if-before-free: fix typo in --help and make the internal,
19166         automatic version date update process work once again.
19167         --help output contained a NUL character instead of the
19168         backslash-zero that was intended.  Also, the "must lie within
19169         the first 8 lines" line is on line 9, and hence not getting
19170         automatically updated.
19171         * build-aux/useless-if-before-free: Fix the former by adding a
19172         backslash, and the latter by condensing the three lines of what-it-does
19173         to a single line, leaving one line of slack for the future.
19174
19175 2011-01-09  Bruno Haible  <bruno@clisp.org>
19176
19177         uniwidth/width: Fix width of U+1D173..U+1D17A.
19178         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19179         symbolic_width, output_width_property_test): New functions.
19180         (main): Invoke output_nonspacing_property, output_width_property_test.
19181         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19182         U+1D173..U+1D17A.
19183         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19184         1.
19185         * modules/uniwidth/*: Bump version number of expected libunistring
19186         version.
19187         * modules/unilbrk/*: Likewise.
19188
19189 2011-01-08  Bruno Haible  <bruno@clisp.org>
19190
19191         uninorm tests: Preserve copyright of Unicode data file.
19192         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19193         Mention modifications.
19194
19195 2011-01-08  Bruno Haible  <bruno@clisp.org>
19196
19197         gen-uni-tables: Prepare for Unicode 5.2.0.
19198         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19199         (debug_output_lbp, output_lbp): Update.
19200
19201 2011-01-08  Bruno Haible  <bruno@clisp.org>
19202
19203         unilbrk: Clarify gen-uni-tables.c code.
19204         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19205         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19206         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19207
19208 2011-01-07  Bruno Haible  <bruno@clisp.org>
19209
19210         strtod: Restore errno when successfully parsing Infinity or NaN.
19211         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19212         restore the original errno.
19213
19214 2011-01-07  Bruno Haible  <bruno@clisp.org>
19215
19216         remove test: Avoid failure on HP-UX 11.
19217         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19218
19219 2011-01-07  Bruno Haible  <bruno@clisp.org>
19220
19221         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19222         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19223         error code.
19224
19225 2011-01-07  Pádraig Brady <P@draigBrady.com>
19226
19227         ignore-value: fixup comments, and add Eric Blake
19228         as an author since he rewrote the macros.
19229         * lib/ignore-value.h (ignore_value):  State that
19230         we now support aggregates.  Also specify exactly
19231         when the GCC warn_unused_result feature was added.
19232
19233 2011-01-06  Eric Blake  <eblake@redhat.com>
19234
19235         ignore-value: support aggregate types
19236         * lib/ignore-value.h (ignore_value): Provide separate gcc
19237         definition.
19238         * modules/ignore-value-tests: New test module.
19239         * tests/test-ignore-value.c: New test.
19240
19241         maint.mk: improve sc_prohibit_strcmp regex
19242         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19243         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19244         definition of STRNEQ.
19245
19246         signal: work around Haiku issue with SIGBUS
19247         * lib/siglist.h: Add comment.
19248         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19249         strsignal's favoring of SIGSEGV.
19250         * tests/test-signal.c (main): Avoid test failure.
19251         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19252         Reported by Scott McCreary.
19253
19254         maint.mk: add pre-release check to ensure submodule commits are public
19255         * top/maint.mk (public-submodule-commit): New rule.
19256         (submodule-checks): New variable.
19257         (alpha beta stable): Depend on the variable.
19258
19259 2011-01-05  Pádraig Brady <P@draigBrady.com>
19260         and Jim Meyering  <meyering@redhat.com>
19261
19262         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19263         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19264         (ATTRIBUTE_DEPRECATED): Define.
19265         (_ignore_case): New function.
19266         (ignore_value): New macro, to replace the old function.
19267         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19268         * modules/ignore-value (Depends-on): Add stdint.
19269
19270 2011-01-04  Eric Blake  <eblake@redhat.com>
19271
19272         doc: regenerate INSTALL
19273         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19274         @firstparagraphindent support, now that autoconf dropped it.
19275         (INSTALL_PRELUDE): Reinstate old macro.
19276         * doc/install.texi: Resync from autoconf.
19277         * doc/INSTALL: Reflect recent autoconf update.
19278         * doc/INSTALL.ISO: Likewise.
19279         * doc/INSTALL.UTF-8: Likewise.
19280         Reported by Karl Berry.
19281
19282 2011-01-04  Bruce Korb  <address@hidden>
19283
19284         git-version-gen: avoid a sub-shell
19285         * build-aux/git-version-gen: Redirect stderr in `...` via
19286         "exec 2>...", rather than via an added sub-shell.
19287
19288 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
19289
19290         git-version-gen: use (...) rather than sh -c '...'
19291         * build-aux/git-version-gen: Rather than hard-coding a shell's name
19292         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
19293
19294 2011-01-03  Jim Meyering  <meyering@redhat.com>
19295
19296         git-version-gen: convert leading TABs to spaces
19297         * build-aux/git-version-gen: Expand leading TABs.
19298
19299         git-version-gen: handle failed "git rev-list"
19300         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19301         from git and proceeding as if it had succeeded but printed no SHA1
19302         checksums, suppress the diagnostic and handle the failure.
19303         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19304
19305         git-version-gen: include command name in one more diagnostic
19306         * build-aux/git-version-gen: When the required .tarball-version file
19307         was missing or unreadable, you might see the diagnostic from "cat",
19308         but no trace of the name of the invoking script.  Now, you still see
19309         the diagnostic from cat, but also get one from "git-version-gen: ".
19310         Inspired by a patch from Bruce Korb.
19311
19312         update-copyright: adjust test to match changed code
19313         * tests/test-update-copyright.sh: Change test's expected output
19314         to match new actual output.
19315
19316 2011-01-02  Bruno Haible  <bruno@clisp.org>
19317
19318         getlogin_r: Avoid test failure on HP-UX 11.
19319         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19320         ERANGE when the second argument is zero.
19321         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19322         portability problem.
19323
19324 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19325
19326         * build-aux/update-copyright: doc Simon's changes
19327
19328 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19329
19330         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19331         environment variable.
19332
19333 2011-01-02  Bruno Haible  <bruno@clisp.org>
19334
19335         unigbrk: Avoid gcc warnings.
19336         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19337         unused variable.
19338         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19339         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19340         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19341         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19342         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19343         Change type of first argument to 'const char *'.
19344         (main): Remove unused variable.
19345         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19346         type of first argument to 'const char *'.
19347         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19348         Likewise.
19349         (main): Change type of variable 's'.
19350         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19351         to 'int'.
19352
19353 2011-01-02  Bruno Haible  <bruno@clisp.org>
19354
19355         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19356         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19357         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19358         bug.
19359         * lib/pwrite.c: Undo 2010-12-31 patch.
19360         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19361
19362 2011-01-02  Bruno Haible  <bruno@clisp.org>
19363
19364         pread: Fix test whether it works.
19365         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19366
19367 2011-01-02  Bruno Haible  <bruno@clisp.org>
19368
19369         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19370         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19371         ends in "6". Don't require a specific month name. Try also the locale
19372         names found on HP-UX 11 and Solaris 7.
19373
19374 2011-01-02  Bruno Haible  <bruno@clisp.org>
19375
19376         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19377         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19378         C linkage.
19379         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19380
19381 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19382
19383         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19384         for consistency, since the "cluster" term is not used elsewhere.
19385         * lib/unigbrk.in.h: Update name.
19386         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19387         * lib/unigbrk/u16-grapheme-next.c: Update name.
19388         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19389         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19390         * lib/unigbrk/u32-grapheme-next.c: Update name.
19391         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19392         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19393         * lib/unigbrk/u8-grapheme-next.c: Update name.
19394         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19395         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19396         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19397         Suggested by Bruno Haible.
19398
19399 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19400
19401         Remove module 'u8-grapheme-len' as too redundant with
19402         'u8-grapheme-next'.
19403         * modules/unigbrk/u8-grapheme-len: Delete file.
19404         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19405         * lib/unigbrk.in.h: Remove prototype for deleted function.
19406         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19407         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19408
19409         Remove module 'u16-grapheme-len' as too redundant with
19410         'u16-grapheme-next'.
19411         * modules/unigbrk/u16-grapheme-len: Delete file.
19412         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19413         * lib/unigbrk.in.h: Remove prototype for deleted function.
19414         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19415         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19416
19417         Remove module 'u32-grapheme-len' as too redundant with
19418         'u32-grapheme-next'.
19419         * modules/unigbrk/u32-grapheme-len: Delete file.
19420         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19421         * lib/unigbrk.in.h: Remove prototype for deleted function.
19422         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19423         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19424
19425         Suggested by Bruno Haible.
19426
19427 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19428
19429         * unigbrk.in.h: Fix typo: "ben" => "been".
19430         Reported by Bruno Haible.
19431
19432 2011-01-01  Jim Meyering  <meyering@redhat.com>
19433
19434         maint: update almost all copyright ranges to include 2011
19435         Run the new "make update-copyright" rule.
19436
19437 2011-01-01  Jim Meyering  <meyering@redhat.com>
19438
19439         maint: update-copyright: exempt doc/INSTALL*
19440         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19441         since they are generated.  Suggested by Bruno Haible.
19442
19443 2011-01-01  Jim Meyering  <meyering@redhat.com>
19444
19445         maint: refine the update-copyright rule
19446         * Makefile (update-copyright): Also exclude any file that includes
19447         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19448         code that merely generates the comment.
19449
19450 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19451
19452         New module 'u8-grapheme-len'.
19453         * modules/unigbrk/u8-grapheme-len: New file.
19454         * modules/unigbrk/u8-grapheme-len-tests: New file.
19455         * lib/unigbrk.in.h: Add prototype for new function.
19456         * lib/unigbrk/u8-grapheme-len.c: New file.
19457         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19458
19459         New module 'u16-grapheme-len'.
19460         * modules/unigbrk/u16-grapheme-len: New file.
19461         * modules/unigbrk/u16-grapheme-len-tests: New file.
19462         * lib/unigbrk.in.h: Add prototype for new function.
19463         * lib/unigbrk/u16-grapheme-len.c: New file.
19464         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19465
19466         New module 'u32-grapheme-len'.
19467         * modules/unigbrk/u32-grapheme-len: New file.
19468         * modules/unigbrk/u32-grapheme-len-tests: New file.
19469         * lib/unigbrk.in.h: Add prototype for new function.
19470         * lib/unigbrk/u32-grapheme-len.c: New file.
19471         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19472
19473         New module 'u8-grapheme-next'.
19474         * modules/unigbrk/u8-grapheme-next: New file.
19475         * modules/unigbrk/u8-grapheme-next-tests: New file.
19476         * lib/unigbrk.in.h: Add prototype for new function.
19477         * lib/unigbrk/u8-grapheme-next.c: New file.
19478         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19479
19480         New module 'u16-grapheme-next'.
19481         * modules/unigbrk/u16-grapheme-next: New file.
19482         * modules/unigbrk/u16-grapheme-next-tests: New file.
19483         * lib/unigbrk.in.h: Add prototype for new function.
19484         * lib/unigbrk/u16-grapheme-next.c: New file.
19485         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19486
19487         New module 'u32-grapheme-next'.
19488         * modules/unigbrk/u32-grapheme-next: New file.
19489         * modules/unigbrk/u32-grapheme-next-tests: New file.
19490         * lib/unigbrk.in.h: Add prototype for new function.
19491         * lib/unigbrk/u32-grapheme-next.c: New file.
19492         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19493
19494         New module 'u8-grapheme-prev'.
19495         * modules/unigbrk/u8-grapheme-prev: New file.
19496         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19497         * lib/unigbrk.in.h: Add prototype for new function.
19498         * lib/unigbrk/u8-grapheme-prev.c: New file.
19499         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19500
19501         New module 'u16-grapheme-prev'.
19502         * modules/unigbrk/u16-grapheme-prev: New file.
19503         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19504         * lib/unigbrk.in.h: Add prototype for new function.
19505         * lib/unigbrk/u16-grapheme-prev.c: New file.
19506         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19507
19508         New module 'u32-grapheme-prev'.
19509         * modules/unigbrk/u32-grapheme-prev: New file.
19510         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19511         * lib/unigbrk.in.h: Add prototype for new function.
19512         * lib/unigbrk/u32-grapheme-prev.c: New file.
19513         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19514
19515         New module 'u8-grapheme-breaks'.
19516         * modules/unigbrk/u8-grapheme-breaks: New file.
19517         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19518         * lib/unigbrk.in.h: Add prototype for new function.
19519         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19520         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19521
19522         New module 'u16-grapheme-breaks'.
19523         * modules/unigbrk/u16-grapheme-breaks: New file.
19524         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19525         * lib/unigbrk.in.h: Add prototype for new function.
19526         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19527         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19528
19529         New module 'u32-grapheme-breaks'.
19530         * modules/unigbrk/u32-grapheme-breaks: New file.
19531         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19532         * lib/unigbrk.in.h: Add prototype for new function.
19533         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19534         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19535
19536         New module 'ulc-grapheme-breaks'.
19537         * modules/unigbrk/ulc-grapheme-breaks: New file.
19538         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19539         * m4/locale-ar.m4: New file.
19540         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19541         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19542         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19543
19544 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19545
19546         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19547         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19548         modified how this file was generated before I initially submitted
19549         the module, but failed to regenerate it.  This meant that several
19550         of the level2 entries were wrong.
19551         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19552         Remove the division-by-2 that is folded into the table now that
19553         gbrkprop.h has been regenerated properly.  Now -1 entries are
19554         handled correctly.
19555
19556         New module 'unigbrk/uc-gbrk-prop-tests'.
19557         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19558         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19559         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19560         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19561
19562 2011-01-01  Bruno Haible  <bruno@clisp.org>
19563
19564         Avoid use of hexadecimal escapes.
19565         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19566         instead of hexadecimal escapes.
19567
19568 2011-01-01  Jim Meyering  <meyering@redhat.com>
19569
19570         maint: new rule to update copyright year ranges
19571         * Makefile (update-copyright): New rule.
19572
19573         maint: indent with TABs in Makefile
19574         * Makefile: Expand leading sequences of spaces to TABs
19575
19576         version-etc: update the copyright year it reports
19577         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19578
19579 2010-12-31  Bruno Haible  <bruno@clisp.org>
19580
19581         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19582         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19583         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19584         zero.
19585
19586 2010-12-31  Bruno Haible  <bruno@clisp.org>
19587
19588         pwrite: Work around HP-UX 11.11 bug.
19589         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19590         works and set REPLACE_PWRITE if not.
19591         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19592         function.
19593         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19594
19595 2010-12-31  Bruno Haible  <bruno@clisp.org>
19596
19597         pread: Work around HP-UX 11 bugs.
19598         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19599         and set REPLACE_PREAD if not.
19600         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19601
19602 2010-12-31  Eric Blake  <eblake@redhat.com>
19603
19604         nl_langinfo: fix YESEXPR on Irix 6.5
19605         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19606         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19607         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19608         it.
19609
19610 2010-12-31  Bruno Haible  <bruno@clisp.org>
19611
19612         iconv: Document HP-UX 11 bug.
19613         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19614
19615 2010-12-31  Bruno Haible  <bruno@clisp.org>
19616
19617         ldexpl: Fix link error on HP-UX 11.
19618         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19619         LDEXPL_LIBM, using $ISNANL_LIBM.
19620
19621 2010-12-31  Eric Blake  <eblake@redhat.com>
19622
19623         ftello: avoid compilation failure with SunStudio c89
19624         * lib/ftello.c (ftello): Use lseek, not llseek.
19625
19626         tests: avoid failing coreutils tests on cygwin
19627         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19628         (create_exe_shims_): Return 0 when skipping.
19629
19630 2010-12-31  Bruno Haible  <bruno@clisp.org>
19631
19632         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19633         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19634
19635 2010-12-31  Bruno Haible  <bruno@clisp.org>
19636
19637         waitpid: Fix link error in C++ mode.
19638         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19639
19640 2010-12-31  Bruno Haible  <bruno@clisp.org>
19641
19642         isnan: Use GCC built-ins when possible.
19643         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19644         __builtin_isnan.
19645         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19646         (isnan): Define using GCC built-ins for GCC >= 4.0.
19647
19648 2010-12-31  Bruno Haible  <bruno@clisp.org>
19649
19650         isnand: Fix mistake.
19651         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19652         __builtin_isnand.
19653
19654 2010-12-31  Bruno Haible  <bruno@clisp.org>
19655
19656         open: Avoid C++ error on HP-UX 11.
19657         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19658
19659 2010-12-31  Bruno Haible  <bruno@clisp.org>
19660
19661         time_r: Add missing declarations on HP-UX 11.
19662         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19663         instead of HAVE_LOCALTIME_R.
19664         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19665         HAVE_LOCALTIME_R always.
19666         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19667         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19668         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19669         HAVE_LOCALTIME_R.
19670         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19671         * doc/posix-functions/localtime_r.texi: Likewise.
19672
19673 2010-12-29  Eric Blake  <eblake@redhat.com>
19674
19675         mountlist: tweak previous commit
19676         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19677         Reported by Paul Eggert.
19678
19679         mountlist: fix local drive detection on cygwin
19680         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19681         that works for cygwin.
19682
19683 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         ftoastr, snprintf: ftoastr + snprintf module
19686         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19687         since the snprintf module now should be good enough here.
19688         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19689         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19690         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19691         GNULIB_SNPRINTF only for the test directory, and the latter
19692         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19693         seems to suffice by itself.
19694
19695 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19696
19697         alloca: one step towards thread-safety
19698         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19699         need for a static variable.  All callers changed.  This does not
19700         make the alloca replacement thread-safe, but it's one step.
19701
19702         tests: minor indenting change
19703         * tests/init.sh: Sync from coreutils housekeeping patch
19704         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19705         to keep lines within 80 columns.
19706
19707 2010-12-28  Jim Meyering  <meyering@redhat.com>
19708
19709         regex: don't infloop on persistent failing calloc
19710         * lib/regexec.c (build_trtable): Return failure indication upon
19711         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19712         In glibc, this was fixed for version 2.13:
19713         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19714
19715 2010-12-28  Bruno Haible  <bruno@clisp.org>
19716             Paul Eggert <eggert@cs.ucla.edu>
19717
19718         linkat: Make implementation robust against system behaviour variations.
19719         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19720         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19721         way, and to -2 if it needs a generic runtime test.
19722         * lib/linkat.c (solaris_optimized_link_immediate,
19723         solaris_optimized_link_follow): New functions.
19724         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19725         (check_same_link): Use it.
19726
19727 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19728
19729         New module 'unigbrk/base'.
19730         * modules/unigbrk/base: New file.
19731         * lib/unigbrk.in.h: New file.
19732
19733         New module 'unigbrk/uc-gbrk-prop'.
19734         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19735         * modules/unigbrk/uc-gbrk-prop: New file.
19736         * lib/unigbrk/gbrkprop.h: New file.
19737         * lib/unigbrk/uc-gbrk-prop.c: New file.
19738
19739         New module 'unigbrk/uc-is-grapheme-break'.
19740         * modules/unigbrk/uc-is-grapheme-break: New file.
19741         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19742         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19743         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19744         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19745         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19746
19747         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19748
19749 2010-12-27  Bruno Haible  <bruno@clisp.org>
19750
19751         linkat test: Avoid failure on Solaris 11 2010-11.
19752         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19753
19754 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19755
19756         utimens: work around glibc rounding bug on more platforms
19757         * lib/utimens.c (fdutimens): Work around rounding bug even if
19758         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19759         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19760
19761 2010-12-27  Bruno Haible  <bruno@clisp.org>
19762
19763         select tests: Improve comments.
19764         * tests/test-select.c (do_select): Add comments.
19765
19766 2010-12-27  Bruno Haible  <bruno@clisp.org>
19767
19768         select tests: Safer way of handling timeout.
19769         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19770         at every invocation.
19771
19772 2010-12-27  Bruno Haible  <bruno@clisp.org>
19773
19774         select tests: Use 'bool' where appropriate.
19775         * tests/test-select.c (connect_to_socket): Change argument type to
19776         'bool'.
19777
19778 2010-12-27  Bruno Haible  <bruno@clisp.org>
19779
19780         select tests: Use existing modules.
19781         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19782         (configure.ac): Don't test for unistd.h.
19783         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19784         declared in <unistd.h>.
19785
19786 2010-12-27  Bruno Haible  <bruno@clisp.org>
19787
19788         mbrtowc: Work around a Solaris 7 bug.
19789         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19790         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19791         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19792         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19793         MBRTOWC_NULL_ARG1_BUG.
19794         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19795         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19796         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19797         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19798
19799 2010-12-27  Jim Meyering  <meyering@redhat.com>
19800
19801         read-file.c: tweak syntax
19802         * lib/read-file.c (fread_file): Remove space after "*" in function
19803         definitions.
19804
19805 2010-12-27  Bruno Haible  <bruno@clisp.org>
19806
19807         times test: Avoid gcc warnings on OSF/1.
19808         * tests/test-times.c (main): Cast printf arguments from clock_t to
19809         'long int'.
19810
19811 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19812
19813         utimens: work around glibc rounding bug on older Linux kernels
19814         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19815         on Linux with a glibc whose utimes might not work, then work
19816         around a longstanding glibc bug involving rounding rather than
19817         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19818         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19819
19820 2010-12-26  Bruno Haible  <bruno@clisp.org>
19821
19822         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19823         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19824         _GL_CXXALIAS_SYS.
19825         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19826
19827 2010-12-26  Bruno Haible  <bruno@clisp.org>
19828
19829         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19830         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19831         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19832         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19833         looking for the declaration.
19834         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19835         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19836         problem.
19837         * doc/posix-functions/inet_pton.texi: Likewise.
19838
19839 2010-12-26  Bruno Haible  <bruno@clisp.org>
19840
19841         arpa_inet: Use the common idioms with C++ support.
19842         * lib/arpa_inet.in.h: Include c++defs.h.
19843         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19844         support.
19845         * modules/arpa_inet (Depends-on): Add c++defs.
19846         (Makefile.am): Substitute the contents of c++defs.h.
19847         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19848         * modules/arpa_inet-c++-tests: New file.
19849         * tests/test-arpa_inet-c++.cc: New file.
19850
19851 2010-12-25  Bruno Haible  <bruno@clisp.org>
19852
19853         Fix more C++ link errors on Solaris 8.
19854         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19855         $(LIB_EACCESS).
19856         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19857         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19858         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19859         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19860         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19861
19862 2010-12-25  Bruno Haible  <bruno@clisp.org>
19863
19864         printf-posix: Fix link error when a non-GCC compiler is used.
19865         * lib/stdio.in.h (printf): When not using GCC, override printf
19866         correctly.
19867         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19868
19869 2010-12-25  Bruno Haible  <bruno@clisp.org>
19870
19871         strerror_r-posix: Update doc.
19872         * doc/posix-functions/strerror_r.texi: Update doc about the return
19873         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19874
19875 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19876
19877         utimens: simplify the logic of the previous change
19878         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19879         This should not affect whether the test succeeds or fails.
19880
19881         utimens: configure better on hosts with NFS clock skew
19882         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19883         uses the clock of the local host.  It might use the clock of the
19884         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19885         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19886
19887 2010-12-25  Bruno Haible  <bruno@clisp.org>
19888
19889         ptsname test: Avoid failure on Solaris.
19890         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19891         open a pseudo-terminal; don't use BSD-style ptys.
19892         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19893
19894 2010-12-25  Bruno Haible  <bruno@clisp.org>
19895
19896         ptsname: Avoid ERANGE failure on some systems.
19897         * lib/ptsname.c (buffer): Increase size.
19898
19899 2010-12-25  Bruno Haible  <bruno@clisp.org>
19900
19901         rename, renameat: Avoid test failures at NFS mounted locations.
19902         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19903         so that subsequent mkdir calls succeed.
19904
19905 2010-12-25  Bruno Haible  <bruno@clisp.org>
19906
19907         iswblank: Fix C++ link error on Solaris 8.
19908         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19909         _GL_FUNCDECL_SYS.
19910
19911 2010-12-25  Bruno Haible  <bruno@clisp.org>
19912
19913         unistd: Fix C++ link error on Solaris 8.
19914         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19915
19916 2010-12-25  Bruno Haible  <bruno@clisp.org>
19917
19918         readlink doc: Mention an old glibc bug.
19919         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19920
19921 2010-12-25  Bruno Haible  <bruno@clisp.org>
19922
19923         fcntl-h: Fix for use of C++ on glibc systems.
19924         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19925         also on glibc systems in C++ mode.
19926         Reported by Gary V. Vaughan <gary@gnu.org>.
19927
19928 2010-12-25  Bruno Haible  <bruno@clisp.org>
19929
19930         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19931         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19932
19933 2010-12-25  Bruno Haible  <bruno@clisp.org>
19934
19935         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19936         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19937         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19938         test whether truncl works according to ISO C 99 with IEC 60559.
19939         * m4/truncl-ieee.m4: New file.
19940         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19941         m4/signbit.m4.
19942         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19943
19944 2010-12-25  Bruno Haible  <bruno@clisp.org>
19945
19946         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19947         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19948         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19949         test whether ceill works according to ISO C 99 with IEC 60559.
19950         * m4/ceill-ieee.m4: New file.
19951         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19952         m4/signbit.m4.
19953         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19954
19955 2010-12-25  Bruno Haible  <bruno@clisp.org>
19956
19957         Ensure all prerequisites of <wchar.h> are included.
19958         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19959         before <wchar.h>.
19960         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19961         gl_MBRLEN_NUL_RETVAL): Likewise.
19962         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19963         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19964         AC_FUNC_MBRTOWC): Likewise.
19965         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19966         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19967         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19968         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19969         Likewise.
19970         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19971         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19972         (gl_WCHAR_H): Improve comments.
19973         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19974
19975 2010-12-25  Bruno Haible  <bruno@clisp.org>
19976
19977         strtok_r: Fix C syntax error in autoconf macro.
19978         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19979         characters in test program.
19980
19981 2010-12-24  Bruno Haible  <bruno@clisp.org>
19982
19983         ceil, trunc, round: Fix gcc warnings.
19984         * lib/ceil.c (MIN): Undefine before redefining.
19985         * lib/trunc.c (MIN): Likewise.
19986         * lib/round.c (MIN): Likewise.
19987         Include <math.h> first.
19988
19989 2010-12-24  Bruno Haible  <bruno@clisp.org>
19990
19991         select tests: Avoid failures on OSF/1 5.1.
19992         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19993         failure of closing the last socket; it may fail with ECONNRESET.
19994
19995 2010-12-24  Eric Blake  <eblake@redhat.com>
19996
19997         stdint: avoid HP-UX 10.20 preprocessor bug
19998         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19999         than #if.
20000         * tests/test-floor2.c (main): Likewise.
20001         Reported by Peter O'Gorman.
20002
20003         pipe: make obsoletion transition easier
20004         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
20005         * modules/pipe (Files): Include revived file.
20006         (Include): Drop reference, to mirror getdate's behavior.
20007
20008 2010-12-24  Bruno Haible  <bruno@clisp.org>
20009
20010         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20011         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20012         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20013         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20014
20015 2010-12-24  Bruno Haible  <bruno@clisp.org>
20016
20017         gethostname: Ensure declaration on NonStop Kernel.
20018         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20019         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20020
20021 2010-12-24  Bruno Haible  <bruno@clisp.org>
20022
20023         sys_select: Ensure all necessary types on NonStop Kernel.
20024         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20025         include <sys/time.h>.
20026         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20027         NonStop Kernel.
20028         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20029
20030 2010-12-24  Bruno Haible  <bruno@clisp.org>
20031
20032         sys_select: Remove unneeded include.
20033         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20034         have <sys/select.h>.
20035
20036 2010-12-24  Bruno Haible  <bruno@clisp.org>
20037
20038         gethostname: Provide a fallback for HOST_NAME_MAX.
20039         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20040         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20041         instead.
20042         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20043
20044 2010-12-24  Bruno Haible  <bruno@clisp.org>
20045
20046         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20047         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20048         (SA_RESTART): Likewise.
20049         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20050
20051 2010-12-24  Bruno Haible  <bruno@clisp.org>
20052
20053         signal: Define NSIG.
20054         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20055         * tests/test-signal.c (nsig): New variable.
20056         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20057
20058 2010-12-24  Bruno Haible  <bruno@clisp.org>
20059
20060         rename, renameat: Avoid test failures on OSF/1 5.1.
20061         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20062         alternative error codes.
20063         * tests/test-renameat.c (main): Likewise.
20064
20065 2010-12-24  Bruno Haible  <bruno@clisp.org>
20066
20067         *printf: Detect large precisions bug on Solaris 10/SPARC.
20068         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20069         by Paul Eggert.
20070         * tests/test-snprintf-posix.h (test_function): Add this test code here
20071         too.
20072         * tests/test-sprintf-posix.h (test_function): Likewise.
20073         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20074         * tests/test-vasprintf-posix.c (test_function): Likewise.
20075         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20076         around by gnulib.
20077         * doc/posix-functions/printf.texi: Likewise.
20078         * doc/posix-functions/snprintf.texi: Likewise.
20079         * doc/posix-functions/sprintf.texi: Likewise.
20080         * doc/posix-functions/vfprintf.texi: Likewise.
20081         * doc/posix-functions/vprintf.texi: Likewise.
20082         * doc/posix-functions/vsnprintf.texi: Likewise.
20083         * doc/posix-functions/vsprintf.texi: Likewise.
20084         * doc/posix-functions/dprintf.texi: Undo last commit.
20085         * doc/posix-functions/vdprintf.texi: Likewise.
20086
20087 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20088
20089         tests: port test-fdutimensat.c to Solaris 8
20090         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20091         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20092         On Solaris 8, it fails with errno == ENOSYS, because there is no
20093         futimens (so it can't use the fd), and there is no lutimens (so it
20094         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20095
20096         vsnprintf: make more consistent with snprintf; doc fixes
20097
20098         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20099         the byte count return problem was promoted from the snprintf-posix
20100         to the snprintf module.
20101         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20102         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20103         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20104         * tests/test-snprintf.c (main): Check the byte count returned.
20105         * tests/test-vsnprintf.c (main): Likewise.
20106
20107 2010-12-23  Eric Blake  <eblake@redhat.com>
20108
20109         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20110         * modules/sigpipe (License): Relax license.
20111
20112 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20113
20114         doc: document Solaris printf bug with large float precisions
20115         * doc/posix-functions/dprintf.texi (dprintf):
20116         * doc/posix-functions/fprintf.texi (fprintf):
20117         * doc/posix-functions/printf.texi (printf):
20118         * doc/posix-functions/snprintf.texi (snprintf):
20119         * doc/posix-functions/sprintf.texi (sprintf):
20120         * doc/posix-functions/vdprintf.texi (vdprintf):
20121         * doc/posix-functions/vfprintf.texi (vfprintf):
20122         * doc/posix-functions/vprintf.texi (vprintf):
20123         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20124         * doc/posix-functions/vsprintf.texi (vsprintf):
20125         Mention that these functions mishandle large floating point
20126         precisions on Solaris 10.  The same bug is also present in Solaris
20127         8, and I assume earlier.  This causes "cd gnulib-tests; make
20128         check" to fail on Solaris 8 (and I assume, later) when building
20129         the latest coreutils, in test-vasprintf-posix's call to
20130         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20131         the wide flavors (e.g., wprintf) so this patch just updates the
20132         documentation for the narrow ones.
20133
20134         test-posixtm.c: add two tests
20135         * tests/test-posixtm.c: Add two tests, to highlight the
20136         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20137         around this bug; this is merely to document it.
20138
20139 2010-12-22  Bruno Haible  <bruno@clisp.org>
20140
20141         getlogin_r: Work around portability problem on OSF/1.
20142         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20143         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20144         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20145         test for a truncated result.
20146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20147         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20148         * modules/getlogin_r (Depends-on): Add memchr.
20149         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20150
20151 2010-12-22  Bruno Haible  <bruno@clisp.org>
20152
20153         ptsname: Avoid test failure on OSF/1 5.1.
20154         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20155         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20156         (same_slave): New function.
20157         (main): Use it to compare ptsname's result with the expected file name.
20158
20159 2010-12-22  Bruno Haible  <bruno@clisp.org>
20160
20161         Port extended stdio modules to HP NonStop Kernel.
20162         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20163         macros.
20164         * lib/fbufmode.c: Update comments.
20165         * lib/fflush.c: Likewise.
20166         * lib/fpurge.c: Likewise.
20167         * lib/freadable.c: Likewise.
20168         * lib/freadahead.c: Likewise.
20169         * lib/freading.c: Likewise.
20170         * lib/freadptr.c: Likewise.
20171         * lib/freadseek.c: Likewise.
20172         * lib/fseeko.c: Likewise.
20173         * lib/fseterr.c: Likewise.
20174         * lib/fwritable.c: Likewise.
20175         * lib/fwriting.c: Likewise.
20176         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20177
20178 2010-12-22  Bruno Haible  <bruno@clisp.org>
20179
20180         ttyname_r: Work around bug on OSF/1 5.1.
20181         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20182         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20183         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20184         present.
20185         * lib/ttyname_r.c (ttyname_r): Update comments.
20186
20187 2010-12-22  Bruno Haible  <bruno@clisp.org>
20188
20189         round: Implement result sign according to IEEE 754.
20190         * lib/round.c (MIN, MINUS_ZERO): New macros.
20191         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20192         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20193         * tests/test-round-ieee.c (main): Likewise.
20194         * tests/test-roundl-ieee.c (main): Likewise.
20195
20196         trunc: Implement result sign according to IEEE 754.
20197         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20198         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20199         * tests/test-trunc2.c: Include minus-zero.h.
20200         (MINUS_ZERO): New macro.
20201         (trunc_reference): Keep in sync with lib/trunc.c.
20202         * tests/test-truncf2.c: Include minus-zero.h.
20203         (MINUS_ZERO): New macro.
20204         (truncf_reference): Keep in sync with lib/trunc.c.
20205         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20206         * tests/test-trunc-ieee.c (main): Likewise.
20207         * tests/test-truncl-ieee.c (main): Likewise.
20208
20209         ceil: Implement result sign according to IEEE 754.
20210         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20211         (FUNC): Return -0.0 for -1 < x < 0.
20212         * tests/test-ceil2.c: Include minus-zero.h.
20213         (MINUS_ZERO): New macro.
20214         (ceil_reference): Keep in sync with lib/ceil.c.
20215         * tests/test-ceilf2.c: Include minus-zero.h.
20216         (MINUS_ZERO): New macro.
20217         (ceilf_reference): Keep in sync with lib/ceil.c.
20218         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20219         * tests/test-ceil-ieee.c (main): Likewise.
20220         * tests/test-ceill-ieee.c (main): Likewise.
20221
20222         floor: Implement result sign according to IEEE 754.
20223         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20224         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20225         * tests/test-floorf2.c (floorf_reference): Likewise.
20226         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20227         * tests/test-floor-ieee.c (main): Likewise.
20228         * tests/test-floorl-ieee.c (main): Likewise.
20229
20230 2010-12-22  Bruno Haible  <bruno@clisp.org>
20231
20232         getaddrinfo: Update doc.
20233         * doc/posix-functions/gai_strerror.texi: Return type is also different
20234         on AIX and HP-UX.
20235
20236 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20237
20238         getaddrinfo, inet_ntop: Update doc for Solaris.
20239         * doc/posix-functions/gai_strerror.texi: Return type is also an
20240         issue on Solaris 9 and earlier.
20241         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20242         on Solaris 10 and earlier.
20243
20244 2010-12-21  Bruno Haible  <bruno@clisp.org>
20245
20246         New module 'roundl-ieee'.
20247         * modules/roundl-ieee: New file.
20248         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20249         test whether roundl works according to ISO C 99 with IEC 60559.
20250         * m4/roundl-ieee.m4: New file.
20251         * modules/roundl-ieee-tests: New file.
20252         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20253         * tests/test-roundl.c (main): Remove signbit tests.
20254         * modules/roundl-tests (Depends-on): Remove signbit.
20255         * doc/posix-functions/roundl.texi: Mention the new module.
20256
20257 2010-12-21  Bruno Haible  <bruno@clisp.org>
20258
20259         New module 'truncl-ieee'.
20260         * modules/truncl-ieee: New file.
20261         * modules/truncl-ieee-tests: New file.
20262         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20263         * tests/test-truncl.c (main): Remove signbit tests.
20264         * modules/truncl-tests (Depends-on): Remove signbit.
20265         * doc/posix-functions/truncl.texi: Mention the new module.
20266
20267 2010-12-21  Bruno Haible  <bruno@clisp.org>
20268
20269         New module 'ceill-ieee'.
20270         * modules/ceill-ieee: New file.
20271         * modules/ceill-ieee-tests: New file.
20272         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20273         * tests/test-ceill.c (main): Remove signbit tests.
20274         * modules/ceill-tests (Depends-on): Remove signbit.
20275         * doc/posix-functions/ceill.texi: Mention the new module.
20276
20277 2010-12-21  Bruno Haible  <bruno@clisp.org>
20278
20279         New module 'floorl-ieee'.
20280         * modules/floorl-ieee: New file.
20281         * modules/floorl-ieee-tests: New file.
20282         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20283         * tests/test-floorl.c (main): Remove signbit tests.
20284         * modules/floorl-tests (Depends-on): Remove signbit.
20285         * doc/posix-functions/floorl.texi: Mention the new module.
20286
20287 2010-12-21  Bruno Haible  <bruno@clisp.org>
20288
20289         New module 'round-ieee'.
20290         * modules/round-ieee: New file.
20291         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
20292         whether round works according to ISO C 99 with IEC 60559.
20293         * m4/round-ieee.m4: New file.
20294         * modules/round-ieee-tests: New file.
20295         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20296         * tests/test-round1.c (main): Remove signbit tests.
20297         * modules/round-tests (Depends-on): Remove 'signbit'.
20298         * doc/posix-functions/round.texi: Mention the new module.
20299
20300 2010-12-21  Bruno Haible  <bruno@clisp.org>
20301
20302         New module 'trunc-ieee'.
20303         * modules/trunc-ieee: New file.
20304         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20305         whether trunc works according to ISO C 99 with IEC 60559.
20306         * m4/trunc-ieee.m4: New file.
20307         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20309         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20310         * modules/trunc-ieee-tests: New file.
20311         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20312         * tests/test-trunc1.c (main): Remove signbit tests.
20313         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20314         * doc/posix-functions/trunc.texi: Mention the new module.
20315
20316 2010-12-21  Bruno Haible  <bruno@clisp.org>
20317
20318         New module 'ceil-ieee'.
20319         * modules/ceil-ieee: New file.
20320         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20321         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20322         ISO C 99 with IEC 60559.
20323         * m4/ceil-ieee.m4: New file.
20324         * modules/ceil (Files): Add lib/ceil.c.
20325         (Depends-on): Add 'float'.
20326         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20327         * lib/math.in.h (ceil): New declaration.
20328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20329         REPLACE_CEIL.
20330         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20331         * modules/ceil-ieee-tests: New file.
20332         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20333         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20334         * doc/posix-functions/ceil.texi: Mention the new module.
20335
20336 2010-12-21  Bruno Haible  <bruno@clisp.org>
20337
20338         New module 'floor-ieee'.
20339         * modules/floor-ieee: New file.
20340         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20341         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20342         ISO C 99 with IEC 60559.
20343         * m4/floor-ieee.m4: New file.
20344         * modules/floor (Files): Add lib/floor.c.
20345         (Depends-on): Add 'float'.
20346         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20347         * lib/math.in.h (floor): New declaration.
20348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20349         REPLACE_FLOOR.
20350         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20351         * modules/floor-ieee-tests: New file.
20352         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20353         * tests/test-math-c++.cc: Check the signature of 'floor'.
20354         * doc/posix-functions/floor.texi: Mention the new module.
20355
20356 2010-12-21  Bruno Haible  <bruno@clisp.org>
20357
20358         New module 'roundf-ieee'.
20359         * modules/roundf-ieee: New file.
20360         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20361         test whether roundf works according to ISO C 99 with IEC 60559.
20362         * m4/roundf-ieee.m4: New file.
20363         * modules/roundf-ieee-tests: New file.
20364         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20365         * tests/test-roundf1.c (main): Remove signbit tests.
20366         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20367         * doc/posix-functions/roundf.texi: Mention the new module.
20368
20369 2010-12-21  Bruno Haible  <bruno@clisp.org>
20370
20371         New module 'truncf-ieee'.
20372         * modules/truncf-ieee: New file.
20373         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20374         test whether truncf works according to ISO C 99 with IEC 60559.
20375         * m4/truncf-ieee.m4: New file.
20376         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20378         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20379         * modules/truncf-ieee-tests: New file.
20380         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20381         * tests/test-truncf1.c (main): Remove signbit tests.
20382         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20383         * doc/posix-functions/truncf.texi: Mention the new module.
20384
20385 2010-12-21  Bruno Haible  <bruno@clisp.org>
20386
20387         New module 'ceilf-ieee'.
20388         * modules/ceilf-ieee: New file.
20389         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20390         test whether ceilf works according to ISO C 99 with IEC 60559.
20391         * m4/ceilf-ieee.m4: New file.
20392         * modules/ceilf-ieee-tests: New file.
20393         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20394         * tests/test-ceilf1.c (main): Remove signbit tests.
20395         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20396         * doc/posix-functions/ceilf.texi: Mention the new module.
20397
20398 2010-12-21  Bruno Haible  <bruno@clisp.org>
20399
20400         New module 'floorf-ieee'.
20401         * modules/floorf-ieee: New file.
20402         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20403         test whether floorf works according to ISO C 99 with IEC 60559.
20404         * m4/floorf-ieee.m4: New file.
20405         * modules/floorf-ieee-tests: New file.
20406         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20407         * tests/test-floorf1.c (main): Remove signbit tests.
20408         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20409         * doc/posix-functions/floorf.texi: Mention the new module.
20410
20411 2010-12-21  Bruno Haible  <bruno@clisp.org>
20412
20413         Support for minus zero in autoconf macros.
20414         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20415         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20416         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20417         * tests/minus-zero.h: Update comments.
20418
20419 2010-12-21  Bruno Haible  <bruno@clisp.org>
20420
20421         Tests for module 'ceil'.
20422         * modules/ceil-tests: New file.
20423         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20424         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20425
20426 2010-12-21  Bruno Haible  <bruno@clisp.org>
20427
20428         Tests for module 'floor'.
20429         * modules/floor-tests: New file.
20430         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20431         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20432
20433 2010-12-21  Bruno Haible  <bruno@clisp.org>
20434
20435         math: Fix indentation.
20436         * lib/math.in.h (floorf): Fix indentation.
20437
20438 2010-12-21  Bruno Haible  <bruno@clisp.org>
20439
20440         Fix cross-compilation guesses on Solaris.
20441         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20442         not match "solaris2.10".
20443         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20444         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20445         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20446
20447 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20448
20449         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20450         This fixes a problem observed with the latest coreutils snapshot
20451         that caused a test to fail on Solaris 8.  src/csplit.c's call
20452         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20453         earlier, instead of returning the number of bytes that would have
20454         been generated; this causes csplit to incorrectly report memory
20455         exhaustion.
20456         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20457         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20458         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20459         comments to match.
20460         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20461         Fix typo in matching older versions of Solaris: "solaris2.10"
20462         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20463         only for guessing while cross-compiling.
20464         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20465
20466 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20467
20468         ftoastr: fix comment again
20469         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20471         Also, simplify example a bit by using flags = 0.
20472
20473 2010-12-20  Bruno Haible  <bruno@clisp.org>
20474
20475         round*, trunc*: Update documentation regarding glibc.
20476         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20477         * doc/posix-functions/round.texi: Likewise.
20478         * doc/posix-functions/roundl.texi: Likewise.
20479         * doc/posix-functions/truncf.texi: Likewise.
20480         * doc/posix-functions/trunc.texi: Likewise.
20481         * doc/posix-functions/truncl.texi: Likewise.
20482
20483 2010-12-20  Bruno Haible  <bruno@clisp.org>
20484
20485         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20486         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20487         * doc/posix-functions/round.texi: Likewise.
20488         * doc/posix-functions/roundl.texi: Likewise.
20489
20490 2010-12-20  Bruno Haible  <bruno@clisp.org>
20491
20492         ttyname_r: Add missing declaration on HP-UX 11.
20493         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20494         HAVE_TTYNAME_R.
20495         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20496         declared. Set HAVE_TTYNAME_R always.
20497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20498         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20499         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20500         HAVE_TTYNAME_R.
20501         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20502
20503 2010-12-20  Bruno Haible  <bruno@clisp.org>
20504
20505         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20506         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20507         * doc/posix-functions/getlogin_r.texi: Likewise.
20508         * tests/test-getlogin.c: Include <errno.h>.
20509         (main): Avoid test failure on HP-UX 11.11.
20510         * tests/test-getlogin_r.c (main): Likewise.
20511
20512 2010-12-20  Bruno Haible  <bruno@clisp.org>
20513
20514         getlogin_r: Add missing declaration on HP-UX 11.
20515         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20516         declared also when it exists as a function.
20517         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20518
20519 2010-12-20  Bruno Haible  <bruno@clisp.org>
20520
20521         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20522         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20523         through wcrtomb.
20524
20525 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20526
20527         ftoastr: fix comment
20528         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20529         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20530
20531 2010-12-19  Bruno Haible  <bruno@clisp.org>
20532
20533         isnan: Ensure it is a macro.
20534         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20535         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20536         Solaris.
20537
20538 2010-12-19  Bruno Haible  <bruno@clisp.org>
20539
20540         ldexpl test: Fix link error on OSF/1 5.1.
20541         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20542
20543 2010-12-19  Bruno Haible  <bruno@clisp.org>
20544
20545         wctype: Make it work in C++ mode on OSF/1 5.1.
20546         * lib/wctype.in.h (iswblank): Declare but not define here.
20547         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20548         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20549         * modules/wctype (Files): Add lib/iswblank.c.
20550
20551 2010-12-19  Bruno Haible  <bruno@clisp.org>
20552
20553         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20554         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20555         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20556
20557 2010-12-19  Bruno Haible  <bruno@clisp.org>
20558
20559         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20560         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20561         _POSIX_PII_SOCKET.
20562         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20563         * doc/posix-functions/recvfrom.texi: Likewise.
20564         * doc/posix-functions/send.texi: Likewise.
20565         * doc/posix-functions/sendto.texi: Likewise.
20566
20567 2010-12-19  Bruno Haible  <bruno@clisp.org>
20568
20569         tcgetsid: Add missing declaration on OSF/1 5.1.
20570         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20571         HAVE_TCGETSID.
20572         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20573         Don't set HAVE_TCGETSID.
20574         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20575         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20576         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20577         HAVE_TCGETSID.
20578         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20579
20580 2010-12-19  Bruno Haible  <bruno@clisp.org>
20581
20582         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20583         * lib/stdio.in.h: During the include_next statement, let recursive
20584         includes of this file include only the system header file.
20585
20586 2010-12-19  Bruno Haible  <bruno@clisp.org>
20587
20588         iconv_open: Fix regression from 2010-12-04.
20589         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20590         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20591
20592 2010-12-19  Bruno Haible  <bruno@clisp.org>
20593
20594         stdbool test: Avoid a gcc warning.
20595         * tests/test-stdbool.c (main): Fail if e1 is false.
20596         Reported by Jim Meyering.
20597
20598 2010-12-19  Jim Meyering  <meyering@redhat.com>
20599
20600         setenv: restore to working order
20601         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20602         mistakenly removed.
20603         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20604         HAVE_SETENV.
20605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20606         HAVE_SETENV.
20607
20608 2010-12-19  Bruno Haible  <bruno@clisp.org>
20609
20610         Document some different function declarations on OSF/1 5.1.
20611         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20612         * doc/posix-functions/inet_ntop.texi: Likewise.
20613         * doc/posix-functions/gethostname.texi: Likewise.
20614         * lib/unistd.in.h (gethostname): Update comment.
20615
20616 2010-12-19  Bruno Haible  <bruno@clisp.org>
20617
20618         doc: Mention vasprintf-posix module.
20619         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20620         the 'vasprintf-posix' module.
20621         * doc/glibc-functions/vasprintf.texi: Likewise.
20622
20623 2010-12-19  Bruno Haible  <bruno@clisp.org>
20624
20625         unsetenv: Add missing declaration on OSF/1 5.1.
20626         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20627         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20628         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20630         not HAVE_UNSETENV.
20631         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20632         HAVE_UNSETENV.
20633         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20634
20635 2010-12-19  Bruno Haible  <bruno@clisp.org>
20636
20637         setenv: Add missing declaration on OSF/1 5.1.
20638         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20640         declared. Don't set HAVE_SETENV.
20641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20642         not HAVE_SETENV.
20643         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20644         HAVE_SETENV.
20645         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20646
20647 2010-12-19  Bruno Haible  <bruno@clisp.org>
20648
20649         nl_langinfo tests: Avoid gcc warning.
20650         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20651
20652 2010-12-19  Bruno Haible  <bruno@clisp.org>
20653
20654         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20655         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20656         _GL_CXXALIAS_SYS.
20657
20658 2010-12-19  Bruno Haible  <bruno@clisp.org>
20659
20660         stdbool: Relax test.
20661         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20662         address to 'bool' work in static initializer, for compilers other than
20663         GCC.
20664
20665 2010-12-19  Bruno Haible  <bruno@clisp.org>
20666
20667         ftello: Add missing declaration on OSF/1 5.1.
20668         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20669         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20671         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20672         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20673
20674 2010-12-19  Bruno Haible  <bruno@clisp.org>
20675
20676         fseeko: Add missing declaration on OSF/1 5.1.
20677         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20678         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20680         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20681         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20682
20683 2010-12-19  Bruno Haible  <bruno@clisp.org>
20684
20685         fchdir: Add missing declaration on OSF/1 5.1.
20686         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20689         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20690         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20691
20692 2010-12-19  Bruno Haible  <bruno@clisp.org>
20693
20694         relocatable-prog-wrapper: Separate from relocatable-prog.
20695         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20696         uninstall-relocwrapper rule here.
20697         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20698         Reported by Ian Beckwith <ianb@erislabs.net>.
20699
20700 2010-12-19  Bruno Haible  <bruno@clisp.org>
20701
20702         unistr/u8-mbsnlen: Add missing dependency.
20703         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20704         Reported by Ian Beckwith <ianb@erislabs.net>.
20705
20706 2010-12-19  Bruno Haible  <bruno@clisp.org>
20707
20708         iconv: Make it possible again to use this module without 'iconv-h'.
20709         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20710         if it is not defined.
20711         Reported by Ian Beckwith <ianb@erislabs.net>.
20712
20713 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         acl: port to Solaris 8 when copying from tmpfs to ufs
20716         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20717         error number.  Problem observed on Solaris 8 with latest
20718         coreutils, with "mv A B", where A is on a tmpfs file system and B
20719         is on a ufs file system.  This caused coreutils' mv/part-symlink
20720         test to fail.
20721
20722         tests: set fail=0 at start
20723         * tests/init.sh (setup_): Move fail=0 initialization here ...
20724         (mktempd_): ... from here, so that tests can rely on fail being
20725         set to 0 initially.  This fixes a problem in coreutils; see:
20726         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20727
20728 2010-12-18  Bruno Haible  <bruno@clisp.org>
20729
20730         memmem-simple: Stylistic changes.
20731         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20732         Fix preprocessor directive indentation.
20733
20734 2010-12-15  Pádraig Brady <P@draigBrady.com>
20735
20736         memmem, memmem-simple: reorganize and expand empty needle check
20737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20738         functional checks to memmem-simple so that one has a fully functional
20739         memmem by using just this module.
20740         Restrict the performance only check to the memmem module.
20741         Also expand the empty needle check to ensure the correct
20742         pointer is returned, not just a non NULL pointer.
20743         * doc/glibc-functions/memmem.texi: Rearrange the portability
20744         documentation to correlate with the rearranged checks.
20745         Clarify exactly how the memmem and memmem-simple modules
20746         relate to each other.
20747
20748 2010-12-15  Pádraig Brady <P@draigBrady.com>
20749             Bruno Haible  <bruno@clisp.org>
20750
20751         Improve cross-compilation guesses for uClibc.
20752         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20753         that uClibc does not have the glibc bug.
20754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20755         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20756
20757 2010-12-14  Eric Blake  <eblake@redhat.com>
20758
20759         configmake: provide fallbacks for oldest supported autotools
20760         * m4/configmake.m4: New file.
20761         * modules/configmake (Files): Ship it.
20762         (configure.ac): Use it to guarantee fallbacks.
20763
20764 2010-12-13  Pádraig Brady <P@draigBrady.com>
20765
20766         read-file: Improve handling of large files
20767         * lib/read-file.c (fread_file): Minimize realloc()s
20768         for regular files, and better manage sizes around SIZE_MAX.
20769
20770 2010-12-13  Eric Blake  <eblake@redhat.com>
20771
20772         cloexec, fcntl: relax license
20773         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20774         consent from all contributors.
20775         * modules/fcntl (License): Likewise.
20776
20777 2010-12-10  Bruno Haible  <bruno@clisp.org>
20778
20779         Tests for module 'pipe-posix'.
20780         * modules/pipe-posix-tests: New file.
20781         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20782
20783 2010-12-10  Bruno Haible  <bruno@clisp.org>
20784
20785         pipe-posix: Make it work in C++ mode.
20786         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20787         (pipe): Use common idiom, not a macro definition.
20788         * lib/pipe.c: New file.
20789         * m4/pipe.m4: New file.
20790         * modules/pipe-posix (Description): Enhance.
20791         (Files): Add lib/pipe.c, m4/pipe.m4.
20792         (configure.ac): Invoke gl_FUNC_PIPE.
20793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20794         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20795         * tests/test-unistd-c++.cc: Check the signature of pipe.
20796
20797 2010-12-10  Bruno Haible  <bruno@clisp.org>
20798
20799         Rename module 'pipe' to 'spawn-pipe'.
20800         * modules/spawn-pipe: New file, renamed from modules/pipe.
20801         (Files, configure.ac, Makefile.am): Update.
20802         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20803         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20804         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20805         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20806         "spawn-pipe.h" instead of "pipe.h".
20807         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20808         to gl_SPAWN_PIPE.
20809         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20810         (Files, Makefile.am): Update.
20811         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20812         Update.
20813         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20814         Include "spawn-pipe.h" instead of "pipe.h".
20815         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20816         * lib/javacomp.c: Likewise.
20817         * lib/javaversion.c: Likewise.
20818         * lib/pipe-filter-gi.c: Likewise.
20819         * lib/pipe-filter-ii.c: Likewise.
20820         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20821         * modules/javacomp (Depends-on): Likewise.
20822         * modules/javaversion (Depends-on): Likewise.
20823         * modules/pipe-filter-gi (Depends-on): Likewise.
20824         * modules/pipe-filter-ii (Depends-on): Likewise.
20825         * MODULES.html.sh (Executing programs): Update.
20826         * NEWS: Mention the change.
20827
20828 2010-12-10  Eric Blake  <eblake@redhat.com>
20829
20830         pipe-posix: new module
20831         * modules/pipe-posix: New file.
20832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20833         (gl_UNISTD_H): Check for declaration.
20834         * modules/unistd (Makefile.am): Substitute it.
20835         * lib/unistd.in.h (pipe): Provide it for mingw.
20836         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20837         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20838
20839 2010-12-07  Bruno Haible  <bruno@clisp.org>
20840
20841         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20842         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20843         u8_strcmp_gnu.
20844         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20845
20846 2010-12-06  Bruno Haible  <bruno@clisp.org>
20847
20848         Update internal documentation.
20849         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20850
20851 2010-12-04  Bruno Haible  <bruno@clisp.org>
20852
20853         Put more information about failed tests into the test return codes.
20854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20855         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20856         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20857         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20858         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20859         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20860         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20861         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20862         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20864         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20865         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20866         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20867         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20869         returns a bit mask.
20870         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20871         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20872         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20873         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20874         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20875         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20876         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20878         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20879         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20880         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20881         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20882         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20884         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20885         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20886         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20887         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20888         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20889         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20890         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20891         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20893         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20894         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20895         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20896         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20897         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20898         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20899         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20900         gl_PRINTF_PRECISION): Likewise.
20901         * m4/regex.m4 (gl_REGEX): Likewise.
20902         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20903         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20905         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20908         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20909         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20910         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20911         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20912         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20913         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20914         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20915         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20916         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20917         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20918         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20921         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20922         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20923         enumerated value.
20924         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20925
20926 2010-12-04  Bruno Haible  <bruno@clisp.org>
20927
20928         Update for Solaris 11 2010-11.
20929         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20930         Express, released in November 2010.
20931
20932 2010-12-04  Bruno Haible  <bruno@clisp.org>
20933
20934         nproc: Relax license.
20935         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20936         and Paul Eggert.
20937         Requested by Ludovic Courtès <ludo@gnu.org>.
20938
20939 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         utimecmp: fine-grained src to nearby coarse-grained dest
20942
20943         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20944         and the source is on a file system with higher-resolution time
20945         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20946         not work, and the time stamps are close together, the algorithm to
20947         determine the exact resolution from the read-back mtime was buggy:
20948         it had a "!=" where it should have had an "==".  This bug has been
20949         in the code ever since it was introduced to gnulib.
20950         Problem reported by Dan Jacobson in
20951         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20952
20953 2010-11-30  Bruno Haible  <bruno@clisp.org>
20954
20955         strerror_r-posix: Fix autoconf test.
20956         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20957
20958 2010-11-28  Bruno Haible  <bruno@clisp.org>
20959             Paul Eggert  <eggert@cs.ucla.edu>
20960
20961         Tests for module 'getdomainname'.
20962         * modules/getdomainname-tests: New file.
20963         * tests/test-getdomainname.c: New file, based on
20964         tests/test-gethostname.c.
20965
20966 2010-11-28  Bruno Haible  <bruno@clisp.org>
20967             Paul Eggert  <eggert@cs.ucla.edu>
20968
20969         getdomainname: Use the system function when possible.
20970         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20971         (getdomainname): Replace if needed. Provide the declaration if it is
20972         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20973         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20974         (getdomainname): When the system has getdomainname, call the system
20975         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20976         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20977         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20978         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20979         the function if its second argument is of type 'int' or if it is found
20980         in libnsl.
20981         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20982         <sys/systeminfo.h> and sysinfo().
20983         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20985         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20986         HAVE_GETDOMAINNAME.
20987         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20988         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20989         * doc/glibc-functions/getdomainname.texi: Document the problems with
20990         the getdomainname declaration.
20991
20992 2010-11-28  Bruno Haible  <bruno@clisp.org>
20993
20994         sys_socket: Ensure ss_family field on AIX.
20995         * lib/sys_socket.in.h (ss_family): New macro definition.
20996         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20997         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20998         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20999         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21000         * modules/sys_socket (Makefile.am): Substitute
21001         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21002         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
21003
21004 2010-11-27  Bruno Haible  <bruno@clisp.org>
21005
21006         readline: Improve configure output.
21007         * m4/readline.m4 (gl_FUNC_READLINE): Make the
21008         "checking for readline..." result understandable.
21009
21010 2010-11-27  Bruno Haible  <bruno@clisp.org>
21011
21012         *printf-posix: Detect a bug on Solaris 10/x86.
21013         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21014         for floating-point output.
21015         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21016         directive.
21017         * tests/test-snprintf-posix.h (test_function): Likewise.
21018         * tests/test-sprintf-posix.h (test_function): Likewise.
21019         * tests/test-vasprintf-posix.c (test_function): Likewise.
21020         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21021         * doc/posix-functions/printf.texi: Likewise.
21022         * doc/posix-functions/snprintf.texi: Likewise.
21023         * doc/posix-functions/sprintf.texi: Likewise.
21024         * doc/posix-functions/vfprintf.texi: Likewise.
21025         * doc/posix-functions/vprintf.texi: Likewise.
21026         * doc/posix-functions/vsnprintf.texi: Likewise.
21027         * doc/posix-functions/vsprintf.texi: Likewise.
21028         * doc/glibc-functions/obstack_printf.texi: Likewise.
21029         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21030
21031 2010-11-27  Bruno Haible  <bruno@clisp.org>
21032
21033         Fix link error when module libunistring-optional is in use.
21034         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21035         * modules/striconveha-tests (Makefile.am): Likewise.
21036
21037 2010-11-27  Bruno Haible  <bruno@clisp.org>
21038
21039         regex: Mention link dependencies.
21040         * modules/regex (Link): New section.
21041         * modules/rpmatch (Link): Likewise.
21042         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21043
21044 2010-11-27  Bruno Haible  <bruno@clisp.org>
21045
21046         ftoastr: Fix compilation error on Solaris.
21047         * lib/ftoastr.c: Include <config.h>.
21048
21049 2010-11-27  Bruno Haible  <bruno@clisp.org>
21050
21051         getloadavg: Update documentation.
21052         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21053
21054 2010-11-27  Bruno Haible  <bruno@clisp.org>
21055
21056         sys_socket: Fix test whether the functions are declared.
21057         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21058         not <sys/select.h>.
21059
21060 2010-11-27  Bruno Haible  <bruno@clisp.org>
21061
21062         getpass: Make sure to get system declaration on some platforms.
21063         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21064         gl_USE_SYSTEM_EXTENSIONS.
21065         * modules/getpass (Depends-on): Add extensions.
21066
21067 2010-11-26  Bruno Haible  <bruno@clisp.org>
21068
21069         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21070         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21071         'iconv' module is present.
21072         (ICONV_CONST): New macro.
21073         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21074         ICONV_CONST.
21075         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21076         set ICONV_CONST.
21077         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21078         here.
21079         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21080         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21081         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21082         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21083         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21084         present.
21085
21086 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21087
21088         ftoastr: comment fix
21089         * lib/ftoastr.c: "little" -> "little or no" in comment
21090
21091 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21092
21093         stdint: port to GCC 4.3 + OSX + Octave
21094         On this platform, stdint.h is buggy and defines int64_t to long
21095         long int.  The replacement defined it to long int, causing
21096         problems with C++ style name mangling.  Instead, trust the system
21097         definition if INT64_MAX is defined, and likewise for the unsigned
21098         variant.   Problem reported by Jarno Rajahalme in
21099         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21100         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21101         and don't mess with int64_t and INT64_MAX in this case.
21102         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21103
21104 2010-11-24  Bruno Haible  <bruno@clisp.org>
21105
21106         doc: Corrections regarding MacOS X 10.4 and 10.5.
21107         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21108         MacOS X.
21109         Reported by Simon Josefsson.
21110
21111 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21112
21113         Uninstall ".bin" files installed by relocwrapper.
21114         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21115         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21116         unless it is already there.
21117
21118 2010-11-21  Bruno Haible  <bruno@clisp.org>
21119
21120         Update for NetBSD 5.0.
21121         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21122         NetBSD; the test fails on NetBSD 5.0.
21123         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21124         about NetBSD.
21125
21126 2010-11-21  Bruno Haible  <bruno@clisp.org>
21127
21128         Update for HP-UX 11.23 and HP-UX 11.31.
21129         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21130         HP-UX.
21131
21132 2010-11-21  Bruno Haible  <bruno@clisp.org>
21133
21134         Update for MacOS X 10.5.
21135         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21136         MacOS X; the test fails on MacOS X 10.5.8.
21137         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21138         about MacOS X.
21139
21140 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21141
21142         bootstrap: add bootstrap_sync option.
21143         See discussion at
21144         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21146         * build-aux/bootstrap: Accept --bootstrap-sync to update
21147         bootstrap if it is not identical to the local gnulib's
21148         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21149         enable this by default.  Accept --no-bootstrap-sync to disable
21150         it.
21151
21152 2010-11-20  Bruno Haible  <bruno@clisp.org>
21153
21154         Ensure that <features.h> is included before __GLIBC__ is tested.
21155         * lib/printf-parse.h: Include <features.h>.
21156         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21157         Reported by Mike Frysinger <vapier@gentoo.org>.
21158
21159         Ensure that <features.h> is included before __GLIBC__ is tested.
21160         * lib/wchar.in.h: Include <features.h>.
21161         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21162         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21163         Reported by Mike Frysinger <vapier@gentoo.org>.
21164
21165         Ensure that <features.h> is included before __GLIBC__ is tested.
21166         * lib/arpa_inet.in.h: Include <features.h>.
21167         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21168         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21169         Reported by Mike Frysinger <vapier@gentoo.org>.
21170
21171         Ensure that <features.h> is included before __GLIBC__ is tested.
21172         * build-aux/link-warning.h: Include <features.h>.
21173         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21174         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21175         Reported by Mike Frysinger <vapier@gentoo.org>.
21176
21177         Ensure that <features.h> is included before __GLIBC__ is tested.
21178         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21179         Reported by Mike Frysinger <vapier@gentoo.org>.
21180
21181 2010-11-20  Bruno Haible  <bruno@clisp.org>
21182
21183         memmem: Fix autoconf test.
21184         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21185
21186 2010-11-20  Bruno Haible  <bruno@clisp.org>
21187
21188         Port to uClibc.
21189         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21190         * lib/fcntl.in.h: Likewise.
21191         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21192         * lib/mbrtowc.c (mbrtowc): Likewise.
21193         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21194         * lib/strerror_r.c: Likewise.
21195         * lib/unistr/u8-strnlen.c: Likewise.
21196         * lib/vasnprintf.c (decimal_point_char): Likewise.
21197         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21198         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21199         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21200         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21201         * tests/test-sigaction.c (handler, main): Likewise.
21202         * lib/freading.h: Treat uClibc like a non-glibc platform.
21203         * lib/freading.c: Likewise.
21204         * lib/gettext.h: Likewise.
21205         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21206         Likewise.
21207         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21208         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21209         * lib/propername.c (proper_name_utf8): Likewise.
21210         * lib/spawn.in.h: Likewise.
21211         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21212         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21213         mem_cd_iconveh_internal): Likewise.
21214         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21215         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21216         strstr, strcasestr): Likewise.
21217         * lib/unicodeio.c (unicode_to_mb): Likewise.
21218         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21219         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21220         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21221         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21222         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21223         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21224         * lib/unistr/u8-stpncpy.c: Likewise.
21225         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21226         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21227         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21228         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21229         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21230         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21231         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21234         Likewise.
21235         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21236         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21237         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21240         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21241         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21242         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21243         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21244         * tests/test-striconveha.c (main): Likewise.
21245         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21246         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21247         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21248         * doc/posix-functions/getline.texi: Likewise.
21249         Reported by Mike Frysinger <vapier@gentoo.org>.
21250
21251 2010-11-20  Bruno Haible  <bruno@clisp.org>
21252
21253         nproc: Fix condition.
21254         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21255         HAVE_PTHREAD_AFFINITY_NP.
21256
21257 2010-11-20  Bruno Haible  <bruno@clisp.org>
21258
21259         Fix a comment.
21260         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21261
21262 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21263
21264         ftoastr: don't assume snprintf
21265         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21266         Implement a subset of snprintf here, by using sprintf safely.
21267         * modules/ftoastr (Depends-on): Remove snprintf.
21268
21269 2010-11-19  Jim Meyering  <meyering@redhat.com>
21270
21271         test-rename.h: fix compilation failure
21272         * tests/test-rename.h (test_rename): Add omitted "}".
21273
21274 2010-11-17  Jim Meyering  <meyering@redhat.com>
21275
21276         maint.mk: add a URL discussing the no-@acronym policy
21277         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21278
21279 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21280
21281         ftoastr: depend on snprintf, improve comments
21282         * lib/ftoastr.c: Also mention Loitsch's draft.
21283         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21284         needed in the current implementation, but it might simplify
21285         speeding up the code later.
21286         * modules/ftoastr: Depend on snprintf; this improves portability.
21287         Suggested by Bruno Haible in the same email.
21288
21289         ftoastr: port to hosts lacking strtof and strtold
21290         Problem reported by Bruno Haible in
21291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
21292         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
21293         environment and strtold (and presumably strtof) are not available.
21294         * modules/ftoastr (Files): Add m4/c-strtod.m4.
21295         (configure.ac): Require gl_C99_STRTOLD.
21296
21297 2010-11-18  Bruno Haible  <bruno@clisp.org>
21298
21299         c-strtold: Avoid link error on AIX 7.
21300         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21301         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21302         (gl_C_STRTOLD): Test whether strtold_l exists.
21303         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21304
21305 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21306
21307         intprops: new macro INT_BITS_STRLEN_BOUND
21308         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21309         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21310         not exposed.  Also, it uses a slightly tighter bound than before;
21311         though this makes no practical difference, we might as well be as
21312         tight as we easily can.
21313
21314         ftoastr: new module, for lossless conversion of floats to short strings
21315         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21316         * modules/ftoastr: New files.
21317
21318 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21319
21320         bootstrap: port to Solaris sed
21321         * build-aux/bootstrap (get_version): Port to Solaris sed.
21322         See Ralf Wildenhues's note in
21323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21324
21325 2010-11-14  Jim Meyering  <meyering@redhat.com>
21326
21327         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21328         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21329         and move definition closer to sole use.
21330
21331 2010-11-13  Jim Meyering  <meyering@redhat.com>
21332
21333         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21334         Now we require at least autoconf-2.59, which means the work-around
21335         is no longer needed.
21336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21337         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21338         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21339         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21340         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21341
21342 2010-11-13  Bruno Haible  <bruno@clisp.org>
21343
21344         rename, renameat: Avoid test failures at NFS mounted locations.
21345         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21346         functions.
21347         (test_rename): Use assert_nonexistent.
21348         * tests/test-rename.c: Include <dirent.h>.
21349         * tests/test-renameat.c: Likewise.
21350         Reported by Gary V. Vaughan <gary@gnu.org>.
21351
21352         rename, renameat: Document Linux bug with NFS
21353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21354         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21355         * doc/posix-functions/renameat.texi: Likewise.
21356         Suggested by Eric Blake.
21357
21358 2010-11-13  Bruno Haible  <bruno@clisp.org>
21359
21360         rename test: Add comments.
21361         * tests/test-rename.h (test_rename): Add structure and comments.
21362
21363 2010-11-13  Eric Blake  <eblake@redhat.com>
21364
21365         maintainer-makefile: cover a few more files
21366         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21367         scripts generated within C files, for libvirt.
21368
21369 2010-11-13  Bruno Haible  <bruno@clisp.org>
21370
21371         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21372         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21373         character, return the number of bytes that belong together, not always
21374         1.
21375         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21376         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21377         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21378         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21379         number of bytes of an invalid character.
21380         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21381         (main): Invoke it.
21382         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21383         results.
21384         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21385         malformed byte sequences.
21386         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21387         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21388         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21389         Reported by Ben Pfaff and Paolo Bonzini.
21390
21391 2010-11-13  Bruno Haible  <bruno@clisp.org>
21392
21393         openat: Work around glibc bug with fchownat() and empty file names.
21394         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21395         (gl_FUNC_FCHOWNAT): Invoke it.
21396         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21397         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21398         Reported by Gary V. Vaughan <gary@gnu.org>.
21399
21400 2010-11-13  Bruno Haible  <bruno@clisp.org>
21401
21402         openat: Ensure autoconf macro ordering.
21403         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21404         gl_USE_SYSTEM_EXTENSIONS.
21405         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21406
21407 2010-11-13  Bruno Haible  <bruno@clisp.org>
21408
21409         Update comments.
21410         * lib/unistr/u8-check.c: Update file name in comments.
21411         * lib/unistr/u8-mblen.c: Likewise.
21412         * lib/unistr/u8-prev.c: Likewise.
21413         * lib/unistr/u8-strmblen.c: Likewise.
21414         * lib/unistr/u8-strmbtouc.c: Likewise.
21415
21416 2010-11-13  Jim Meyering  <meyering@redhat.com>
21417
21418         tests: avoid test failure on Solaris 10 due to lack of PATH export
21419         * tests/test-update-copyright.sh: Don't forget to export PATH.
21420
21421         init.sh: ensure that IFS is defined, just in case...
21422         * tests/init.sh (setup_): Ensure that IFS is defined,
21423         so that saving and restoring it works as expected.  This
21424         appears to be useful at least for an old version of dash
21425         from a long time ago (RH 6).  See here for details:
21426         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21427
21428         maint.mk: tighten "test a == b" check
21429         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21430         test to files that contain something like #!/bin/sh.
21431         Without this, coreutils would get two false positives in
21432         the comments of C source files.
21433
21434 2010-11-12  Eric Blake  <eblake@redhat.com>
21435
21436         bootstrap: fix typo in previous attempt
21437         * build-aux/bootstrap (buildreq): Correct the grouping.
21438         Reported by Paul Eggert.
21439
21440         maintainer-makefile: prohibit test x == x
21441         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21442         Based on a report by Matthias Bolte.
21443
21444         bootstrap: allow FreeBSD gzip
21445         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21446         which has no '.' and goes to stderr.
21447         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21448         Reported by Matthias Bolte.
21449
21450         maintainer-makefile: check for i18n setup
21451         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21452         will likely work.
21453
21454 2010-11-12  Bruno Haible  <bruno@clisp.org>
21455
21456         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21457         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21458         * lib/nanosleep.c (nanosleep): Likewise.
21459
21460 2010-11-11  Bruno Haible  <bruno@clisp.org>
21461
21462         fcntl-h: Fix for use of C++ on glibc systems.
21463         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21464         also on glibc systems in C++ mode.
21465         Reported by Gary V. Vaughan <gary@gnu.org>.
21466
21467 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21468
21469         mknod: avoid false failure with dash
21470         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21471
21472 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21473
21474         unlink: Fix "is it should" typo in diagnostic.
21475         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21477
21478 2010-11-11  Bruno Haible  <bruno@clisp.org>
21479
21480         Tests for module 'strerror_r-posix'.
21481         * modules/strerror_r-posix-tests: New file.
21482         * tests/test-strerror_r.c: New file.
21483         * tests/test-string-c++.cc: Check the signature of strerror_r.
21484
21485         New module 'strerror_r-posix'.
21486         * lib/string.in.h (strerror_r): New declaration.
21487         * lib/strerror_r.c: New file.
21488         * m4/strerror_r.m4: New file.
21489         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21490         of strerror_r.
21491         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21492         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21493         * modules/strerror_r-posix: New file.
21494         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21495         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21496         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21497         portability problems.
21498
21499 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21500
21501         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21502         line is also considered for output. Quoted function name in shell
21503         command, so temporary files for functions like MyClass::operator()
21504         are removed correctly without errors.
21505
21506 2010-11-09  Bruno Haible  <bruno@clisp.org>
21507
21508         * doc/posix-functions/strerror.texi: List more failing platforms.
21509
21510         * doc/posix-functions/strerror.texi: Add a comment.
21511
21512 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21513
21514         fdopendir: fix bug on MacOS X when low on file descriptors
21515
21516         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21517         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21518         All callers changed.
21519         (fdopendir): Invoke save_cwd at the top level, not after using
21520         multiple dup() calls to use up file descriptors.  Then retry
21521         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21522         less than the maximum number of open file descriptors, because
21523         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21524         on Mac OS X 10.6.4 for tar 1.24
21525         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21526         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21527         and for tar 1.25
21528         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21529
21530 2010-11-07  Bruno Haible  <bruno@clisp.org>
21531
21532         vasnprintf: Support I flag on glibc systems.
21533         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21534         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21535         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21536         snprintf function.
21537         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21538         glibc systems.
21539         * tests/test-vasnprintf-posix3.c: New file.
21540         * modules/vasnprintf-posix-tests (Files): Add it.
21541         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21542
21543 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21544
21545         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21546         * MODULES.html.sh: For compiler warnings, use name
21547         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21548
21549 2010-11-05  Eric Blake  <eblake@redhat.com>
21550
21551         ceil, floor: avoid spurious failure with icc
21552         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21553         [denormals-as-zero] when optimizing without -mieee-fp option.
21554         * tests/test-floorf2.c (floorf_reference): Likewise.
21555         * tests/test-ceilf1.c (dummy): New function.
21556         (main): Use it to outsmart icc's optimization.
21557         * tests/test-floorf1.c (dummy, main): Likewise.
21558
21559         tests: require working signbit
21560         * modules/ceilf-tests (Depends-on): Add signbit.
21561         * modules/ceill-tests (Depends-on): Likewise.
21562         * modules/floorf-tests (Depends-on): Likewise.
21563         * modules/floorl-tests (Depends-on): Likewise.
21564         * modules/round-tests (Depends-on): Likewise.
21565         * modules/roundf-tests (Depends-on): Likewise.
21566         * modules/roundl-tests (Depends-on): Likewise.
21567         * modules/trunc-tests (Depends-on): Likewise.
21568         * modules/truncf-tests (Depends-on): Likewise.
21569         * modules/truncl-tests (Depends-on): Likewise.
21570
21571         strtod: work around icc bug
21572         * lib/strtod.c (minus_zero): Define to working value.
21573         (strtod): Use it to avoid icc bug.
21574
21575         copysign: enhance tests
21576         * modules/copysign-tests (Files): Add minus-zero.h.
21577         * tests/test-copysign.c (main): Also test zeros.
21578
21579 2010-11-04  Eric Blake  <eblake@redhat.com>
21580
21581         ceil, floor, round, trunc: enhance tests of -0
21582         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21583         * tests/test-ceill.c (main): Likewise.
21584         * tests/test-floorf1.c (main): Likewise.
21585         * tests/test-floorl.c (main): Likewise.
21586         * tests/test-round1.c (main): Likewise.
21587         * tests/test-roundf1.c (main): Likewise.
21588         * tests/test-roundl.c (main): Likewise.
21589         * tests/test-trunc1.c (main): Likewise.
21590         * tests/test-truncf1.c (main): Likewise.
21591         * tests/test-truncl.c (main): Likewise.
21592
21593 2010-11-04  Eric Blake  <eblake@redhat.com>
21594
21595         frexp, tests: work around ICC bug with -zero
21596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21597         works with more compilers.
21598         * tests/minus-zero.h: New file.
21599         * modules/ceilf-tests (Files): Include it.
21600         * modules/ceill-tests (Files): Likewise.
21601         * modules/floorf-tests (Files): Likewise.
21602         * modules/floorl-tests (Files): Likewise.
21603         * modules/frexp-nolibm-tests (Files): Likewise.
21604         * modules/frexp-tests (Files): Likewise.
21605         * modules/frexpl-nolibm-tests (Files): Likewise.
21606         * modules/frexpl-tests (Files): Likewise.
21607         * modules/isnan-tests (Files): Likewise.
21608         * modules/isnand-nolibm-tests (Files): Likewise.
21609         * modules/isnand-tests (Files): Likewise.
21610         * modules/isnanf-nolibm-tests (Files): Likewise.
21611         * modules/isnanf-tests (Files): Likewise.
21612         * modules/isnanl-nolibm-tests (Files): Likewise.
21613         * modules/isnanl-tests (Files): Likewise.
21614         * modules/round-tests (Files): Likewise.
21615         * modules/roundf-tests (Files): Likewise.
21616         * modules/roundl-tests (Files): Likewise.
21617         * modules/ldexpl-tests (Files): Likewise.
21618         * modules/signbit-tests (Files): Likewise.
21619         * modules/snprintf-posix-tests (Files): Likewise.
21620         * modules/sprintf-posix-tests (Files): Likewise.
21621         * modules/strtod-tests (Files): Likewise.
21622         * modules/trunc-tests (Files): Likewise.
21623         * modules/truncf-tests (Files): Likewise.
21624         * modules/truncl-tests (Files): Likewise.
21625         * modules/vsnprintf-posix-tests (Files): Likewise.
21626         * modules/vsprintf-posix-tests (Files): Likewise.
21627         * modules/vasnprintf-posix-tests (Files): Likewise.
21628         * modules/vasprintf-posix-tests (Files): Likewise.
21629         * tests/test-ceilf1.c (main): Use it.
21630         * tests/test-ceill.c (main): Likewise.
21631         * tests/test-floorf1.c (main): Likewise.
21632         * tests/test-floorl.c (main): Likewise.
21633         * tests/test-frexp.c (main): Likewise.
21634         * tests/test-frexpl.c (main): Likewise.
21635         * tests/test-isnan.c (main): Likewise.
21636         * tests/test-isnand.h (main): Likewise.
21637         * tests/test-isnanf.h (main): Likewise.
21638         * tests/test-isnanl.h (main): Likewise.
21639         * tests/test-ldexpl.c (main): Likewise.
21640         * tests/test-round.c (main): Likewise.
21641         * tests/test-roundf.c (main): Likewise.
21642         * tests/test-roundl.c (main): Likewise.
21643         * tests/test-signbit.c (test_signbitf, test_signbitd)
21644         (test_signbitl): Likewise.
21645         * tests/test-snprintf-posix.h (test_function): Likewise.
21646         * tests/test-sprintf-posix.h (test_function): Likewise.
21647         * tests/test-strtod.c (main): Likewise.
21648         * tests/test-trunc1.c (main): Likewise.
21649         * tests/test-truncf1.c (main): Likewise.
21650         * tests/test-truncl.c (main): Likewise.
21651
21652         isnanl: work around icc bug
21653         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21654
21655 2010-11-03  Eric Blake  <eblake@redhat.com>
21656
21657         tests: fix compiler warnings
21658         * tests/test-getopt.h (test_getopt): Fix condition.
21659         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21660         * tests/test-pipe2.c (main): Likewise.
21661         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21662
21663         utimens: fix broken m4 test
21664         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21665
21666 2010-10-28  Bruno Haible  <bruno@clisp.org>
21667
21668         posix_spawn*, getdtablesize: Relax license.
21669         * modules/posix_spawn (License): Change to LGPLv2+.
21670         * modules/posix_spawnp (License): Likewise.
21671         * modules/posix_spawn-internal (License): Likewise.
21672         * modules/posix_spawnattr_init (License): Likewise.
21673         * modules/posix_spawnattr_getflags (License): Likewise.
21674         * modules/posix_spawnattr_setflags (License): Likewise.
21675         * modules/posix_spawnattr_getpgroup (License): Likewise.
21676         * modules/posix_spawnattr_setpgroup (License): Likewise.
21677         * modules/posix_spawnattr_getschedparam (License): Likewise.
21678         * modules/posix_spawnattr_setschedparam (License): Likewise.
21679         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21680         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21681         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21682         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21683         * modules/posix_spawnattr_getsigmask (License): Likewise.
21684         * modules/posix_spawnattr_setsigmask (License): Likewise.
21685         * modules/posix_spawnattr_destroy (License): Likewise.
21686         * modules/posix_spawn_file_actions_init (License): Likewise.
21687         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21688         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21689         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21690         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21691         * modules/getdtablesize (License): Likewise.
21692         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21693
21694 2010-10-26  Bruno Haible  <bruno@clisp.org>
21695
21696         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21697         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21698         Cygwin and mingw.
21699         Suggested by Eric Blake.
21700
21701 2010-10-26  Bruno Haible  <bruno@clisp.org>
21702
21703         stdio: Work around compilation error due to renameat() on Solaris 10.
21704         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21705         * lib/renameat.c: Don't include <unistd.h> here.
21706         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21707         Reported by Paul Eggert and Eric Blake.
21708
21709 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21710
21711         renameat: port to Solaris 10, which declares renameat in unistd.h
21712
21713         * lib/renameat.c: Include unistd.h before stdio.h, because
21714         Solaris 10 declares renameat in unistd.h.  Problem encountered
21715         when building GNU tar 1.24 on Solaris 10.
21716
21717 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21718
21719         fdopendir: fix C89 compilation
21720         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21721         compilers.
21722
21723 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21724
21725         inttostr: simplify by removing unnecessary redundancy
21726         * lib/anytostr.c: Don't include verify.h.
21727         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21728         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21729         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21730         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21731         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21732         Likewise.
21733         * modules/inttostr (Depends-on): Remove 'verify'.
21734
21735 2010-10-23  Bruno Haible  <bruno@clisp.org>
21736
21737         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21738         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21739         Reported by Eric Blake.
21740
21741 2010-10-23  Bruno Haible  <bruno@clisp.org>
21742
21743         Tests: Fix LOCALE_JA on MirBSD 10.
21744         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21745         to an UTF-8 locale.
21746         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21747         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21748         Reported by Eric Blake.
21749
21750 2010-10-21  Bruno Haible  <bruno@clisp.org>
21751
21752         nl_langinfo test: Avoid test failure on NetBSD 5.
21753         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21754         Reported by Eric Blake.
21755
21756 2010-10-21  Eric Blake  <eblake@redhat.com>
21757
21758         c-stack: work around libsigsegv 2.8 bug
21759         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21760         overflow on at least PowerPC64.
21761
21762 2010-10-17  Bruno Haible  <bruno@clisp.org>
21763
21764         userspec: Drop redundant file.
21765         * modules/userspec (Files): Remove lib/inttostr.h.
21766
21767 2010-10-17  Bruno Haible  <bruno@clisp.org>
21768
21769         nl_langinfo tests: Silence some warnings.
21770         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21771         Reported by Jim Meyering.
21772
21773 2010-10-17  Bruno Haible  <bruno@clisp.org>
21774
21775         Make use of GCC's attribute __alloc_size__.
21776         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21777         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21778         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21779         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21780         __alloc_size__.
21781         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21782         Suggested by Jim Meyering.
21783
21784 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21785
21786         bootstrap: anchor .gitignore entries.
21787         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21788         with...
21789         (insert_vc_ignore): ... this new function, which prepends `/' to
21790         all .gitignore entries before passing them to
21791         insert_sorted_if_absent.
21792
21793 2010-10-16  Bruno Haible  <bruno@clisp.org>
21794
21795         nextafter: Fix configure check.
21796         * modules/nextafter (configure.ac): Correct expected prototype.
21797
21798 2010-10-16  Bruno Haible  <bruno@clisp.org>
21799
21800         termios: Update documentation.
21801         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21802
21803 2010-10-16  Bruno Haible  <bruno@clisp.org>
21804
21805         tests: Make them compile with TinyCC.
21806         * tests/test-strstr.c (main): Remove parentheses around array
21807         initializer.
21808
21809 2010-10-15  Eric Blake  <eblake@redhat.com>
21810
21811         ignore-value: make header idempotent
21812         * lib/ignore-value.h: Add double-inclusion guards.
21813         Reported by Stefan Berger.
21814
21815 2010-10-15  Jim Meyering  <meyering@redhat.com>
21816
21817         GNUmakefile: handle "stable" target, not "major"
21818         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21819         lists in maint.mk and announce-gen.  Without this, "make stable"
21820         would fail to ensure that $(VERSION) is up to date.
21821
21822 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21823
21824         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21825         & co.
21826
21827 2010-10-14  Bruno Haible  <bruno@clisp.org>
21828
21829         vasnprintf: Don't set errno to 0.
21830         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21831         block that sets it to 0.
21832         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21833
21834 2010-10-14  Bruno Haible  <bruno@clisp.org>
21835
21836         socketlib: Fix.
21837         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21838         gl_PREREQ_SYS_H_WINSOCK2.
21839         Reported by Ian Beckwith <ianb@erislabs.net>.
21840
21841 2010-10-13  Jim Meyering  <meyering@redhat.com>
21842
21843         test-select-stdin.c: avoid warn_unused_result warnings
21844         * tests/test-select-stdin.c: Include "macros.h".
21845         ASSERT that read and fflush succeed.
21846
21847 2010-10-13  Jim Meyering  <meyering@redhat.com>
21848
21849         git-version-gen: do require git-VC'd files in cwd
21850         * build-aux/git-version-gen: Reject a git version string
21851         if there are no commits associated with the current directory.
21852         This avoids an unlikely false-positive (unrelated dir whose parent
21853         repository also contains a tag matching v*), as pointed out
21854         by Giuseppe Scrivano in
21855         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21856
21857 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         argv-iter: omit nonconforming declaration
21860         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21861         enum arg_iter_err declaration, which doesn't conform to C99.
21862         Solaris 10 cc warns about this.
21863
21864 2010-10-13  Eric Blake  <eblake@redhat.com>
21865
21866         termios: fix compilation on mingw
21867         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21868         (gl_TERMIOS_H): Adjust it on mingw.
21869         * modules/termios (Makefile.am): Substitute new key.
21870         * lib/termios.in.h (includes): Make include_next conditional.
21871         * doc/posix-headers/termios.texi (termios.h): Update
21872         documentation.
21873         Reported by Daniel P. Berrange.
21874
21875 2010-10-13  Jim Meyering  <meyering@redhat.com>
21876
21877         git-version-gen: don't require that .git/ be in the current dir
21878         * build-aux/git-version-gen: Adjust this script so that it works
21879         when run from any working directory beneath the top-level .git/-
21880         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21882
21883         test-select: avoid warn_unused_result warnings
21884         * tests/test-select.c: Include "macros.h".
21885         ASSERT that each call to read, write, and pipe succeeds.
21886         While not technically required, also check each "close".
21887         * modules/select-tests (Files): Add tests/macros.h.
21888
21889         test-symlinkat: remove declaration of unused local
21890         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21891
21892         test-inttostr: avoid shadowing warnings
21893         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21894         and use malloc rather than the stack for the same reason as
21895         mentioned in the comment justifying the other allocation.
21896
21897 2010-10-11  Bruno Haible  <bruno@clisp.org>
21898
21899         stdlib: Allow multiple gnulib generated replacements to coexist.
21900         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21901         Reported by Sam Steingold <sds@gnu.org>.
21902
21903 2010-10-11  Jim Meyering  <meyering@redhat.com>
21904
21905         fix a documentation typo
21906         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21907
21908 2010-10-11  Eric Blake  <eblake@redhat.com>
21909
21910         futimens: work around Solaris 11 bug
21911         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21912         * tests/test-futimens.h (test_futimens): Enhance, rather than
21913         weaken test.
21914         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21915
21916 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21917
21918         Indentation.
21919         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21920         higher-level operators more to the left.
21921
21922 2010-10-11  Jim Meyering  <meyering@redhat.com>
21923
21924         test-futimens: avoid unwarranted test failure on Solaris 5.11
21925         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21926         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21927         because it tries to dereference the NULL name argument.
21928
21929 2010-10-11  Bruno Haible  <bruno@clisp.org>
21930
21931         Indentation.
21932         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21933         indentation.
21934
21935 2010-10-11  Jim Meyering  <meyering@redhat.com>
21936
21937         spawn.in.h: make indentation consistent with parentheses
21938         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21939         Make indentation consistent with parentheses.
21940
21941 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21942
21943         Fix mismatched parens in previous commit
21944         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21945         parens.
21946
21947 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21948
21949         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21950
21951         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21952         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21953         * lib/malloca.c: Include "verify.h".
21954         (verify1): Remove, replacing with a verify call.
21955         * lib/relocwrapper.c (verify1): Likewise.
21956         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21957         Likewise.
21958         * modules/malloca (Depends-on): Add 'verify'.
21959         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21960         * modules/vasnprintf (Depends-on): Add 'verify'.
21961         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21962         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21963         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21964         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21965         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21966         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21967         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21968
21969         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21970
21971         Formerly the style was sometimes 2*X - 1, because the C standard
21972         was wrongly thought to disallow ?: in integral constant expressions.
21973         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21974         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21975         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21976         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21977         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21978         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21979         verify that time_t cannot be floating.
21980
21981 2010-10-08  Eric Blake  <eblake@redhat.com>
21982
21983         time: enforce recent POSIX ruling that time_t is integral
21984         * lib/time.in.h (__time_t_must_be_integral): Detect any
21985         problematic systems, allowing the rest of gnulib to assume POSIX.
21986
21987 2010-10-08  Jim Meyering  <meyering@redhat.com>
21988
21989         fdopendir: fix a bug on systems lacking openat and /proc support
21990         OpenBSD 4.7 is one such system.  The most noticeable effect was
21991         failure of any application making nontrivial use of fts: rm, du,
21992         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21993           ./rm: traversal failed: `a': Bad file descriptor
21994         Debugging that, you see that even though FD 6 was closed just
21995         prior to the opendir call in fd_clone_opendir, its resulting
21996         dir->dd_fd was 8, rather than the expected value of 6:
21997
21998         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21999         93                close (fd);
22000         (gdb) n
22001         94                dir = fd_clone_opendir (dupfd);
22002         (gdb) n
22003         95                saved_errno = errno;
22004         (gdb) p dir->dd_fd
22005         $11 = 8
22006
22007         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
22008         The problem is that on OpenBSD, fd_clone_opendir has to resort
22009         to using the old-style save/restore CWD mechanism, due to its
22010         lack of openat/proc support, and *that* would steal the FD (6)
22011         that opendir was supposed to use.
22012
22013         The fix is to squirrel away the desired FD so that save_cwd uses a
22014         different one, and then free the dest FD right before calling opendir.
22015         That guarantees opendir will use the required file descriptor.
22016
22017         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22018
22019 2010-10-08  Bruno Haible  <bruno@clisp.org>
22020
22021         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22022         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22023
22024 2010-10-08  Bruno Haible  <bruno@clisp.org>
22025
22026         nanosleep: Make replacement POSIX compliant.
22027         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22028         is out of range.
22029         Reported by Jim Meyering.
22030
22031 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22032
22033         bootstrap: add hook for altering gnulib.mk, for Bison
22034         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22035         the Bison bootstrapping process can rewrite file names and variables
22036         in this file before later parts of 'bootstrap' use the file.
22037         Bison wants to include lib/gnulib.mk from the top-level makefile,
22038         so it needs the file names in this file to be relative to the top
22039         level, not relative to lib; plus it needs variable names to be
22040         rewritten.
22041         (slurp): Use the new function.
22042
22043         bootstrap: reformat for readability
22044         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22045
22046 2010-10-08  Eric Blake  <eblake@redhat.com>
22047
22048         docs: update cygwin progress
22049         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22050         1.7.7.
22051         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22052         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22053         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22054         * doc/posix-functions/carg.texi (carg): Likewise.
22055         * doc/posix-functions/cargf.texi (cargf): Likewise.
22056         * doc/posix-functions/casin.texi (casin): Likewise.
22057         * doc/posix-functions/casinf.texi (casinf): Likewise.
22058         * doc/posix-functions/casinh.texi (casinh): Likewise.
22059         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22060         * doc/posix-functions/catan.texi (catan): Likewise.
22061         * doc/posix-functions/catanf.texi (catanf): Likewise.
22062         * doc/posix-functions/catanh.texi (catanh): Likewise.
22063         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22064         * doc/posix-functions/ccos.texi (ccos): Likewise.
22065         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22066         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22067         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22068         * doc/posix-functions/cexp.texi (cexp): Likewise.
22069         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22070         * doc/posix-functions/cimag.texi (cimag): Likewise.
22071         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22072         * doc/posix-functions/clog.texi (clog): Likewise.
22073         * doc/posix-functions/clogf.texi (clogf): Likewise.
22074         * doc/posix-functions/conj.texi (conj): Likewise.
22075         * doc/posix-functions/conjf.texi (conjf): Likewise.
22076         * doc/posix-functions/cpow.texi (cpow): Likewise.
22077         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22078         * doc/posix-functions/cproj.texi (cproj): Likewise.
22079         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22080         * doc/posix-functions/creal.texi (creal): Likewise.
22081         * doc/posix-functions/crealf.texi (crealf): Likewise.
22082         * doc/posix-functions/csin.texi (csin): Likewise.
22083         * doc/posix-functions/csinf.texi (csinf): Likewise.
22084         * doc/posix-functions/csinh.texi (csinh): Likewise.
22085         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22086         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22087         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22088         * doc/posix-functions/ctan.texi (ctan): Likewise.
22089         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22090         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22091         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22092         * doc/posix-headers/complex.texi (complex.h): Likewise.
22093
22094 2010-10-07  Jim Meyering  <meyering@redhat.com>
22095
22096         parse-datetime: avoid compilation failure on OpenBSD 4.7
22097         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22098         This works around a compilation failure on OpenBSD 4.7:
22099         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22100
22101 2010-10-07  Eric Blake  <eblake@redhat.com>
22102
22103         docs: update cygwin progress
22104         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22105         1.7.6.
22106         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22107         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22108         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22109         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22110         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22111         Likewise.
22112         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22113         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22114         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22115         Likewise.
22116         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22117         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22118         Likewise.
22119         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22120         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22121         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22122         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22123         Likewise.
22124         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22125         Likewise.
22126         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22127
22128         docs: update parse-datetime history
22129         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22130         documentation of this function's history and alternatives.
22131
22132         cygwin: use more robust version check
22133         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22134         exclude an eventual cygwin 1.9.1.
22135         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22137         (gl_FUNC_STRCASESTR): Likewise.
22138         Reported by Bruno Haible.
22139
22140 2010-10-06  Bruno Haible  <bruno@clisp.org>
22141
22142         string, sys_select: Avoid #including large headers unless necessary.
22143         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22144         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22145         OSF/1, BeOS, Haiku.
22146         Reported by Jim Meyering.
22147
22148 2010-10-05  Eric Blake  <eblake@redhat.com>
22149
22150         memmem, strstr, strcasestr: fix bug with long periodic needle
22151         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22152         periodic needle having false positive.
22153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22154         and cygwin 1.7.7.
22155         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22157         (gl_FUNC_STRCASESTR): Likewise.
22158         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22159         * tests/test-memmem.c (main): Expose the bug.
22160         * tests/test-strcasestr.c (main): Likewise.
22161         * tests/test-strstr.c (main): Likewise.
22162         * tests/test-c-strcasestr.c (main): Likewise.
22163         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22164         * doc/posix-functions/strstr.texi (strstr): Likewise.
22165         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22166         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22167
22168 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         parse-datetime: do some more renaming
22171         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22172         parse_datetime, not get_date.  Mention the renaming.
22173         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22174         in comments.
22175         * m4/bison.m4: Likewise.
22176
22177 2010-10-05  Eric Blake  <eblake@redhat.com>
22178
22179         parse-datetime: better name than get_date
22180         * NEWS: Reword the deprecation notice.
22181         * modules/get_date: Rename to modules/parse-datetime.
22182         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22183         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22184         * lib/get_date.y: Rename to lib/parse-datetime.y.
22185         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22186         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22187         * doc/getdate.texi: Provide fallback wrapper.
22188         * lib/getdate.h: Move guts, and wrap...
22189         * lib/parse-datetime.h: ...new file.
22190         * lib/parse-datetime.y (get_date): Rename...
22191         (parse_datetime): ...to this.
22192         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22193         (gl_PARSE_DATETIME): ...to this.
22194         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22195         documentation.
22196         * modules/getdate (Files): Provide fallback docs and header.
22197         (Notice, Depends-on): Update references.
22198         * tests/test-parse-datetime.c: Likewise.
22199         * DEPENDENCIES: Likewise.
22200         * MODULES.html.sh (Date and time <time.h>): Likewise.
22201         * doc/parse-datetime.texi (Date input formats)
22202         (Authors of parse_datetime): Likewise.
22203         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22204         (Include): Likewise.
22205         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22206         * gnulib-tool: Likewise.
22207         * m4/bison.m4 (gl_BISON): Likewise.
22208         Suggested by Bruno Haible.
22209
22210 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22211
22212         more ports to Solaris tr, which needs [] around ranges
22213         * gnulib-tool: Solaris tr needs [] around ranges.
22214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22215         * tests/test-pipe-filter-gi1.c (main): Likewise.
22216         * tests/test-pipe-filter-ii1.c (main): Likewise.
22217
22218 2010-10-05  Eric Blake  <eblake@redhat.com>
22219
22220         bootstrap: fix Solaris regression
22221         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22222         around ranges.
22223         Reported by Pádraig Brady.
22224
22225         bootstrap: work with pkg-config
22226         * build-aux/bootstrap (check_versions): Also transliterate - in
22227         prerequisite name.
22228         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22229         prerequisites that were already found, to avoid confusion.
22230         Reported by Justin Clift.
22231
22232         faccessat: remove unused wrappers
22233         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22234         presence of these wrappers dragged in -lgen on Solaris.
22235         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22236
22237 2010-10-05  Jim Meyering  <meyering@redhat.com>
22238
22239         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22240         * Makefile (sc_pragma_columns): New syntax-check rule.
22241
22242 2010-10-04  Bruno Haible  <bruno@clisp.org>
22243
22244         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22245         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22246         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22247         Reported by Bruce Korb and Eric Blake.
22248
22249 2010-10-04  Bruno Haible  <bruno@clisp.org>
22250
22251         threadlib: Make option --with-libpth-prefix work.
22252         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22253         use $LIBPTH, not just -lpth.
22254
22255 2010-10-04  Bruno Haible  <bruno@clisp.org>
22256
22257         Avoid line length limitation from HP NonStop system header files.
22258         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22259         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22260         * lib/ctype.in.h: Likewise.
22261         * lib/dirent.in.h: Likewise.
22262         * lib/errno.in.h: Likewise.
22263         * lib/fcntl.in.h: Likewise.
22264         * lib/float.in.h: Likewise.
22265         * lib/getopt.in.h: Likewise.
22266         * lib/iconv.in.h: Likewise.
22267         * lib/inttypes.in.h: Likewise.
22268         * lib/langinfo.in.h: Likewise.
22269         * lib/locale.in.h: Likewise.
22270         * lib/math.in.h: Likewise.
22271         * lib/netdb.in.h: Likewise.
22272         * lib/netinet_in.in.h: Likewise.
22273         * lib/poll.in.h: Likewise.
22274         * lib/pthread.in.h: Likewise.
22275         * lib/pty.in.h: Likewise.
22276         * lib/sched.in.h: Likewise.
22277         * lib/se-selinux.in.h: Likewise.
22278         * lib/search.in.h: Likewise.
22279         * lib/signal.in.h: Likewise.
22280         * lib/spawn.in.h: Likewise.
22281         * lib/stdarg.in.h: Likewise.
22282         * lib/stddef.in.h: Likewise.
22283         * lib/stdint.in.h: Likewise.
22284         * lib/stdio.in.h: Likewise.
22285         * lib/stdlib.in.h: Likewise.
22286         * lib/string.in.h: Likewise.
22287         * lib/strings.in.h: Likewise.
22288         * lib/sys_file.in.h: Likewise.
22289         * lib/sys_ioctl.in.h: Likewise.
22290         * lib/sys_select.in.h: Likewise.
22291         * lib/sys_socket.in.h: Likewise.
22292         * lib/sys_stat.in.h: Likewise.
22293         * lib/sys_time.in.h: Likewise.
22294         * lib/sys_times.in.h: Likewise.
22295         * lib/sys_utsname.in.h: Likewise.
22296         * lib/sys_wait.in.h: Likewise.
22297         * lib/sysexits.in.h: Likewise.
22298         * lib/termios.in.h: Likewise.
22299         * lib/time.in.h: Likewise.
22300         * lib/unistd.in.h: Likewise.
22301         * lib/wchar.in.h: Likewise.
22302         * lib/wctype.in.h: Likewise.
22303         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22304         * modules/ctype (Makefile.am): Likewise.
22305         * modules/dirent (Makefile.am): Likewise.
22306         * modules/errno (Makefile.am): Likewise.
22307         * modules/fcntl-h (Makefile.am): Likewise.
22308         * modules/float (Makefile.am): Likewise.
22309         * modules/getopt-posix (Makefile.am): Likewise.
22310         * modules/iconv-h (Makefile.am): Likewise.
22311         * modules/inttypes (Makefile.am): Likewise.
22312         * modules/langinfo (Makefile.am): Likewise.
22313         * modules/locale (Makefile.am): Likewise.
22314         * modules/math (Makefile.am): Likewise.
22315         * modules/netdb (Makefile.am): Likewise.
22316         * modules/netinet_in (Makefile.am): Likewise.
22317         * modules/poll-h (Makefile.am): Likewise.
22318         * modules/pthread (Makefile.am): Likewise.
22319         * modules/pty (Makefile.am): Likewise.
22320         * modules/sched (Makefile.am): Likewise.
22321         * modules/search (Makefile.am): Likewise.
22322         * modules/selinux-h (Makefile.am): Likewise.
22323         * modules/signal (Makefile.am): Likewise.
22324         * modules/spawn (Makefile.am): Likewise.
22325         * modules/stdarg (Makefile.am): Likewise.
22326         * modules/stddef (Makefile.am): Likewise.
22327         * modules/stdint (Makefile.am): Likewise.
22328         * modules/stdio (Makefile.am): Likewise.
22329         * modules/stdlib (Makefile.am): Likewise.
22330         * modules/string (Makefile.am): Likewise.
22331         * modules/strings (Makefile.am): Likewise.
22332         * modules/sys_file (Makefile.am): Likewise.
22333         * modules/sys_ioctl (Makefile.am): Likewise.
22334         * modules/sys_select (Makefile.am): Likewise.
22335         * modules/sys_socket (Makefile.am): Likewise.
22336         * modules/sys_stat (Makefile.am): Likewise.
22337         * modules/sys_time (Makefile.am): Likewise.
22338         * modules/sys_times (Makefile.am): Likewise.
22339         * modules/sys_utsname (Makefile.am): Likewise.
22340         * modules/sys_wait (Makefile.am): Likewise.
22341         * modules/sysexits (Makefile.am): Likewise.
22342         * modules/termios (Makefile.am): Likewise.
22343         * modules/time (Makefile.am): Likewise.
22344         * modules/unistd (Makefile.am): Likewise.
22345         * modules/wchar (Makefile.am): Likewise.
22346         * modules/wctype (Makefile.am): Likewise.
22347
22348 2010-10-04  Bruno Haible  <bruno@clisp.org>
22349
22350         read-file tests: Avoid a test failure on NonStop Kernel.
22351         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22352         a regular file.
22353         Reported by Joachim Schmitz <schmitz@hp.com>.
22354
22355 2010-10-03  Bruno Haible  <bruno@clisp.org>
22356
22357         gnulib-tool: Fixes for --create-testdir with --libtool.
22358         * gnulib-tool (func_get_automake_snippet): Don't augment
22359         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22360         an executable.
22361         (func_create_testdir): Handle module 'alloca' like func_import.
22362         Reported by Bruce Korb <bruce.korb@gmail.com>.
22363
22364 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22365
22366         Avoid some lines longer than 80 characters.
22367         * lib/stdint.in.h: Break long comment lines.
22368         * lib/math.in.h: Likewise.
22369         (_GL_NUM_UINT_WORDS): New macro, for readability.
22370         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22371         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22372         * lib/stdlib.in.h: Likewise.
22373         * lib/spawn.in.h: Likewise.
22374         * lib/sys_socket.in.h: Update an URL.
22375         * lib/sys_stat.in.h: Break long line.
22376
22377 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22378
22379         Improve pmccabe2html.
22380         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22381         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22382         when the sources change. Remove the line in the HTML about "Used
22383         ranges" (which implied that there might be other unused ranges),
22384         rename "Resume" to "Summary" (easier to understand for more users).
22385         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22386         styles, and some unnecessary blank lines.
22387
22388 2010-10-03  Bruno Haible  <bruno@clisp.org>
22389             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22390
22391         acl: Add support for ACLs on NonStop Kernel.
22392         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22393         Check whether the function aclsort() exists.
22394         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22395         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22396         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22397         (acl_nontrivial [HAVE_ACLSORT]: New function.
22398         (file_has_acl): Implement for NonStop Kernel.
22399         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22400         (qset_acl): Implement for NonStop Kernel.
22401         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22402         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22403         (main): Implement for NonStop Kernel.
22404         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22405         Kernel. Handle this flavor.
22406         * tests/test-set-mode-acl.sh: Likewise.
22407         * tests/test-copy-acl.sh: Likewise.
22408         * tests/test-copy-file.sh: Likewise.
22409
22410 2010-10-03  Bruno Haible  <bruno@clisp.org>
22411
22412         Info about ACLs on NonStop Kernel.
22413         * doc/acl-resources.txt: Add info about NonStop Kernel.
22414         References by Joachim Schmitz <schmitz@hp.com>.
22415
22416 2010-10-02  Bruno Haible  <bruno@clisp.org>
22417
22418         Define missing EDQUOT on NonStop Kernel.
22419         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22420         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22422         missing.
22423         * doc/posix-headers/errno.texi: Mention the NSK bug.
22424         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22425         Reported by Joachim Schmitz <schmitz@hp.com>.
22426
22427 2010-10-02  Bruno Haible  <bruno@clisp.org>
22428
22429         Update doc for POSIX:2008.
22430         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22431         Update URL of POSIX specification.
22432
22433 2010-10-02  Bruno Haible  <bruno@clisp.org>
22434
22435         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22436         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22437         from gnulib, not from Automake.
22438
22439 2010-10-02  Bruno Haible  <bruno@clisp.org>
22440
22441         New module 'system-posix'.
22442         * modules/system-posix: New file.
22443         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22444         module is present.
22445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22446         GNULIB_SYSTEM_POSIX.
22447         * modules/stdlib (Depends-on): Remove sys_wait.
22448         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22449         * doc/posix-functions/system.texi: Mention the new module.
22450         * doc/posix-headers/stdlib.texi: Likewise.
22451         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22452         define test_sys_wait_macros to a no-op.
22453         Reported by Sam Steingold <sds@gnu.org>.
22454
22455 2010-09-30  Bruno Haible  <bruno@clisp.org>
22456
22457         More renaming from 'getdate' to 'get_date'.
22458         * doc/get_date.texi: Renamed from doc/getdate.texi.
22459         * modules/get_date (Files): Update.
22460         * MODULES.html.sh (Date and time <time.h>): Update.
22461         * DEPENDENCIES: Update.
22462         * gnulib-tool: Update comment.
22463         * m4/bison.m4 (gl_BISON): Likewise.
22464         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22465
22466 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22467
22468         bootstrap: support ACLOCAL_FLAGS during aclocal
22469         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22470         can add additional -I dir for third-party .m4 files.
22471
22472 2010-09-30  Eric Blake  <eblake@redhat.com>
22473
22474         bootstrap: use glibtoolize on MacOS
22475         * build-aux/bootstrap (check_versions): Convert libtool into
22476         libtoolize.
22477         (tool search): Move libtool check earlier, and look for
22478         glibtoolize for MacOS.
22479         (gnulib_tool_options): Auto-add --libtool when appropriate.
22480         Reported by Justin Clift.
22481
22482         poll: fix typo that broke test on MacOS
22483         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22484         Reported by Justin Clift.
22485
22486         getdate: rename to get_date
22487         Note: getdate.h is not renamed, to minimize client impact.
22488         * modules/getdate: Mark obsolete.  Move old contents...
22489         * modules/get_date: ...to new module name.
22490         * modules/getdate-tests: Move...
22491         * modules/get_date-tests: ...here.
22492         * m4/getdate.m4: Move...
22493         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22494         * lib/getdate.y: Move...
22495         * lib/get_date.y: ...here.
22496         * tests/test-getdate.c: Move...
22497         * tests/test-get_date.c: ...here.
22498         * doc/posix-functions/getdate.texi (getdate): Update name.
22499         * NEWS: Mention the change.
22500
22501 2010-09-29  Bruno Haible  <bruno@clisp.org>
22502
22503         Separate the module 'waitpid' from the module 'sys_wait'.
22504         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22505         present.
22506         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22507         gl_MODULE_INDICATOR_FOR_TESTS.
22508         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22509         * modules/sys_wait (Depends-on): Remove waitpid.
22510         (Makefile.am): Substitute GNULIB_WAITPID.
22511         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22512         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22513         signature only if the 'waitpid' module is present.
22514         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22515         * NEWS: Mention the change.
22516         * modules/grantpt (Depends-on): Add waitpid.
22517         * modules/wait-process (Depends-on): Likewise.
22518
22519 2010-09-29  Bruno Haible  <bruno@clisp.org>
22520
22521         More tests for module 'sys_wait'.
22522         * modules/sys_wait-c++-tests: New file.
22523         * tests/test-sys_wait-c++.cc: New file.
22524         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22525         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22526
22527 2010-09-29  Bruno Haible  <bruno@clisp.org>
22528
22529         New module 'waitpid'.
22530         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22531         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22532         Don't include <process.h>.
22533         (waitpid): Declare only, using modern idiom.
22534         * m4/waitpid.m4: New file.
22535         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22536         * modules/waitpid: New file.
22537         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22538         (Makefile.am): Update.
22539         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22540
22541 2010-09-28  Bruno Haible  <bruno@clisp.org>
22542
22543         poll: Assume ANSI C.
22544         * lib/poll.c (poll): Use an ANSI C declaration.
22545
22546 2010-09-28  Bruno Haible  <bruno@clisp.org>
22547
22548         poll-h: Create poll.h on all platforms.
22549         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22550         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22551         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22552         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22553         (gl_REPLACE_POLL_H): Don't set POLL_H.
22554         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22555         * modules/poll-h (Depends-on): Add include_next.
22556         (Makefile.am): Create poll.h unconditionally. Substitute also
22557         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22558
22559 2010-09-28  Bruno Haible  <bruno@clisp.org>
22560
22561         Tests for module 'poll-h'.
22562         * modules/poll-h-c++-tests: New file.
22563         * tests/test-poll-h-c++.cc: New file.
22564
22565         Tests for module 'poll-h'.
22566         * modules/poll-h-tests: New file.
22567         * tests/test-poll-h.c: New file.
22568
22569 2010-09-28  Bruno Haible  <bruno@clisp.org>
22570
22571         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22572         * modules/poll-h (Depends-on): Add 'extensions'.
22573
22574 2010-09-28  Bruno Haible  <bruno@clisp.org>
22575
22576         New module 'poll-h'.
22577         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22578         (poll): Use modern idiom.
22579         * modules/poll-h: New file.
22580         * modules/poll (Files): Remove lib/poll.in.h.
22581         (Depends-on): Add poll-h.
22582         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22583         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22584         * m4/poll_h.m4: New file.
22585         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22586         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22587         and invoke gl_REPLACE_POLL_H.
22588         * lib/poll.c: Use common idiom.
22589         * tests/test-poll.c: Likewise.
22590         * doc/posix-headers/poll.texi: Mention the poll-h module.
22591         Suggested by Eric Blake.
22592
22593 2010-09-26  Bruno Haible  <bruno@clisp.org>
22594
22595         sys_wait: Implement WSTOPSIG.
22596         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22597         Reported by Simon Josefsson.
22598
22599 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22600
22601         stdlib, sys_wait: Avoid compilation error on mingw.
22602         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22603
22604 2010-09-26  Bruno Haible  <bruno@clisp.org>
22605
22606         stdlib tests: Avoid code duplication.
22607         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22608         * modules/sys_wait-tests (Files): Likewise.
22609         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22610         * tests/test-stdlib.c: Include test-sys_wait.h.
22611         (main): Invoke test_sys_wait_macros.
22612         * tests/test-sys_wait.c: Include test-sys_wait.h.
22613         (main): Invoke test_sys_wait_macros.
22614
22615 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22616
22617         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22618         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22619         sure Windows sockets are working before calling getaddrinfo.
22620         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22621         * doc/gnulib.texi (Windows sockets): Fix typo.
22622
22623 2010-09-25  Bruno Haible  <bruno@clisp.org>
22624
22625         Tests for module 'regex-quote'.
22626         * modules/regex-quote-tests: New file.
22627         * tests/test-regex-quote.c: New file.
22628
22629         New module 'regex-quote'.
22630         * lib/regex-quote.h: New file.
22631         * lib/regex-quote.c: New file.
22632         * modules/regex-quote: New file.
22633         Suggested by Reuben Thomas <rrt@sc3d.org>.
22634
22635 2010-09-24  Bruno Haible  <bruno@clisp.org>
22636
22637         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22638         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22639
22640 2010-09-23  Bruno Haible  <bruno@clisp.org>
22641
22642         setenv: Relax license.
22643         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22644         Blake.
22645         Requested by Eric Blake.
22646
22647 2010-09-22  Bruno Haible  <bruno@clisp.org>
22648
22649         termios: Relax license.
22650         * modules/termios (License): Change to LGPLv2+.
22651         Requested by Eric Blake.
22652
22653 2010-09-22  Bruno Haible  <bruno@clisp.org>
22654
22655         threadlib: Allow the package to change the default to 'no'.
22656         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22657         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22658         Reported by Paul Eggert.
22659
22660 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22661             Bruno Haible  <bruno@clisp.org>
22662
22663         Fix endless loop in mbmemcasecoll.
22664         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22665         byte.
22666         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22667
22668 2010-09-22  Bruno Haible  <bruno@clisp.org>
22669
22670         Tests for module 'memcoll'.
22671         * modules/memcoll-tests: New file.
22672         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22673
22674         memcoll, xmemcoll: Clarify size vs. length.
22675         * modules/memcoll.c (memcoll0): Clarify specification.
22676         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22677         passed to collate_error.
22678
22679 2010-09-22  Bruno Haible  <bruno@clisp.org>
22680
22681         Tests for module 'memcasecmp'.
22682         * modules/memcasecmp-tests: New file.
22683         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22684
22685 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22686
22687         * lib/pthread.in.h: Add split double-inclusion guard, and include
22688         system <pthread.h> if there is one.  Use @@-style as in other
22689         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22690         pthread.h doesn't.
22691         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22692         (pthread_mutexattr_settype, pthread_mutex_trylock):
22693         New static inline functions, if there's no system <pthread.h>.
22694         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22695         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22696         Approximate with mutexes if the system lacks spinlocks, as in
22697         MacOS.
22698         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22699         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22700         @@-style.  Check for spinlocks separately.
22701         (gl_PTHREAD_DEFAULTS): New macro.
22702         * modules/pthread: Redo to use a more typical style for in.h files.
22703
22704 2010-09-21  Eric Blake  <eblake@redhat.com>
22705
22706         net_if: enhance tests
22707         * tests/test-net_if.c (main): Move signature checks earlier.
22708         Print failures to stderr.
22709         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22710         Document the bug that we do not yet fix.
22711
22712 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22713
22714         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22715         about gnulib, not GSS.
22716
22717 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22718
22719         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22720         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22721         for Emacs.
22722         * build-aux/pmccabe2html: Make Makefile.am example code more
22723         cut-and-paste friendly.
22724
22725 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22726
22727         * tests/test-net_if.c: New file.
22728         * modules/net_if-tests: New file.
22729
22730 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22731
22732         pthread: add pthread_spin_destroy
22733         * lib/pthread.in.h (pthread_spin_destroy): New function.
22734
22735 2010-09-19  Bruno Haible  <bruno@clisp.org>
22736
22737         gnulib-tool: Fix --help output.
22738         * gnulib-tool (func_usage): Fix help message.
22739         Reported by Reuben Thomas <rrt@sc3d.org>.
22740
22741 2010-09-18  Jim Meyering  <meyering@redhat.com>
22742
22743         maint.mk: avoid unexpanded \n in two diagnostics
22744         * top/maint.mk (sc_prohibit_always_true_header_tests):
22745         Don't use a literal \n in a halt=... assignment.  It would not be
22746         expanded, and the two \n bytes would appear in the diagnostic output
22747         rather than the desired newline.  Use halt=$$(printf ... instead.
22748         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22749
22750 2010-09-18  Bruno Haible  <bruno@clisp.org>
22751
22752         netinet_in: Doc tweak.
22753         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22754         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22755
22756 2010-09-18  Jim Meyering  <meyering@redhat.com>
22757
22758         init.sh: correct an outdated comment
22759         * tests/init.sh (create_exe_shims_):  s/function/alias/
22760
22761         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22762         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22763         a file named "*.exe" is removed between the glob expansion and the
22764         processing of that oddly named file.
22765
22766 2010-09-17  Eric Blake  <eblake@redhat.com>
22767
22768         mirbsd: add some more support
22769         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22770         in BSD family.
22771         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22772         devices as OpenBSD.
22773         * m4/host-os.m4 (mirbsd): Add MirBSD.
22774
22775         tests: fix unportable assumption on sys/wait.h
22776         * tests/test-sys_wait.c (main): Relax test.
22777         * tests/test-stdlib.c (main): Likewise.
22778
22779         init.sh: accomodate directory with no .exes
22780         * tests/init.sh: Accomodate directory containing only scripts.
22781
22782         tests: avoid compiler warning
22783         * tests/test-stdlib.c (main): Use the variable.
22784
22785         fdutimens, fdutimensat: update signature, again
22786         * lib/utimens.h (gl_futimens): Delete, and move signature...
22787         (fdutimens): ...here.
22788         (fdutimensat): Rearrange signature.
22789         (lutimensat): Rename variable for clarity.
22790         * lib/fdutimensat.c (fdutimensat): Update signature.
22791         * lib/utimens.c (fdutimens): Likewise.
22792         (gl_futimens): Delete.
22793         (utimens, lutimens): Update callers.
22794         * lib/futimens.c (futimens): Likewise.
22795         * tests/test-fdutimensat.c: Likewise.
22796         * tests/test-utimens.c: Likewise.
22797         * tests/test-futimens.h: Update comment.
22798         * NEWS: Mention this.
22799         Suggested by Paul Eggert.
22800
22801 2010-09-17  Bruno Haible  <bruno@clisp.org>
22802
22803         Take over the maintenance of some older macros from Autoconf.
22804         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22805         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22806         GNU Autoconf.
22807         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22808         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22809
22810 2010-09-17  Eric Blake  <eblake@redhat.com>
22811
22812         fdutimensat: drop atflag validation
22813         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22814         with valid fd, to close a race scenario where futimens is
22815         unsupported and FILE was replaced by a symlink.
22816         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22817         accordingly.
22818         Suggested by Paul Eggert.
22819
22820 2010-09-16  Bruno Haible  <bruno@clisp.org>
22821
22822         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22823         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22824
22825 2010-09-16  Bruno Haible  <bruno@clisp.org>
22826
22827         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22828         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22829         login_tty exists.
22830         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22831
22832 2010-09-16  Bruno Haible  <bruno@clisp.org>
22833
22834         login_tty: Make the replacement code work on BSD systems.
22835         * lib/login_tty.c: Include <sys/ioctl.h>.
22836         (login_tty): Use ioctl TIOCSCTTY when available.
22837         * modules/login_tty (Depends-on): Add sys_ioctl.
22838         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22839
22840 2010-09-16  Bruno Haible  <bruno@clisp.org>
22841
22842         login_tty: Stricter unit test.
22843         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22844         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22845         and tcgetsid() after login_tty.
22846         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22847
22848 2010-09-16  Bruno Haible  <bruno@clisp.org>
22849
22850         New module 'tcgetsid'.
22851         * lib/tcgetsid.c: New file.
22852         * m4/tcgetsid.m4: New file.
22853         * modules/tcgetsid: New file.
22854         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22855         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22856         GNULIB_TCGETSID, HAVE_TCGETSID.
22857         * lib/termios.in.h: Include <sys/types.h>.
22858         (tcgetsid): New declaration.
22859         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22860         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22861         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22862         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22863
22864 2010-09-16  Bruno Haible  <bruno@clisp.org>
22865
22866         Tests for module 'termios'.
22867         * modules/termios-c++-tests: New file.
22868         * modules/termios-tests: New file.
22869         * tests/test-termios-c++.cc: New file.
22870         * tests/test-termios.c: New file.
22871
22872         New module 'termios'.
22873         * modules/termios: New file.
22874         * lib/termios.in.h: New file.
22875         * m4/termios_h.m4: New file.
22876         * doc/posix-headers/termios.texi: Mention the new module.
22877
22878 2010-09-16  Eric Blake  <eblake@redhat.com>
22879
22880         fdutimensat: add an atflag parameter
22881         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22882         * lib/utimens.h (fdutimensat): Update prototype.
22883         * tests/test-fdutimensat.c: Adjust test to match.
22884         * NEWS: Document the change.
22885         Suggested by Paul Eggert.
22886
22887 2010-09-16  Bruno Haible  <bruno@clisp.org>
22888
22889         Fix typos in comments.
22890         * lib/striconveh.h: Fix typo in comment.
22891         * lib/login_tty.c (login_tty): Likewise.
22892
22893 2010-09-15  Bruno Haible  <bruno@clisp.org>
22894
22895         stdlib: clarify MirBSD WEXITSTATUS bug
22896         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22897         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22898
22899 2010-09-15  Eric Blake  <eblake@redhat.com>
22900
22901         stdlib: work around MirBSD WEXITSTATUS bug
22902         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22903         * modules/stdlib (Depends-on): Add sys_wait.
22904         * tests/test-sys_wait.c (main): Enhance test.
22905         * tests/test-stdlib.c (main): Likewise.
22906         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22907
22908         docs: mention MacOS issue with WEXITSTATUS(constant)
22909         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22910         issue.
22911         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22912
22913         strnlen: add tests
22914         * modules/strnlen-tests: New file.
22915         * tests/test-strnlen.c: Likewise.
22916
22917 2010-09-14  Bruno Haible  <bruno@clisp.org>
22918
22919         unistr/base: Avoid link errors when module 'libunistring' is also used.
22920         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22921         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22922         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22923         Declare also when HAVE_LIBUNISTRING is set.
22924         Reported by Pádraig Brady <P@draigbrady.com>.
22925
22926 2010-09-14  Eric Blake  <eblake@redhat.com>
22927
22928         test-rawmemchr: make more robust
22929         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22930         (Depends-on, configure.ac): Add needed prerequisites to use it.
22931         * modules/memchr-tests (Files, Depends-on, configure.ac):
22932         Likewise, to avoid implicit reliance on memchr module prereqs.
22933         * tests/test-memchr.c (main): Ensure proper masking.
22934         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22935         reads.
22936
22937         memchr: detect glibc Alpha bug
22938         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22939         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22940         Alpha.
22941         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22942         * tests/test-memchr.c (main): Enhance test.
22943         Reported by Nelson H. F. Beebe.
22944
22945 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22946
22947         fts, getcwd, glob: audit for dirfd returning -1
22948         * lib/fts.c (opendir): Remove #define; no longer used.
22949         (opendirat): New arg PDIR_FD.  All callers changed.
22950         (fts_build, _opendir2): Use new opendirat to avoid the need for
22951         dirfd, or for checking whether dirfd returns a negative value.
22952         Don't use opendir; always use openat followed by fdopendir.
22953         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22954         it.
22955         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22956         returns -1 here.
22957         * modules/fts (Depends-on): Remove dirfd.
22958         * modules/getcwd (Depends-on): Likewise.
22959
22960 2010-09-13  Eric Blake  <eblake@redhat.com>
22961
22962         float: fix broken MirBSD header
22963         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22964         * doc/posix-headers/float.texi (float.h): Document it.
22965
22966 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22967
22968         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22969         * lib/fts.c (opendirat): New arg extra_flags.
22970         (__opendir2): Use it to avoid following symlinks when opening
22971         a directory, if symlinks are not supposed to be followed.  See
22972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22973
22974         fdopendir: preserve argument fd before returning
22975         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22976         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22977         (fdopendir): Use them, arranging for FD to be open to the same
22978         directory that it was when it started.  (It might be temporarily
22979         closed while fdopendir is running, so this not thread- or
22980         signal-safe.)  Be careful to do the right thing even when file
22981         descriptors are scarce and dup fails with errno == EMFILE.  See
22982         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22983
22984 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22985
22986         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22987         * NEWS: Document change.
22988         * m4/regex.m4: Disable test for regoff_t size.
22989
22990 2010-09-13  Jim Meyering  <meyering@redhat.com>
22991
22992         fts: don't operate on an invalid file descriptor after failed dup
22993         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22994         negative file descriptor.
22995
22996 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22997
22998         savedir: add streamsavedir, deprecate fdsavedir
22999         * NEWS: Mention deprecation of fdsavedir.
23000         * lib/savedir.c (streamsavedir): New extern function, whose name
23001         ends in "savedir" to be consistent with the others.  This differs
23002         from savedirstream in that it doesn't close its argument.  The
23003         next version of GNU tar will use this instead of fdsavedir, to
23004         avoid some race conditions and conserve file descriptors.
23005         (savedirstream): Reimplement as a wrapper around streamsavedir.
23006         (fdsavedir): Add a comment deprecating this function.  As far as
23007         I know, only GNU tar used it, and GNU tar doesn't need it any more.
23008         * lib/savedir.h (streamsavedir): New decl.
23009         (fdsavedir): Add a comment deprecating this.
23010
23011 2010-09-10  Bruno Haible  <bruno@clisp.org>
23012
23013         langinfo: Fix last commit.
23014         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23015         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23017
23018 2010-09-10  Bruno Haible  <bruno@clisp.org>
23019
23020         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23021         * lib/progreloc.c (O_EXEC): Define fallback.
23022
23023 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23024
23025         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23026         * NEWS: Document recent changes to fcntl-h.
23027         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23028         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23029         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23030         Similarly for O_SEARCH; this last was already true, but not documented.
23031         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23032         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23033         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23034         Likewise.
23035         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23036         is zero, not whether it is defined.
23037         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23038         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23039         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23040
23041 2010-09-10  Bruno Haible  <bruno@clisp.org>
23042
23043         langinfo, nl_langinfo: Fix for IRIX 5.3.
23044         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23045         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23046         HAVE_LANGINFO_YESEXPR.
23047         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23048         HAVE_LANGINFO_YESEXPR.
23049         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23050         HAVE_LANGINFO_T_FMT_AMPM is 0.
23051         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23052         HAVE_LANGINFO_YESEXPR is 0.
23053         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23054         NOEXPR.
23055         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23056         * doc/posix-functions/nl_langinfo.texi: Likewise.
23057         Reported by Eric Blake.
23058
23059 2010-09-10  Bruno Haible  <bruno@clisp.org>
23060
23061         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23062         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23063         on FreeBSD 8.0 and OpenBSD 4.6.
23064         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23065         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23066         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23067         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23068         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23069         ac_includes_default.
23070         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23071
23072 2010-09-09  Eric Blake  <eblake@redhat.com>
23073
23074         strsignal: work around NetBSD bug
23075         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23076         * lib/string.in.h (includes): Likewise.
23077         * doc/posix-functions/strsignal.texi (strsignal): Document the
23078         bug.
23079         Reported by Nelson H. F. Beebe.
23080
23081         gnulib-tool: work with NetBSD /bin/sh
23082         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23083         (func_get_description, func_get_comment, func_get_status)
23084         (func_get_notice, func_get_applicability, func_get_filelist)
23085         (func_get_dependencies, func_get_autoconf_early_snippet)
23086         (func_get_autoconf_snippet, func_get_automake_snippet)
23087         (func_get_include_directive, func_get_link_directive)
23088         (func_get_license, func_get_maintainer, func_import): Avoid
23089         shell syntax errors from parsing syntax extensions.
23090
23091 2010-09-09  Bruno Haible  <bruno@clisp.org>
23092
23093         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23094         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23095         a reliable way to determine whether the 'alias' command works.
23096
23097 2010-09-08  Jim Meyering  <meyering@redhat.com>
23098
23099         init.sh: penalize a set-x-impaired shell; don't disqualify it
23100         * tests/init.sh: Too many shells corrupt application stderr when
23101         you set -x, so we can't afford to disqualify them, since at least
23102         on Irix-6.5, that would disqualify all bourne shells.
23103         Instead, use a two-pass approach.
23104         On the first pass, try to find a shell that meets the stricter
23105         condition that set -x does not corrupt stderr.
23106         If no shell meets the stricter condition, retest each candidate
23107         shell, but without that extra condition.  Finally, when
23108         VERBOSE=yes is requested and set -x might cause trouble, simply
23109         issue a warning and refrain from enabling debug output.
23110
23111 2010-09-08  Eric Blake  <eblake@redhat.com>
23112
23113         unsetenv: fix OpenBSD bug
23114         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23115         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23116         documentation.
23117         Reported by Jim Meyering.
23118
23119         strtod: work around IRIX 6.5 bug
23120         * lib/strtod.c (strtod): Reparse number on shorter string if
23121         exponent parse was invalid.
23122         * tests/test-strtod.c (main): Add check for "0x1p 2".
23123         Reported by Tom G. Christensen.
23124
23125         getopt: optimize previous patch
23126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23127         empty variable.  Speed up awk script.
23128         Reported by Paolo Bonzini.
23129
23130 2010-09-08  Jim Meyering  <meyering@redhat.com>
23131
23132         test.sh: disqualify shells for which set -x corrupts stderr
23133         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23134         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23135         appear in stderr output.  For example, this command:
23136             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23137         prints "P=1" on those two systems:
23138
23139 2010-09-08  Bruno Haible  <bruno@clisp.org>
23140
23141         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23142         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23143         commands, because some shells ignore redirections when there is an
23144         error in the command lookup.
23145         Reported by Eric Blake.
23146
23147 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23148
23149         * lib/regex.h: Fix a mention of `regex_compile' (should be
23150         `re_compile_pattern').
23151         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23152         (re_set_registers): Correct name of parameter in comment.
23153
23154         * doc/regex.texi: Add documentation for missing syntax flags.
23155         Remove commented-out documentation of defunct syntax option
23156         RE_NO_EMPTY_ALTS.
23157         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23158         Add documentation of re_set_registers.
23159         Document trick to re-use a pattern buffer by setting fastmap manually.
23160         Update documentation of struct re_pattern_buffer per public members.
23161         Uncomment documentation of equivalence class operators and
23162         collating symbol operators, since they are now implemented,
23163         Explain leftmost-longest matching in relation to alternatives.
23164         Tidy documentation of substring matching.
23165         Remove POSIX documentation, which is done better in
23166         glibc, and refer the reader there. Keep BSD API documentation, as
23167         that is not readily available elsewhere.
23168
23169 2010-09-07  Eric Blake  <eblake@redhat.com>
23170
23171         getopt: handle POSIXLY_CORRECT set but not exported
23172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23173         export state of POSIXLY_CORRECT, due to bash set -o posix.
23174         Reported by Dustin J. Mitchell.
23175
23176 2010-09-05  Bruno Haible  <bruno@clisp.org>
23177
23178         gnulib-tool: Highlight the changed options.
23179         * gnulib-tool (func_usage): Display the --import, --add-import,
23180         --remove-import explanations in bold font.
23181
23182 2010-09-06  Karl Berry  <karl@gnu.org>
23183
23184         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23185
23186 2010-09-05  Bruno Haible  <bruno@clisp.org>
23187
23188         uniwidth/width: Update comment.
23189         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23190         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23191
23192 2010-09-05  Bruno Haible  <bruno@clisp.org>
23193
23194         isinf, isnan: Relax license.
23195         * modules/isinf (License): Change from GPL to LGPL, with consent from
23196         Ben Pfaff.
23197         * modules/isnan (License): Likewise.
23198         Requested by Ludovic Courtès.
23199
23200 2010-09-04  Bruno Haible  <bruno@clisp.org>
23201
23202         gnulib-tool: Help migration from --import to --add-import or --update.
23203         * gnulib-tool: Emit a verbose error message when --import is used
23204         without any module name.
23205
23206 2010-09-04  Bruno Haible  <bruno@clisp.org>
23207
23208         Update doc about gnulib-tool.
23209         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23210         'gnulib-tool --update' in more detail.
23211         Reported by Eric Blake.
23212
23213 2010-09-04  Bruno Haible  <bruno@clisp.org>
23214
23215         gnulib-tool: Change --import. New options --add/remove-import.
23216         * gnulib-tool: New options --add-import, --remove-import.
23217         (func_usage): Document them.
23218         (have_associative): Define always.
23219         (func_import): In import mode, don't merge the specified settings with
23220         the cached settings. Implement remove-import mode.
23221         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23222         Explain when to use them versus --import.
23223         (Simple update): Use --add-import instead of --import.
23224         * NEWS: Mention the change.
23225
23226 2010-09-04  Bruno Haible  <bruno@clisp.org>
23227
23228         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23229         separate gnulib.mk.
23230
23231 2010-09-04  Bruno Haible  <bruno@clisp.org>
23232
23233         gnulib-tool: Don't talk about CVS any more.
23234         * gnulib-tool (func_usage, func_import): Write "version control"
23235         instead of CVS.
23236
23237 2010-09-04  Jim Meyering  <meyering@redhat.com>
23238
23239         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23240         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23241         false positives (whose names may be ill-chosen) when searching
23242         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23243         would cause a false-positive.
23244
23245         avoid coreutils "make distcheck" failure
23246         Coreutils tests with an absolute build directory name that contains
23247         a space.  Not quoting this directory name caused a failure.
23248         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23249         * tests/test-vc-list-files-cvs.sh: Likewise.
23250
23251 2010-09-04  Bruno Haible  <bruno@clisp.org>
23252
23253         gnulib-tool: Avoid error when run in a package without Makefile.am.
23254         * gnulib-tool: When collecting the m4dirs in a package that does not
23255         have a Makefile.am, eliminate those directories that contain no
23256         gnulib-cache.m4. Fix expression that counts these directories.
23257
23258 2010-09-04  Bruno Haible  <bruno@clisp.org>
23259
23260         update-copyright test: Improve output when perl is missing or too old.
23261         * tests/test-update-copyright.sh: Move test of Perl version down after
23262         the test whether Perl exists. Provide an explanation relating Perl's
23263         error message to Automake's SKIP: message.
23264
23265 2010-09-04  Bruno Haible  <bruno@clisp.org>
23266
23267         Don't augment PATH in TESTS_ENVIRONMENT.
23268         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23269         set abs_aux_dir instead of augmenting PATH.
23270         * modules/vc-list-files-tests (Makefile.am): Likewise.
23271         * tests/test-update-copyright.sh: Augment PATH here.
23272         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23273         path_prepend_.
23274         * tests/test-vc-list-files-git.sh: Likewise.
23275
23276 2010-09-04  Jim Meyering  <meyering@redhat.com>
23277
23278         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23279         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23280
23281 2010-09-04  Bruno Haible  <bruno@clisp.org>
23282
23283         strdup: Fix compilation error in C++ mode.
23284         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23285         the macro.
23286
23287 2010-09-04  Bruno Haible  <bruno@clisp.org>
23288
23289         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
23290         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
23291         macro into a function.
23292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23293
23294 2010-09-04  Bruno Haible  <bruno@clisp.org>
23295
23296         Set PATH_SEPARATOR the same way autoconf does.
23297         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23298         the value of PATH_SEPARATOR the same way autoconf-generated configure
23299         scripts do.
23300         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23301         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23302
23303 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23304
23305         Set PATH_SEPARATOR the same way autoconf does.
23306         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23307         the same way autoconf-generated configure scripts do.
23308         * posix-modules: Likewise.
23309
23310 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23311
23312         hash: fix safe_hasher const typo
23313         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23314         const; otherwise, there is a type error later.
23315
23316 2010-09-02  Jim Meyering  <meyering@redhat.com>
23317
23318         test-update-copyright.sh: require perl 5.8.0
23319         * tests/test-update-copyright.sh: Require 5.8.0,
23320         which Tom G. Christensen has confirmed is adequate,
23321         while 5.6.1 is not.
23322
23323 2010-09-02  Eric Blake  <eblake@redhat.com>
23324
23325         tests: init.sh improvements for re-exec'ing with zsh
23326         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23327         -vx through shell re-exec.
23328         Reported by Tom G. Christensen.
23329
23330         wctype: fix typo in previous commit
23331         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23332         Reported by Ludovic Courtès.
23333
23334 2010-09-02  Jim Meyering  <meyering@redhat.com>
23335
23336         test-update-copyright.sh: skip test if Perl is too old
23337         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23338         Reported by Tom G. Christensen.
23339
23340 2010-09-02  Bruno Haible  <bruno@clisp.org>
23341
23342         wctype: Avoid compilation error on IRIX 6.5.30.
23343         * lib/wctype.in.h (iswblank): Declare with a replacement if
23344         REPLACE_ISWBLANK is set.
23345         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23346         declared. Set REPLACE_ISWBLANK.
23347         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23348         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23349         * doc/posix-headers/wctype.texi: Likewise.
23350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23351
23352 2010-09-01  Bruno Haible  <bruno@clisp.org>
23353
23354         New module 'socketlib'.
23355         * modules/socketlib: New file.
23356         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23357         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23358         * modules/sockets (Depends-on): Add socketlib.
23359         Suggested by Sam Steingold <sds@gnu.org>.
23360
23361 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23362
23363         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23364
23365         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23366         when one needs search access to a directory but not read access.
23367         On systems where it is available, it works in some cases where
23368         O_RDONLY does not, namely on directories that are searchable but
23369         not readable, and which need only to be searchable.  If O_SEARCH
23370         is not available, fall back to the traditional method of using
23371         O_RDONLY.
23372
23373         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23374         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23375         when opening a directory that needs only to be searchable.
23376         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23377         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23378         * lib/openat-proc.c (openat_proc_name): Likewise.
23379         * lib/openat.c (openat_needs_fchdir): Likewise.
23380         * lib/save-cwd.c (save_cwd): Likewise.
23381         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23382
23383 2010-08-28  Bruno Haible  <bruno@clisp.org>
23384
23385         New module 'host-cpu-c-abi'.
23386         * modules/host-cpu-c-abi: New file.
23387         * m4/host-cpu-c-abi.m4: New file, based on part of
23388         clisp/src/m4/general.m4.
23389         Requested by Sam Steingold <sds@gnu.org>.
23390
23391 2010-08-31  Eric Blake  <eblake@redhat.com>
23392         and Jim Meyering  <meyering@redhat.com>
23393
23394         hash: factor, and guard against misbehaving hasher function
23395         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23396         of table->hasher's return value.  Also protect against a hash value
23397         so large that adding it to table->bucket results in a NULL pointer.
23398         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23399         Use it in place of open-coded check-and-abort.
23400
23401 2010-08-30  Bruno Haible  <bruno@clisp.org>
23402
23403         hash: silence spurious clang warning
23404         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23405         Reported by Eric Blake.
23406
23407 2010-08-30  Eric Blake  <eblake@redhat.com>
23408
23409         strstr, memmem, strcasestr: avoid leaked shell message
23410         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23411         FreeBSD.
23412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23414
23415         tests: silence clang warning
23416         * tests/test-malloca.c (do_allocation): Avoid dead store.
23417
23418 2010-08-29  Bruno Haible  <bruno@clisp.org>
23419
23420         gettext: Fix recent mistake.
23421         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23422
23423 2010-08-29  Bruno Haible  <bruno@clisp.org>
23424
23425         selinux-h: Offer a --without-selinux option.
23426         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23427         --without-selinux was specified, skip all tests and define
23428         HAVE_SELINUX_SELINUX_H to 0.
23429         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23430         set LIB_SELINUX to empty.
23431         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23432         gl_LIBSELINUX. If --without-selinux was specified, replace
23433         selinux/context.h.
23434         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23435
23436 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23437             Bruno Haible  <bruno@clisp.org>
23438
23439         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23440         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23441         of HAVE_REALLOC.
23442         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23443         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23444         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23445         * modules/realloc-gnu (configure.ac): Use 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 'calloc-gnu' work again on AIX and OSF/1.
23451         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23452         HAVE_CALLOC.
23453         * lib/xmalloc.c: Update accordingly.
23454         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23455         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23456         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23457
23458 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23459             Bruno Haible  <bruno@clisp.org>
23460
23461         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23462         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23463         HAVE_MALLOC.
23464         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23465         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23466         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23467
23468 2010-08-29  Bruno Haible  <bruno@clisp.org>
23469
23470         Update modules list.
23471         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23472         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23473         (String handling <string.h>): Add astrxfrm.
23474         (File system functions): Add readlinkat.
23475
23476 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23477
23478         Tests for module 'realloc-gnu'.
23479         * modules/realloc-gnu-tests: New file.
23480         * tests/test-realloc-gnu.c: New file.
23481
23482         Tests for module 'calloc-gnu'.
23483         * modules/calloc-gnu-tests: New file.
23484         * tests/test-calloc-gnu.c: New file.
23485
23486         Tests for module 'malloc-gnu'.
23487         * modules/malloc-gnu-tests: New file.
23488         * tests/test-malloc-gnu.c: New file.
23489
23490 2010-08-28  Bruno Haible  <bruno@clisp.org>
23491
23492         Rename module 'realloc' -> 'realloc-gnu'.
23493         * modules/realloc-gnu: New file, copied from modules/realloc.
23494         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23495         obsolete.
23496         * modules/mgetgroups (Depends-on): Update.
23497         * doc/posix-functions/realloc.texi: Update.
23498         * NEWS: Mention the change.
23499
23500         Rename module 'calloc' -> 'calloc-gnu'.
23501         * modules/calloc-gnu: New file, copied from modules/calloc.
23502         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23503         obsolete.
23504         * doc/posix-functions/calloc.texi: Update.
23505         * NEWS: Mention the change.
23506
23507         Rename module 'malloc' -> 'malloc-gnu'.
23508         * modules/malloc-gnu: New file, copied from modules/malloc.
23509         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23510         obsolete.
23511         * modules/argp (Depends-on): Update.
23512         * modules/regex (Depends-on): Update.
23513         * doc/posix-functions/malloc.texi: Update.
23514         * NEWS: Mention the change.
23515
23516 2010-08-28  Eric Blake  <eblake@redhat.com>
23517
23518         pread, pwrite: add missing dependency
23519         * modules/pread (Depends-on): Add extensions.
23520         * modules/pwrite (Depends-on): Likewise.
23521
23522 2010-08-28  Bruno Haible  <bruno@clisp.org>
23523
23524         unistr/u*-strchr: Fix tests dependencies.
23525         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23526         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23527         Reported by Ian Beckwith <ianb@erislabs.net>.
23528
23529 2010-08-28  Bruno Haible  <bruno@clisp.org>
23530
23531         read-file: Don't occupy too much unused memory.
23532         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23533
23534 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23535             Eric Blake  <eblake@redhat.com>
23536             Bruno Haible  <bruno@clisp.org>
23537
23538         read-file: Avoid memory reallocations with regular files.
23539         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23540         (fread_file): With regular files, use the remaining length as the
23541         initial buffer size.  Check against overflow.
23542         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23543         sys_stat.
23544
23545 2010-08-28  Bruno Haible  <bruno@clisp.org>
23546
23547         ftello: Relax license.
23548         * modules/ftello (License): Relax to LGPLv2+.
23549         Reported by Eric Blake.
23550
23551 2010-08-28  Bruno Haible  <bruno@clisp.org>
23552
23553         Avoid relocwrapper link errors due to gnulib replacement functions.
23554         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23555         function.
23556         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23557
23558 2010-08-28  Bruno Haible  <bruno@clisp.org>
23559
23560         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23561         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23562         defined.
23563         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23564         Suggested by Eric Blake.
23565
23566 2010-08-28  Bruno Haible  <bruno@clisp.org>
23567
23568         sys_socket, netdb: Ensure socklen_t gets defined.
23569         * modules/sys_socket (Depends-on): Add socklen.
23570         * modules/netdb (Depends-on): Likewise.
23571         * modules/getaddrinfo (Depends-on): Remove socklen.
23572         * modules/getsockopt (Depends-on): Likewise.
23573         * modules/setsockopt (Depends-on): Likewise.
23574         * tests/test-sys_socket.c: Check that socklen_t is defined.
23575         * tests/test-netdb.c: Likewise.
23576         * m4/socklen.m4: Update comments.
23577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23578
23579 2010-08-27  Eric Blake  <eblake@redhat.com>
23580
23581         login_tty: add missing dependency
23582         * modules/login_tty (Depends-on): Add pty.
23583
23584 2010-08-26  Eric Blake  <eblake@redhat.com>
23585
23586         lib-symbol-versions: fix m4 quoting
23587         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23588         format for AC_LINK_IFELSE.
23589
23590         glob: fix compile test
23591         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23592
23593         btowc: fix missing file
23594         * modules/btowc (Files): Also ship locale-fr.m4.
23595
23596         lseek: fix link test
23597         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23598         AC_LINK_IFELSE.
23599
23600         include_next: silence autoconf 2.68 warning
23601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23602         AC_COMPILE_IFELSE as special.
23603         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23604         autoconf < 2.68.
23605
23606         acl: fix compilation test
23607         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23608         AC_COMPILE_IFELSE.
23609
23610 2010-08-26  Bruno Haible  <bruno@clisp.org>
23611
23612         Modernize AC_TRY_RUN invocations.
23613         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23614         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23615         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23616         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23617         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23618         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23619         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23621         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23622         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23624         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23625         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23626         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23628         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23629         gl_MBRLEN_NUL_RETVAL): Likewise.
23630         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23631         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23632         Likewise.
23633         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23634         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23635         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23636         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23637         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23638         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23639         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23640         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23641         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23642         Likewise.
23643         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23644         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23646         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23647         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23648         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23649         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23650         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23651         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23653
23654 2010-08-26  Bruno Haible  <bruno@clisp.org>
23655
23656         Modernize AC_TRY_LINK invocations.
23657         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23658         AC_TRY_LINK.
23659         * m4/argp.m4 (gl_ARGP): Likewise.
23660         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23661         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23662         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23663         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23664         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23665         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23666         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23667         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23668         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23669         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23670         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23671         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23672         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23673         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23674         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23675         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23676         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23677         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23678         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23679         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23680         Likewise.
23681         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23682         Likewise.
23683         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23684         Likewise.
23685         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23687         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23688         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23689         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23690         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23691         * m4/servent.m4 (gl_SERVENT): Likewise.
23692         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23693         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23694         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23695         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23696         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23697         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23698         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23699         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23700         * modules/tsearch-tests (configure.ac): Likewise.
23701
23702 2010-08-26  Bruno Haible  <bruno@clisp.org>
23703
23704         Modernize AC_TRY_COMPILE invocations.
23705         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23706         AC_TRY_COMPILE.
23707         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23708         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23709         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23710         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23711         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23712         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23713         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23714         * m4/lock.m4 (gl_LOCK): Likewise.
23715         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23716         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23717         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23719         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23720         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23721         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23722         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23723         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23724         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23725         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23726         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23727         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23728         extraneous semicolon.
23729
23730 2010-08-26  Jim Meyering  <meyering@redhat.com>
23731
23732         stat-time: relax license LGPL
23733         * modules/stat-time (License): Change from GPL to LGPL,
23734         with consent from all contributors, for use in libguile.
23735         Requested by Ludovic Courtès.
23736
23737 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23738
23739         poll: return immediately on POLLHUP.
23740         * lib/poll.c (poll): Always set timeout before wait_timeout is
23741         computed.
23742
23743 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23744
23745         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23746         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23747         rmdir ("dir/.//"), unlinkat.
23748
23749 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23750
23751         stdbool: avoid spurious failure with modern xlc
23752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23753
23754 2010-08-24  Bruno Haible  <bruno@clisp.org>
23755
23756         getloadavg: simplify code
23757         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23758         gl_have_func. Update comments.
23759
23760 2010-08-24  Eric Blake  <eblake@redhat.com>
23761
23762         getloadavg: don't define SVR4 on cygwin
23763         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23764         only define SVR4 when -lkvm is required.
23765         Reported by Yaakov Selkowitz.
23766
23767 2010-08-24  Bruno Haible  <bruno@clisp.org>
23768
23769         priv-set: fix comment
23770         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23771
23772 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23773
23774         priv-set: fix comments
23775         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23776         to match code, as suggested by David Bartley in:
23777         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23778
23779 2010-08-23  Eric Blake  <eblake@redhat.com>
23780
23781         stdbool: avoid rejecting clang
23782         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23783         * tests/test-stdbool.c: Enable more tests if using the system
23784         <stdbool.h> instead of the gnulib replacement.
23785         (main): Move xlc bug test to a runtime test for all compilers.
23786         Reported by Anders Kaseorg.
23787
23788         argz: fix shell quoting issue
23789         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23790         Reported by Charles Wilson.
23791
23792 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23793             Erik Faye-Lund <kusmabite@gmail.com>
23794
23795         poll, select: handle ERROR_BROKEN_PIPE.
23796         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23797         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23798         * lib/select.c (win32_compute_revents): Do not mark a pipe
23799         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23800
23801 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23802
23803         fts: allow compilation with C++
23804         * lib/fts_.h: Specify extern "C" linkage with C++.
23805
23806 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23807
23808         Fix gnulib-tool sed script de-commentation for AIX sed.
23809         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23810         sed.
23811
23812 2010-08-17  Eric Blake  <eblake@redhat.com>
23813
23814         test-stddef: test for (some) offsetof bugs
23815         * tests/test-stddef.c: Enhance test to ensure correct type of
23816         offsetof.
23817         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23818         that we are not fixing at this time.
23819
23820 2010-08-15  Bruno Haible  <bruno@clisp.org>
23821
23822         stpncpy: Allow stpncpy to be defined as a macro.
23823         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23824         if it's already correctly declared.
23825         * lib/string.in.h (stpncpy): Undefine before redefining.
23826         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23827
23828 2010-08-14  Bruno Haible  <bruno@clisp.org>
23829
23830         Rename module 'memxfrm' to 'amemxfrm'.
23831         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23832         (amemxfrm): Renamed from memxfrm.
23833         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23834         (amemxfrm): Renamed from memxfrm.
23835         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23836         * NEWS: Mention the change.
23837         * MODULES.html.sh (String handling <string.h>): Update.
23838         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23839         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23840         * lib/unicase/u16-casexfrm.c: Likewise.
23841         * lib/unicase/u32-casexfrm.c: Likewise.
23842         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23843         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23844         * lib/uninorm/u16-normxfrm.c: Likewise.
23845         * lib/uninorm/u32-normxfrm.c: Likewise.
23846         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23847         memxfrm.
23848         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23849         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23850         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23851         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23852         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23853         Suggested by Paul Eggert.
23854
23855 2010-08-14  Bruno Haible  <bruno@clisp.org>
23856
23857         Tests for module 'astrxfrm'.
23858         * modules/astrxfrm-tests: New file.
23859         * tests/test-astrxfrm.c: New file.
23860
23861         New module 'astrxfrm'.
23862         * lib/astrxfrm.h: New file.
23863         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23864         * modules/astrxfrm: New file.
23865
23866 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23867
23868         regex: Tweak doc.
23869         * doc/regex.texi (Overview): Don't mention regex.c.
23870         (GNU Regular Expression Compiling): Likewise.
23871         (Match-end-of-line Operator): Mention 'not_eol'.
23872
23873 2010-08-14  Brian Gough  <bjg@gnu.org>
23874             Bruno Haible  <bruno@clisp.org>
23875
23876         git-merge-changelog: add doc relating to use with bzr and hg.
23877         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23878
23879 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23880
23881         pthread: fix pthread.h creation for srcdir != builddir
23882         * modules/pthread (Makefile.am): Fix the rule to work also in a
23883         non-srcdir build.
23884
23885 2010-08-13  Karl Berry  <karl@gnu.org>
23886
23887         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23888         * doc/posix-*/*: force line break before @url of POSIX
23889         specifications.
23890         Suggested by Werner Lemberg.
23891
23892 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23893
23894         strtod: fix const diagnostic
23895         * lib/strtod.c (strtod): Don't assign const char * to char *,
23896         as this elicits a warning from GCC when warnings are enabled.
23897
23898 2010-08-10  Pádraig Brady <P@draigbrady.com>
23899         and Eric Blake  <eblake@redhat.com>
23900
23901         copy-acl: ignore ENOTSUP on HP-UX
23902         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23903         so that it is available for HP-UX.
23904         * lib/copy-acl.c (qcopy_acl): Use it.
23905         Reported by Patrick M. Callahan.
23906
23907 2010-08-10  Eric Blake  <eblake@redhat.com>
23908
23909         open, chown: relax license
23910         * modules/open (License): Change to LGPLv2+, with consent by all
23911         authors, for use in augeas.
23912         * modules/chown (License): Likewise.
23913         * modules/lchown (Likewise): Likewise.
23914         Requested by Adam Stokes.
23915
23916 2010-08-09  Karl Berry  <karl@gnu.org>
23917
23918         * build-aux/ar-lib: new file, import from Automake.
23919         * config/srclist.txt: autocheck for updates.
23920
23921 2010-08-09  Eric Blake  <eblake@redhat.com>
23922
23923         readlinkat: adjust client modules
23924         * modules/areadlinkat (Depends-on): Use readlinkat, not
23925         symlinkat.
23926         * modules/areadlinkat-with-size (Depends-on): Likewise.
23927
23928         mknod: be more vocal about danger of running tests as root
23929         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23930         root, since that is just asking for problems.
23931         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23932
23933         readlinkat: split into its own module
23934         * modules/symlinkat: Split readlinkat...
23935         * modules/readlinkat: ...into separate module.
23936         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23937         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23938         * lib/symlinkat.c (readlinkat): Move...
23939         * lib/readlinkat.c: ...into new file.
23940         * modules/symlinkat-tests: Split readlinkat test...
23941         * modules/readlinkat-tests: ...into separate module.
23942         * tests/test-symlinkat.c: Split...
23943         * tests/test-readlinkat.c: ...into new file.
23944         * NEWS: Document the split.
23945         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23946         * lib/unistd.in.h (readlinkat): Likewise.
23947         Suggested by Bruno Haible.
23948
23949 2010-08-08  Bruno Haible  <bruno@clisp.org>
23950
23951         memxfrm: Speed up.
23952         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23953         that usually only one call to strxfrm is necessary for each string
23954         part.
23955         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23956
23957 2010-08-07  Karl Berry  <karl@gnu.org>
23958
23959         * doc/posix-headers/limits.texi,
23960         * doc/posix-functions/malloc.texi,
23961         * doc/posix-functions/strsignal.texi: missing @item.
23962         * doc/ld-version-script.texi: spurious leading i.
23963         * doc/regex.texi (Interval Operators): no commas inside @var.
23964
23965 2010-08-01  Bruno Haible  <bruno@clisp.org>
23966
23967         Integrate the regex documentation.
23968         * doc/gnulib.texi: Define 'cn' index.
23969         (Regular expressions): New a chapter that includes regex.texi and
23970         regexprops-generic.texi.
23971         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23972         syntax.
23973
23974         Whitespace cleanup.
23975         * doc/regex.texi: Remove trailing spaces.
23976
23977         Add regex documentation.
23978         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23979         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23980         Written by Kathy A. Hargreaves and Karl Berry.
23981
23982 2010-08-01  Bruno Haible  <bruno@clisp.org>
23983
23984         link: Update documentation.
23985         * doc/posix-functions/link.texi: Update regarding Solaris.
23986
23987 2010-07-31  Bruno Haible  <bruno@clisp.org>
23988
23989         Update modules list.
23990         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23991         (String handling <string.h>): Add memcmp2, memxfrm.
23992         (Container data structures): Add xlist, xsublist, xoset.
23993         (Core language properties): Add alignof, unused-parameter.
23994         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23995         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23996         (Unibyte characters <ctype.h>): New section.
23997         (String handling <string.h>): New section.
23998         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23999         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
24000         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
24001         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
24002         tan, tanh, tanl, y0, y1, yn.
24003         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
24004         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
24005         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
24006         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
24007         unlockpt, vdprintf, vdprintf-posix.
24008         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
24009         (File system functions): Add concat-filename, sys_file, sys_ioctl,
24010         xconcat-filename.
24011         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24012         getdtablesize, pipe2, pipe2-safer.
24013         (Security): New section.
24014         (Networking functions): Add accept4.
24015         (Signal handling): Add sigpipe.
24016         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24017         mbmemcasecoll.
24018         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24019         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24020         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24021         pipe-filter-ii.
24022         (Misc): Add argp-version-etc, login_tty, parse-duration.
24023
24024 2010-07-31  Bruno Haible  <bruno@clisp.org>
24025
24026         Improve doc in MODULES.html.
24027         * modules/linkat (Description): Add the word "function".
24028         * modules/mkfifo (Description): Likewise.
24029         * modules/mknod (Description): Likewise.
24030         * modules/remove (Description): Likewise.
24031         * modules/renameat (Description): Likewise.
24032         * modules/stat (Description): Likewise.
24033         * modules/symlink (Description): Likewise.
24034         * modules/unlink (Description): Likewise.
24035
24036 2010-07-31  Bruno Haible  <bruno@clisp.org>
24037
24038         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24039         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24040         option --enable/disable-c++ instead of --enable/disable-cxx.
24041         * NEWS: Mention the change.
24042
24043 2010-07-31  Bruno Haible  <bruno@clisp.org>
24044
24045         readlink, areadlink: Relax test a bit.
24046         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24047         alternative to ENOTDIR.
24048         * tests/test-areadlink.h (test_areadlink): Likewise.
24049         Reported by Rainer Tammer.
24050
24051 2010-07-31  Bruno Haible  <bruno@clisp.org>
24052
24053         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24054         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24055         character, perform the search using U_STRCHR.
24056         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24057         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24058         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24059         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24060         Suggested by Paolo Bonzini.
24061
24062 2010-07-31  Bruno Haible  <bruno@clisp.org>
24063
24064         unistr/u*-strstr: Fix dependencies.
24065         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24066         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24067         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24068
24069 2010-07-31  Bruno Haible  <bruno@clisp.org>
24070
24071         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24072         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24073         the beginning of the loop.
24074         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24075         cases in 'switch' statement.
24076
24077         unistr/u8-strchr: Fix several bugs.
24078         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24079         the string. When not found, return NULL, not a pointer near the end.
24080
24081         More tests for unistr/u8-strchr.
24082         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24083         that the function does not read past the first occurrence of the byte
24084         being searched.
24085         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24086         * tests/unistr/test-u16-strchr.c (main): New function.
24087         * tests/unistr/test-u32-strchr.c (main): New function.
24088
24089 2010-07-31  Bruno Haible  <bruno@clisp.org>
24090
24091         posix-modules: Ignore backup files of documentation files.
24092         * posix-modules: grep only through files named *.texi.
24093
24094 2010-07-31  Bruno Haible  <bruno@clisp.org>
24095
24096         symlinkat: Fix documentation.
24097         * doc/posix-functions/readlinkat.texi: Fix module name.
24098
24099 2010-07-31  Bruno Haible  <bruno@clisp.org>
24100
24101         fchownat: Replace also when chown has the trailing slash bug.
24102         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24103         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24104         introduced on 2010-04-10.
24105         Reported by Rainer Tammer.
24106
24107 2010-07-31  Bruno Haible  <bruno@clisp.org>
24108
24109         linkat: Work around AIX 7.1 bug.
24110         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24111         whether linkat handles trailing slash correctly. If not, replace linkat
24112         and define LINKAT_TRAILING_SLASH_BUG.
24113         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24114         check whether (fd1,file1) points to a directory if file1 or file2 ends
24115         in a slash. Code taken from lib/link.c.
24116         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24117         Reported by Rainer Tammer.
24118
24119 2010-07-31  Bruno Haible  <bruno@clisp.org>
24120
24121         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24122         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24123         This disables an xlc optimization that was causing wrong test results.
24124         Reported by Rainer Tammer.
24125
24126 2010-07-31  Bruno Haible  <bruno@clisp.org>
24127
24128         iconv: Work around AIX 6.1..7.1 bug.
24129         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24130         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24131         cross-compiling, guess no on all versions of AIX.
24132         Reported by Rainer Tammer.
24133
24134 2010-07-31  Bruno Haible  <bruno@clisp.org>
24135
24136         readlink: Relax test a bit.
24137         * tests/test-readlink.h (test_readlink): Allow different errno value
24138         when readlink is called with a file name that ends in / and refers to
24139         a file.
24140         Suggested by Eric Blake.
24141         Reported by Rainer Tammer.
24142
24143 2010-07-31  Bruno Haible  <bruno@clisp.org>
24144
24145         copysign: Does not require -lm on glibc systems.
24146         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24147         gl_COMMON_DOUBLE_MATHFUNC.
24148         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24149
24150 2010-07-31  Bruno Haible  <bruno@clisp.org>
24151
24152         duplocale: Work around AIX 7.1 bug.
24153         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24154         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24155         * lib/duplocale.c (rpl_duplocale): Update comment.
24156         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24157         Reported by Rainer Tammer.
24158
24159 2010-07-30  Bruno Haible  <bruno@clisp.org>
24160
24161         dirfd: Avoid link error on AIX 7.1.
24162         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24163         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24164         exist, set REPLACE_DIRFD.
24165         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24166         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24167         * doc/posix-functions/dirfd.texi: Update.
24168         Reported by Rainer Tammer.
24169
24170 2010-07-30  Eric Blake  <eblake@redhat.com>
24171
24172         strtod: next round of AIX fixes
24173         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24174         exponent.
24175         * tests/test-strtod.c (main): Enhance tests.
24176         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24177         Reported by Rainer Tammer.
24178
24179         futimens: fix configure check
24180         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24181         Reported by Bruno Haible.
24182
24183 2010-07-30  Bruno Haible  <bruno@clisp.org>
24184
24185         getline: Update regarding AIX.
24186         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24187         Reported by Rainer Tammer.
24188
24189 2010-07-30  Bruno Haible  <bruno@clisp.org>
24190
24191         wcwidth: Drop replacement on AIX 7.
24192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24193         AIX 7.
24194         Reported by Rainer Tammer.
24195
24196 2010-07-30  Bruno Haible  <bruno@clisp.org>
24197
24198         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24199         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24200         a 'char *'.
24201         Reported by Rainer Tammer.
24202
24203 2010-07-30  Bruno Haible  <bruno@clisp.org>
24204
24205         unlink: Update regarding AIX.
24206         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24207         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24208         Reported by Rainer Tammer.
24209
24210 2010-07-30  Bruno Haible  <bruno@clisp.org>
24211
24212         symlink: Update regarding AIX.
24213         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24214         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24215         Reported by Rainer Tammer.
24216
24217 2010-07-30  Bruno Haible  <bruno@clisp.org>
24218
24219         strndup: Update regarding AIX.
24220         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24221         AIX 7.
24222         Reported by Rainer Tammer.
24223
24224 2010-07-30  Bruno Haible  <bruno@clisp.org>
24225
24226         stat: Update regarding AIX.
24227         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24228         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24229         Reported by Rainer Tammer.
24230
24231 2010-07-30  Bruno Haible  <bruno@clisp.org>
24232
24233         truncl: Fix autoconf test.
24234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24235         whether truncl works.
24236         Reported by Rainer Tammer.
24237
24238 2010-07-30  Bruno Haible  <bruno@clisp.org>
24239
24240         round: Update regarding AIX.
24241         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24242         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24243         Reported by Rainer Tammer.
24244
24245 2010-07-30  Bruno Haible  <bruno@clisp.org>
24246
24247         rename: Update regarding AIX.
24248         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24249         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24250         Reported by Rainer Tammer.
24251
24252 2010-07-30  Bruno Haible  <bruno@clisp.org>
24253
24254         printf.m4: Update regarding AIX.
24255         * m4/printf.m4: Update comments regarding AIX.
24256         Reported by Rainer Tammer.
24257
24258 2010-07-30  Bruno Haible  <bruno@clisp.org>
24259
24260         iconv: Update regarding AIX.
24261         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24262         AIX 7.
24263         Reported by Rainer Tammer.
24264
24265 2010-07-30  Bruno Haible  <bruno@clisp.org>
24266
24267         getopt: Update regarding AIX.
24268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24269         no on AIX.
24270         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24271         Reported by Rainer Tammer.
24272
24273 2010-07-30  Bruno Haible  <bruno@clisp.org>
24274
24275         ldexpl; Update regarding AIX.
24276         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24277         on AIX 7.
24278         Reported by Rainer Tammer.
24279
24280 2010-07-30  Bruno Haible  <bruno@clisp.org>
24281
24282         frexpl: Update regarding AIX.
24283         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24284         on AIX 7.
24285         Reported by Rainer Tammer.
24286
24287 2010-07-30  Bruno Haible  <bruno@clisp.org>
24288
24289         open, fopen: Update regarding AIX.
24290         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
24291         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24292         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
24293         * doc/posix-functions/fopen.texi: Likewise.
24294         Reported by Rainer Tammer.
24295
24296 2010-07-30  Bruno Haible  <bruno@clisp.org>
24297
24298         chown: Update doc regarding AIX.
24299         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24300         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24301         Reported by Rainer Tammer.
24302
24303 2010-07-30  Eric Blake  <eblake@redhat.com>
24304
24305         strtod: fix bug in replacement function on AIX
24306         * lib/strtod.c (strtod): Special case broken "0x" parse in
24307         underlying strtod.
24308         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24309         * doc/posix-functions/strtod.texi (strtod): Likewise.
24310         Reported by Rainer Tammer.
24311
24312 2010-07-30  Bruno Haible  <bruno@clisp.org>
24313
24314         mbrlen: Fix cross-compilation guess for AIX.
24315         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24316         guess. Leftover from 2008-12-22.
24317
24318 2010-07-30  Bruno Haible  <bruno@clisp.org>
24319
24320         mbrtowc: Fix cross-compilation guess for AIX.
24321         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24322         guess. Leftover from 2008-12-21.
24323
24324 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24325
24326         init.sh: work around trap limitation of some shells
24327         * tests/init.sh (setup_): Move exit trap outside of shell function.
24328
24329 2010-07-29  Eric Blake  <eblake@redhat.com>
24330
24331         strtod: aid debugging
24332         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24333         understanding why strtod is rejected.
24334
24335 2010-07-28  Bruno Haible  <bruno@clisp.org>
24336
24337         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24338         * lib/unistr/u8-chr.c: Include <string.h>.
24339         * tests/unistr/test-u8-chr.c: Likewise.
24340         * tests/unistr/test-u16-chr.c: Likewise.
24341         * tests/unistr/test-u32-chr.c: Likewise.
24342         * tests/unistr/test-u8-strchr.c: Likewise.
24343         * tests/unistr/test-u16-strchr.c: Likewise.
24344         * tests/unistr/test-u32-strchr.c: Likewise.
24345         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24346         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24347         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24348         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24349
24350 2010-07-28  Bruno Haible  <bruno@clisp.org>
24351
24352         Use spaces for indentation, not tabs.
24353         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24354
24355 2010-07-27  Bruno Haible  <bruno@clisp.org>
24356
24357         mbspcasecmp: Fix function specification.
24358         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24359         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24360         Reported by Eric Blake <eblake@redhat.com>.
24361
24362 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24363
24364         timespec: use cast and not conditional, as truncation isn't possible
24365         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24366         instead of a conditional.  Comment about the situation in more detail.
24367         This undoes most of the 2009-10-29 patch.
24368
24369 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24370
24371         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24372         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24373         * lib/unistr/u8-strchr.c: Likewise.
24374         * modules/unistr/u8-chr: Depend on memchr.
24375
24376         unistr/u*-strchr: add tests
24377         * modules/unistr/u8-strchr-tests: New file.
24378         * modules/unistr/u16-strchr-tests: New file.
24379         * modules/unistr/u32-strchr-tests: New file.
24380         * tests/unistr/test-strchr.h: New file.
24381         * tests/unistr/test-u8-strchr.c: New file.
24382         * tests/unistr/test-u16-strchr.c: New file.
24383         * tests/unistr/test-u32-strchr.c: New file.
24384
24385         unistr/u*-chr: test multibyte sequences more
24386         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24387         test vector.
24388         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24389         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24390         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24391
24392         unistr/u*-chr: test multibyte sequences
24393         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24394
24395         unistr/u*-chr: prepare for multibyte tests
24396         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24397         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24398         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24399         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24400         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24401         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24402
24403 2010-07-18  Bruno Haible  <bruno@clisp.org>
24404
24405         unistr/u8-strchr: Optimize non-ASCII argument case.
24406         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24407         because the first byte often matches anyway.
24408         Reported by Pádraig Brady <P@draigbrady.com>.
24409
24410 2010-07-15  Karl Berry  <karl@gnu.org>
24411
24412         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24413
24414 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24415
24416         getcwd: on Solaris, work better if ancestors are inaccessible
24417         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24418         buffer and size, try again with a large buffer.  This works better
24419         on Solaris, since its getcwd succeeds even if the path to the root
24420         is inaccessible, and this is helpful in common cases such as .zfs
24421         hidden directories.  Problem reported by J Chapman Flack in
24422         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24423         Use system getcwd if it's declared, not merely if it's partly
24424         working; use the partly-working test only to avoid needless effort
24425         if the system getcwd fails.
24426         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24427         comment that was already obsolete and is now even more obsolete.
24428         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24429         now might call strdup.
24430
24431 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24432
24433         pthread: Add enough so that coreutils/src/sort.c compiles.
24434         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24435         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24436         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24437         Include <sys/types.h>, in case it defines pthread_t.
24438         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24439         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24440         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24441         (pthread_rwlockattr_t, pthread_spinlock_t):
24442         New typedefs, if HAVE_PTHREAD_T is not defined.
24443         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24444         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24445         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24446         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24447         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24448         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24449         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24450         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24451         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24452         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24453         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24454         New macros.
24455         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24456         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24457         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24458         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24459         (pthread_spin_unlock): New dummy functions.
24460         (pthread_create): Return EAGAIN; don't set errno.
24461         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24462         require AC_C_INLINE.
24463         * modules/pthread (Depends-on): Add sched, time.
24464         (pthread.h): Use AM_V_GEN.
24465
24466 2010-07-13  Bruno Haible  <bruno@clisp.org>
24467
24468         striconveh: Don't malloc memory if the result buffer is sufficient.
24469         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24470         buffer if its size is sufficient.
24471         Reported by Ludovic Courtès <ludo@gnu.org>.
24472
24473 2010-07-13  Bruno Haible  <bruno@clisp.org>
24474
24475         strtod: Add safety check.
24476         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24477
24478 2010-07-12  Bruno Haible  <bruno@clisp.org>
24479
24480         Unify tests that set gl_cv_func_ldexpl_no_libm.
24481         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24482         gl_FUNC_LDEXPL.
24483         (gl_FUNC_LDEXPL): Invoke it.
24484         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24485
24486 2010-07-12  Bruno Haible  <bruno@clisp.org>
24487
24488         Unify tests that set gl_cv_func_ldexp_no_libm.
24489         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24490         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24491         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24492         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24493         * modules/strtod (Files): Add m4/ldexp.m4.
24494
24495 2010-07-12  Bruno Haible  <bruno@clisp.org>
24496
24497         Unify tests that set gl_cv_func_frexpl_no_libm.
24498         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24499         gl_FUNC_FREXPL_NO_LIBM.
24500         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24502
24503 2010-07-12  Bruno Haible  <bruno@clisp.org>
24504
24505         Unify tests that set gl_cv_func_frexp_no_libm.
24506         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24507         gl_FUNC_FREXP_NO_LIBM.
24508         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24509         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24510
24511 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24512
24513         memcoll: clarify sizes versus lengths, document better, and tweak perf
24514         * lib/memcoll.c (strcoll_loop, memcoll0):
24515         Improve quality of descriptive comments.  Name variables
24516         consistently as to whether they are lengths (which do not include
24517         terminating null) versus sizes (which do).
24518         * lib/xmemcoll.c (xmemcoll0): Likewise.
24519         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24520         returned when s1size == 0; this is easier to compile and saves
24521         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24522
24523 2010-07-12  Bruno Haible  <bruno@clisp.org>
24524
24525         Tests for module '_Exit'.
24526         * modules/_Exit-tests: New file.
24527         * tests/test-_Exit.sh: New file.
24528         * tests/test-_Exit.c: New file.
24529
24530         New module '_Exit'.
24531         * lib/stdlib.in.h (__attribute__): New macro.
24532         (_Exit): New declaration.
24533         * lib/_Exit.c: New file.
24534         * m4/_Exit.m4: New file.
24535         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24536         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24537         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24538         * modules/_Exit: New file.
24539         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24540         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24541
24542 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24543
24544         strtod: make it more-accurate typically, and don't require libm
24545         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24546         Include limits.h.  Don't include string.h.
24547         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24548         (locale_isspace): New function, so that no casts are needed to
24549         check whether *s is a space.
24550         (ldexp): Provide an unused dummy if not available.
24551         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24552         (strtod): Use them.  This implementation prefers to use the
24553         underlying strtod if available, falling back on our own code
24554         only to fix known bugs.  This is more likely to produce an
24555         accurate result.  Also, it avoids the use of libm functions.
24556         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24557         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24558         was absent, but it caused a test failure with coreutils.
24559         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24560         with libm.
24561         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24562         * modules/strtod-tests (Makefile.am): Likewise.
24563
24564 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24565             Bruno Haible  <bruno@clisp.org>
24566
24567         unistr/u8-strchr: Optimize ASCII argument case.
24568         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24569
24570 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24571
24572         (x)memcoll: minor tweaks
24573         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24574         is after the type that it qualifies.
24575         (memcoll0): Likewise.
24576         * lib/memcoll.h (memcoll0): Likewise.
24577         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24578         * lib/xmemcoll.h (xmemcoll0): Likewise.
24579         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24580         differs from memcoll in that the NUL byte is part of the argument.
24581         Omit the abort-checks, as performance is a real issue here.  Plus,
24582         the checks were wrong anyway (an off-by-one error).  Omit local
24583         variable 'diff', as it's a bit clearer that way.
24584         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24585         no longer needed.
24586
24587 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24588
24589         (x)memcoll: speedup when input is known to be NUL delimited
24590         * lib/memcoll.c: Include stdlib.
24591         (memcoll0): New function.
24592         (strcoll_loop): New function, refactored for use in both memcoll
24593         and memcoll0.
24594         * lib/memcoll.h (memcoll0): Add prototype.
24595         * lib/xmemcoll.c (xmemcoll0): New function.
24596         (collate_error): New function, refactored for use in both xmemcoll
24597         and xmemcoll0.
24598         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24599         * m4/memcoll.m4: add inline invocation.
24600
24601 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24602
24603         * build-aux/bootstrap: Remove any local translations
24604         from the translation project synchronization directory,
24605         so that local only translations are not distributed.
24606
24607 2010-07-04  Bruno Haible  <bruno@clisp.org>
24608
24609         fsusage: Clarify which code applies to which platforms.
24610         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24611         platform.
24612         * lib/fsusage.c (get_fs_usage): Likewise.
24613
24614 2010-07-04  Bruno Haible  <bruno@clisp.org>
24615
24616         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24617         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24618         Reported by Martin Lambers <marlam@marlam.de>.
24619
24620 2010-07-04  Jim Meyering  <meyering@redhat.com>
24621
24622         hash: once again explicitly disallow insertion of NULL
24623         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24624         inserting a NULL pointer cannot work with these functions.
24625         Add a comment with details.
24626         This reverts part of the 2010-07-01 commit, 5bef1a35
24627         "hash: extend module to deal with non-pointer keys".
24628
24629 2010-07-01  Bruno Haible  <bruno@clisp.org>
24630
24631         stdbool: Update doc.
24632         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24633         Info from Christian Weisgerber <naddy@mips.inka.de>.
24634
24635 2010-07-01  Jim Meyering  <meyering@redhat.com>
24636
24637         hash: extend module to deal with non-pointer keys
24638         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24639         but that allows insertion of non-pointer entries.
24640         Do not disallow an ENTRY value of NULL.
24641         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24642         * lib/hash.h (hash_insert0): Declare.
24643
24644 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24645
24646         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24647         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24648         not present (i.e. with autoconf 2.59 and when using gettextize, not
24649         gnulib), require AC_GNU_SOURCE instead.
24650
24651 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24652
24653         idpriv-drop: Fix tests.
24654         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24655         not to the test-idpriv-droptemp program.
24656
24657 2010-06-29  Bruno Haible  <bruno@clisp.org>
24658
24659         string: Fix syntax error with g++ 2.96.
24660         * lib/string.in.h (__pure__): Remove definition.
24661         (_GL_ATTRIBUTE_PURE): New macro.
24662         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24663         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24664         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24665
24666 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24667
24668         unitypes: Fix bug introduced on 2010-05-18.
24669         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24670
24671 2010-06-22  Eric Blake  <eblake@redhat.com>
24672
24673         memmem: slight optimization
24674         * lib/str-two-way.h (critical_factorization): Update comments.
24675         Reduce work during factorization phase.
24676         Reported by Carlos Bueno <carlos@bueno.org>.
24677
24678 2010-06-21  Bruno Haible  <bruno@clisp.org>
24679
24680         Fix HAVE_CALLOC_POSIX misnomer.
24681         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24682         !HAVE_CALLOC_POSIX.
24683         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24684         HAVE_CALLOC_POSIX.
24685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24686         instead of HAVE_CALLOC_POSIX.
24687         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24688         HAVE_CALLOC_POSIX.
24689
24690         Use modern idiom for calloc() replacement.
24691         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24692         AC_FUNC_CALLOC.
24693         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24694         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24695         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24696         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24697         (gl_REPLACE_CALLOC): New macro.
24698
24699 2010-06-21  Bruno Haible  <bruno@clisp.org>
24700
24701         Fix HAVE_REALLOC_POSIX misnomer.
24702         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24703         !HAVE_REALLOC_POSIX.
24704         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24705         HAVE_REALLOC_POSIX.
24706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24707         instead of HAVE_REALLOC_POSIX.
24708         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24709         HAVE_REALLOC_POSIX.
24710
24711         Use modern idiom for realloc() replacement.
24712         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24713         AC_FUNC_REALLOC.
24714         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24715         Autoconf's AC_FUNC_REALLOC.
24716         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24717         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24718         (gl_REPLACE_REALLOC): New macro.
24719         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24720
24721 2010-06-21  Bruno Haible  <bruno@clisp.org>
24722
24723         Fix HAVE_MALLOC_POSIX misnomer.
24724         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24725         !HAVE_MALLOC_POSIX.
24726         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24727         HAVE_MALLOC_POSIX.
24728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24729         instead of HAVE_MALLOC_POSIX.
24730         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24731         HAVE_MALLOC_POSIX.
24732
24733         Use modern idiom for malloc() replacement.
24734         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24735         AC_FUNC_MALLOC.
24736         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24737         Autoconf's AC_FUNC_MALLOC.
24738         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24739         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24740         (gl_REPLACE_MALLOC): New macro.
24741         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24742
24743 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24744
24745         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24746         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24747         This macro takes 3 arguments, not 4.
24748
24749 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24750
24751         ipv6: fix detection under mingw
24752         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24753         in6_addr.
24754
24755 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24756
24757         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24758         that strtod() works when cross-compiling to a glibc version known
24759         to work.
24760
24761 2010-06-15  Bruno Haible  <bruno@clisp.org>
24762
24763         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24764
24765 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24766
24767         select: Correct timeout.
24768         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24769
24770 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24771
24772         git-version-gen: init shell var to avoid env var influence
24773         * build-aux/git-version-gen (v): Init shell var to empty.
24774
24775 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24776
24777         priv-set: Don't assume that priv.h exists merely because getppriv does.
24778         See Jan Andersen's bug report about AIX 5L in
24779         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24780         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24781         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24782         * lib/priv-set.h: Likewise.
24783         * tests/test-priv-set.c: Likewise.
24784
24785 2010-06-13  Bruno Haible  <bruno@clisp.org>
24786
24787         relocatable: Make it easier to test whether to install wrappers.
24788         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24789         RELOCATABLE_VIA_WRAPPER.
24790
24791 2010-06-13  Bruno Haible  <bruno@clisp.org>
24792
24793         gnulib-tool: Display specified modules and dependencies differently.
24794         * gnulib-tool (func_show_module_list): New function.
24795         (func_import, func_create_testdir): Invoke it.
24796         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24797
24798 2010-06-13  Bruno Haible  <bruno@clisp.org>
24799
24800         gnulib-tool: Align code of func_import and func_create_testdir.
24801         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24802         specified_modules.
24803
24804 2010-06-12  Jim Meyering  <meyering@redhat.com>
24805
24806         test-inttostr: avoid spurious failure on Solaris 9
24807         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24808         to accept "%ju".  Reported by Bruno Haible.
24809
24810 2010-06-11  Jim Meyering  <meyering@redhat.com>
24811
24812         test-sys_socket: mark variables as used more readably
24813         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24814         as "used" explicitly via (void) statement casts.  This is more
24815         readable than using them in an artificial return expression.
24816         Suggestion from Bruno Haible.
24817
24818 2010-06-11  Bruno Haible  <bruno@clisp.org>
24819
24820         Avoid some more warnings from "gcc -Wwrite-strings".
24821         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24822         to 'const char *'.
24823         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24824         * tests/test-c-strcasestr.c (main): Likewise.
24825         * tests/test-mbscasestr1.c (main): Likewise.
24826         * tests/test-mbscasestr2.c (main): Likewise.
24827         * tests/test-memmem.c (main): Likewise.
24828         * tests/test-strstr.c (main): Likewise.
24829         * tests/test-strcasestr.c (main): Likewise.
24830
24831 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24832
24833         init.sh: change framework_failure_ to fail with status 99, not 1
24834         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24835         automake's parallel-tests rule that this is an unexpected failure,
24836         even if the test is listed in XFAIL_TESTS.
24837
24838 2010-06-11  Jim Meyering  <meyering@redhat.com>
24839
24840         test-inttostr: avoid warnings about 4-6KB literal strings
24841         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24842         Include "macros.h", for its definition of ASSERT.
24843         (CK): s/assert/ASSERT/
24844         * modules/inttostr-tests (Files): Add macros.h.
24845
24846         init.sh: don't use $ME_ or skip_ before they are defined
24847         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24848         their first uses.  Also hoist their companions: warn_, fail_,
24849         framework_failure_, $stderr_fileno.  Prompted by a patch from
24850         Stefano Lattarini.
24851
24852         test-sys_socket: avoid set-but-not-used warnings from gcc
24853         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24854         avoid warning about set-but-not-used variables.
24855
24856         test-xvasprintf: avoid 'const' discard warnings
24857         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24858         "const" when assigning from literal strings.
24859         (test_xasprintf): Add "void" in function argument list to placate
24860         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24861
24862         tests: avoid compilation warnings in argmatch and exclude tests...
24863         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24864         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24865         Since it always exits, declare with the "noreturn" attribute.
24866         * tests/test-argmatch.c: Likewise.
24867
24868         tests: avoid 'const' discard warnings in mbsstr tests
24869         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24870         * tests/test-mbsstr2.c (main): Likewise.
24871
24872         test-verify: avoid warning from gcc's -Wmissing-declarations
24873         * tests/test-verify.c (function): Declare to be static.
24874
24875         test-inttostr.c: include <string.h> for use of strcmp
24876         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24877
24878         test-linkat: avoid failed assertion on "other" architectures
24879         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24880         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24881         sparc: https://bugs.launchpad.net/bugs/591968
24882
24883 2010-06-11  Jim Meyering  <meyering@redhat.com>
24884
24885         printf.m4: avoid autoconf's "Expanded Before Required" warning
24886         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24887         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24888         autoconf warning.
24889
24890 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24891
24892         Replacement header templates are now named with ".in", not "_".
24893         * doc/gnulib-intro.texi: Correct.
24894
24895 2010-06-10  Jim Meyering  <meyering@redhat.com>
24896
24897         inttostr-tests: depend on snprintf, not snprintf-posix
24898         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24899         snprintf-posix, to avoid this aclocal failure:
24900           missing file gnulib-tests/vasnprintf.c
24901           configure.ac:45: error: expected source file, required through \
24902           AC_LIBSOURCES, not found
24903
24904 2010-06-10  Jim Meyering  <meyering@redhat.com>
24905
24906         inttostr: add a new function, inttostr, and tests
24907         The namesake function was not available.  The existence of the
24908         template file, inttostr.c makes its addition nontrivial.
24909         * lib/anytostr.c: Rename from inttostr.c.
24910         (anytostr): Rename from inttostr.
24911         * lib/inttostr.c: New file.
24912         * modules/inttostr (Files): Add anytostr.c.
24913         (Makefile.am): Set lib_SOURCES instead of ...
24914         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24915         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24916         * lib/offtostr.c: Likewise.
24917         * lib/uinttostr.c: Likewise.
24918         * lib/umaxtostr.c: Likewise.
24919         * modules/inttostr-tests: New file.
24920         * tests/test-inttostr.c: New file.  Test these functions.
24921
24922 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24923             Bruno Haible  <bruno@clisp.org>
24924
24925         Add "Extending Gnulib" chapter to manual.
24926         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24927         chapter.
24928         (Extending Gnulib): New chapter.
24929         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24930         chapter.
24931
24932 2010-06-09  Bruno Haible  <bruno@clisp.org>
24933
24934         Avoid relocwrapper link errors due to gnulib replacement functions.
24935         * lib/areadlink.c: Use the system's malloc, realloc functions.
24936         (areadlink): Set errno to ENOMEM explicitly.
24937         * modules/areadlink (Depends-on): Remove malloc-posix.
24938         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24939
24940 2010-06-09  Bruno Haible  <bruno@clisp.org>
24941
24942         Avoid relocwrapper link errors due to gnulib replacement functions.
24943         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24944         * lib/malloca.c: Likewise.
24945         * lib/relocatable.c: Likewise.
24946         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24947         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24948         * lib/setenv.c: Use the system's malloc, realloc functions.
24949         * lib/strerror.c: Use the system's sprintf function.
24950         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24951
24952 2010-06-04  Bruno Haible  <bruno@clisp.org>
24953
24954         Prefer documented low-level autoconf macro names.
24955         * m4/lib-link.m4: Use m4_translit instead of translit.
24956         * m4/environ.m4: Likewise.
24957         * m4/mathfunc.m4: Likewise.
24958         * m4/onceonly.m4: Likewise.
24959         * m4/stdint.m4: Likewise.
24960         Suggested by Eric Blake.
24961
24962 2010-06-04  Martin Lambers  <marlam@marlam.de>
24963             Bruno Haible  <bruno@clisp.org>
24964
24965         havelib: Allow library names with '+' characters.
24966         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24967         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24968
24969 2010-06-09  Bruno Haible  <bruno@clisp.org>
24970
24971         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24972         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24973         realloc failed.
24974
24975 2010-06-08  Peter Simons  <simons@cryp.to>
24976
24977         maint.mk: make the news-check rule more configurable
24978         * top/maint.mk (news-check-lines-spec): New variable.
24979         (news-check): Use "sed -n 1,10p" in place of "head".
24980
24981 2010-06-07  Jim Meyering  <meyering@redhat.com>
24982
24983         do-release-commit-and-tag: fix typo in --help
24984         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24985
24986         regex: avoid new dead-code warning with gcc-4.6.0
24987         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24988         if-block containing a while-loop.  It's been unused for at least
24989         5 years.
24990
24991 2010-06-05  Bruno Haible  <bruno@clisp.org>
24992
24993         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24994         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24995
24996 2010-06-04  Bruno Haible  <bruno@clisp.org>
24997
24998         Update to GNU gettext 0.18.1.
24999         * modules/gettext (configure.ac): Require gettext infrastructure from
25000         version 0.18.1.
25001
25002 2010-06-03  Bruno Haible  <bruno@clisp.org>
25003
25004         Don't use AC_LIBOBJ with file names in subdirectories.
25005         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
25006         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
25007         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
25008         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
25009         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
25010         gl_LIBUNISTRING_LIBSOURCE.
25011         (Makefile.am): Augment lib_SOURCES here, conditionally.
25012         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25013
25014 2010-06-03  Bruno Haible  <bruno@clisp.org>
25015
25016         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25017         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25018         expansion does not end with a newline.
25019         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25020         unnecessary newline.
25021
25022 2010-06-03  Bruno Haible  <bruno@clisp.org>
25023
25024         Reduce dependencies.
25025         * tests/test-quotearg.h: New file, extracted from
25026         tests/test-quotearg.c.
25027         * tests/test-quotearg-simple.c: New file, extracted from
25028         tests/test-quotearg.c.
25029         * tests/test-quotearg.c: Don't include <ctype.h>.
25030         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25031         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25032         use_quote_double_quotes, use_quotearg_colon): Moved to
25033         tests/test-quotearg.h.
25034         (results_g, flag_results, custom_quotes, custom_results): Moved
25035         to tests/test-quotearg-simple.c.
25036         (main): Moved the part that does not depend on gettext to
25037         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25038         performed.
25039         * modules/quotearg-simple: New file.
25040         * modules/quotearg-simple-tests: New file.
25041         * modules/quotearg (Depends-on): Add quotearg-simple.
25042         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25043         (Files): Add tests/test-quotearg.h.
25044         Reported by Paolo Bonzini.
25045
25046 2010-06-03  Bruno Haible  <bruno@clisp.org>
25047
25048         Reduce dependencies.
25049         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25050
25051 2010-06-03  Bruno Haible  <bruno@clisp.org>
25052
25053         time: Undefine more broken macros.
25054         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25055         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25056         Reported by Eric Blake.
25057
25058 2010-06-03  Bruno Haible  <bruno@clisp.org>
25059
25060         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25061         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25062         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25063         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25064         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25065         Reported by Ludovic Courtès <ludo@gnu.org>.
25066
25067 2010-06-02  Eric Blake  <eblake@redhat.com>
25068
25069         time: work with mingw + pthreads-win32 library
25070         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25071         if timespec is defined only in pthread.h.
25072         * modules/time (Makefile.am): Substitute it.
25073         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25074         <pthread.h>, when needed.
25075         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25076         from the library.
25077
25078 2010-05-31  Bruno Haible  <bruno@clisp.org>
25079
25080         Avoid expanding two macros in the wrong order.
25081         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25082         gl_LIBUNISTRING if it is defined.
25083         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25084         autoconf >= 2.64.
25085         Reported by Ludovic Courtès <ludo@gnu.org>.
25086
25087 2010-05-27  Jim Meyering  <meyering@redhat.com>
25088
25089         maint.mk: also prohibit "#undef" of always-defined symbols
25090         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25091         Allow more than one space before the symbol name.
25092         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25093         the regexp uses alternation.
25094
25095 2010-05-26  Eric Blake  <eblake@redhat.com>
25096
25097         maint.mk: avoid echo -e
25098         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25099         Convert all uses of echo -* to printf.
25100         Reported by Matthias Bolte.
25101
25102 2010-05-25  Bruno Haible  <bruno@clisp.org>
25103
25104         Update to GNU gettext 0.18, part 2.
25105         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25106         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25107
25108 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25109
25110         Add missing include in test-pwrite.c.
25111         * tests/test-pwrite.c: Include string.h, for strcmp.
25112
25113 2010-05-24  Bruno Haible  <bruno@clisp.org>
25114
25115         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25116
25117 2010-05-24  Bruno Haible  <bruno@clisp.org>
25118
25119         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25120         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25121         iconveh_error argument.
25122         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25123         U_STRCONV_TO_LOCALE.
25124         * lib/unistr/u16-strcoll.c: Likewise.
25125         * lib/unistr/u32-strcoll.c: Likewise.
25126         * modules/unistr/u8-strcoll (Depends-on): Add
25127         uniconv/u8-strconv-to-enc, localcharset. Remove
25128         uniconv/u8-strconv-to-locale.
25129         (configure.ac): Bump version number.
25130         * modules/unistr/u16-strcoll (Depends-on): Add
25131         uniconv/u16-strconv-to-enc, localcharset. Remove
25132         uniconv/u16-strconv-to-locale.
25133         (configure.ac): Bump version number.
25134         * modules/unistr/u32-strcoll (Depends-on): Add
25135         uniconv/u32-strconv-to-enc, localcharset. Remove
25136         uniconv/u32-strconv-to-locale.
25137         (configure.ac): Bump version number.
25138
25139 2010-05-24  Bruno Haible  <bruno@clisp.org>
25140
25141         Avoid a test failure on NetBSD 5.0.
25142         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25143         an iconv() bug.
25144
25145 2010-05-24  Bruno Haible  <bruno@clisp.org>
25146
25147         Adjust #include directive style.
25148         * modules/regex (Includes): Recommend to write <regex.h>.
25149
25150 2010-05-24  Bruno Haible  <bruno@clisp.org>
25151
25152         regex: Don't require alloca.
25153         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25154         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25155         only inside if (0).
25156
25157 2010-05-23  Jim Meyering  <meyering@redhat.com>
25158
25159         test-renameat.c: include <sys/stat.h>
25160         * tests/test-renameat.c: Include <sys/stat.h>; required for
25161         definition of S_IS* macros.
25162
25163 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25164
25165         Update maintainer documentation for 'relocatable-prog' module.
25166         * doc/relocatable-maint.texi: Update.
25167         Comments by Bruno Haible.
25168
25169 2010-05-23  Bruno Haible  <bruno@clisp.org>
25170
25171         git-merge-changelog: Enable --split-merged-entry by default.
25172         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25173         (usage): Don't mention this option any more.
25174         Reported by Ralf Wildenhues.
25175
25176 2010-05-23  Jim Meyering  <meyering@redhat.com>
25177
25178         test-pwrite: do not leave behind a test file named "out"
25179         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25180         The trivial-looking use of init.sh is really necessary.
25181         It ensures that the temporary file, "out", is created in
25182         a temporary directory, and removed upon termination.
25183         * tests/test-pwrite.sh: Re-add file.
25184         * modules/pwrite-tests: Reference it.
25185
25186 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25187
25188         Fix output redirection buglet in init.sh.
25189         * tests/init.sh: Fix redirection of stderr.
25190
25191 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25192
25193         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25194
25195 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25196
25197         * modules/valgrind-tests: New file.
25198         * m4/valgrind-tests.m4: New file.
25199         * doc/valgrind-tests.texi: New file.
25200         * doc/gnulib.texi (Running self-tests under valgrind): New
25201         section.
25202
25203 2010-05-19  Bruno Haible  <bruno@clisp.org>
25204
25205         Clean up dead code in recent commit.
25206         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25207         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25208         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25209         Suggested by Paolo Bonzini.
25210
25211 2010-05-19  Bruno Haible  <bruno@clisp.org>
25212
25213         Avoid valgrind error reports from libunistring.
25214         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25215         * modules/libunistring (Files): Add it.
25216         * modules/libunistring-optional (Files): Likewise.
25217
25218 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25219             Bruno Haible  <bruno@clisp.org>
25220
25221         New module 'libunistring-optional'.
25222         * modules/libunistring-optional: New file.
25223         * m4/libunistring-base.m4: New file.
25224         * m4/libunistring-optional.m4: New file.
25225         * lib/unicase.in.h: Renamed from lib/unicase.h.
25226         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25227         * lib/unictype.in.h: Renamed from lib/unictype.h.
25228         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25229         * lib/uniname.in.h: Renamed from lib/uniname.h.
25230         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25231         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25232         * lib/unistr.in.h: Renamed from lib/unistr.h.
25233         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25234         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25235         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25236         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25237         gl_LIBUNISTRING. If the library was found, determine the installed
25238         version and set LIBUNISTRING_VERSION.
25239         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25240         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25241         handle a configuration option --with-included-libunistring.
25242         * modules/libunistring (Files): Add m4/absolute-header.m4.
25243         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25244         Add m4/libunistring-base.m4.
25245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25246         (Makefile.am): Build unicase.h from unicase.in.h.
25247         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25248         Add m4/libunistring-base.m4.
25249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25250         (Makefile.am): Build uniconv.h from uniconv.in.h.
25251         * modules/unictype/base (Files): Use unictype.in.h instead of
25252         unictype.h. Add m4/libunistring-base.m4.
25253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25254         (Makefile.am): Build unictype.h from unictype.in.h.
25255         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25256         Add m4/libunistring-base.m4.
25257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25258         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25259         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25260         Add m4/libunistring-base.m4.
25261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25262         (Makefile.am): Build uniname.h from uniname.in.h.
25263         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25264         Add m4/libunistring-base.m4.
25265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25266         (Makefile.am): Build uninorm.h from uninorm.in.h.
25267         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25268         unistdio.h. Add m4/libunistring-base.m4.
25269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25270         (Makefile.am): Build unistdio.h from unistdio.in.h.
25271         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25272         Add m4/libunistring-base.m4.
25273         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25274         (Makefile.am): Build unistr.h from unistr.in.h.
25275         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25276         Add m4/libunistring-base.m4.
25277         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25278         (Makefile.am): Build unitypes.h from unitypes.in.h.
25279         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25280         Add m4/libunistring-base.m4.
25281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25282         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25283         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25284         uniwidth.h. Add m4/libunistring-base.m4.
25285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25286         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25287         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25288         instead of augmenting lib_SOURCES.
25289         * modules/unicase/empty-suffix-context: Likewise.
25290         * modules/unicase/locale-language: Likewise.
25291         * modules/unicase/tolower: Likewise.
25292         * modules/unicase/totitle: Likewise.
25293         * modules/unicase/toupper: Likewise.
25294         * modules/unicase/u8-casecmp: Likewise.
25295         * modules/unicase/u8-casecoll: Likewise.
25296         * modules/unicase/u8-casefold: Likewise.
25297         * modules/unicase/u8-casexfrm: Likewise.
25298         * modules/unicase/u8-ct-casefold: Likewise.
25299         * modules/unicase/u8-ct-tolower: Likewise.
25300         * modules/unicase/u8-ct-totitle: Likewise.
25301         * modules/unicase/u8-ct-toupper: Likewise.
25302         * modules/unicase/u8-is-cased: Likewise.
25303         * modules/unicase/u8-is-casefolded: Likewise.
25304         * modules/unicase/u8-is-lowercase: Likewise.
25305         * modules/unicase/u8-is-titlecase: Likewise.
25306         * modules/unicase/u8-is-uppercase: Likewise.
25307         * modules/unicase/u8-prefix-context: Likewise.
25308         * modules/unicase/u8-suffix-context: Likewise.
25309         * modules/unicase/u8-tolower: Likewise.
25310         * modules/unicase/u8-totitle: Likewise.
25311         * modules/unicase/u8-toupper: Likewise.
25312         * modules/unicase/u16-casecmp: Likewise.
25313         * modules/unicase/u16-casecoll: Likewise.
25314         * modules/unicase/u16-casefold: Likewise.
25315         * modules/unicase/u16-casexfrm: Likewise.
25316         * modules/unicase/u16-ct-casefold: Likewise.
25317         * modules/unicase/u16-ct-tolower: Likewise.
25318         * modules/unicase/u16-ct-totitle: Likewise.
25319         * modules/unicase/u16-ct-toupper: Likewise.
25320         * modules/unicase/u16-is-cased: Likewise.
25321         * modules/unicase/u16-is-casefolded: Likewise.
25322         * modules/unicase/u16-is-lowercase: Likewise.
25323         * modules/unicase/u16-is-titlecase: Likewise.
25324         * modules/unicase/u16-is-uppercase: Likewise.
25325         * modules/unicase/u16-prefix-context: Likewise.
25326         * modules/unicase/u16-suffix-context: Likewise.
25327         * modules/unicase/u16-tolower: Likewise.
25328         * modules/unicase/u16-totitle: Likewise.
25329         * modules/unicase/u16-toupper: Likewise.
25330         * modules/unicase/u32-casecmp: Likewise.
25331         * modules/unicase/u32-casecoll: Likewise.
25332         * modules/unicase/u32-casefold: Likewise.
25333         * modules/unicase/u32-casexfrm: Likewise.
25334         * modules/unicase/u32-ct-casefold: Likewise.
25335         * modules/unicase/u32-ct-tolower: Likewise.
25336         * modules/unicase/u32-ct-totitle: Likewise.
25337         * modules/unicase/u32-ct-toupper: Likewise.
25338         * modules/unicase/u32-is-cased: Likewise.
25339         * modules/unicase/u32-is-casefolded: Likewise.
25340         * modules/unicase/u32-is-lowercase: Likewise.
25341         * modules/unicase/u32-is-titlecase: Likewise.
25342         * modules/unicase/u32-is-uppercase: Likewise.
25343         * modules/unicase/u32-prefix-context: Likewise.
25344         * modules/unicase/u32-suffix-context: Likewise.
25345         * modules/unicase/u32-tolower: Likewise.
25346         * modules/unicase/u32-totitle: Likewise.
25347         * modules/unicase/u32-toupper: Likewise.
25348         * modules/unicase/ulc-casecmp: Likewise.
25349         * modules/unicase/ulc-casecoll: Likewise.
25350         * modules/unicase/ulc-casexfrm: Likewise.
25351         * modules/uniconv/u8-conv-from-enc: Likewise.
25352         * modules/uniconv/u8-conv-to-enc: Likewise.
25353         * modules/uniconv/u8-strconv-from-enc: Likewise.
25354         * modules/uniconv/u8-strconv-from-locale: Likewise.
25355         * modules/uniconv/u8-strconv-to-enc: Likewise.
25356         * modules/uniconv/u8-strconv-to-locale: Likewise.
25357         * modules/uniconv/u16-conv-from-enc: Likewise.
25358         * modules/uniconv/u16-conv-to-enc: Likewise.
25359         * modules/uniconv/u16-strconv-from-enc: Likewise.
25360         * modules/uniconv/u16-strconv-from-locale: Likewise.
25361         * modules/uniconv/u16-strconv-to-enc: Likewise.
25362         * modules/uniconv/u16-strconv-to-locale: Likewise.
25363         * modules/uniconv/u32-conv-from-enc: Likewise.
25364         * modules/uniconv/u32-conv-to-enc: Likewise.
25365         * modules/uniconv/u32-strconv-from-enc: Likewise.
25366         * modules/uniconv/u32-strconv-from-locale: Likewise.
25367         * modules/uniconv/u32-strconv-to-enc: Likewise.
25368         * modules/uniconv/u32-strconv-to-locale: Likewise.
25369         * modules/unictype/bidicategory-byname: Likewise.
25370         * modules/unictype/bidicategory-name: Likewise.
25371         * modules/unictype/bidicategory-of: Likewise.
25372         * modules/unictype/bidicategory-test: Likewise.
25373         * modules/unictype/block-list: Likewise.
25374         * modules/unictype/block-test: Likewise.
25375         * modules/unictype/category-C: Likewise.
25376         * modules/unictype/category-Cc: Likewise.
25377         * modules/unictype/category-Cf: Likewise.
25378         * modules/unictype/category-Cn: Likewise.
25379         * modules/unictype/category-Co: Likewise.
25380         * modules/unictype/category-Cs: Likewise.
25381         * modules/unictype/category-L: Likewise.
25382         * modules/unictype/category-Ll: Likewise.
25383         * modules/unictype/category-Lm: Likewise.
25384         * modules/unictype/category-Lo: Likewise.
25385         * modules/unictype/category-Lt: Likewise.
25386         * modules/unictype/category-Lu: Likewise.
25387         * modules/unictype/category-M: Likewise.
25388         * modules/unictype/category-Mc: Likewise.
25389         * modules/unictype/category-Me: Likewise.
25390         * modules/unictype/category-Mn: Likewise.
25391         * modules/unictype/category-N: Likewise.
25392         * modules/unictype/category-Nd: Likewise.
25393         * modules/unictype/category-Nl: Likewise.
25394         * modules/unictype/category-No: Likewise.
25395         * modules/unictype/category-P: Likewise.
25396         * modules/unictype/category-Pc: Likewise.
25397         * modules/unictype/category-Pd: Likewise.
25398         * modules/unictype/category-Pe: Likewise.
25399         * modules/unictype/category-Pf: Likewise.
25400         * modules/unictype/category-Pi: Likewise.
25401         * modules/unictype/category-Po: Likewise.
25402         * modules/unictype/category-Ps: Likewise.
25403         * modules/unictype/category-S: Likewise.
25404         * modules/unictype/category-Sc: Likewise.
25405         * modules/unictype/category-Sk: Likewise.
25406         * modules/unictype/category-Sm: Likewise.
25407         * modules/unictype/category-So: Likewise.
25408         * modules/unictype/category-Z: Likewise.
25409         * modules/unictype/category-Zl: Likewise.
25410         * modules/unictype/category-Zp: Likewise.
25411         * modules/unictype/category-Zs: Likewise.
25412         * modules/unictype/category-and: Likewise.
25413         * modules/unictype/category-and-not: Likewise.
25414         * modules/unictype/category-byname: Likewise.
25415         * modules/unictype/category-name: Likewise.
25416         * modules/unictype/category-none: Likewise.
25417         * modules/unictype/category-of: Likewise.
25418         * modules/unictype/category-or: Likewise.
25419         * modules/unictype/category-test: Likewise.
25420         * modules/unictype/combining-class: Likewise.
25421         * modules/unictype/ctype-alnum: Likewise.
25422         * modules/unictype/ctype-alpha: Likewise.
25423         * modules/unictype/ctype-blank: Likewise.
25424         * modules/unictype/ctype-cntrl: Likewise.
25425         * modules/unictype/ctype-digit: Likewise.
25426         * modules/unictype/ctype-graph: Likewise.
25427         * modules/unictype/ctype-lower: Likewise.
25428         * modules/unictype/ctype-print: Likewise.
25429         * modules/unictype/ctype-punct: Likewise.
25430         * modules/unictype/ctype-space: Likewise.
25431         * modules/unictype/ctype-upper: Likewise.
25432         * modules/unictype/ctype-xdigit: Likewise.
25433         * modules/unictype/decimal-digit: Likewise.
25434         * modules/unictype/digit: Likewise.
25435         * modules/unictype/mirror: Likewise.
25436         * modules/unictype/numeric: Likewise.
25437         * modules/unictype/property-alphabetic: Likewise.
25438         * modules/unictype/property-ascii-hex-digit: Likewise.
25439         * modules/unictype/property-bidi-arabic-digit: Likewise.
25440         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25441         * modules/unictype/property-bidi-block-separator: Likewise.
25442         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25443         * modules/unictype/property-bidi-common-separator: Likewise.
25444         * modules/unictype/property-bidi-control: Likewise.
25445         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25446         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25447         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25448         * modules/unictype/property-bidi-european-digit: Likewise.
25449         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25450         * modules/unictype/property-bidi-left-to-right: Likewise.
25451         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25452         * modules/unictype/property-bidi-other-neutral: Likewise.
25453         * modules/unictype/property-bidi-pdf: Likewise.
25454         * modules/unictype/property-bidi-segment-separator: Likewise.
25455         * modules/unictype/property-bidi-whitespace: Likewise.
25456         * modules/unictype/property-byname: Likewise.
25457         * modules/unictype/property-combining: Likewise.
25458         * modules/unictype/property-composite: Likewise.
25459         * modules/unictype/property-currency-symbol: Likewise.
25460         * modules/unictype/property-dash: Likewise.
25461         * modules/unictype/property-decimal-digit: Likewise.
25462         * modules/unictype/property-default-ignorable-code-point: Likewise.
25463         * modules/unictype/property-deprecated: Likewise.
25464         * modules/unictype/property-diacritic: Likewise.
25465         * modules/unictype/property-extender: Likewise.
25466         * modules/unictype/property-format-control: Likewise.
25467         * modules/unictype/property-grapheme-base: Likewise.
25468         * modules/unictype/property-grapheme-extend: Likewise.
25469         * modules/unictype/property-grapheme-link: Likewise.
25470         * modules/unictype/property-hex-digit: Likewise.
25471         * modules/unictype/property-hyphen: Likewise.
25472         * modules/unictype/property-id-continue: Likewise.
25473         * modules/unictype/property-id-start: Likewise.
25474         * modules/unictype/property-ideographic: Likewise.
25475         * modules/unictype/property-ids-binary-operator: Likewise.
25476         * modules/unictype/property-ids-trinary-operator: Likewise.
25477         * modules/unictype/property-ignorable-control: Likewise.
25478         * modules/unictype/property-iso-control: Likewise.
25479         * modules/unictype/property-join-control: Likewise.
25480         * modules/unictype/property-left-of-pair: Likewise.
25481         * modules/unictype/property-line-separator: Likewise.
25482         * modules/unictype/property-logical-order-exception: Likewise.
25483         * modules/unictype/property-lowercase: Likewise.
25484         * modules/unictype/property-math: Likewise.
25485         * modules/unictype/property-non-break: Likewise.
25486         * modules/unictype/property-not-a-character: Likewise.
25487         * modules/unictype/property-numeric: Likewise.
25488         * modules/unictype/property-other-alphabetic: Likewise.
25489         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25490         * modules/unictype/property-other-grapheme-extend: Likewise.
25491         * modules/unictype/property-other-id-continue: Likewise.
25492         * modules/unictype/property-other-id-start: Likewise.
25493         * modules/unictype/property-other-lowercase: Likewise.
25494         * modules/unictype/property-other-math: Likewise.
25495         * modules/unictype/property-other-uppercase: Likewise.
25496         * modules/unictype/property-paired-punctuation: Likewise.
25497         * modules/unictype/property-paragraph-separator: Likewise.
25498         * modules/unictype/property-pattern-syntax: Likewise.
25499         * modules/unictype/property-pattern-white-space: Likewise.
25500         * modules/unictype/property-private-use: Likewise.
25501         * modules/unictype/property-punctuation: Likewise.
25502         * modules/unictype/property-quotation-mark: Likewise.
25503         * modules/unictype/property-radical: Likewise.
25504         * modules/unictype/property-sentence-terminal: Likewise.
25505         * modules/unictype/property-soft-dotted: Likewise.
25506         * modules/unictype/property-space: Likewise.
25507         * modules/unictype/property-terminal-punctuation: Likewise.
25508         * modules/unictype/property-test: Likewise.
25509         * modules/unictype/property-titlecase: Likewise.
25510         * modules/unictype/property-unassigned-code-value: Likewise.
25511         * modules/unictype/property-unified-ideograph: Likewise.
25512         * modules/unictype/property-uppercase: Likewise.
25513         * modules/unictype/property-variation-selector: Likewise.
25514         * modules/unictype/property-white-space: Likewise.
25515         * modules/unictype/property-xid-continue: Likewise.
25516         * modules/unictype/property-xid-start: Likewise.
25517         * modules/unictype/property-zero-width: Likewise.
25518         * modules/unictype/scripts: Likewise.
25519         * modules/unictype/syntax-c-ident: Likewise.
25520         * modules/unictype/syntax-c-whitespace: Likewise.
25521         * modules/unictype/syntax-java-ident: Likewise.
25522         * modules/unictype/syntax-java-whitespace: Likewise.
25523         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25524         * modules/unilbrk/u8-width-linebreaks: Likewise.
25525         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25526         * modules/unilbrk/u16-width-linebreaks: Likewise.
25527         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25528         * modules/unilbrk/u32-width-linebreaks: Likewise.
25529         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25530         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25531         * modules/uniname/uniname: Likewise.
25532         * modules/uninorm/canonical-decomposition: Likewise.
25533         * modules/uninorm/composition: Likewise.
25534         * modules/uninorm/decomposing-form: Likewise.
25535         * modules/uninorm/decomposition: Likewise.
25536         * modules/uninorm/filter: Likewise.
25537         * modules/uninorm/nfc: Likewise.
25538         * modules/uninorm/nfd: Likewise.
25539         * modules/uninorm/nfkc: Likewise.
25540         * modules/uninorm/nfkd: Likewise.
25541         * modules/uninorm/u8-normalize: Likewise.
25542         * modules/uninorm/u8-normcmp: Likewise.
25543         * modules/uninorm/u8-normcoll: Likewise.
25544         * modules/uninorm/u8-normxfrm: Likewise.
25545         * modules/uninorm/u16-normalize: Likewise.
25546         * modules/uninorm/u16-normcmp: Likewise.
25547         * modules/uninorm/u16-normcoll: Likewise.
25548         * modules/uninorm/u16-normxfrm: Likewise.
25549         * modules/uninorm/u32-normalize: Likewise.
25550         * modules/uninorm/u32-normcmp: Likewise.
25551         * modules/uninorm/u32-normcoll: Likewise.
25552         * modules/uninorm/u32-normxfrm: Likewise.
25553         * modules/unistdio/u8-asnprintf: Likewise.
25554         * modules/unistdio/u8-asprintf: Likewise.
25555         * modules/unistdio/u8-snprintf: Likewise.
25556         * modules/unistdio/u8-sprintf: Likewise.
25557         * modules/unistdio/u8-u8-asnprintf: Likewise.
25558         * modules/unistdio/u8-u8-asprintf: Likewise.
25559         * modules/unistdio/u8-u8-snprintf: Likewise.
25560         * modules/unistdio/u8-u8-sprintf: Likewise.
25561         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25562         * modules/unistdio/u8-u8-vasprintf: Likewise.
25563         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25564         * modules/unistdio/u8-u8-vsprintf: Likewise.
25565         * modules/unistdio/u8-vasnprintf: Likewise.
25566         * modules/unistdio/u8-vasprintf: Likewise.
25567         * modules/unistdio/u8-vsnprintf: Likewise.
25568         * modules/unistdio/u8-vsprintf: Likewise.
25569         * modules/unistdio/u16-asnprintf: Likewise.
25570         * modules/unistdio/u16-asprintf: Likewise.
25571         * modules/unistdio/u16-snprintf: Likewise.
25572         * modules/unistdio/u16-sprintf: Likewise.
25573         * modules/unistdio/u16-u16-asnprintf: Likewise.
25574         * modules/unistdio/u16-u16-asprintf: Likewise.
25575         * modules/unistdio/u16-u16-snprintf: Likewise.
25576         * modules/unistdio/u16-u16-sprintf: Likewise.
25577         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25578         * modules/unistdio/u16-u16-vasprintf: Likewise.
25579         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25580         * modules/unistdio/u16-u16-vsprintf: Likewise.
25581         * modules/unistdio/u16-vasnprintf: Likewise.
25582         * modules/unistdio/u16-vasprintf: Likewise.
25583         * modules/unistdio/u16-vsnprintf: Likewise.
25584         * modules/unistdio/u16-vsprintf: Likewise.
25585         * modules/unistdio/u32-asnprintf: Likewise.
25586         * modules/unistdio/u32-asprintf: Likewise.
25587         * modules/unistdio/u32-snprintf: Likewise.
25588         * modules/unistdio/u32-sprintf: Likewise.
25589         * modules/unistdio/u32-u32-asnprintf: Likewise.
25590         * modules/unistdio/u32-u32-asprintf: Likewise.
25591         * modules/unistdio/u32-u32-snprintf: Likewise.
25592         * modules/unistdio/u32-u32-sprintf: Likewise.
25593         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25594         * modules/unistdio/u32-u32-vasprintf: Likewise.
25595         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25596         * modules/unistdio/u32-u32-vsprintf: Likewise.
25597         * modules/unistdio/u32-vasnprintf: Likewise.
25598         * modules/unistdio/u32-vasprintf: Likewise.
25599         * modules/unistdio/u32-vsnprintf: Likewise.
25600         * modules/unistdio/u32-vsprintf: Likewise.
25601         * modules/unistdio/ulc-asnprintf: Likewise.
25602         * modules/unistdio/ulc-asprintf: Likewise.
25603         * modules/unistdio/ulc-fprintf: Likewise.
25604         * modules/unistdio/ulc-snprintf: Likewise.
25605         * modules/unistdio/ulc-sprintf: Likewise.
25606         * modules/unistdio/ulc-vasnprintf: Likewise.
25607         * modules/unistdio/ulc-vasprintf: Likewise.
25608         * modules/unistdio/ulc-vfprintf: Likewise.
25609         * modules/unistdio/ulc-vsnprintf: Likewise.
25610         * modules/unistdio/ulc-vsprintf: Likewise.
25611         * modules/unistr/u8-check: Likewise.
25612         * modules/unistr/u8-chr: Likewise.
25613         * modules/unistr/u8-cmp: Likewise.
25614         * modules/unistr/u8-cmp2: Likewise.
25615         * modules/unistr/u8-cpy: Likewise.
25616         * modules/unistr/u8-cpy-alloc: Likewise.
25617         * modules/unistr/u8-endswith: Likewise.
25618         * modules/unistr/u8-mblen: Likewise.
25619         * modules/unistr/u8-mbsnlen: Likewise.
25620         * modules/unistr/u8-mbtouc: Likewise.
25621         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25622         * modules/unistr/u8-mbtoucr: Likewise.
25623         * modules/unistr/u8-move: Likewise.
25624         * modules/unistr/u8-next: Likewise.
25625         * modules/unistr/u8-prev: Likewise.
25626         * modules/unistr/u8-set: Likewise.
25627         * modules/unistr/u8-startswith: Likewise.
25628         * modules/unistr/u8-stpcpy: Likewise.
25629         * modules/unistr/u8-stpncpy: Likewise.
25630         * modules/unistr/u8-strcat: Likewise.
25631         * modules/unistr/u8-strchr: Likewise.
25632         * modules/unistr/u8-strcmp: Likewise.
25633         * modules/unistr/u8-strcoll: Likewise.
25634         * modules/unistr/u8-strcpy: Likewise.
25635         * modules/unistr/u8-strcspn: Likewise.
25636         * modules/unistr/u8-strdup: Likewise.
25637         * modules/unistr/u8-strlen: Likewise.
25638         * modules/unistr/u8-strmblen: Likewise.
25639         * modules/unistr/u8-strmbtouc: Likewise.
25640         * modules/unistr/u8-strncat: Likewise.
25641         * modules/unistr/u8-strncmp: Likewise.
25642         * modules/unistr/u8-strncpy: Likewise.
25643         * modules/unistr/u8-strnlen: Likewise.
25644         * modules/unistr/u8-strpbrk: Likewise.
25645         * modules/unistr/u8-strrchr: Likewise.
25646         * modules/unistr/u8-strspn: Likewise.
25647         * modules/unistr/u8-strstr: Likewise.
25648         * modules/unistr/u8-strtok: Likewise.
25649         * modules/unistr/u8-to-u16: Likewise.
25650         * modules/unistr/u8-to-u32: Likewise.
25651         * modules/unistr/u8-uctomb: Likewise.
25652         * modules/unistr/u16-check: Likewise.
25653         * modules/unistr/u16-chr: Likewise.
25654         * modules/unistr/u16-cmp: Likewise.
25655         * modules/unistr/u16-cmp2: Likewise.
25656         * modules/unistr/u16-cpy: Likewise.
25657         * modules/unistr/u16-cpy-alloc: Likewise.
25658         * modules/unistr/u16-endswith: Likewise.
25659         * modules/unistr/u16-mblen: Likewise.
25660         * modules/unistr/u16-mbsnlen: Likewise.
25661         * modules/unistr/u16-mbtouc: Likewise.
25662         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25663         * modules/unistr/u16-mbtoucr: Likewise.
25664         * modules/unistr/u16-move: Likewise.
25665         * modules/unistr/u16-next: Likewise.
25666         * modules/unistr/u16-prev: Likewise.
25667         * modules/unistr/u16-set: Likewise.
25668         * modules/unistr/u16-startswith: Likewise.
25669         * modules/unistr/u16-stpcpy: Likewise.
25670         * modules/unistr/u16-stpncpy: Likewise.
25671         * modules/unistr/u16-strcat: Likewise.
25672         * modules/unistr/u16-strchr: Likewise.
25673         * modules/unistr/u16-strcmp: Likewise.
25674         * modules/unistr/u16-strcoll: Likewise.
25675         * modules/unistr/u16-strcpy: Likewise.
25676         * modules/unistr/u16-strcspn: Likewise.
25677         * modules/unistr/u16-strdup: Likewise.
25678         * modules/unistr/u16-strlen: Likewise.
25679         * modules/unistr/u16-strmblen: Likewise.
25680         * modules/unistr/u16-strmbtouc: Likewise.
25681         * modules/unistr/u16-strncat: Likewise.
25682         * modules/unistr/u16-strncmp: Likewise.
25683         * modules/unistr/u16-strncpy: Likewise.
25684         * modules/unistr/u16-strnlen: Likewise.
25685         * modules/unistr/u16-strpbrk: Likewise.
25686         * modules/unistr/u16-strrchr: Likewise.
25687         * modules/unistr/u16-strspn: Likewise.
25688         * modules/unistr/u16-strstr: Likewise.
25689         * modules/unistr/u16-strtok: Likewise.
25690         * modules/unistr/u16-to-u32: Likewise.
25691         * modules/unistr/u16-to-u8: Likewise.
25692         * modules/unistr/u16-uctomb: Likewise.
25693         * modules/unistr/u32-check: Likewise.
25694         * modules/unistr/u32-chr: Likewise.
25695         * modules/unistr/u32-cmp: Likewise.
25696         * modules/unistr/u32-cmp2: Likewise.
25697         * modules/unistr/u32-cpy: Likewise.
25698         * modules/unistr/u32-cpy-alloc: Likewise.
25699         * modules/unistr/u32-endswith: Likewise.
25700         * modules/unistr/u32-mblen: Likewise.
25701         * modules/unistr/u32-mbsnlen: Likewise.
25702         * modules/unistr/u32-mbtouc: Likewise.
25703         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25704         * modules/unistr/u32-mbtoucr: Likewise.
25705         * modules/unistr/u32-move: Likewise.
25706         * modules/unistr/u32-next: Likewise.
25707         * modules/unistr/u32-prev: Likewise.
25708         * modules/unistr/u32-set: Likewise.
25709         * modules/unistr/u32-startswith: Likewise.
25710         * modules/unistr/u32-stpcpy: Likewise.
25711         * modules/unistr/u32-stpncpy: Likewise.
25712         * modules/unistr/u32-strcat: Likewise.
25713         * modules/unistr/u32-strchr: Likewise.
25714         * modules/unistr/u32-strcmp: Likewise.
25715         * modules/unistr/u32-strcoll: Likewise.
25716         * modules/unistr/u32-strcpy: Likewise.
25717         * modules/unistr/u32-strcspn: Likewise.
25718         * modules/unistr/u32-strdup: Likewise.
25719         * modules/unistr/u32-strlen: Likewise.
25720         * modules/unistr/u32-strmblen: Likewise.
25721         * modules/unistr/u32-strmbtouc: Likewise.
25722         * modules/unistr/u32-strncat: Likewise.
25723         * modules/unistr/u32-strncmp: Likewise.
25724         * modules/unistr/u32-strncpy: Likewise.
25725         * modules/unistr/u32-strnlen: Likewise.
25726         * modules/unistr/u32-strpbrk: Likewise.
25727         * modules/unistr/u32-strrchr: Likewise.
25728         * modules/unistr/u32-strspn: Likewise.
25729         * modules/unistr/u32-strstr: Likewise.
25730         * modules/unistr/u32-strtok: Likewise.
25731         * modules/unistr/u32-to-u16: Likewise.
25732         * modules/unistr/u32-to-u8: Likewise.
25733         * modules/unistr/u32-uctomb: Likewise.
25734         * modules/uniwbrk/u8-wordbreaks: Likewise.
25735         * modules/uniwbrk/u16-wordbreaks: Likewise.
25736         * modules/uniwbrk/u32-wordbreaks: Likewise.
25737         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25738         * modules/uniwbrk/wordbreak-property: Likewise.
25739         * modules/uniwidth/u8-strwidth: Likewise.
25740         * modules/uniwidth/u8-width: Likewise.
25741         * modules/uniwidth/u16-strwidth: Likewise.
25742         * modules/uniwidth/u16-width: Likewise.
25743         * modules/uniwidth/u32-strwidth: Likewise.
25744         * modules/uniwidth/u32-width: Likewise.
25745         * modules/uniwidth/width: Likewise.
25746         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25747         with $(LIBUNISTRING).
25748         * modules/unicase/ignorable-tests: Likewise.
25749         * modules/unicase/locale-language-tests: Likewise.
25750         * modules/unicase/tolower-tests: Likewise.
25751         * modules/unicase/totitle-tests: Likewise.
25752         * modules/unicase/toupper-tests: Likewise.
25753         * modules/unicase/u8-casecmp-tests: Likewise.
25754         * modules/unicase/u8-casecoll-tests: Likewise.
25755         * modules/unicase/u8-casefold-tests: Likewise.
25756         * modules/unicase/u8-is-cased-tests: Likewise.
25757         * modules/unicase/u8-is-casefolded-tests: Likewise.
25758         * modules/unicase/u8-is-lowercase-tests: Likewise.
25759         * modules/unicase/u8-is-titlecase-tests: Likewise.
25760         * modules/unicase/u8-is-uppercase-tests: Likewise.
25761         * modules/unicase/u8-tolower-tests: Likewise.
25762         * modules/unicase/u8-totitle-tests: Likewise.
25763         * modules/unicase/u8-toupper-tests: Likewise.
25764         * modules/unicase/u16-casecmp-tests: Likewise.
25765         * modules/unicase/u16-casecoll-tests: Likewise.
25766         * modules/unicase/u16-casefold-tests: Likewise.
25767         * modules/unicase/u16-is-cased-tests: Likewise.
25768         * modules/unicase/u16-is-casefolded-tests: Likewise.
25769         * modules/unicase/u16-is-lowercase-tests: Likewise.
25770         * modules/unicase/u16-is-titlecase-tests: Likewise.
25771         * modules/unicase/u16-is-uppercase-tests: Likewise.
25772         * modules/unicase/u16-tolower-tests: Likewise.
25773         * modules/unicase/u16-totitle-tests: Likewise.
25774         * modules/unicase/u16-toupper-tests: Likewise.
25775         * modules/unicase/u32-casecmp-tests: Likewise.
25776         * modules/unicase/u32-casecoll-tests: Likewise.
25777         * modules/unicase/u32-casefold-tests: Likewise.
25778         * modules/unicase/u32-is-cased-tests: Likewise.
25779         * modules/unicase/u32-is-casefolded-tests: Likewise.
25780         * modules/unicase/u32-is-lowercase-tests: Likewise.
25781         * modules/unicase/u32-is-titlecase-tests: Likewise.
25782         * modules/unicase/u32-is-uppercase-tests: Likewise.
25783         * modules/unicase/u32-tolower-tests: Likewise.
25784         * modules/unicase/u32-totitle-tests: Likewise.
25785         * modules/unicase/u32-toupper-tests: Likewise.
25786         * modules/unicase/ulc-casecmp-tests: Likewise.
25787         * modules/unicase/ulc-casecoll-tests: Likewise.
25788         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25789         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25790         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25791         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25792         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25793         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25794         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25795         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25796         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25797         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25798         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25799         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25800         * modules/unictype/bidicategory-byname-tests: Likewise.
25801         * modules/unictype/bidicategory-name-tests: Likewise.
25802         * modules/unictype/bidicategory-of-tests: Likewise.
25803         * modules/unictype/bidicategory-test-tests: Likewise.
25804         * modules/unictype/block-list-tests: Likewise.
25805         * modules/unictype/block-of-tests: Likewise.
25806         * modules/unictype/block-test-tests: Likewise.
25807         * modules/unictype/category-C-tests: Likewise.
25808         * modules/unictype/category-Cc-tests: Likewise.
25809         * modules/unictype/category-Cf-tests: Likewise.
25810         * modules/unictype/category-Cn-tests: Likewise.
25811         * modules/unictype/category-Co-tests: Likewise.
25812         * modules/unictype/category-Cs-tests: Likewise.
25813         * modules/unictype/category-L-tests: Likewise.
25814         * modules/unictype/category-Ll-tests: Likewise.
25815         * modules/unictype/category-Lm-tests: Likewise.
25816         * modules/unictype/category-Lo-tests: Likewise.
25817         * modules/unictype/category-Lt-tests: Likewise.
25818         * modules/unictype/category-Lu-tests: Likewise.
25819         * modules/unictype/category-M-tests: Likewise.
25820         * modules/unictype/category-Mc-tests: Likewise.
25821         * modules/unictype/category-Me-tests: Likewise.
25822         * modules/unictype/category-Mn-tests: Likewise.
25823         * modules/unictype/category-N-tests: Likewise.
25824         * modules/unictype/category-Nd-tests: Likewise.
25825         * modules/unictype/category-Nl-tests: Likewise.
25826         * modules/unictype/category-No-tests: Likewise.
25827         * modules/unictype/category-P-tests: Likewise.
25828         * modules/unictype/category-Pc-tests: Likewise.
25829         * modules/unictype/category-Pd-tests: Likewise.
25830         * modules/unictype/category-Pe-tests: Likewise.
25831         * modules/unictype/category-Pf-tests: Likewise.
25832         * modules/unictype/category-Pi-tests: Likewise.
25833         * modules/unictype/category-Po-tests: Likewise.
25834         * modules/unictype/category-Ps-tests: Likewise.
25835         * modules/unictype/category-S-tests: Likewise.
25836         * modules/unictype/category-Sc-tests: Likewise.
25837         * modules/unictype/category-Sk-tests: Likewise.
25838         * modules/unictype/category-Sm-tests: Likewise.
25839         * modules/unictype/category-So-tests: Likewise.
25840         * modules/unictype/category-Z-tests: Likewise.
25841         * modules/unictype/category-Zl-tests: Likewise.
25842         * modules/unictype/category-Zp-tests: Likewise.
25843         * modules/unictype/category-Zs-tests: Likewise.
25844         * modules/unictype/category-and-not-tests: Likewise.
25845         * modules/unictype/category-and-tests: Likewise.
25846         * modules/unictype/category-byname-tests: Likewise.
25847         * modules/unictype/category-name-tests: Likewise.
25848         * modules/unictype/category-none-tests: Likewise.
25849         * modules/unictype/category-of-tests: Likewise.
25850         * modules/unictype/category-or-tests: Likewise.
25851         * modules/unictype/category-test-withtable-tests: Likewise.
25852         * modules/unictype/combining-class-tests: Likewise.
25853         * modules/unictype/ctype-alnum-tests: Likewise.
25854         * modules/unictype/ctype-alpha-tests: Likewise.
25855         * modules/unictype/ctype-blank-tests: Likewise.
25856         * modules/unictype/ctype-cntrl-tests: Likewise.
25857         * modules/unictype/ctype-digit-tests: Likewise.
25858         * modules/unictype/ctype-graph-tests: Likewise.
25859         * modules/unictype/ctype-lower-tests: Likewise.
25860         * modules/unictype/ctype-print-tests: Likewise.
25861         * modules/unictype/ctype-punct-tests: Likewise.
25862         * modules/unictype/ctype-space-tests: Likewise.
25863         * modules/unictype/ctype-upper-tests: Likewise.
25864         * modules/unictype/ctype-xdigit-tests: Likewise.
25865         * modules/unictype/decimal-digit-tests: Likewise.
25866         * modules/unictype/digit-tests: Likewise.
25867         * modules/unictype/mirror-tests: Likewise.
25868         * modules/unictype/numeric-tests: Likewise.
25869         * modules/unictype/property-alphabetic-tests: Likewise.
25870         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25871         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25872         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25873         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25874         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25875         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25876         * modules/unictype/property-bidi-control-tests: Likewise.
25877         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25878         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25879         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25880         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25881         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25882         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25883         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25884         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25885         * modules/unictype/property-bidi-pdf-tests: Likewise.
25886         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25887         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25888         * modules/unictype/property-byname-tests: Likewise.
25889         * modules/unictype/property-combining-tests: Likewise.
25890         * modules/unictype/property-composite-tests: Likewise.
25891         * modules/unictype/property-currency-symbol-tests: Likewise.
25892         * modules/unictype/property-dash-tests: Likewise.
25893         * modules/unictype/property-decimal-digit-tests: Likewise.
25894         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25895         * modules/unictype/property-deprecated-tests: Likewise.
25896         * modules/unictype/property-diacritic-tests: Likewise.
25897         * modules/unictype/property-extender-tests: Likewise.
25898         * modules/unictype/property-format-control-tests: Likewise.
25899         * modules/unictype/property-grapheme-base-tests: Likewise.
25900         * modules/unictype/property-grapheme-extend-tests: Likewise.
25901         * modules/unictype/property-grapheme-link-tests: Likewise.
25902         * modules/unictype/property-hex-digit-tests: Likewise.
25903         * modules/unictype/property-hyphen-tests: Likewise.
25904         * modules/unictype/property-id-continue-tests: Likewise.
25905         * modules/unictype/property-id-start-tests: Likewise.
25906         * modules/unictype/property-ideographic-tests: Likewise.
25907         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25908         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25909         * modules/unictype/property-ignorable-control-tests: Likewise.
25910         * modules/unictype/property-iso-control-tests: Likewise.
25911         * modules/unictype/property-join-control-tests: Likewise.
25912         * modules/unictype/property-left-of-pair-tests: Likewise.
25913         * modules/unictype/property-line-separator-tests: Likewise.
25914         * modules/unictype/property-logical-order-exception-tests: Likewise.
25915         * modules/unictype/property-lowercase-tests: Likewise.
25916         * modules/unictype/property-math-tests: Likewise.
25917         * modules/unictype/property-non-break-tests: Likewise.
25918         * modules/unictype/property-not-a-character-tests: Likewise.
25919         * modules/unictype/property-numeric-tests: Likewise.
25920         * modules/unictype/property-other-alphabetic-tests: Likewise.
25921         * modules/unictype/property-other-default-ignorable-code-point-tests:
25922         Likewise.
25923         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25924         * modules/unictype/property-other-id-continue-tests: Likewise.
25925         * modules/unictype/property-other-id-start-tests: Likewise.
25926         * modules/unictype/property-other-lowercase-tests: Likewise.
25927         * modules/unictype/property-other-math-tests: Likewise.
25928         * modules/unictype/property-other-uppercase-tests: Likewise.
25929         * modules/unictype/property-paired-punctuation-tests: Likewise.
25930         * modules/unictype/property-paragraph-separator-tests: Likewise.
25931         * modules/unictype/property-pattern-syntax-tests: Likewise.
25932         * modules/unictype/property-pattern-white-space-tests: Likewise.
25933         * modules/unictype/property-private-use-tests: Likewise.
25934         * modules/unictype/property-punctuation-tests: Likewise.
25935         * modules/unictype/property-quotation-mark-tests: Likewise.
25936         * modules/unictype/property-radical-tests: Likewise.
25937         * modules/unictype/property-sentence-terminal-tests: Likewise.
25938         * modules/unictype/property-soft-dotted-tests: Likewise.
25939         * modules/unictype/property-space-tests: Likewise.
25940         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25941         * modules/unictype/property-test-tests: Likewise.
25942         * modules/unictype/property-titlecase-tests: Likewise.
25943         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25944         * modules/unictype/property-unified-ideograph-tests: Likewise.
25945         * modules/unictype/property-uppercase-tests: Likewise.
25946         * modules/unictype/property-variation-selector-tests: Likewise.
25947         * modules/unictype/property-white-space-tests: Likewise.
25948         * modules/unictype/property-xid-continue-tests: Likewise.
25949         * modules/unictype/property-xid-start-tests: Likewise.
25950         * modules/unictype/property-zero-width-tests: Likewise.
25951         * modules/unictype/scripts-tests: Likewise.
25952         * modules/unictype/syntax-c-ident-tests: Likewise.
25953         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25954         * modules/unictype/syntax-java-ident-tests: Likewise.
25955         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25956         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25957         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25958         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25959         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25960         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25961         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25962         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25963         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25964         * modules/uniname/uniname-tests: Likewise.
25965         * modules/uninorm/canonical-decomposition-tests: Likewise.
25966         * modules/uninorm/compat-decomposition-tests: Likewise.
25967         * modules/uninorm/composition-tests: Likewise.
25968         * modules/uninorm/decomposing-form-tests: Likewise.
25969         * modules/uninorm/decomposition-tests: Likewise.
25970         * modules/uninorm/filter-tests: Likewise.
25971         * modules/uninorm/nfc-tests: Likewise.
25972         * modules/uninorm/nfd-tests: Likewise.
25973         * modules/uninorm/nfkc-tests: Likewise.
25974         * modules/uninorm/nfkd-tests: Likewise.
25975         * modules/uninorm/u8-normcmp-tests: Likewise.
25976         * modules/uninorm/u8-normcoll-tests: Likewise.
25977         * modules/uninorm/u16-normcmp-tests: Likewise.
25978         * modules/uninorm/u16-normcoll-tests: Likewise.
25979         * modules/uninorm/u32-normcmp-tests: Likewise.
25980         * modules/uninorm/u32-normcoll-tests: Likewise.
25981         * modules/unistdio/u8-asnprintf-tests: Likewise.
25982         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25983         * modules/unistdio/u8-vasprintf-tests: Likewise.
25984         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25985         * modules/unistdio/u8-vsprintf-tests: Likewise.
25986         * modules/unistdio/u16-asnprintf-tests: Likewise.
25987         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25988         * modules/unistdio/u16-vasprintf-tests: Likewise.
25989         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25990         * modules/unistdio/u16-vsprintf-tests: Likewise.
25991         * modules/unistdio/u32-asnprintf-tests: Likewise.
25992         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25993         * modules/unistdio/u32-vasprintf-tests: Likewise.
25994         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25995         * modules/unistdio/u32-vsprintf-tests: Likewise.
25996         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25997         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25998         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25999         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
26000         * modules/unistdio/ulc-vsprintf-tests: Likewise.
26001         * modules/unistr/u8-check-tests: Likewise.
26002         * modules/unistr/u8-chr-tests: Likewise.
26003         * modules/unistr/u8-cmp-tests: Likewise.
26004         * modules/unistr/u8-cmp2-tests: Likewise.
26005         * modules/unistr/u8-cpy-alloc-tests: Likewise.
26006         * modules/unistr/u8-cpy-tests: Likewise.
26007         * modules/unistr/u8-mblen-tests: Likewise.
26008         * modules/unistr/u8-mbsnlen-tests: Likewise.
26009         * modules/unistr/u8-mbtouc-tests: Likewise.
26010         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26011         * modules/unistr/u8-mbtoucr-tests: Likewise.
26012         * modules/unistr/u8-move-tests: Likewise.
26013         * modules/unistr/u8-next-tests: Likewise.
26014         * modules/unistr/u8-prev-tests: Likewise.
26015         * modules/unistr/u8-set-tests: Likewise.
26016         * modules/unistr/u8-stpcpy-tests: Likewise.
26017         * modules/unistr/u8-stpncpy-tests: Likewise.
26018         * modules/unistr/u8-strcat-tests: Likewise.
26019         * modules/unistr/u8-strcmp-tests: Likewise.
26020         * modules/unistr/u8-strcoll-tests: Likewise.
26021         * modules/unistr/u8-strcpy-tests: Likewise.
26022         * modules/unistr/u8-strdup-tests: Likewise.
26023         * modules/unistr/u8-strlen-tests: Likewise.
26024         * modules/unistr/u8-strmblen-tests: Likewise.
26025         * modules/unistr/u8-strmbtouc-tests: Likewise.
26026         * modules/unistr/u8-strncat-tests: Likewise.
26027         * modules/unistr/u8-strncmp-tests: Likewise.
26028         * modules/unistr/u8-strncpy-tests: Likewise.
26029         * modules/unistr/u8-strnlen-tests: Likewise.
26030         * modules/unistr/u8-to-u16-tests: Likewise.
26031         * modules/unistr/u8-to-u32-tests: Likewise.
26032         * modules/unistr/u8-uctomb-tests: Likewise.
26033         * modules/unistr/u16-check-tests: Likewise.
26034         * modules/unistr/u16-chr-tests: Likewise.
26035         * modules/unistr/u16-cmp-tests: Likewise.
26036         * modules/unistr/u16-cmp2-tests: Likewise.
26037         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26038         * modules/unistr/u16-cpy-tests: Likewise.
26039         * modules/unistr/u16-mblen-tests: Likewise.
26040         * modules/unistr/u16-mbsnlen-tests: Likewise.
26041         * modules/unistr/u16-mbtouc-tests: Likewise.
26042         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26043         * modules/unistr/u16-mbtoucr-tests: Likewise.
26044         * modules/unistr/u16-move-tests: Likewise.
26045         * modules/unistr/u16-next-tests: Likewise.
26046         * modules/unistr/u16-prev-tests: Likewise.
26047         * modules/unistr/u16-set-tests: Likewise.
26048         * modules/unistr/u16-stpcpy-tests: Likewise.
26049         * modules/unistr/u16-stpncpy-tests: Likewise.
26050         * modules/unistr/u16-strcat-tests: Likewise.
26051         * modules/unistr/u16-strcmp-tests: Likewise.
26052         * modules/unistr/u16-strcoll-tests: Likewise.
26053         * modules/unistr/u16-strcpy-tests: Likewise.
26054         * modules/unistr/u16-strdup-tests: Likewise.
26055         * modules/unistr/u16-strlen-tests: Likewise.
26056         * modules/unistr/u16-strmblen-tests: Likewise.
26057         * modules/unistr/u16-strmbtouc-tests: Likewise.
26058         * modules/unistr/u16-strncat-tests: Likewise.
26059         * modules/unistr/u16-strncmp-tests: Likewise.
26060         * modules/unistr/u16-strncpy-tests: Likewise.
26061         * modules/unistr/u16-strnlen-tests: Likewise.
26062         * modules/unistr/u16-to-u32-tests: Likewise.
26063         * modules/unistr/u16-to-u8-tests: Likewise.
26064         * modules/unistr/u16-uctomb-tests: Likewise.
26065         * modules/unistr/u32-check-tests: Likewise.
26066         * modules/unistr/u32-chr-tests: Likewise.
26067         * modules/unistr/u32-cmp-tests: Likewise.
26068         * modules/unistr/u32-cmp2-tests: Likewise.
26069         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26070         * modules/unistr/u32-cpy-tests: Likewise.
26071         * modules/unistr/u32-mblen-tests: Likewise.
26072         * modules/unistr/u32-mbsnlen-tests: Likewise.
26073         * modules/unistr/u32-mbtouc-tests: Likewise.
26074         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26075         * modules/unistr/u32-mbtoucr-tests: Likewise.
26076         * modules/unistr/u32-move-tests: Likewise.
26077         * modules/unistr/u32-next-tests: Likewise.
26078         * modules/unistr/u32-prev-tests: Likewise.
26079         * modules/unistr/u32-set-tests: Likewise.
26080         * modules/unistr/u32-stpcpy-tests: Likewise.
26081         * modules/unistr/u32-stpncpy-tests: Likewise.
26082         * modules/unistr/u32-strcat-tests: Likewise.
26083         * modules/unistr/u32-strcmp-tests: Likewise.
26084         * modules/unistr/u32-strcoll-tests: Likewise.
26085         * modules/unistr/u32-strcpy-tests: Likewise.
26086         * modules/unistr/u32-strdup-tests: Likewise.
26087         * modules/unistr/u32-strlen-tests: Likewise.
26088         * modules/unistr/u32-strmblen-tests: Likewise.
26089         * modules/unistr/u32-strmbtouc-tests: Likewise.
26090         * modules/unistr/u32-strncat-tests: Likewise.
26091         * modules/unistr/u32-strncmp-tests: Likewise.
26092         * modules/unistr/u32-strncpy-tests: Likewise.
26093         * modules/unistr/u32-strnlen-tests: Likewise.
26094         * modules/unistr/u32-to-u16-tests: Likewise.
26095         * modules/unistr/u32-to-u8-tests: Likewise.
26096         * modules/unistr/u32-uctomb-tests: Likewise.
26097         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26098         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26099         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26100         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26101         * modules/uniwidth/u8-strwidth-tests: Likewise.
26102         * modules/uniwidth/u8-width-tests: Likewise.
26103         * modules/uniwidth/u16-strwidth-tests: Likewise.
26104         * modules/uniwidth/u16-width-tests: Likewise.
26105         * modules/uniwidth/u32-strwidth-tests: Likewise.
26106         * modules/uniwidth/u32-width-tests: Likewise.
26107         * modules/uniwidth/width-tests: Likewise.
26108
26109 2010-05-18  Richard Jones  <rjones@redhat.com>
26110
26111         doc: users.txt: list hivex
26112         * users.txt: Add hivex.
26113
26114 2010-05-18  Richard Jones  <rjones@redhat.com>
26115
26116         doc: users.txt: list febootstrap
26117         * users.txt: Add febootstrap.
26118
26119 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26120
26121         bootstrap: fix an error when gnulib is not used as a git submodule
26122         * build-aux/bootstrap (gnulib_path): If its length is zero then
26123         assign "gnulib" to it.
26124         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26125
26126 2010-05-16  Bruno Haible  <bruno@clisp.org>
26127
26128         Avoid autoconf warnings about AM_ICONV.
26129         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26130         2.64.
26131
26132 2010-05-16  Bruno Haible  <bruno@clisp.org>
26133
26134         absolute-header: Make the macro usable in more situations.
26135         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26136         from gl_ABSOLUTE_HEADER.
26137         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26138
26139 2010-05-16  James Youngman  <jay@gnu.org>
26140
26141         doc: update users.txt
26142         * users.txt: Add CSSC.
26143
26144 2010-05-16  Jim Meyering  <meyering@redhat.com>
26145
26146         init.sh: fix an error in the previous change; add more comments
26147         * tests/init.sh: Compare exit code in loop against 9, not 2.
26148         Patch by Bruno Haible.
26149         Make the two tests more similar by adding an empty "then" clause.
26150         Add comments.
26151
26152         init.sh: avoid unnecessary shell re-exec
26153         * tests/init.sh: Improve the re-exec-required check to first test the
26154         current shell.  If it passes the test, do not search for a shell that
26155         does pass, and do not re-exec.  This test is particularly contorted to
26156         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26157         of $(...) evokes a syntax error and causes immediate shell exit with
26158         status 2.  Bruno Haible reported that the re-exec made it impossible
26159         to single-step through any init.sh-using script.
26160
26161 2010-05-16  Bruno Haible  <bruno@clisp.org>
26162
26163         Fix collision between gnulib's and libintl's printf replacements.
26164         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26165         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26166         (printf): When using GNU C, map the __printf__ function to rpl_printf
26167         via __asm__. When not using GNU C, define rpl_printf instead of
26168         __printf__.
26169         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26170         commit.
26171         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26172         commit.
26173         * m4/asm-underscore.m4: New file.
26174         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26175         * modules/stdio (Files): Add m4/asm-underscore.m4.
26176         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26177         Reported by Ben Pfaff.
26178
26179 2010-05-16  Bruno Haible  <bruno@clisp.org>
26180
26181         verify: Avoid skipping the test on openSUSE 11.0.
26182         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26183
26184 2010-05-13  Bruno Haible  <bruno@clisp.org>
26185
26186         Avoid useless warnings from G++.
26187         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26188         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26189         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26190
26191 2010-05-11  Jim Meyering  <meyering@redhat.com>
26192
26193         maint.mk: tweak preceding change
26194         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26195         regexps tighter by anchoring at EOL, and make the new group "shy"
26196         for slightly decreased overhead.
26197
26198 2010-05-11  Eric Blake  <eblake@redhat.com>
26199
26200         maint.mk: gnulib doesn't guarantee NSIG
26201         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26202
26203 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26204
26205         test-pwrite.c: Remove unused variable declaration.
26206         * tests/test-pwrite.c (main): Remove read_buf declaration.
26207
26208         Remove useless test-pwrite.sh file.
26209         * tests/test-pwrite.sh: Delete file.
26210         * modules/pwrite-tests: Remove references.
26211         Reported by Bruno Haible.
26212
26213 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26214
26215         init.sh: fix a typo
26216         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26217
26218 2010-05-10  Jim Meyering  <meyering@redhat.com>
26219
26220         maint.mk: avoid using a temporary file in the always-defined-macros check
26221         * top/maint.mk (.re-defmac): Remove rule.
26222         (gl_trap_): Remove definition.
26223         (sc_prohibit_always-defined_macros): Rewrite not to create and
26224         depend on a temporary file.  Instead, depend on GNU grep's ability
26225         to read a list of regular expressions from stdin when given "-f -".
26226
26227 2010-05-09  Bruno Haible  <bruno@clisp.org>
26228
26229         Update to GNU gettext 0.18, part 1.
26230         * m4/gettext.m4: Update to GNU gettext 0.18.
26231         * m4/intl.m4: Likewise.
26232         * m4/po.m4: Likewise.
26233         * modules/gettext (Files): Add m4/fcntl-o.m4.
26234         (configure.ac): Require gettext infrastructure from version 0.18.
26235
26236 2010-05-09  Jim Meyering  <meyering@redhat.com>
26237
26238         init.sh: enable MALLOC_PERTURB_
26239         * tests/init.sh: Enable glibc's malloc-perturbing option.
26240
26241         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26242         With my recent change in init.sh from the two-line form:
26243             -#   : ${srcdir=.}
26244             -#   . "$srcdir/init.sh"; path_prepend_ .
26245             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26246         I noticed that using the one-line form would cause this test
26247         to fail with a false-positive, or to stop working altogether,
26248         depending on whether help-version changed or all the tests did.
26249         * top/maint.mk (_hv_regex): Remove this definition.
26250         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26251         (_hv_regex_strong): Use a stronger regex to check for conformance.
26252         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26253         Give a separate diagnostic for lack of conforming use.
26254
26255         maint.mk: prohibit definition of symbols defined by gnulib
26256         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26257         definition of symbols defined by gnulib.
26258
26259 2010-05-09  Bruno Haible  <bruno@clisp.org>
26260
26261         acl: Avoid test failure on Cygwin-hosted mingw.
26262         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26263
26264 2010-05-09  Bruno Haible  <bruno@clisp.org>
26265
26266         error: Use system's fcntl function.
26267         * lib/error.c (fcntl): Undefine.
26268
26269 2010-05-09  Jim Meyering  <meyering@redhat.com>
26270
26271         verify: adjust formatting to be more consistent
26272         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26273         argument-list '('s, and after one comma.
26274
26275 2010-05-09  Bruno Haible  <bruno@clisp.org>
26276
26277         error: More reliable output on mingw.
26278         * lib/error.c: Include <windows.h>.
26279         (is_open): New function.
26280         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26281         defined.
26282
26283 2010-05-09  Bruno Haible  <bruno@clisp.org>
26284
26285         vasnprintf: Fix syntax errors in libintl build on mingw.
26286         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26287         pad_ourselves and prec_ourselves after use.
26288
26289 2010-05-08  Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/config.charset: Update comments for Cygwin 1.7.
26292         * lib/localcharset.c: Likewise.
26293
26294 2010-05-07  Jim Meyering  <meyering@redhat.com>
26295
26296         init.sh: improve comments
26297         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26298         . "${srcdir=.}/init.sh"; path_prepend_ .
26299         Add a note about path_prepend_ and the alternative of using
26300         TESTS_ENVIRONMENT.
26301
26302 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26303
26304         exclude: Unescape hashed patterns in wildcard mode.
26305         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26306         to the hash list.
26307         * tests/test-exclude8.sh: New test case.
26308         * modules/exclude-tests: Add new test.
26309
26310 2010-05-05  Eric Blake  <eblake@redhat.com>
26311
26312         verify: automate tests
26313         * modules/verify-tests: New module.
26314         * tests/test-verify.sh: New file.
26315         * tests/test-verify.c: Guard each negative test with a unique id.
26316         Also avoid warning about unused left hand of comma expressions.
26317
26318 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26319
26320         Further improvements to verify.h, suggested by Eric Blake.
26321         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26322         the GL_* versions, to avoid collision with OpenGL.
26323         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26324         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26325         than testing merely whether it's defined.
26326
26327         Modify verify.h to pacify gcc -Wredundant_decls.
26328         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26329         These use the prefix "GL_" since they're likely to be useful elsewhere.
26330         We may need to break them out into a different .h file.
26331         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26332         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26333         of verify_function__.
26334
26335 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26336
26337         Tests for module pwrite.
26338         * modules/pwrite-tests: New file.
26339         * tests/test-pwrite.sh: New file.
26340         * tests/test-pwrite.c: New file.
26341
26342         New module pwrite.
26343         * lib/unistd.in.h (pwrite): New declaration.
26344         * lib/pwrite.c: New file, from glibc with modifications.
26345         * m4/pwrite.m4: New file.
26346         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26347         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26348         REPLACE_PWRITE.
26349         * modules/pwrite: New file.
26350         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26351         REPLACE_PWRITE.
26352         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26353         * doc/posix-functions/pwrite.texi: Mention the new module.
26354
26355 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26356
26357         pread: Update documentation.
26358         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26359
26360 2010-05-04  Eric Blake  <eblake@redhat.com>
26361
26362         docs: update cygwin progress
26363         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26364         this bug.
26365         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26366         Added in cygwin 1.7.2.
26367         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26368         Likewise.
26369         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26370         Likewise.
26371         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26372         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26373         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26374         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26375         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26376         Mention nproc module.
26377         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26378         bug in cygwin 1.7.5 addition.
26379         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26380         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26381         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26382         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26383         1.7.5.
26384         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26385         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26386         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26387         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26388         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26389         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26390         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26391         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26392         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26393         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26394         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26395         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26396         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26397         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26398         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26399         Likewise.
26400         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26401         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26402         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26403         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26404         Likewise.
26405         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26406         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26407         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26408         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26409         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26410         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26411         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26412         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26413         Likewise.
26414         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26415         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26416         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26417         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26418         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26419         Likewise.
26420         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26421         Likewise.
26422         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26423         Likewise.
26424         * doc/glibc-functions/xdrrec_endofrecord.texi
26425         (xdrrec_endofrecord): Likewise.
26426         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26427         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26428         Likewise.
26429         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26430         Likewise.
26431
26432 2010-05-04  Jim Meyering  <meyering@redhat.com>
26433
26434         gendocs.sh: make its "-s FILE" option more useful
26435         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26436         $PACKAGE to reflect the probably-different basename of "FILE".
26437
26438 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26439
26440         bootstrap: don't ignore download_po_files failure
26441         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26442         failure.
26443
26444 2010-05-03  Jim Meyering  <meyering@redhat.com>
26445
26446         maint.mk: allow to pass options to gendocs.sh
26447         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26448         (gendocs_options_): New overridable variable.
26449
26450         gnu-web-doc-update: don't ignore configure or build failure
26451         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26452
26453         announce-gen: backslash-escape '@'s in --help output
26454         * build-aux/announce-gen: Fix syntax errors.
26455
26456         maint.mk, announce-gen: allow project-specific announcement mail headers
26457         * top/maint.mk (translation_project_): Define default.
26458         (announcement_Cc_, announcement_mail_headers_): Likewise.
26459         (announcement): Invoke announce-gen with new --mail-headers option.
26460         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26461
26462         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26463         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26464         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26465         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26466         line in the "err2" output file when running "make check" in verbose
26467         mode (i.e., with set -x enabled).
26468
26469 2010-05-03  Bruno Haible  <bruno@clisp.org>
26470
26471         wctob: Fix for weird platforms.
26472         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26473         argument value.
26474
26475 2010-05-03  Jim Meyering  <meyering@redhat.com>
26476
26477         maint.mk: prohibit unwarranted use of <strings.h>
26478         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26479         strings.h in a file that does not also use strcasecmp, strncasecmp,
26480         ffs or ffsll.
26481
26482         maint.mk: remove obsolete comments
26483         * top/maint.mk: Remove stale, commented-out rules.
26484
26485 2010-05-02  Bruno Haible  <bruno@clisp.org>
26486
26487         wcwidth: Declare also when it's aliased.
26488         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26489         macro.
26490
26491 2010-05-02  Bruno Haible  <bruno@clisp.org>
26492
26493         Fix regression from 2010-04-25.
26494         * gnulib-tool (func_modules_transitive_closure): Check the status of
26495         all modules, not only of the tests that are of the form foo-tests where
26496         foo is a module.
26497
26498 2010-05-02  Bruno Haible  <bruno@clisp.org>
26499
26500         wctob: Work around nasty Cygwin 1.7.2 bug.
26501         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26502         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26503
26504 2010-05-01  Bruno Haible  <bruno@clisp.org>
26505
26506         fpurge: Sharper test.
26507         * tests/test-fpurge.c (main): Add one more ftell check.
26508         * modules/fpurge-tests (Depends-on): Add ftell.
26509         Suggested by Eric Blake.
26510
26511 2010-05-01  Bruno Haible  <bruno@clisp.org>
26512
26513         ftello: Another test.
26514         * tests/test-ftello3.c: New file.
26515         * modules/ftello-tests (Files): Add it.
26516         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26517         MOSTLYCLEANFILES.
26518
26519         ftell: Another test.
26520         * tests/test-ftell3.c: New file.
26521         * modules/ftell-tests (Files): Add it.
26522         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26523         MOSTLYCLEANFILES.
26524
26525 2010-05-01  Bruno Haible  <bruno@clisp.org>
26526
26527         ftell, ftello: Work around Solaris bug.
26528         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26529         * lib/ftello.c: Include stdio-impl.h.
26530         (ftello): On Solaris, when _IOWRT is set, compute the result without
26531         looking at _IOREAD.
26532         * modules/ftello (Files): Add lib/stdio-impl.h.
26533         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26534         * doc/posix-functions/ftello.texi: Likewise.
26535         Reported by Eric Blake.
26536
26537 2010-05-01  Bruno Haible  <bruno@clisp.org>
26538
26539         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26540         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26541         the _IOWRT flag is also set.
26542
26543 2010-05-01  Bruno Haible  <bruno@clisp.org>
26544
26545         Fix doc about a HP-UX stdio bug.
26546         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26547         * doc/posix-functions/ftello.texi: Likewise.
26548
26549 2010-05-01  Bruno Haible  <bruno@clisp.org>
26550
26551         lseek test: Fix failure on Solaris.
26552         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26553         output.
26554
26555 2010-04-30  Jim Meyering  <meyering@redhat.com>
26556
26557         bootstrap: don't ignore failure to generate po*/Makevars
26558         * build-aux/bootstrap (with_gettext): Don't ignore failure
26559         to create po/Makevars or runtime-po/Makevars.
26560
26561 2010-04-29  Eric Blake  <eblake@redhat.com>
26562
26563         headers: relax license to LGPLv2+
26564         * modules/fcntl-h (License): Relax license.
26565         * modules/getopt-posix (License): Likewise.
26566         * modules/locale (License): Likewise.
26567         * modules/math (License): Likewise.
26568         * modules/pty (License): Likewise.
26569         * modules/sched (License): Likewise.
26570         * modules/search (License): Likewise.
26571         * modules/spawn (License): Likewise.
26572         * modules/stdarg (License): Likewise.
26573         * modules/sysexits (License): Likewise.
26574
26575 2010-04-29  Jim Meyering  <meyering@redhat.com>
26576
26577         inttypes: relax license to LGPLv2+
26578         * modules/inttypes (License): Relax license.
26579
26580 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26581
26582         * top/maint.mk (indent): Run twice to produce idempotent results.
26583
26584 2010-04-28  Bruno Haible  <bruno@clisp.org>
26585
26586         getdate: Generate getdate.c in the source directory.
26587         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26588         MOSTLYCLEANFILES.
26589         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26590
26591 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26592
26593         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26594         is not declared as a const *; avoid warnings in that case.
26595
26596 2010-04-28  Eric Blake  <eblake@redhat.com>
26597
26598         canonicalize-lgpl: avoid compiler warning
26599         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26600         declaration' / 'extraneous semicolon' warning with some compilers.
26601         Reported by Andreas Gruenbacher.
26602
26603 2010-04-28  Jim Meyering  <meyering@redhat.com>
26604
26605         init.sh: ensure a more reliable exit status when exiting via trap
26606         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26607         Inspired by patches from Dmitry V. Levin.
26608         Also trap on signal 3 (SIGQUIT).
26609
26610 2010-04-27  Bruno Haible  <bruno@clisp.org>
26611
26612         Update doc about utimes().
26613         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26614         'utimens' module.
26615         Reported by Andreas Gruenbacher <agruen@suse.de>.
26616
26617 2010-04-27  Eric Blake  <eblake@redhat.com>
26618
26619         full-read, full-write: relax license
26620         * modules/full-read (License): Drop to LGPLv2+.
26621         * modules/full-write (License): Likewise.
26622         * modules/safe-read (License): Likewise.
26623         * modules/safe-write (License): Likewise.
26624
26625         pthread: mention library for linking
26626         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26627
26628 2010-04-27  Jim Meyering  <meyering@redhat.com>
26629
26630         maint.mk: fix a bug introduced in last change
26631         * top/maint.mk (gl_assured_headers_): Now that all names are on
26632         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26633         is not anchored to end of word, it should be adequate.
26634
26635         maint.mk: avoid side-effect in latest syntax-check
26636         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26637         to run commands via $(shell...), and hence to incur cost only when
26638         the new rule is actually run.
26639
26640         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26641         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26642         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26643         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26644         (gl_assured_headers_, az_, AZ_): Define.
26645         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26646
26647 2010-04-26  Jim Meyering  <jim@meyering.net>
26648             Bruno Haible  <bruno@clisp.org>
26649
26650         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26651         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26652         Prompted by an exchange with Gilles Espinasse.
26653
26654 2010-04-26  Jim Meyering  <meyering@redhat.com>
26655
26656         git-version-gen: aesthetic tweak
26657         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26658         so that the command remains on a single line.
26659
26660 2010-04-26  Eric Blake  <eblake@redhat.com>
26661
26662         git-version-gen: allow use on EBCDIC hosts
26663         * build-aux/git-version-gen (dirty): Use literal rather than tying
26664         ourselves to ascii.
26665         Reported by Steve Goetze.
26666
26667 2010-04-25  Bruno Haible  <bruno@clisp.org>
26668
26669         netdb: Add support for GNULIB_POSIXCHECK.
26670         * lib/netdb.in.h: Include warn-on-use.h.
26671         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26672         functions are used when GNULIB_POSIXCHECK is defined and the
26673         getaddrinfo module is not in use.
26674         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26675         freeaddrinfo, gai_strerror, getnameinfo are declared.
26676         * modules/netdb (Depends-on): Add warn-on-use.
26677         (Makefile.am): Include warn-on-use.h in netdb.h.
26678
26679 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26680
26681         build: avoid "make check" failure without .git/ directory
26682         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26683         there is no .git/ directory.
26684
26685 2010-04-25  Bruno Haible  <bruno@clisp.org>
26686
26687         ptsname: Fix misuse of ttyname_r.
26688         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26689         of errno.
26690
26691 2010-04-25  Bruno Haible  <bruno@clisp.org>
26692
26693         ttyname_r: Make it work on Solaris 10.
26694         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26695         if the system function has the POSIX declaration. Test whether the
26696         function fails if the buffer is less than 128 bytes large.
26697         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26698         system's ttyname_r function. Provide a reasonably large buffer.
26699         * modules/ttyname_r (Depends-on): Add extensions.
26700         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26701
26702 2010-04-25  Bruno Haible  <bruno@clisp.org>
26703
26704         Use the 'extensions' module for some more functions on Solaris.
26705         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26706         module.
26707         * doc/posix-functions/ctime_r.texi: Likewise.
26708         * doc/posix-functions/getgrgid_r.texi: Likewise.
26709         * doc/posix-functions/getgrnam_r.texi: Likewise.
26710         * doc/posix-functions/getpwnam_r.texi: Likewise.
26711         * doc/posix-functions/getpwuid_r.texi: Likewise.
26712         * doc/posix-functions/readdir_r.texi: Likewise.
26713         * doc/posix-functions/sigwait.texi: Likewise.
26714         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26715         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26716
26717 2010-04-25  Bruno Haible  <bruno@clisp.org>
26718
26719         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26720         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26721         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26722         * lib/ttyname_r.c: Include <limits.h>.
26723         (ttyname_r): Define using the system's ttyname_r function, if it exists
26724         and not on Solaris.
26725         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26726         set.
26727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26728         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26729         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26730         Reported by Simon Josefsson.
26731
26732 2010-04-25  Bruno Haible  <bruno@clisp.org>
26733
26734         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26735         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26736         * doc/posix-functions/ctime_r.texi: Likewise.
26737         * doc/posix-functions/getgrgid_r.texi: Likewise.
26738         * doc/posix-functions/getgrnam_r.texi: Likewise.
26739         * doc/posix-functions/getlogin_r.texi: Likewise.
26740         * doc/posix-functions/getpwnam_r.texi: Likewise.
26741         * doc/posix-functions/getpwuid_r.texi: Likewise.
26742         * doc/posix-functions/readdir_r.texi: Likewise.
26743         * doc/posix-functions/sigwait.texi: Likewise.
26744         * doc/posix-functions/ttyname_r.texi: Likewise.
26745         Reported by Simon Josefsson.
26746
26747 2010-04-25  Bruno Haible  <bruno@clisp.org>
26748
26749         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26750         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26751         also to --create-testdir.
26752         (func_acceptable): Don't consider the status of *-tests modules here.
26753         (func_modules_transitive_closure): Consider it here, before including a
26754         test module.
26755         (func_import, func_create_testdir): Set inc_all_direct_tests,
26756         inc_all_indirect_tests.
26757         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26758         --create-testdir and --create-megatestdir.
26759
26760 2010-04-25  Bruno Haible  <bruno@clisp.org>
26761
26762         gnulib-tool: Add --without-*-tests options.
26763         * gnulib-tool (func_usage): Document the --without-*-tests options.
26764         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26765         excl_unportable_tests): New variables.
26766         Fail if they are specified with --import or --update.
26767         (func_acceptable): Respect the excl_*_tests variables.
26768         (func_import): Set the excl_*_tests variables to empty.
26769
26770 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26771             Bruno Haible  <bruno@clisp.org>
26772
26773         Work around a MacOS X 10.4 bug with openpty.
26774         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26775         * tests/test-openpty.c (main): Close the master side explicitly.
26776
26777 2010-04-25  Bruno Haible  <bruno@clisp.org>
26778
26779         strnlen: Fix a C++ test error on MacOS X and Solaris.
26780         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26781         the function is not declared.
26782         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26783         Simon Josefsson.
26784
26785 2010-04-24  Bruno Haible  <bruno@clisp.org>
26786
26787         Avoid a gcc warning.
26788         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26789         of correct type for %08lx directive.
26790         Reported by Eric Blake.
26791
26792 2010-04-24  Bruno Haible  <bruno@clisp.org>
26793
26794         vasnprintf: Correct errno value in case of out-of-memory.
26795         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26796         or sprintf. Use the errno value from SNPRINTF or sprintf.
26797         Reported by Ian Beckwith <ianb@erislabs.net>.
26798
26799 2010-04-24  Bruno Haible  <bruno@clisp.org>
26800
26801         ansi-c++-opt: Find correct compiler when cross-compiling.
26802         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26803         AC_CHECK_PROGS.
26804         Reported by Simon Josefsson.
26805
26806 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26807
26808         vc-list-files: Add support for subversion
26809         * build-aux/vc-list-files: Use "svn list" to generate the list of
26810         files controlled by subversion.
26811
26812 2010-04-23  Jim Meyering  <meyering@redhat.com>
26813
26814         vc-list-files tests: convert to use init.sh
26815         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26816         path_prepend_.
26817         Use Exit, not exit.
26818         Use skip_ rather than open coding it.
26819         Remove trap set-up and compare definitions.
26820         * tests/test-vc-list-files-git.sh: Likewise.
26821         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26822
26823 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26824
26825         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26826         backup files.
26827
26828 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26829
26830         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26831
26832 2010-04-20  Eric Blake  <eblake@redhat.com>
26833
26834         tests: be robust to ignored SIGPIPE
26835         * tests/test-select-in.sh: Consume all output.
26836         * tests/test-lseek.sh: Check correct exit status, while avoiding
26837         EPIPE.
26838
26839 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26840             Bruno Haible  <bruno@clisp.org>
26841
26842         visibility: Don't use -fvisibility if it leads to a warning.
26843         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26844         yes, don't pretend that visibility works if it leads to a warning.
26845         Reported by Mike Gran <spk121@yahoo.com>.
26846
26847 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26848
26849         * build-aux/bootstrap: Use "git -h" for testing for supported options
26850         instead of "git --help".  The short-form option only shows a summary,
26851         and doesn't layout the full man page.  Grep for the full option name
26852         in the summary, too.
26853
26854 2010-04-19  Bruno Haible  <bruno@clisp.org>
26855
26856         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26857         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26858         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26859         mention of RELOCATABLE_STRIP.
26860         Reported by Sylvain Beucler <beuc@beuc.net>.
26861
26862 2010-04-19  Bruno Haible  <bruno@clisp.org>
26863
26864         * lib/diffseq.h: Fix typo in comment.
26865         Reported by Eric Blake.
26866
26867 2010-04-19  Bruno Haible  <bruno@clisp.org>
26868
26869         ioctl: Move autoconf macro to a .m4 file.
26870         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26871         * modules/ioctl (Files): Add it.
26872         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26873         Reported by Ian Beckwith <ianb@erislabs.net>.
26874
26875 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26876             Bruno Haible  <bruno@clisp.org>
26877
26878         diffseq: Accommodate use-case with abstract arrays.
26879         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26880         is not defined.
26881         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26882         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26883
26884 2010-04-18  Bruno Haible  <bruno@clisp.org>
26885
26886         * doc/posix-headers/stdbool.texi: More precise wording.
26887
26888 2010-04-17  Jim Meyering  <meyering@redhat.com>
26889
26890         maint.mk: use gnu-style indentation in an embedded perl script
26891         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26892         Rename variable: s/two/last_two_bytes/
26893
26894 2010-04-16  Eric Blake  <eblake@redhat.com>
26895
26896         test-stdbool: skip test that fails with Solaris CC
26897         * tests/test-stdbool.c (f): Skip test that causes compilation
26898         error under buggy C++ compiler.
26899         * lib/stdbool.in.h: Document the limitation.
26900         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26901
26902         setenv: allow compilation with C++
26903         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26904         register keyword.
26905
26906         stdint: allow test to pass with C++
26907         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26908
26909         getopt: allow compilation with C++
26910         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26911         struct.
26912         * lib/getopt.c (_getopt_internal_r): Use correct type.
26913         Reported by Dagobert Michelson, via Joel E. Denny.
26914
26915 2010-04-16  Bruno Haible  <bruno@clisp.org>
26916
26917         Override netdb.h always.
26918         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26919         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26920         Reported by Ludovic Courtès <ludo@gnu.org>.
26921
26922 2010-04-15  Bruno Haible  <bruno@clisp.org>
26923
26924         openpty: Fix mistake from 2010-03-21.
26925         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26926         Reported by Simon Josefsson.
26927
26928 2010-04-15  Eric Blake  <eblake@redhat.com>
26929
26930         test-forkpty: fix expected signature
26931         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26932         Reported by Simon Josefsson.
26933
26934 2010-04-15  Jim Meyering  <meyering@redhat.com>
26935
26936         maint.mk: texinfo_suffix_re_: correct the default regexp
26937         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26938
26939         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26940         make it configurable via texinfo_suffix_re_.
26941
26942 2010-04-14  Eric Blake  <eblake@redhat.com>
26943
26944         strtok_r: relax license to LGPLv2+
26945         * modules/strtok_r (License): Relax license.
26946         Reported by Matthias Bolte.
26947
26948 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26949
26950         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26951         version 1.4.4 by default instead of requiring the libgcrypt
26952         version used during build.  This makes it possible to use the
26953         application with older but still binary compatible libgcrypt
26954         versions.
26955
26956 2010-04-13  Eric Blake  <eblake@redhat.com>
26957
26958         getopt-gnu: match recent glibc fixes and posix ruling
26959         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26960         '+' handling, when requesting extensions.
26961         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26962         'W;' handling.
26963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26964         * doc/posix-functions/getopt.texi (getopt): Document this.
26965         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26967         Likewise.
26968
26969         getopt: merge bug fixes from glibc
26970         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26971         diagnostics.  Honor '+:' correctly.  Reject ';'.
26972
26973         getopt-posix: detect MacOS bug
26974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26975         optind when missing a required argument.
26976         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26977         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26978         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26979         Likewise.
26980
26981         getopt-posix: avoid spurious failure on Solaris
26982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26983         an indicator that setting optind=1 is sufficient for reset.
26984
26985         getopt-posix: avoid spurious failure on FreeBSD
26986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26987         in POSIX mode, since the m4 test uses it.
26988
26989         gnulib-tool: silence warning on BSD sh
26990         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26991
26992 2010-04-13  Jim Meyering  <meyering@redhat.com>
26993
26994         doc: users.txt: GNU patch now uses gnulib
26995         * users.txt: Add patch.
26996
26997 2010-04-12  Jim Meyering  <meyering@redhat.com>
26998
26999         maint.mk: generate more concise timing data for syntax-check rules
27000         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
27001         " done" from each line that reports a syntax-check test duration.
27002
27003 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
27004
27005         git-version-gen: use "git update-index..." rather than "git status"
27006         * build-aux/git-version-gen: Use git update-index --refresh, not
27007         "git status".  With some versions of git, "git status" would fail
27008         to update the index and result in an unwarranted "-dirty" suffix.
27009
27010 2010-04-11  Jim Meyering  <meyering@redhat.com>
27011
27012         openat: correct formatting (no semantic change)
27013         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27014         Suggested by Bruno Haible.
27015
27016 2010-04-11  Bruno Haible  <bruno@clisp.org>
27017
27018         Stricter declaration checking in testdirs.
27019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27020         If for_tests is true, augment AM_CPPFLAGS to define
27021         GNULIB_STRICT_CHECKING.
27022         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27023         GNULIB_STRICT_CHECKING is defined, verify that the function is
27024         declared.
27025
27026 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27027             Bruno Haible  <bruno@clisp.org>
27028
27029         libunistring: Improve configure output.
27030         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27031         Don't say "consider installing GNU libunistring" when checking again
27032         with libiconv.
27033
27034 2010-04-11  Bruno Haible  <bruno@clisp.org>
27035
27036         libunistring: Correct value of $LTLIBUNISTRING.
27037         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27038         correct the value of $LTLIBUNISTRING.
27039
27040 2010-04-11  Bruno Haible  <bruno@clisp.org>
27041
27042         havelib: Add static libraries to LIBS in the right order.
27043         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27044         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27045
27046 2010-04-11  Bruno Haible  <bruno@clisp.org>
27047
27048         libunistring: Detect libunistring also when it depends on libiconv.
27049         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27050         the second AC_LIB_HAVE_LINKFLAGS invocation.
27051
27052 2010-04-11  James Youngman  <jay@gnu.org>
27053
27054         close-stream: declare local scalars to be "const"
27055         * lib/close-stream.c (close_stream): Make boolean variables const
27056         to document the fact that we set but do not change them.
27057
27058 2010-04-11  Bruno Haible  <bruno@clisp.org>
27059
27060         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27061
27062 2010-04-11  Jim Meyering  <meyering@redhat.com>
27063
27064         maint.mk: don't include dist-check.mk
27065         * top/maint.mk: Remove bogus include directive.
27066
27067         maint.mk: improve empty-line-at-EOF check
27068         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27069         solution, rather than tail+Perl-based one.  The latter would read
27070         a few kilobytes from the end of each file, and did not handle empty
27071         files properly.
27072
27073         maint.mk: print the elapsed time for each syntax-check rule
27074         * top/maint.mk (sc_m_rules_): Save start time in a file.
27075         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27076         (local-check): Interpose the .z rules
27077
27078 2010-04-11  Jim Meyering  <meyering@redhat.com>
27079
27080         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27081         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27082         empty file with one that ends in an empty line.
27083
27084 2010-04-10  Bruno Haible  <bruno@clisp.org>
27085
27086         mkdir: Make it work on mingw64.
27087         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27088         * lib/mkdir.c: Update comment.
27089         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27090
27091 2010-04-10  Bruno Haible  <bruno@clisp.org>
27092
27093         Don't override improved macro from newer autoconf.
27094         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27095         autoconf >= 2.62.
27096         Reported by Joel E. Denny <jdenny@clemson.edu>.
27097
27098 2010-04-10  Jim Meyering  <meyering@redhat.com>
27099
27100         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27101         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27102
27103         maint.mk: correct a diagnostic
27104         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27105         in diagnostic; now use $prohibit.
27106
27107 2010-04-10  Bruno Haible  <address@hidden>
27108
27109         fchownat: Fix a C++ test error on Solaris 8.
27110         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27111         the function does not exist.
27112
27113 2010-04-10  Bruno Haible  <bruno@clisp.org>
27114
27115         vasnprintf: Add more tests.
27116         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27117         (test_function): Test converting an invalid wide string.
27118
27119         vasnprintf: Correct handling of unconvertible wide string arguments.
27120         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27121         VASNPRINTF.
27122         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27123         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27124         smaller than the expected maximum need for the directive. Set errno to
27125         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27126         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27128         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27129         * modules/vasnprintf (Files): Add m4/printf.m4.
27130         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27131
27132 2010-04-10  Bruno Haible  <bruno@clisp.org>
27133
27134         vasnprintf: Fix crash in %ls directive.
27135         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27136         string is passed as argument to %ls, with no precision and no width.
27137         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27138
27139 2010-04-10  Bruno Haible  <bruno@clisp.org>
27140
27141         vasnprintf: Fix multiple test failures on mingw.
27142         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27143         _snprintf, or snwprintf, not _snwprintf.
27144
27145 2010-04-10  Bruno Haible  <bruno@clisp.org>
27146
27147         write: Fix a C++ test error on mingw.
27148         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27149
27150 2010-04-10  Bruno Haible  <bruno@clisp.org>
27151
27152         vasnprintf test: Reduce code duplication.
27153         * tests/test-vasnprintf.c (test_function): New function, extracted from
27154         test_vasnprintf.
27155         (test_vasnprintf, test_asnprintf): Invoke it.
27156
27157 2010-04-10  Bruno Haible  <bruno@clisp.org>
27158
27159         strnlen: Fix warning in C++ mode on MacOS X.
27160         * lib/string.in.h (strnlen): Use the modern idiom.
27161         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27162         defining strnlen as a macro already in <config.h>.
27163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27164         REPLACE_STRNLEN.
27165         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27166         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27167
27168 2010-04-08  James Youngman  <jay@gnu.org>
27169
27170         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27171         the example.
27172
27173 2010-04-09  Jim Meyering  <meyering@redhat.com>
27174
27175         maint.mk: print better diagnostic when there is no $(_hv_file)
27176         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27177         announce that when $(_hv_file) (aka help-version) does not exist.
27178
27179         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27180         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27181         not try to interpret its random input bytes.  Jarno Rajahalme reported
27182         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27183         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27184         (mktempd_): Likewise, just in case.
27185
27186         ftruncate: add two years to projected module removal date: 2012
27187         * m4/ftruncate.m4: Adjust comments.
27188
27189         ftruncate: mark module as obsolete; even MinGW provides it, now
27190         * modules/ftruncate (Status): Obsolete.
27191         (Notice): Say that.
27192         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27193         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27194
27195 2010-04-08  Bruno Haible  <bruno@clisp.org>
27196
27197         Fix side effects from tests-related modules.
27198         * modules/dprintf-posix (Comment): New section.
27199         * modules/fprintf-posix (Comment): Likewise.
27200         * modules/obstack-printf-posix (Comment): Likewise.
27201         * modules/printf-posix (Comment): Likewise.
27202         * modules/snprintf-posix (Comment): Likewise.
27203         * modules/sprintf-posix (Comment): Likewise.
27204         * modules/vasnprintf-posix (Comment): Likewise.
27205         * modules/vasprintf-posix (Comment): Likewise.
27206         * modules/vdprintf-posix (Comment): Likewise.
27207         * modules/vfprintf-posix (Comment): Likewise.
27208         * modules/vprintf-posix (Comment): Likewise.
27209         * modules/vsnprintf-posix (Comment): Likewise.
27210         * modules/vsprintf-posix (Comment): Likewise.
27211         * modules/xprintf-posix (Comment): Likewise.
27212         * modules/xvasprintf-posix (Comment): Likewise.
27213         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27214         * modules/floorf-tests (Depends-on): Likewise.
27215         * modules/round-tests (Depends-on): Likewise.
27216         * modules/roundf-tests (Depends-on): Likewise.
27217         * modules/trunc-tests (Depends-on): Likewise.
27218         * modules/truncf-tests (Depends-on): Likewise.
27219         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27220         'fprintf-posix' module is not present.
27221         * tests/test-floorf2.c (check): Likewise.
27222         * tests/test-trunc2.c (check): Likewise.
27223         * tests/test-truncf2.c (check): Likewise.
27224         * tests/test-round2.c (equal): Likewise.
27225         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27226
27227 2010-04-07  Karl Berry  <karl@gnu.org>
27228
27229         * config/srclist.txt,
27230         * config/srclistvars.sh,
27231         * config/srclist-update: doc fixes.
27232
27233 2010-04-07  Jim Meyering  <meyering@redhat.com>
27234
27235         maint.mk: add a PATH crosschecking syntax-check rule
27236         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27237         Useful if you use a test like the one in help-version (coreutils,
27238         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27239         printed by prog --version.
27240
27241 2010-04-06  Bruno Haible  <bruno@clisp.org>
27242
27243         Fix link error on mingw.
27244         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27245         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27246
27247 2010-04-06  Bruno Haible  <bruno@clisp.org>
27248
27249         Assume rmdir exists.
27250         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27251
27252 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27253
27254         doc: update users.txt
27255         * users.txt: Add gcal.
27256
27257 2010-04-06  Jim Meyering  <meyering@redhat.com>
27258
27259         init.sh: simply unset TMPDIR rather than risking env -i
27260         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27261         although it probably works fine on all Unix-based systems, some
27262         systems (Cygwin?) cannot tolerate a totally cleared environment.
27263         Suggestion from Eric Blake.
27264
27265 2010-04-06  Jim Meyering  <meyering@redhat.com>
27266
27267         init.sh: portability fix: use env's POSIX-specified -i option not -u
27268         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27269         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27270
27271 2010-04-05  Bruno Haible  <bruno@clisp.org>
27272
27273         btowc: Work around Cygwin 1.7.2 bug.
27274         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27275         does not map NUL to 0.
27276         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27277
27278 2010-04-05  Bruno Haible  <bruno@clisp.org>
27279
27280         Make the multithread modules work on Cygwin 1.7.2.
27281         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27282         imported symbols can be declared weak, so that it returns "no" on
27283         Cygwin 1.7.2.
27284
27285 2010-04-05  Bruno Haible  <bruno@clisp.org>
27286
27287         Use the module 'strncat'.
27288         * modules/unistr/u8-strncat (Depends-on): Add strncat.
27289
27290         Tests for module 'strncat'.
27291         * modules/strncat-tests: New file.
27292         * tests/test-strncat.c: New file.
27293
27294         New module 'strncat'.
27295         * lib/string.in.h (strncat): New declaration.
27296         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27297         * m4/strncat.m4: New file, based on m4/memchr.m4.
27298         * modules/strncat: New file.
27299         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27300         is declared.
27301         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27302         REPLACE_STRNCAT.
27303         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27304         REPLACE_STRNCAT.
27305         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27306         module.
27307         * tests/test-string-c++.cc: Check signature of strncat.
27308
27309 2010-04-05  Jim Meyering  <meyering@redhat.com>
27310
27311         xstrtoumax-tests: convert to use init.sh
27312         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27313         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27314         Use Exit, not exit.
27315         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27316
27317         xstrtoimax-tests: convert to use init.sh
27318         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27319         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27320         Use Exit, not exit.
27321         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27322
27323 2010-04-05  Bruno Haible  <bruno@clisp.org>
27324
27325         sys_socket: Avoid #define replacements in C++ mode.
27326         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27327         warning to the function if possible, rather than #defining the symbol
27328         to a dysfunctional alias.
27329
27330 2010-04-05  Bruno Haible  <bruno@clisp.org>
27331
27332         fseeko: Fix C++ test error on mingw.
27333         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27334         gl_FUNC_FSEEKO.
27335         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27336         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27337         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27338         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27339
27340 2010-04-05  Bruno Haible  <bruno@clisp.org>
27341
27342         duplocale: Improve test output.
27343         * tests/test-duplocale.c (main): Print reason for skipped test.
27344
27345 2010-04-05  Bruno Haible  <bruno@clisp.org>
27346
27347         Assume rmdir exists.
27348         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27349         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27350
27351 2010-04-05  Bruno Haible  <bruno@clisp.org>
27352
27353         Fix link error on Solaris 8 with cc.
27354         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27355
27356 2010-04-05  Bruno Haible  <bruno@clisp.org>
27357
27358         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27359         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27360
27361 2010-04-05  Bruno Haible  <bruno@clisp.org>
27362
27363         vasprintf: Update documentation.
27364         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27365
27366 2010-04-05  Bruno Haible  <bruno@clisp.org>
27367
27368         ptsname: Improve test.
27369         * tests/test-ptsname.c (main): Also try the various master names of BSD
27370         systems.
27371
27372 2010-04-05  Bruno Haible  <bruno@clisp.org>
27373
27374         memchr: Avoid a possible C++ test error.
27375         * lib/string.in.h (memchr): Provide declaration if function is missing.
27376         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27377         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27379         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27380
27381 2010-04-05  Bruno Haible  <bruno@clisp.org>
27382
27383         strtok_r: Improve idiom.
27384         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27385         AC_LIBOBJ is used.
27386
27387 2010-04-05  Bruno Haible  <bruno@clisp.org>
27388
27389         strdup: Improve idiom.
27390         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27391         AC_LIBOBJ is used.
27392         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27393         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27394         when AC_LIBOBJ is used.
27395
27396 2010-04-05  Bruno Haible  <bruno@clisp.org>
27397
27398         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27399         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27400         don't set REPLACE_MBSINIT to 1.
27401         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27402         don't set REPLACE_MBRTOWC to 1.
27403         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27404         exist, don't set REPLACE_MBSRTOWCS to 1.
27405         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27406         exist, don't set REPLACE_MBSNRTOWCS to 1.
27407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27408         don't set REPLACE_WCRTOMB to 1.
27409         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27410         exist, don't set REPLACE_WCSRTOMBS to 1.
27411         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27412         exist, don't set REPLACE_WCSNRTOMBS to 1.
27413
27414 2010-04-05  Bruno Haible  <bruno@clisp.org>
27415
27416         ldexpl: Improve idiom.
27417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27418         make sure to set HAVE_DECL_LDEXPL to 0.
27419
27420 2010-04-05  Jim Meyering  <meyering@redhat.com>
27421
27422         xstrtol-tests: convert to use init.sh
27423         * modules/xstrtol-tests (Files): Add tests/init.sh.
27424         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27425         Use Exit, not exit.
27426         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27427
27428         atexit-tests: convert to use init.sh
27429         * modules/atexit-tests (Files): Add tests/init.sh.
27430         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27431         Use Exit, not exit.
27432         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27433
27434         init.sh: fix typo
27435         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27436
27437         init.sh: make it easier for a test script to write to the tty, ...
27438         when using automake's parallel-tests mode.
27439         * tests/init.sh (stderr_fileno_): Define overridable variable.
27440         (warn_): New function, to use it.
27441         (fail_, skip_, framework_failure_): Use warn_.
27442
27443 2010-04-04  Bruno Haible  <bruno@clisp.org>
27444
27445         btowc: Avoid warning.
27446         * lib/btowc.c: Include <stdlib.h>.
27447         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27448
27449 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27450             Bruno Haible  <bruno@clisp.org>
27451
27452         wchar: Port to NetBSD 1.5.
27453         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27454         * lib/wctype.in.h (WEOF): Likewise.
27455
27456 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27457             Bruno Haible  <bruno@clisp.org>
27458
27459         Port extended stdio to NetBSD 1.5.
27460         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27461         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27462         older.
27463
27464 2010-04-04  Bruno Haible  <bruno@clisp.org>
27465
27466         string: Remove unused substitution.
27467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27468         HAVE_DECL_STRERROR.
27469         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27470
27471 2010-04-04  Bruno Haible  <bruno@clisp.org>
27472
27473         strtod: Avoid a possible C++ test error.
27474         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27475         set REPLACE_STRTOD.
27476
27477 2010-04-04  Bruno Haible  <bruno@clisp.org>
27478
27479         strerror: Update documentation.
27480         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27481
27482 2010-04-04  Bruno Haible  <bruno@clisp.org>
27483
27484         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27485         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27486         _GL_CXXALIAS_SYS_CAST.
27487
27488 2010-04-04  Bruno Haible  <bruno@clisp.org>
27489
27490         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27491         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27492         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27493         REPLACE_FREXPL to 1.
27494         * doc/posix-functions/frexpl.texi: Update documentation.
27495
27496 2010-04-04  Bruno Haible  <bruno@clisp.org>
27497
27498         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27499         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27500
27501 2010-04-04  Bruno Haible  <bruno@clisp.org>
27502
27503         Implement nanosleep for native Windows.
27504         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27505
27506 2010-04-04  Bruno Haible  <bruno@clisp.org>
27507
27508         math: Fix some C++ test errors on Solaris 8.
27509         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27510
27511 2010-04-04  Bruno Haible  <bruno@clisp.org>
27512
27513         math: Fix some C++ test errors on Cygwin.
27514         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27515         truncl): Provide declaration if the system does not have it.
27516         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27517         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27518         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27519         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27520         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27521         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27522         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27523         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27524         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27525         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27526         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27527         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27528         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27529         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27530         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27531         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27533         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27534         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27535         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27536         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27537         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27538
27539 2010-04-04  Bruno Haible  <bruno@clisp.org>
27540
27541         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27542         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27543         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27544         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27545         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27546         * m4/isinf.m4 (gl_ISINF): Likewise.
27547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27548
27549 2010-04-04  Bruno Haible  <bruno@clisp.org>
27550
27551         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27552         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27553
27554 2010-04-04  Bruno Haible  <bruno@clisp.org>
27555
27556         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27557         * modules/tmpfile (configure.ac): Update.
27558
27559         tmpfile: Fix C++ test error on mingw.
27560         * lib/stdio.in.h (tmpfile): New declaration.
27561         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27562         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27563         * modules/tmpfile (Depends-on): Add stdio.
27564         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27565         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27566         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27567         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27568         REPLACE_TMPFILE.
27569         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27570
27571 2010-04-04  Bruno Haible  <bruno@clisp.org>
27572
27573         ioctl: Fix C++ test error on mingw.
27574         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27575         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27576         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27577
27578 2010-04-03  Bruno Haible  <bruno@clisp.org>
27579
27580         wcwidth: Fix C++ test error on mingw.
27581         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27583         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27584
27585 2010-04-03  Bruno Haible  <bruno@clisp.org>
27586
27587         nanosleep: Fix C++ test error on mingw.
27588         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27589         * lib/time.in.h (nanosleep): Use modern idiom.
27590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27591         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27592         REPLACE_NANOSLEEP to 1.
27593         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27594         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27595
27596 2010-04-03  Bruno Haible  <bruno@clisp.org>
27597
27598         strptime: Fix C++ test error on mingw.
27599         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27600         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27601         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27602         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27603         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27604         not REPLACE_STRPTIME.
27605         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27606         REPLACE_STRPTIME.
27607
27608 2010-04-03  Bruno Haible  <bruno@clisp.org>
27609
27610         timegm: Fix C++ test error on mingw.
27611         * lib/time.in.h (timegm): Use modern idiom.
27612         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27613         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27614         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27615         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27616
27617 2010-04-03  Bruno Haible  <bruno@clisp.org>
27618
27619         timegm: Assume declaration if function exists.
27620         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27621         if it exists. Don't clobber ac_cv_func_timegm.
27622
27623 2010-04-03  Bruno Haible  <bruno@clisp.org>
27624
27625         time_r: Fix C++ test error on mingw.
27626         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27627         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27628         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27629         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27630         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27631
27632 2010-04-03  Bruno Haible  <bruno@clisp.org>
27633
27634         time_r: Minor updates.
27635         * modules/time_r (Description): Mention the provided functions.
27636         * lib/time_r.c: Don't include <string.h>.
27637         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27638         * doc/posix-functions/localtime_r.texi: Likewise.
27639
27640 2010-04-03  Bruno Haible  <bruno@clisp.org>
27641
27642         time: Fix regression introduced on 2010-03-08.
27643         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27644         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27645
27646 2010-04-03  Jim Meyering  <meyering@redhat.com>
27647
27648         maint.mk: don't silently disable project-specific syntax-check rules
27649         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27650         that they need to convert their project-specific syntax-check rules
27651         to use the new _sc_search_regexp.
27652
27653 2010-04-03  Bruno Haible  <bruno@clisp.org>
27654
27655         fchdir: Fix regression introduced on 2010-03-08.
27656         * lib/unistd.in.h (fchdir): Fix declaration.
27657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27659         REPLACE_FCHDIR.
27660         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27661         REPLACE_FCHDIR.
27662
27663 2010-04-03  Bruno Haible  <bruno@clisp.org>
27664
27665         getpagesize: Fix C++ test error on mingw.
27666         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27667         system does not declare the function.
27668         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27669         declared.
27670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27671         HAVE_DECL_GETPAGESIZE.
27672         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27673
27674 2010-04-03  Bruno Haible  <bruno@clisp.org>
27675
27676         stdio: Make C++ tests work on mingw.
27677         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27678         does not declare the function.
27679
27680 2010-04-03  Bruno Haible  <bruno@clisp.org>
27681
27682         ftello: Fix C++ test error on mingw.
27683         * lib/stdio.in.h (ftello): Use modern idiom.
27684         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27685         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27686         is missing and that it needs to be replaced.
27687         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27689         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27690
27691 2010-04-03  Bruno Haible  <bruno@clisp.org>
27692
27693         fseeko: Fix C++ test error on mingw.
27694         * lib/stdio.in.h (fseeko): Use modern idiom.
27695         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27696         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27697         is missing and that it needs to be replaced.
27698         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27700         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27701
27702 2010-04-03  Bruno Haible  <bruno@clisp.org>
27703
27704         mkstemp: Fix C++ test error on mingw.
27705         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27707         function is missing and that it needs to be replaced.
27708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27709         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27710
27711 2010-04-03  Bruno Haible  <bruno@clisp.org>
27712
27713         stpncpy: Fix C++ test error on mingw.
27714         * lib/string.in.h (stpncpy): Use modern idiom.
27715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27716         function is missing and that it needs to be replaced.
27717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27718         REPLACE_STPNCPY.
27719         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27720
27721 2010-04-03  Bruno Haible  <bruno@clisp.org>
27722
27723         sys_stat: Fix C++ test error on mingw.
27724         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27725         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27726
27727 2010-04-03  Bruno Haible  <bruno@clisp.org>
27728
27729         pty: Update doc.
27730         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27731
27732 2010-04-03  Bruno Haible  <bruno@clisp.org>
27733
27734         unistd: Fix C++ test error on mingw.
27735         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27736
27737 2010-04-03  Bruno Haible  <bruno@clisp.org>
27738
27739         Update doc regarding mingw.
27740         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27741         * doc/glibc-functions/login_tty.texi: Likewise.
27742         * doc/glibc-functions/forkpty.texi: Likewise.
27743
27744 2010-04-03  Bruno Haible  <bruno@clisp.org>
27745
27746         stdlib: Avoid compilation failure of c-strtold on mingw.
27747         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27748
27749 2010-04-03  Bruno Haible  <bruno@clisp.org>
27750
27751         locale: Make C++ tests work on Cygwin and mingw.
27752         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27753         cannot provide the function.
27754         Reported by Simon Josefsson.
27755
27756 2010-04-03  Bruno Haible  <bruno@clisp.org>
27757
27758         localename: Port to MacOS X 10.6.
27759         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27760         memory layout of the locales in MacOS X 10.6 as well.
27761         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27762
27763 2010-04-02  Bruno Haible  <bruno@clisp.org>
27764
27765         gnulib-tool: Ensure that long-running tests are executed last.
27766         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27767         running tests after the one for the other tests.
27768
27769 2010-04-02  Bruno Haible  <bruno@clisp.org>
27770
27771         gnulib-tool: Ensure the tests in the main directory are executed first.
27772         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27773         start with the current directory.
27774
27775 2010-04-02  Bruno Haible  <bruno@clisp.org>
27776
27777         Tests for module 'havelib', moved here from GNU gettext.
27778         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27779         modifications.
27780         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27781         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27782         with modifications.
27783         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27784         modifications.
27785         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27786         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27787         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27788         with modifications.
27789         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27790         with modifications.
27791         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27792         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27793         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27794         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27795         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27796         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27797         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27798         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27799         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27800         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27801         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27802         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27803         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27804         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27805         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27806         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27807         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27808         with modifications.
27809         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27810         with modifications.
27811         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27812         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27813         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27814         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27815         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27816         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27817         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27818         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27819         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27820         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27821         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27822         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27823         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27824         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27825         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27826         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27827         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27828         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27829         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27830         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27831         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27832         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27833         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27834         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27835         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27836         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27837         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27838         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27839         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27840         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27841         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27842         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27843         * tests/havelib/rpathx/rpathx.c: New file, from
27844         gettext/autoconf-lib-link.
27845         * tests/havelib/rpathx/Makefile.am: New file, from
27846         gettext/autoconf-lib-link.
27847         * tests/havelib/rpathx/configure.ac: New file, from
27848         gettext/autoconf-lib-link with modifications.
27849         * tests/havelib/rpathy/rpathy.c: New file, from
27850         gettext/autoconf-lib-link.
27851         * tests/havelib/rpathy/Makefile.am: New file, from
27852         gettext/autoconf-lib-link.
27853         * tests/havelib/rpathy/configure.ac: New file, from
27854         gettext/autoconf-lib-link with modifications.
27855         * tests/havelib/rpathz/rpathz.c: New file, from
27856         gettext/autoconf-lib-link.
27857         * tests/havelib/rpathz/Makefile.am: New file, from
27858         gettext/autoconf-lib-link.
27859         * tests/havelib/rpathz/configure.ac: New file, from
27860         gettext/autoconf-lib-link with modifications.
27861         * tests/havelib/rpathlx/usex.c: New file, from
27862         gettext/autoconf-lib-link.
27863         * tests/havelib/rpathlx/Makefile.am: New file, from
27864         gettext/autoconf-lib-link.
27865         * tests/havelib/rpathlx/configure.ac: New file, from
27866         gettext/autoconf-lib-link with modifications.
27867         * tests/havelib/rpathly/usey.c: New file, from
27868         gettext/autoconf-lib-link.
27869         * tests/havelib/rpathly/Makefile.am: New file, from
27870         gettext/autoconf-lib-link.
27871         * tests/havelib/rpathly/configure.ac: New file, from
27872         gettext/autoconf-lib-link with modifications.
27873         * tests/havelib/rpathlz/usez.c: New file, from
27874         gettext/autoconf-lib-link.
27875         * tests/havelib/rpathlz/Makefile.am: New file, from
27876         gettext/autoconf-lib-link.
27877         * tests/havelib/rpathlz/configure.ac: New file, from
27878         gettext/autoconf-lib-link with modifications.
27879         * tests/havelib/rpathlyx/usey.c: New file, from
27880         gettext/autoconf-lib-link.
27881         * tests/havelib/rpathlyx/Makefile.am: New file, from
27882         gettext/autoconf-lib-link.
27883         * tests/havelib/rpathlyx/configure.ac: New file, from
27884         gettext/autoconf-lib-link with modifications.
27885         * tests/havelib/rpathlzyx/usez.c: New file, from
27886         gettext/autoconf-lib-link.
27887         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27888         gettext/autoconf-lib-link.
27889         * tests/havelib/rpathlzyx/configure.ac: New file, from
27890         gettext/autoconf-lib-link with modifications.
27891         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27892         with modifications.
27893
27894 2010-04-02  Bruno Haible  <bruno@clisp.org>
27895
27896         gnulib-tool: Create distributed built sources also for the tests.
27897         * gnulib-tool (func_create_testdir): Also generate distributed built
27898         sources in the tests directory.
27899
27900 2010-04-02  Bruno Haible  <bruno@clisp.org>
27901
27902         gnulib-tool: Obey user's environment variables.
27903         * gnulib-tool (func_create_testdir): When creating built sources,
27904         respect the environment variables for autoconf, automake, etc. given by
27905         the user.
27906
27907 2010-04-02  Bruno Haible  <bruno@clisp.org>
27908
27909         gnulib-tool: Provide the value of --m4-base to modules.
27910         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27911         of gl_m4_base.
27912
27913 2010-04-02  Eric Blake  <eblake@redhat.com>
27914
27915         maint.mk: fix some fallout
27916         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27917         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27918
27919 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27920
27921         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27922         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27923         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27924         (sc_cast_of_x_alloc_return_value): Likewise.
27925         (sc_cast_of_alloca_return_value): Likewise.
27926         (sc_space_tab): Likewise.
27927         (sc_prohibit_atoi_atof): Likewise.
27928         (sc_prohibit_magic_number_exit): Likewise.
27929         (sc_error_exit_success): Likewise.
27930         (sc_file_system): Likewise.
27931         (sc_prohibit_have_config_h): Likewise.
27932         (sc_require_config_h): Likewise.
27933         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27934         (sc_obsolete_symbols): Likewise.
27935         (sc_changelog): Likewise.
27936         (sc_program_name): Likewise.
27937         (sc_the_the): Likewise.
27938         (sc_trailing_blank): Likewise.
27939         (sc_two_space_separator_in_usage): Likewise.
27940         (sc_useless_cpp_parens): Likewise.
27941         (sc_GPL_version): Likewise.
27942         (sc_GFDL_version): Likewise.
27943         (sc_texinfo_acronym): Likewise.
27944         (sc_prohibit_cvs_keyword): Likewise.
27945         (sc_prohibit_stat_st_blocks): Likewise.
27946         (sc_prohibit_S_IS_definition): Likewise.
27947         (sc_redundant_const): Likewise.
27948         (sc_makefile_TAB_only_indentation): Likewise.
27949         (sc_m4_quote_check): Likewise.
27950         (sc_makefile_path_separator_check): Likewise.
27951         (sc_copyright_check): Likewise.
27952         (sc_Wundef_boolean): Likewise.
27953         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27954
27955         maint.mk: match 0 or more whitespace-before-function-call '('
27956         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27957         that have zero or two-and-more spaces between the function name
27958         and the open parenthesis.
27959         (sc_error_message_warn_fatal): Likewise.
27960         (sc_error_message_uppercase): Likewise.
27961         (sc_error_message_period): Likewise.
27962
27963 2010-03-31  Eric Blake  <eblake@redhat.com>
27964
27965         maint.mk: check for [ as well as test
27966         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27967         Based on a libvirt report by Matthias Bolte.
27968
27969         gnumakefile: don't squelch _version output
27970         * top/GNUmakefile (_version): Create one-shot dependency rather
27971         than using $(shell) when version must be regenerated.
27972         (_autoreconf): Run verbosely, by default.
27973
27974         sys_time: avoid compiler warnings
27975         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27976         unconditional, fixing regression from 2010-03-29.
27977         Reported by Simon Josefsson.
27978
27979 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27980
27981         maint.mk: s/_header_without_use/_sc_header_without_use/
27982         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27983         (sc_prohibit_assert_without_use): Use the new name.
27984         (sc_prohibit_close_stream_without_use): Likewise.
27985         (sc_prohibit_getopt_without_use): Likewise.
27986         (sc_prohibit_quotearg_without_use): Likewise.
27987         (sc_prohibit_quote_without_use): Likewise.
27988         (sc_prohibit_long_options_without_use): Likewise.
27989         (sc_prohibit_inttostr_without_use): Likewise.
27990         (sc_prohibit_ignore_value_without_use): Likewise.
27991         (sc_prohibit_error_without_use): Likewise.
27992         (sc_prohibit_xalloc_without_use): Likewise.
27993         (sc_prohibit_hash_without_use): Likewise.
27994         (sc_prohibit_hash_pjw_without_use): Likewise.
27995         (sc_prohibit_safe_read_without_use): Likewise.
27996         (sc_prohibit_argmatch_without_use): Likewise.
27997         (sc_prohibit_canonicalize_without_use): Likewise.
27998         (sc_prohibit_root_dev_ino_without_use): Likewise.
27999         (sc_prohibit_openat_without_use): Likewise.
28000         (sc_prohibit_c_ctype_without_use): Likewise.
28001         (sc_prohibit_signal_without_use): Likewise.
28002         (sc_prohibit_intprops_without_use): Likewise.
28003
28004 2010-03-30  Eric Blake  <eblake@redhat.com>
28005
28006         maint: improve module indicators
28007         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
28008         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
28009         columns, and avoid extra macro expansion.
28010
28011         fdopendir: work around FreeBSD bug
28012         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28013         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28014         * modules/dirent (Makefile.am): Substitute it.
28015         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28016         declaration.
28017         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28018         fix.
28019         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28020
28021 2010-03-29  Bruno Haible  <bruno@clisp.org>
28022
28023         Emit #pragma system_header after the inclusion guard, not before.
28024         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28025         guard that spans the entire file, not before. This enables an
28026         optimization in GCC's preprocessor.
28027         * lib/ctype.in.h: Likewise.
28028         * lib/dirent.in.h: Likewise.
28029         * lib/errno.in.h: Likewise.
28030         * lib/float.in.h: Likewise.
28031         * lib/getopt.in.h: Likewise.
28032         * lib/iconv.in.h: Likewise.
28033         * lib/langinfo.in.h: Likewise.
28034         * lib/locale.in.h: Likewise.
28035         * lib/math.in.h: Likewise.
28036         * lib/netdb.in.h: Likewise.
28037         * lib/netinet_in.in.h: Likewise.
28038         * lib/pty.in.h: Likewise.
28039         * lib/sched.in.h: Likewise.
28040         * lib/se-selinux.in.h: Likewise.
28041         * lib/search.in.h: Likewise.
28042         * lib/spawn.in.h: Likewise.
28043         * lib/stdarg.in.h: Likewise.
28044         * lib/stdint.in.h: Likewise.
28045         * lib/string.in.h: Likewise.
28046         * lib/strings.in.h: Likewise.
28047         * lib/sys_file.in.h: Likewise.
28048         * lib/sys_ioctl.in.h: Likewise.
28049         * lib/sys_time.in.h: Likewise.
28050         * lib/sys_times.in.h: Likewise.
28051         * lib/sys_utsname.in.h: Likewise.
28052         * lib/sys_wait.in.h: Likewise.
28053         * lib/sysexits.in.h: Likewise.
28054         * lib/wctype.in.h: Likewise.
28055
28056 2010-03-28  James Youngman  <jay@gnu.org>
28057
28058         save-cwd: don't leak a file descriptor when the caller execs.
28059         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28060         saved file descriptor.
28061         * modules/save-cwd (Depends-on): Depend on cloexec.
28062
28063 2010-03-29  Bruno Haible  <bruno@clisp.org>
28064
28065         Remove vestiges of fts-lgpl module.
28066         * lib/fts_.h: Assume GNULIB_FTS is 1.
28067         * lib/fts.c: Likewise.
28068         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28069
28070 2010-03-28  Bruno Haible  <bruno@clisp.org>
28071
28072         Fix definition of tests witness macro.
28073         * gnulib-tool (func_import): Fix definition of witness macro.
28074
28075 2010-03-28  Bruno Haible  <bruno@clisp.org>
28076
28077         Fix ioctl's protoype on glibc systems.
28078         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28079         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28080         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28081         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28082         signature. If not, arrange to replace the ioctl function.
28083         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28084         REPLACE_IOCTL.
28085         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28086         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28087         Reported by Ludovic Courtès <ludo@gnu.org>.
28088
28089 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28090
28091         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28092         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28093         made it so grep -r --include=GLOB* ... did not work.
28094
28095 2010-03-26  Jim Meyering  <meyering@redhat.com>
28096             Eric Blake  <eblake@redhat.com>
28097
28098         maint.mk: prohibit use of test's -o and -a operators
28099         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28100
28101 2010-03-28  Bruno Haible  <bruno@clisp.org>
28102
28103         Remove unused GNULIB_XYZ macro definitions.
28104         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28105         invocation.
28106
28107 2010-03-28  Bruno Haible  <bruno@clisp.org>
28108
28109         Mark privileged tests modules.
28110         * modules/idpriv-drop-tests (Status): New section.
28111         * modules/idpriv-droptemp-tests (Status): New section.
28112
28113 2010-03-28  Bruno Haible  <bruno@clisp.org>
28114
28115         Split C++ tests into separate tests modules.
28116         * modules/dirent-c++-tests: New file, extracted from
28117         modules/dirent-tests.
28118         * modules/dirent-tests: Depend on it.
28119         * modules/fcntl-h-c++-tests: New file, extracted from
28120         modules/fcntl-h-tests.
28121         * modules/fcntl-h-tests: Depend on it.
28122         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28123         * modules/glob-tests: Depend on it.
28124         * modules/iconv-h-c++-tests: New file, extracted from
28125         modules/iconv-h-tests.
28126         * modules/iconv-h-tests: Depend on it.
28127         * modules/langinfo-c++-tests: New file, extracted from
28128         modules/langinfo-tests.
28129         * modules/langinfo-tests: Depend on it.
28130         * modules/locale-c++-tests: New file, extracted from
28131         modules/locale-tests.
28132         * modules/locale-tests: Depend on it.
28133         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28134         * modules/math-tests: Depend on it.
28135         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28136         * modules/pty-tests: Depend on it.
28137         * modules/search-c++-tests: New file, extracted from
28138         modules/search-tests.
28139         * modules/search-tests: Depend on it.
28140         * modules/signal-c++-tests: New file, extracted from
28141         modules/signal-tests.
28142         * modules/signal-tests: Depend on it.
28143         * modules/spawn-c++-tests: New file, extracted from
28144         modules/spawn-tests.
28145         * modules/spawn-tests: Depend on it.
28146         * modules/stdio-c++-tests: New file, extracted from
28147         modules/stdio-tests.
28148         * modules/stdio-tests: Depend on it.
28149         * modules/stdlib-c++-tests: New file, extracted from
28150         modules/stdlib-tests.
28151         * modules/stdlib-tests: Depend on it.
28152         * modules/string-c++-tests: New file, extracted from
28153         modules/string-tests.
28154         * modules/string-tests: Depend on it.
28155         * modules/sys_ioctl-c++-tests: New file, extracted from
28156         modules/sys_ioctl-tests.
28157         * modules/sys_ioctl-tests: Depend on it.
28158         * modules/sys_select-c++-tests: New file, extracted from
28159         modules/sys_select-tests.
28160         * modules/sys_select-tests: Depend on it.
28161         * modules/sys_socket-c++-tests: New file, extracted from
28162         modules/sys_socket-tests.
28163         * modules/sys_socket-tests: Depend on it.
28164         * modules/sys_stat-c++-tests: New file, extracted from
28165         modules/sys_stat-tests.
28166         * modules/sys_stat-tests: Depend on it.
28167         * modules/sys_time-c++-tests: New file, extracted from
28168         modules/sys_time-tests.
28169         * modules/sys_time-tests: Depend on it.
28170         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28171         * modules/time-tests: Depend on it.
28172         * modules/unistd-c++-tests: New file, extracted from
28173         modules/unistd-tests.
28174         * modules/unistd-tests: Depend on it.
28175         * modules/wchar-c++-tests: New file, extracted from
28176         modules/wchar-tests.
28177         * modules/wchar-tests: Depend on it.
28178         * modules/wctype-c++-tests: New file, extracted from
28179         modules/wctype-tests.
28180         * modules/wctype-tests: Depend on it.
28181         Reported by Simon Josefsson.
28182
28183 2010-03-28  Bruno Haible  <bruno@clisp.org>
28184
28185         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28186         * gnulib-tool (func_exists_module): New function, extracted from
28187         func_verify_module.
28188         (func_verify_module): Use it.
28189         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28190         'foo' only if 'foo' exists.
28191         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28192         module.
28193
28194 2010-03-28  Bruno Haible  <bruno@clisp.org>
28195
28196         gnulib-tool: Add support for special categories of tests.
28197         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28198         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28199         (func_usage): Document them.
28200         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28201         inc_unportable_tests, inc_all_tests): New variables.
28202         (func_acceptable): Consider these variables.
28203         (func_modules_transitive_closure): Make it work when the 'Status' field
28204         consists of multiple words.
28205         (func_import): Store and restore the values of inc_cxx_tests,
28206         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28207         inc_all_tests in gnulib-comp.m4.
28208         (func_create_testdir): Set inc_all_tests to true.
28209         * doc/gnulib.texi (Extra tests modules): New section.
28210         Suggested by Jim Meyering.
28211
28212 2010-03-28  Bruno Haible  <bruno@clisp.org>
28213
28214         ansi-c++-opt: Allow turning off the C++ build by default.
28215         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28216         gl_CXX_CHOICE_DEFAULT_NO is defined.
28217         Requested by Eric Blake.
28218
28219 2010-03-28  Bruno Haible  <bruno@clisp.org>
28220
28221         unistd: Avoid #define replacements in C++ mode.
28222         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28223         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28224         setsockopt, shutdown, select): In C++, attach a warning to the function
28225         if possible, rather than #defining the symbol to a dysfunctional alias.
28226         Reported by John W. Eaton <jwe@gnu.org>.
28227
28228 2010-03-28  Bruno Haible  <bruno@clisp.org>
28229
28230         Fix link errors on mingw.
28231         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28232         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28233         $(LIBSOCKET).
28234         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28235         $(LIBSOCKET).
28236
28237 2010-03-28  Bruno Haible  <bruno@clisp.org>
28238             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28239
28240         lib-ignore: Determine different options for different compilers.
28241         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28242         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28243         Add comments.
28244         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28245         * NEWS: Mention the change.
28246
28247 2010-03-27  Bruno Haible  <bruno@clisp.org>
28248
28249         Remove unused GNULIB_XYZ macro definitions.
28250         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28251         * modules/fseek (configure.ac): Likewise.
28252         * modules/ioctl (configure.ac): Likewise.
28253         * modules/open (configure.ac): Likewise.
28254         * modules/stdlib-safer (configure.ac): Likewise.
28255
28256 2010-03-27  Bruno Haible  <bruno@clisp.org>
28257
28258         Add a remark about certain modules.
28259         * modules/malloc (Comment): New section.
28260         * modules/realloc (Comment): Likewise.
28261         * modules/sigpipe (Comment): Likewise.
28262
28263 2010-03-27  Bruno Haible  <bruno@clisp.org>
28264
28265         Resolve conflict between the two kinds of module indicators.
28266         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28267         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28268         * modules/canonicalize (configure.ac): Invoke
28269         gl_MODULE_INDICATOR_FOR_TESTS.
28270         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28271         GNULIB_XYZ.
28272         * tests/test-dirent-c++.cc: Likewise.
28273         * tests/test-dirent-safer.c: Likewise.
28274         * tests/test-dup2.c: Likewise.
28275         * tests/test-fchdir.c: Likewise.
28276         * tests/test-fcntl-h-c++.cc: Likewise.
28277         * tests/test-getopt.c: Likewise.
28278         * tests/test-getopt.h: Likewise.
28279         * tests/test-langinfo-c++.cc: Likewise.
28280         * tests/test-locale-c++.cc: Likewise.
28281         * tests/test-math-c++.cc: Likewise.
28282         * tests/test-pty-c++.cc: Likewise.
28283         * tests/test-search-c++.cc: Likewise.
28284         * tests/test-signal-c++.cc: Likewise.
28285         * tests/test-spawn-c++.cc: Likewise.
28286         * tests/test-stdio-c++.cc: Likewise.
28287         * tests/test-stdlib-c++.cc: Likewise.
28288         * tests/test-string-c++.cc: Likewise.
28289         * tests/test-sys_ioctl-c++.cc: Likewise.
28290         * tests/test-sys_select-c++.cc: Likewise.
28291         * tests/test-sys_socket-c++.cc: Likewise.
28292         * tests/test-sys_stat-c++.cc: Likewise.
28293         * tests/test-sys_time-c++.cc: Likewise.
28294         * tests/test-time-c++.cc: Likewise.
28295         * tests/test-unistd-c++.cc: Likewise.
28296         * tests/test-wchar-c++.cc: Likewise.
28297         * tests/uninorm/test-u8-nfc.c: Likewise.
28298         * tests/uninorm/test-u8-nfd.c: Likewise.
28299         * tests/uninorm/test-u8-nfkc.c: Likewise.
28300         * tests/uninorm/test-u8-nfkd.c: Likewise.
28301         * tests/uninorm/test-u16-nfc.c: Likewise.
28302         * tests/uninorm/test-u16-nfd.c: Likewise.
28303         * tests/uninorm/test-u16-nfkc.c: Likewise.
28304         * tests/uninorm/test-u16-nfkd.c: Likewise.
28305         * tests/uninorm/test-u32-nfc.c: Likewise.
28306         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28307         * tests/uninorm/test-u32-nfd.c: Likewise.
28308         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28309         * tests/uninorm/test-u32-nfkc.c: Likewise.
28310         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28311         * tests/uninorm/test-u32-nfkd.c: Likewise.
28312         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28313         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28314
28315 2010-03-27  Bruno Haible  <bruno@clisp.org>
28316
28317         Distinguish two kinds of module indicators.
28318         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28319         gl_MODULE_INDICATOR.
28320         (gl_MODULE_INDICATOR): New macro.
28321         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28322         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28323         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28324         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28325         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28326         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28327         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28328         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28329         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28330         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28331         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28332         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28335         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28336         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28337         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28338         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28339         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28340         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28341         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28342         * modules/cloexec (configure.ac): Likewise.
28343         * modules/getopt-gnu (configure.ac): Likewise.
28344         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28345         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28346         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28347         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28348
28349 2010-03-27  Bruno Haible  <bruno@clisp.org>
28350
28351         New module description field 'Comment'.
28352         * gnulib-tool: New option --extract-comment.
28353         (func_usage): Document it.
28354         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28355         (func_get_comment): New function.
28356         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28357
28358 2010-03-27  Bruno Haible  <bruno@clisp.org>
28359
28360         Addendum to 2010-02-07 commit.
28361         * gnulib-tool (func_usage): Document --extract-applicability option.
28362
28363 2010-03-27  Bruno Haible  <bruno@clisp.org>
28364
28365         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28366         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28367         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28368         rather than link errors.
28369
28370 2010-03-27  Bruno Haible  <bruno@clisp.org>
28371
28372         Avoid side effects from tests-related modules on the compilation of lib.
28373         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28374         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28375         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28376         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28377         macro.
28378         (func_import): Define a witness macro. Assign it a value that depends
28379         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28380         tests-related modules.
28381         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28382         Reported by Jim Meyering.
28383
28384 2010-03-27  Bruno Haible  <bruno@clisp.org>
28385
28386         Factorize common .m4 code.
28387         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28388         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28389         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28390         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28391         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28392         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28393         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28394         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28395         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28396         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28397         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28398         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28399         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28400         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28401         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28402         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28403         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28404         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28406         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28407         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28408         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28409         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28410         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28411         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28412         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28413         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28414         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28415         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28416         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28417         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28418         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28419
28420 2010-03-27  Bruno Haible  <bruno@clisp.org>
28421
28422         Fix a compilation error on Cygwin with g++ >= 4.3.
28423         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28424         if it is undefined or if we alias it to chmod.
28425         (lstat): Don't warn about the use of this function if it is undefined
28426         or if we alias it to stat.
28427         Reported by Simon Josefsson.
28428
28429 2010-03-27  Bruno Haible  <bruno@clisp.org>
28430
28431         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28432         * modules/getlogin (configure.ac): Update.
28433
28434         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28435         * modules/getlogin_r (configure.ac): Update.
28436
28437         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28438         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28439         * modules/inet_ntop (configure.ac): Update.
28440
28441         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28442         * modules/inet_pton (configure.ac): Update.
28443
28444         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28445         * modules/mbslen (configure.ac): Update.
28446
28447         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28448         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28449         * modules/forkpty (configure.ac): Update.
28450         * modules/openpty (configure.ac): Update.
28451
28452 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28453
28454         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28455         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28456
28457 2010-03-25  Eric Blake  <eblake@redhat.com>
28458
28459         maint: use pragma consistently across replacement headers
28460         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28461         * lib/dirent.in.h (system_header): Likewise.
28462         * lib/errno.in.h (system_header): Likewise.
28463         * lib/float.in.h (system_header): Likewise.
28464         * lib/getopt.in.h (system_header): Likewise.
28465         * lib/iconv.in.h (system_header): Likewise.
28466         * lib/inttypes.in.h (system_header): Likewise.
28467         * lib/langinfo.in.h (system_header): Likewise.
28468         * lib/locale.in.h (system_header): Likewise.
28469         * lib/math.in.h (system_header): Likewise.
28470         * lib/netdb.in.h (system_header): Likewise.
28471         * lib/netinet_in.in.h (system_header): Likewise.
28472         * lib/pty.in.h (system_header): Likewise.
28473         * lib/sched.in.h (system_header): Likewise.
28474         * lib/se-selinux.in.h (system_header): Likewise.
28475         * lib/search.in.h (system_header): Likewise.
28476         * lib/spawn.in.h (system_header): Likewise.
28477         * lib/stdarg.in.h (system_header): Likewise.
28478         * lib/stdint.in.h (system_header): Likewise.
28479         * lib/string.in.h (system_header): Likewise.
28480         * lib/strings.in.h (system_header): Likewise.
28481         * lib/sys_file.in.h (system_header): Likewise.
28482         * lib/sys_ioctl.in.h (system_header): Likewise.
28483         * lib/sys_socket.in.h (system_header): Likewise.
28484         * lib/sys_times.in.h (system_header): Likewise.
28485         * lib/sys_utsname.in.h (system_header): Likewise.
28486         * lib/sys_wait.in.h (system_header): Likewise.
28487         * lib/sysexits.in.h (system_header): Likewise.
28488         * lib/unistd.in.h (system_header): Likewise.
28489         * lib/wctype.in.h (system_header): Likewise.
28490
28491         arpa/inet: fix mingw compilation warning
28492         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28493         Reported by Matthew Bolte.
28494
28495 2010-03-25  Bruno Haible  <bruno@clisp.org>
28496
28497         Avoid collision between gnulib wrapper and libintl wrapper.
28498         * lib/printf.c (printf): Don't define if a printf wrapper is already
28499         defined in intl/printf.c.
28500         Reported by Michel Boaventura <michel@michelboaventura.com>.
28501
28502 2010-03-25  Bruno Haible  <bruno@clisp.org>
28503
28504         Use ANSI C.
28505         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28506
28507 2010-03-25  Bruno Haible  <bruno@clisp.org>
28508
28509         Minor formatting changes.
28510         * lib/acosl.c: Insert space before function argument list.
28511         * lib/argz.c: Likewise.
28512         * lib/asinl.c: Likewise.
28513         * lib/expl.c: Likewise.
28514         * lib/gen-uni-tables.c: Likewise.
28515         * lib/gettext.h: Likewise.
28516         * lib/glthread/lock.h: Likewise.
28517         * lib/tanl.c: Likewise.
28518         * lib/uniname/uniname.c: Likewise.
28519         * tests/test-idpriv-drop.c: Likewise.
28520         * tests/test-idpriv-droptemp.c: Likewise.
28521         * tests/test-lock.c: Likewise.
28522         * tests/test-tls.c: Likewise.
28523         * lib/argp-help.c: Insert space before function-like macro argument
28524         list.
28525         * lib/memcmp.c: Likewise.
28526         * tests/test-base64.c: Likewise.
28527         * lib/localename.c: Insert space before sizeof's argument list.
28528         * lib/safe-alloc.h: Likewise.
28529         * lib/file-set.h: Insert space before macro argument list.
28530         * tests/test-argp.c: Likewise.
28531         * lib/argp-namefrob.h: Insert space before function parameter list.
28532         * lib/getaddrinfo.c: Likewise.
28533         * lib/netdb.in.h: Likewise.
28534         * lib/parse-duration.h: Likewise.
28535         * lib/parse-duration.c: Likewise.
28536         * lib/poll.c: Likewise.
28537         * lib/select.c: Likewise.
28538         * lib/trim.h: Likewise.
28539         * tests/test-usleep.c: Likewise.
28540         * lib/ldexpl.c: Insert space before function parameter list and before
28541         function argument list.
28542         * lib/logl.c: Likewise.
28543         * lib/sqrtl.c: Likewise.
28544         * lib/trim.c: Likewise.
28545         * lib/cosl.c: Use GNU style indentation. Insert space before function
28546         argument list.
28547         * lib/sinl.c: Likewise.
28548         * lib/tsearch.c: Insert space after 'for'.
28549         Reported by Jim Meyering.
28550
28551 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28552
28553         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28554         config header before grepping, as it's not present before
28555         autoreconf/configure are run.  Reported by Simon Josefsson.
28556
28557 2010-03-23  Bruno Haible  <bruno@clisp.org>
28558
28559         pt_chown: Make it work with automake < 1.11.
28560         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28561         Reported by Simon Josefsson.
28562
28563 2010-03-23  Bruno Haible  <bruno@clisp.org>
28564
28565         pt_chown: Don't depend on GPLed modules.
28566         * lib/pt_chown.c: Don't include idpriv.h.
28567         (main): Don't drop privileges.
28568         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28569         Reported by Simon Josefsson.
28570
28571 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28572
28573         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28574         suggestions from karl@freefriends.org (Karl Berry).
28575
28576 2010-03-22  Eric Blake  <eblake@redhat.com>
28577
28578         gethostname: further tweaks
28579         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28580         are overriding gethostname.
28581         Suggested by Bruno Haible.
28582
28583 2010-03-21  Bruno Haible  <bruno@clisp.org>
28584
28585         Fix comments.
28586         * lib/forkpty.c (rpl_forkpty): Fix comment.
28587         * lib/openpty.c (rpl_openpty): Likewise.
28588         Reported by Eric Blake.
28589
28590 2010-03-22  Eric Blake  <eblake@redhat.com>
28591
28592         gethostname: fix build on mingw
28593         * lib/unistd.in.h (includes): Work around fact that mingw
28594         <winsock2.h> re-includes <unistd.h>, by avoiding any
28595         redeclarations if we are being included by <winsock2.h>.
28596         Reported by Matthias Bolte.
28597
28598 2010-03-21  Bruno Haible  <bruno@clisp.org>
28599
28600         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28601         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28602         modifications.
28603         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28604         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28605         provide the replacement.
28606         * modules/forkpty (Depends-on): Add openpty, login_tty.
28607         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28608         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28609         * doc/glibc-functions/forkpty.texi: More supported platforms.
28610         * config/srclist.txt: Add forkpty.c (commented).
28611
28612 2010-03-21  Bruno Haible  <bruno@clisp.org>
28613
28614         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28615         (Makefile.am): Verify that PTY_LIB is defined.
28616
28617         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28618
28619 2010-03-21  Bruno Haible  <bruno@clisp.org>
28620
28621         Tests for module 'login_tty'.
28622         * modules/login_tty-tests: New file.
28623         * tests/test-login_tty.c: New file.
28624
28625         New module 'login_tty'.
28626         * lib/login_tty.c: New file.
28627         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28628         * modules/login_tty: New file.
28629         * doc/glibc-functions/login_tty.texi: Mention the new module.
28630
28631 2010-03-21  Bruno Haible  <bruno@clisp.org>
28632
28633         login_tty: Documentation.
28634         * doc/glibc-functions/login_tty.texi: New file.
28635         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28636
28637 2010-03-21  Bruno Haible  <bruno@clisp.org>
28638
28639         pty: Consistent macro naming.
28640         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28641         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28642         * modules/pty (configure.ac): Update.
28643
28644 2010-03-21  Bruno Haible  <bruno@clisp.org>
28645
28646         Tests for openpty: Make stricter.
28647         * tests/test-openpty.c (main): Add test of canonical processing and
28648         erase.
28649         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28650
28651         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28652         * lib/openpty.c (openpty): New replacement function.
28653         * lib/pty.in.h: Include <termios.h>.
28654         (openpty): Update declaration. Add comments.
28655         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28656         is not declared, arrange to provide the replacement. Check for _getpty
28657         and posix_openpt.
28658         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28659         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28660         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28661         * modules/pty-tests (test_pty_c___LDADD): New variable.
28662         * doc/glibc-functions/openpty.texi: More supported platforms.
28663
28664 2010-03-21  Bruno Haible  <bruno@clisp.org>
28665
28666         setenv: Tweaks.
28667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28668         the test program.
28669         * doc/posix-functions/setenv.texi: Update platforms list.
28670
28671 2010-03-21  Bruno Haible  <bruno@clisp.org>
28672
28673         New module 'unlockpt'.
28674         * lib/unlockpt.c: New file, from glibc with modifications.
28675         * m4/unlockpt.m4: New file.
28676         * modules/unlockpt: New file.
28677         * lib/stdlib.in.h (unlockpt): New declaration.
28678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28679         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28680         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28681         HAVE_UNLOCKPT.
28682         * doc/posix-functions/unlockpt.texi: Mention the new module.
28683         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28684         * config/srclist.txt: Add unlockpt.c (commented).
28685
28686 2010-03-21  Jim Meyering  <meyering@redhat.com>
28687
28688         maint.mk: prohibit inclusion of "intprops.h" without use
28689         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28690
28691 2010-03-21  Bruno Haible  <bruno@clisp.org>
28692
28693         New module 'grantpt'.
28694         * lib/grantpt.c: New file, from glibc with modifications.
28695         * m4/grantpt.m4: New file.
28696         * modules/grantpt: New file.
28697         * lib/stdlib.in.h (grantpt): New declaration.
28698         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28699         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28700         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28701         HAVE_GRANTPT.
28702         * doc/posix-functions/grantpt.texi: Mention the new module.
28703         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28704         * config/srclist.txt: Add grantpt.c (commented).
28705
28706 2010-03-21  Bruno Haible  <bruno@clisp.org>
28707
28708         New module 'pt_chown'.
28709         * lib/pt_chown.c: New file, from glibc with modifications.
28710         * lib/pty-private.h: New file, from glibc with modifications.
28711         * modules/pt_chown: New file.
28712         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28713
28714 2010-03-21  Bruno Haible  <bruno@clisp.org>
28715
28716         Tests for module 'ptsname'.
28717         * modules/ptsname-tests: New file.
28718         * tests/test-ptsname.c: New file.
28719
28720         New module 'ptsname'.
28721         * lib/ptsname.c: New file, from glibc with modifications.
28722         * m4/ptsname.m4: New file.
28723         * modules/ptsname: New file.
28724         * lib/stdlib.in.h (ptsname): New declaration.
28725         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28726         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28727         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28728         HAVE_PTSNAME.
28729         * doc/posix-functions/ptsname.texi: Mention the new module.
28730         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28731         * config/srclist.txt: Add ptsname.c (commented).
28732
28733 2010-03-21  Bruno Haible  <bruno@clisp.org>
28734
28735         Tests for module 'ttyname_r'.
28736         * modules/ttyname_r-tests: New file.
28737         * tests/test-ttyname_r.c: New file.
28738
28739         New module 'ttyname_r'.
28740         * lib/ttyname_r.c: New file.
28741         * m4/ttyname_r.m4: New file.
28742         * modules/ttyname_r: New file.
28743         * lib/unistd.in.h (ttyname_r): New declaration.
28744         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28745         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28746         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28747         HAVE_TTYNAME_R.
28748         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28749         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28750
28751 2010-03-20  Bruno Haible  <bruno@clisp.org>
28752
28753         signal: Undefine macro definitions in C++ mode.
28754         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28755         sigfillset): Undefine macro definitions from the system header in C++
28756         mode.
28757         Reported by John W. Eaton <jwe@gnu.org>.
28758
28759 2010-03-20  Bruno Haible  <bruno@clisp.org>
28760
28761         Ensure no #include statements inside extern "C" { ... }.
28762         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28763         contain #include statements.
28764         * lib/time.in.h: Likewise.
28765
28766 2010-03-20  Bruno Haible  <bruno@clisp.org>
28767
28768         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28769         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28770         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28771         Reported by John W. Eaton <jwe@gnu.org>.
28772
28773 2010-03-20  Bruno Haible  <bruno@clisp.org>
28774
28775         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28776         Reported by Jim Meyering.
28777
28778 2010-03-20  Bruno Haible  <bruno@clisp.org>
28779
28780         pipe: Set errno upon failure.
28781         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28782         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28783         errno value in error message.
28784
28785 2010-03-20  Bruno Haible  <bruno@clisp.org>
28786             Jim Meyering  <meyering@redhat.com>
28787
28788         lchown: Avoid "unused variable" warning.
28789         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28790
28791 2010-03-20  Bruno Haible  <bruno@clisp.org>
28792
28793         Work around unlink() bug on MacOS X 10.5.6.
28794         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28795         attempting to unlink a parent directory.
28796         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28797         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28798         activate for the replacement function.
28799         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28800
28801 2010-03-20  Bruno Haible  <bruno@clisp.org>
28802
28803         Fix link errors on Solaris 8.
28804         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28805         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28806
28807 2010-03-19  Jim Meyering  <meyering@redhat.com>
28808
28809         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28810         The _LIBC implementation of build_range_exp correctly honors the
28811         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28812         However, the non-_LIBC implementation would ignore that syntax-bit
28813         flag and return REG_ERANGE unconditionally.
28814         This change makes it honor that flag.
28815         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28816         Make two pointer parameters "const".
28817         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28818         (parse_bracket_exp): Update caller.
28819
28820         regex.m4: correct the reversed range endpoint ([b-a]) test
28821         * m4/regex.m4: When requiring that [b-a] evoke failure,
28822         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28823         test pass once again for x86-based systems.
28824
28825 2010-03-19  Bruno Haible  <bruno@clisp.org>
28826
28827         scandir: Fix link error on Solaris 8.
28828         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28829         macros.
28830
28831 2010-03-19  Bruno Haible  <bruno@clisp.org>
28832
28833         getusershell: Fix documentation.
28834         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28835         module.
28836         * doc/glibc-functions/setusershell.texi: Likewise.
28837
28838         getusershell: Provide declaration, missing on Solaris 9.
28839         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28840         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28841         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28842         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28844         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28845         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28846         HAVE_GETUSERSHELL.
28847         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28848
28849 2010-03-19  Bruno Haible  <bruno@clisp.org>
28850
28851         wctype: Provide iswblank function.
28852         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28853         exists and is fine.
28854         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28855         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28856         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28857         * doc/posix-functions/iswblank.texi: Update.
28858
28859 2010-03-19  Bruno Haible  <bruno@clisp.org>
28860
28861         Tests of module 'pty' in C++ mode.
28862         * modules/pty-tests: New file.
28863         * tests/test-pty-c++.cc: New file.
28864         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28865
28866 2010-03-19  Eric Blake  <eblake@redhat.com>
28867
28868         logb: fix documentation
28869         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28870         1.5 declaration bug.
28871
28872         forkpty, openpty: prefer glibc's const-safe prototype
28873         * lib/forkpty.c (rpl_forkpty): New file.
28874         * lib/openpty.c (rpl_openpty): Likewise.
28875         * modules/forkpty (Files): Distribute it.
28876         * modules/openpty (Files): Likewise.
28877         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28878         check...
28879         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28880         replacement for for non-const BSD signature.
28881         * modules/pty (Makefile.am): Substitute witnesses.
28882         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28883         * tests/test-forkpty.c: Update signature check.
28884         * tests/test-openpty.c: Likewise.
28885         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28886         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28887
28888         forkpty, openpty: split functions into new modules
28889         * modules/pty (Makefile.am): Substitute new witnesses.
28890         (Libraries): Move library detection...
28891         * modules/forkpty: ...into new module.
28892         * modules/openpty: Another new module.
28893         * modules/pty-tests: Rename and split...
28894         * modules/forkpty-tests: ...to this...
28895         * modules/openpty-tests: ...and this.
28896         * tests/test-pty.c: Rename and split...
28897         * tests/test-forkpty.c: ...to this...
28898         * tests/test-openpty.c: ...and this.
28899         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28900         (gl_PTY): Split library searching...
28901         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28902         (gl_FORKPTY, gl_OPENPTY): New macros.
28903         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28904         * NEWS: Mention the split.
28905         * MODULES.html.sh (Misc): Document the modules.
28906         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28907         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28908
28909         pty: improve replacement header
28910         * lib/pty.in.h: New file.
28911         * modules/pty (Files): Ship it.
28912         (Makefile.am): Always build replacement.
28913         * m4/pty.m4: Rename...
28914         * m4/pty_h.m4: ...to this.
28915         (gl_PTY): Modernize setting of witness macros; update check of
28916         forkpty to take proper advantage of cache.
28917         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28918
28919         getopt: avoid compiler warning
28920         * lib/getopt.c (attribute_hidden): Remove unused macro.
28921
28922 2010-03-18  Bruno Haible  <bruno@clisp.org>
28923
28924         Fix link errors on Solaris 8.
28925         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28926         * modules/search-tests (test_search_c___LDADD): Likewise.
28927         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28928         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28929         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28930         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28931         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28932         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28933         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28934
28935 2010-03-18  Bruno Haible  <bruno@clisp.org>
28936
28937         Fix bug introduced on 2010-03-14.
28938         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28939         (gl_SPAWN_H): Require it.
28940         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28941         Reported by Simon Josefsson.
28942
28943 2010-03-18  Bruno Haible  <bruno@clisp.org>
28944
28945         Fix typo introduced on 2009-12-31.
28946         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28947         posix_spawn_file_actions_adddup2.
28948
28949 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28950         and Eric Blake  <eblake@redhat.com>
28951
28952         test-vc-list-files-git: make more robust
28953         * tests/test-vc-list-files-git.sh: Unset problematic environment
28954         variables.  Chain commands together.
28955
28956 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28957
28958         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28959         `AC_CHECK_DECL' invocation.
28960
28961 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28962
28963         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28964         appears before executable statements. Suggested by Petr Sumbera
28965         <Petr.Sumbera@Sun.COM>.
28966
28967 2010-03-14  Bruno Haible  <bruno@clisp.org>
28968
28969         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28970         portability problems. Instead use a simpler test.
28971         (main): Check that invalid arguments are rejected only on Linux.
28972
28973 2010-03-14  Bruno Haible  <bruno@clisp.org>
28974
28975         Fix bug introduced on 2009-12-31.
28976         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28977         gl_PREREQ_SYS_H_WINSOCK2 always.
28978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28979         SYS_SOCKET_H variable.
28980         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28981         Update comments.
28982         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28983         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28984         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28985         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28986         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28987
28988 2010-03-14  Bruno Haible  <bruno@clisp.org>
28989
28990         Fix values returned by sinl, cosl.
28991         * lib/trigl.h: Add specification comments.
28992         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28993         that combines the values from the precomputed table with the values of
28994         the Chebyshev polynomials.
28995
28996 2010-03-14  Bruno Haible  <bruno@clisp.org>
28997
28998         Fix compilation error when modules 'posix_spawn[p]' are not used.
28999         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
29000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
29001
29002 2010-03-14  Bruno Haible  <bruno@clisp.org>
29003
29004         Fix compilation error on mingw when module 'time_r' is not used.
29005         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
29006         is 1.
29007         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
29008         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29009         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
29010         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29011
29012 2010-03-14  Bruno Haible  <bruno@clisp.org>
29013
29014         Fix compilation error with Sun C.
29015         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29016         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29017         instead of GCC specific ULONG_LONG_MAX.
29018         * lib/xstrtoll.c: Likewise.
29019         * lib/xstrtoull.c: Likewise.
29020
29021 2010-03-13  Bruno Haible  <bruno@clisp.org>
29022
29023         Allow the user to disable C++ code and tests.
29024         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29025         (gl_PROG_ANSI_CXX): Require it.
29026
29027 2010-03-13  Bruno Haible  <bruno@clisp.org>
29028
29029         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29030         cases.
29031
29032 2010-03-13  Bruno Haible  <bruno@clisp.org>
29033
29034         Test that gnulib does not break the standard C++ headers.
29035         * tests/test-locale-c++2.cc: New file.
29036         * modules/locale-tests (Files): Add it.
29037         (Makefile.am): Compile it for test-locale-c++.
29038         * tests/test-math-c++2.cc: New file.
29039         * modules/math-tests (Files): Add it.
29040         (Makefile.am): Compile it for test-math-c++.
29041         * tests/test-signal-c++2.cc: New file.
29042         * modules/signal-tests (Files): Add it.
29043         (Makefile.am): Compile it for test-signal-c++.
29044         * tests/test-stdio-c++2.cc: New file.
29045         * modules/stdio-tests (Files): Add it.
29046         (Makefile.am): Compile it for test-stdio-c++.
29047         * tests/test-stdlib-c++2.cc: New file.
29048         * modules/stdlib-tests (Files): Add it.
29049         (Makefile.am): Compile it for test-stdlib-c++.
29050         * tests/test-string-c++2.cc: New file.
29051         * modules/string-tests (Files): Add it.
29052         (Makefile.am): Compile it for test-string-c++.
29053         * tests/test-time-c++2.cc: New file.
29054         * modules/time-tests (Files): Add it.
29055         (Makefile.am): Compile it for test-time-c++.
29056         Reported by John W. Eaton <jwe@gnu.org>.
29057
29058 2010-03-13  Bruno Haible  <bruno@clisp.org>
29059
29060         * gnulib-tool (func_usage): Clarify which options are available for
29061         --create-testdir and --create-megatestdir.
29062
29063 2010-03-13  Bruno Haible  <bruno@clisp.org>
29064
29065         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29066         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29067         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29068         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29069         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29070         when appropriate.
29071         Reported by Jim Meyering.
29072
29073 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29074
29075         * gnulib-tool (func_import): Explain origin of code.
29076
29077 2010-03-12  Bruno Haible  <bruno@clisp.org>
29078
29079         Fix problem with automake's definition of CXXLINK.
29080         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29081         Reported by Simon Josefsson and Ludovic Courtès.
29082
29083 2010-03-12  Bruno Haible  <bruno@clisp.org>
29084
29085         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29086         stable releases.
29087
29088 2010-03-11  Bruno Haible  <bruno@clisp.org>
29089
29090         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29091         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29092         whether the system provides one variant or multiple variants of the
29093         function.
29094         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29095         C++ compilers.
29096         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29097         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29098         Reported by Jim Meyering.
29099
29100 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29101
29102         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29103
29104 2010-03-08  Bruno Haible  <bruno@clisp.org>
29105
29106         gnulib-tool: Add support for --libtool in --create-testdir.
29107         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29108         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29109
29110 2010-03-08  Eric Blake  <eblake@redhat.com>
29111
29112         gnulib-tool.texi: mention possibility of git submodule
29113         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29114         submodules.
29115         * doc/.gitignore: Ignore another generated file.
29116
29117 2010-03-08  Karl Berry  <karl@gnu.org>
29118
29119         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29120         of committing gnulib files while skipping others.
29121
29122 2010-03-07  Bruno Haible  <bruno@clisp.org>
29123
29124         Tests of module 'wctype' in C++ mode.
29125         * tests/test-wctype-c++.cc: New file.
29126         * modules/wctype-tests (Files): Add it and tests/signature.h.
29127         (Depends-on): Add ansi-c++-opt.
29128         (Makefile.am): Arrange to compile and run test-wctype-c++.
29129
29130         Tests of module 'wchar' in C++ mode.
29131         * tests/test-wchar-c++.cc: New file.
29132         * modules/wchar-tests (Files): Add it and tests/signature.h.
29133         (Depends-on): Add ansi-c++-opt.
29134         (Makefile.am): Arrange to compile and run test-wchar-c++.
29135         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29136         gl_MODULE_INDICATOR.
29137
29138         Tests of module 'unistd' in C++ mode.
29139         * tests/test-unistd-c++.cc: New file.
29140         * modules/unistd-tests (Files): Add it and tests/signature.h.
29141         (Depends-on): Add ansi-c++-opt.
29142         (Makefile.am): Arrange to compile and run test-unistd-c++.
29143         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29144         gl_MODULE_INDICATOR.
29145
29146         Tests of module 'time' in C++ mode.
29147         * tests/test-time-c++.cc: New file.
29148         * modules/time-tests (Files): Add it and tests/signature.h.
29149         (Depends-on): Add ansi-c++-opt.
29150         (Makefile.am): Arrange to compile and run test-time-c++.
29151         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29152
29153         Tests of module 'sys_time' in C++ mode.
29154         * tests/test-sys_time-c++.cc: New file.
29155         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29156         (Depends-on): Add ansi-c++-opt.
29157         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29158         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29159         gl_MODULE_INDICATOR.
29160
29161         Tests of module 'sys_stat' in C++ mode.
29162         * tests/test-sys_stat-c++.cc: New file.
29163         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29164         (Depends-on): Add ansi-c++-opt.
29165         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29166         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29167         gl_MODULE_INDICATOR.
29168
29169         Tests of module 'sys_socket' in C++ mode.
29170         * tests/test-sys_socket-c++.cc: New file.
29171         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29172         (Depends-on): Add ansi-c++-opt.
29173         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29175         gl_MODULE_INDICATOR.
29176
29177         Tests of module 'sys_select' in C++ mode.
29178         * tests/test-sys_select-c++.cc: New file.
29179         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29180         (Depends-on): Add ansi-c++-opt.
29181         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29182         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29183         gl_MODULE_INDICATOR.
29184
29185         Tests of module 'sys_ioctl' in C++ mode.
29186         * tests/test-sys_ioctl-c++.cc: New file.
29187         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29188         (Depends-on): Add ansi-c++-opt.
29189         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29191         gl_MODULE_INDICATOR.
29192
29193         Tests of module 'string' in C++ mode.
29194         * tests/test-string-c++.cc: New file.
29195         * modules/string-tests (Files): Add it and tests/signature.h.
29196         (Depends-on): Add ansi-c++-opt.
29197         (Makefile.am): Arrange to compile and run test-string-c++.
29198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29199         gl_MODULE_INDICATOR.
29200
29201         Tests of module 'stdlib' in C++ mode.
29202         * tests/test-stdlib-c++.cc: New file.
29203         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29204         (Depends-on): Add ansi-c++-opt.
29205         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29206         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29207         gl_MODULE_INDICATOR.
29208
29209         Tests of module 'stdio' in C++ mode.
29210         * tests/test-stdio-c++.cc: New file.
29211         * modules/stdio-tests (Files): Add it and tests/signature.h.
29212         (Depends-on): Add ansi-c++-opt.
29213         (Makefile.am): Arrange to compile and run test-stdio-c++.
29214         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29215         gl_MODULE_INDICATOR.
29216
29217         Tests of module 'spawn' in C++ mode.
29218         * tests/test-spawn-c++.cc: New file.
29219         * modules/spawn-tests (Files): Add it and tests/signature.h.
29220         (Depends-on): Add ansi-c++-opt.
29221         (Makefile.am): Arrange to compile and run test-spawn-c++.
29222         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29223         gl_MODULE_INDICATOR.
29224
29225         Tests of module 'signal' in C++ mode.
29226         * tests/test-signal-c++.cc: New file.
29227         * modules/signal-tests (Files): Add it and tests/signature.h.
29228         (Depends-on): Add ansi-c++-opt.
29229         (Makefile.am): Arrange to compile and run test-signal-c++.
29230         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29231         gl_MODULE_INDICATOR.
29232
29233         Tests of module 'search' in C++ mode.
29234         * tests/test-search-c++.cc: New file.
29235         * modules/search-tests (Files): Add it and tests/signature.h.
29236         (Depends-on): Add ansi-c++-opt.
29237         (Makefile.am): Arrange to compile and run test-search-c++.
29238         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29239         gl_MODULE_INDICATOR.
29240
29241         Tests of module 'math' in C++ mode.
29242         * tests/test-math-c++.cc: New file.
29243         * modules/math-tests (Files): Add it and tests/signature.h.
29244         (Depends-on): Add ansi-c++-opt.
29245         (Makefile.am): Arrange to compile and run test-math-c++.
29246         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29247
29248         Tests of module 'locale' in C++ mode.
29249         * tests/test-locale-c++.cc: New file.
29250         * modules/locale-tests (Files): Add it and tests/signature.h.
29251         (Depends-on): Add ansi-c++-opt.
29252         (Makefile.am): Arrange to compile and run test-locale-c++.
29253         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29254         gl_MODULE_INDICATOR.
29255
29256         Tests of module 'langinfo' in C++ mode.
29257         * tests/test-langinfo-c++.cc: New file.
29258         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29259         (Depends-on): Add ansi-c++-opt.
29260         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29261         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29262         gl_MODULE_INDICATOR.
29263
29264         Tests of module 'iconv-h' in C++ mode.
29265         * tests/test-iconv-h-c++.cc: New file.
29266         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29267         (Depends-on): Add ansi-c++-opt.
29268         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29269
29270         Tests of module 'glob' in C++ mode.
29271         * tests/test-glob-c++.cc: New file.
29272         * modules/glob-tests (Files): Add it.
29273         (Depends-on): Add ansi-c++-opt.
29274         (Makefile.am): Arrange to compile and run test-glob-c++.
29275
29276         Tests of module 'fcntl-h' in C++ mode.
29277         * tests/test-fcntl-h-c++.cc: New file.
29278         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29279         (Depends-on): Add ansi-c++-opt.
29280         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29281         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29282         gl_MODULE_INDICATOR.
29283
29284         Tests of module 'dirent' in C++ mode.
29285         * tests/test-dirent-c++.cc: New file.
29286         * modules/dirent-tests (Files): Add it and tests/signature.h.
29287         (Depends-on): Add ansi-c++-opt.
29288         (Makefile.am): Arrange to compile and run test-dirent-c++.
29289         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29290         gl_MODULE_INDICATOR.
29291
29292         New module 'ansi-c++-opt'.
29293         * modules/ansi-c++-opt: New file.
29294         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
29295
29296         Document C++ namespace mode.
29297         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29298
29299         wctype: Avoid #define replacements in C++ mode.
29300         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29301         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29302         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29303         In C++, define a namespaced alias symbol.
29304         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29305         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29306         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29307         rule.
29308
29309         wchar: Avoid #define replacements in C++ mode.
29310         * lib/wchar.in.h: Include c++defs.h.
29311         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29312         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29313         symbol.
29314         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29315         * modules/wchar (Depends-on): Add c++defs.
29316         (Makefile.am): Update wchar.h rule.
29317
29318         unistd: Avoid #define replacements in C++ mode.
29319         * lib/unistd.in.h: Include c++defs.h.
29320         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29321         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29322         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29323         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29324         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29325         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29326         symbol.
29327         (environ): Update.
29328         * modules/unistd (Depends-on): Add c++defs.
29329         (Makefile.am): Update unistd.h rule.
29330
29331         time: Avoid #define replacements in C++ mode.
29332         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29333         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29334         define a namespaced alias symbol.
29335         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29336         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29337         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29338         * modules/time (Depends-on): Add c++defs, warn-on-use.
29339         (Makefile.am): Update time.h rule.
29340         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29341         * modules/nanosleep (configure.ac): Likewise.
29342         * modules/strptime (configure.ac): Likewise.
29343         * modules/timegm (configure.ac): Likewise.
29344
29345         sys_time: Avoid #define replacements in C++ mode.
29346         * lib/sys_time.in.h: Include c++defs.h.
29347         (gettimeofday): In C++, define a namespaced alias symbol.
29348         * modules/sys_time (Depends-on): Add c++defs.
29349         (Makefile.am): Update sys/time.h rule.
29350
29351         sys_stat: Avoid #define replacements in C++ mode.
29352         * lib/sys_stat.in.h: Include c++defs.h.
29353         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29354         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29355         namespaced alias symbol.
29356         In C++, define a namespaced alias symbol.
29357         * modules/sys_stat (Depends-on): Add c++defs.
29358         (Makefile.am): Update sys/stat.h rule.
29359
29360         sys_socket: Avoid #define replacements in C++ mode.
29361         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29362         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29363         definitions also when the system has a <sys/socket.h>.
29364         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29365         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29366         In C++, define a namespaced alias symbol.
29367         * modules/sys_socket (Depends-on): Add c++defs.
29368         (Makefile.am): Update sys/socket.h rule.
29369
29370         sys_select: Avoid #define replacements in C++ mode.
29371         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29372         definitions also when the system has a <sys/select.h>.
29373         (select): In C++, define a namespaced alias symbol.
29374         * modules/sys_select (Depends-on): Add c++defs.
29375         (Makefile.am): Update sys/select.h rule.
29376
29377         sys_ioctl: Avoid #define replacements in C++ mode.
29378         * lib/sys_ioctl.in.h: Include c++defs.h.
29379         (ioctl): In C++, define a namespaced alias symbol.
29380         * modules/sys_ioctl (Depends-on): Add c++defs.
29381         (Makefile.am): Update sys/ioctl.h rule.
29382
29383         string: Avoid #define replacements in C++ mode.
29384         * lib/string.in.h: Include c++defs.h.
29385         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29386         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29387         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29388         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29389         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29390         * modules/string (Depends-on): Add c++defs.
29391         (Makefile.am): Update string.h rule.
29392
29393         stdlib: Avoid #define replacements in C++ mode.
29394         * lib/stdlib.in.h: Include c++defs.h.
29395         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29396         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29397         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29398         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29399         symbol.
29400         * modules/stdlib (Depends-on): Add c++defs.
29401         (Makefile.am): Update stdlib.h rule.
29402
29403         stdio: Avoid #define replacements in C++ mode.
29404         * lib/stdio.in.h: Include c++defs.h.
29405         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29406         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29407         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29408         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29409         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29410         namespaced alias symbol.
29411         * modules/stdio (Depends-on): Add c++defs.
29412         (Makefile.am): Update stdio.h rule.
29413
29414         spawn: Avoid #define replacements in C++ mode.
29415         * lib/spawn.in.h: Include c++defs.h.
29416         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29417         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29418         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29419         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29420         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29421         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29422         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29423         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29424         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29425         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29426         In C++, define a namespaced alias symbol.
29427         * modules/spawn (Depends-on): Add c++defs.
29428         (Makefile.am): Update spawn.h rule.
29429
29430         signal: Avoid #define replacements in C++ mode.
29431         * lib/signal.in.h: Include c++defs.h.
29432         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29433         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29434         namespaced alias symbol.
29435         * modules/signal (Depends-on): Add c++defs.
29436         (Makefile.am): Update signal.h rule.
29437
29438         search: Avoid #define replacements in C++ mode.
29439         * lib/search.in.h: Include c++defs.h.
29440         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29441         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29442         symbol.
29443         * modules/search (Depends-on): Add c++defs.
29444         (Makefile.am): Update search.h rule.
29445
29446         math: Avoid #define replacements in C++ mode.
29447         * lib/math.in.h: Include c++defs.h.
29448         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29449         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29450         trunc, truncl): In C++, define a namespaced alias symbol.
29451         * modules/math (Depends-on): Add c++defs.
29452         (Makefile.am): Update math.h rule.
29453
29454         locale: Avoid #define replacements in C++ mode.
29455         * lib/locale.in.h: Include c++defs.h.
29456         (duplocale): In C++, define a namespaced alias symbol.
29457         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29458         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29459         * modules/locale (Depends-on): Add c++defs.
29460         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29461
29462         langinfo: Avoid #define replacements in C++ mode.
29463         * lib/langinfo.in.h: Include c++defs.h.
29464         (nl_langinfo): In C++, define a namespaced alias symbol.
29465         * modules/langinfo (Depends-on): Add c++defs.
29466         (Makefile.am): Update langinfo.h rule.
29467
29468         iconv-h: Avoid #define replacements in C++ mode.
29469         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29470         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29471         symbol.
29472         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29473         whenever iconv is present.
29474         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29475         (Makefile.am): Update iconv.h rule.
29476
29477         glob: Avoid #define replacements in C++ mode.
29478         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29479         (_gl_glob_errfunc_fn): New type.
29480         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29481         symbol.
29482         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29483         (Makefile.am): Update glob.h rule.
29484
29485         fcntl-h: Avoid #define replacements in C++ mode.
29486         * lib/fcntl.in.h: Include c++defs.h.
29487         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29488         * modules/fcntl-h (Depends-on): Add c++defs.
29489         (Makefile.am): Update fcntl.h rule.
29490
29491         dirent: Avoid #define replacements in C++ mode.
29492         * lib/dirent.in.h: Include c++defs.h.
29493         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29494         namespaced alias symbol.
29495         (dirfd): Update declaration.
29496         * modules/dirent (Depends-on): Add c++defs.
29497         (Makefile.am): Update dirent.h rule.
29498
29499         ctype: Make it usable in C++ code.
29500         * lib/ctype.in.h: Include c++defs.h.
29501         (isblank): Declare as extern "C".
29502         * modules/ctype (Depends-on): Add c++defs.
29503         (Makefile.am): Update ctype.h rule.
29504
29505         New module 'c++defs'.
29506         * modules/c++defs: New file.
29507         * build-aux/c++defs.h: New file.
29508         Reported by John W. Eaton <jwe@gnu.org>.
29509
29510 2010-03-07  Bruno Haible  <bruno@clisp.org>
29511
29512         logb: Provide missing declaration for Cygwin.
29513         * lib/math.in.h (logb): New declaration.
29514         * m4/logb.m4: New file.
29515         * modules/logb (Files): Add m4/logb.m4.
29516         (Depends-on): Add math.
29517         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29518         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29520         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29521         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29522
29523 2010-03-07  Bruno Haible  <bruno@clisp.org>
29524
29525         Fix test-cond link error.
29526         * tests/test-cond.c: Include <stdio.h>.
29527
29528 2010-03-07  Bruno Haible  <bruno@clisp.org>
29529
29530         Fix test-dirent-safer link error.
29531         * modules/dirent-safer-tests (Makefile.am): Define
29532         test_dirent_safer_LDADD.
29533
29534 2010-03-07  Bruno Haible  <bruno@clisp.org>
29535
29536         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29537         among default module list.
29538
29539 2010-03-07  Bruno Haible  <bruno@clisp.org>
29540
29541         Fix link error on platforms with GNU libiconv.
29542         * modules/unistr/u8-strcoll-tests (Makefile): Define
29543         test_u8_strcoll_LDADD.
29544         * modules/unistr/u16-strcoll-tests (Makefile): Define
29545         test_u16_strcoll_LDADD.
29546         * modules/unistr/u32-strcoll-tests (Makefile): Define
29547         test_u32_strcoll_LDADD.
29548
29549 2010-03-07  Bruno Haible  <bruno@clisp.org>
29550
29551         Use POSIX declarations for socket functions.
29552         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29553         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29554         rpl_sendto): Change declaration to match POSIX.
29555         * lib/connect.c (rpl_connect): Likewise.
29556         * lib/accept.c (rpl_accept): Likewise.
29557         * lib/bind.c (rpl_bind): Likewise.
29558         * lib/getpeername.c (rpl_getpeername): Likewise.
29559         * lib/getsockname.c (rpl_getsockname): Likewise.
29560         * lib/recv.c (rpl_recv): Likewise.
29561         * lib/send.c (rpl_send): Likewise.
29562         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29563         * lib/sendto.c (rpl_sendto): Likewise.
29564
29565 2010-03-06  Bruno Haible  <bruno@clisp.org>
29566
29567         Clarify access, euidaccess, faccessat.
29568         * doc/posix-functions/faccessat.texi: Mention security problem under
29569         "Other problems", not "Portability problems".
29570         * doc/posix-functions/access.texi: Likewise. Mention a related security
29571         problem.
29572         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29573         * lib/euidaccess.c: Add comments about platforms.
29574         * lib/unistd.in.h (access, euidaccess): Add warnings.
29575
29576 2010-03-07  Bruno Haible  <bruno@clisp.org>
29577
29578         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29579         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29580         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29581         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29582         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29583         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29584         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29585         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29586         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29587         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29588         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29589         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29590         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29591         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29592         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29593         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29594         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29595         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29596         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29597         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29598         Likewise.
29599         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29600         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29601         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29602         Likewise.
29603         * tests/test-spawn.c (main): Make it work when
29604         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29605
29606 2010-03-07  Bruno Haible  <bruno@clisp.org>
29607
29608         Fix incorrect Makefile.am generation in German locale.
29609         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29610         Execute sed command with character range in C locale.
29611
29612 2010-03-06  Bruno Haible  <bruno@clisp.org>
29613
29614         Tests for module 'iconv-h'.
29615         * modules/iconv-h-tests: New file.
29616         * tests/test-iconv-h.c: New file.
29617
29618         New module 'iconv-h'.
29619         * modules/iconv-h: New file.
29620         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29621         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29622         (configure.ac): Remove gl_ICONV_H.
29623         (Makefile.am): Remove rule for iconv.h.
29624
29625 2010-03-06  Bruno Haible  <bruno@clisp.org>
29626
29627         More consistent naming of *.m4 files.
29628         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29629         * modules/wctype (Files): Update.
29630
29631         More consistent naming of *.m4 files.
29632         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29633         * modules/wchar (Files): Update.
29634
29635 2010-03-06  Jim Meyering  <meyering@redhat.com>
29636
29637         euidaccess: relax license to LGPLv2+
29638         * modules/euidaccess (License): Relax to LGPLv2+.
29639
29640 2010-03-06  Bruno Haible  <bruno@clisp.org>
29641
29642         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29643         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29644         (Makefile.am): Augment lib_SOURCES instead.
29645
29646 2010-03-04  Jim Meyering  <meyering@redhat.com>
29647
29648         utime: remove obsolete module
29649         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29650         unnecessary for years, and has been marked as obsolete for 10 months.
29651         * modules/utime: Remove file.
29652         * lib/utime.c: Remove file.
29653         * m4/utime.m4: Remove file.
29654         * m4/utimes-null.m4: Remove file.
29655         * doc/posix-functions/utime.texi (utime): Remove reference to
29656         the module.  Move the sole "fixed by gnulib" item into the
29657         "problems not fixed by Gnulib" list.
29658         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29659
29660 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29661
29662         * modules/exit (License): Relax license to LGPLv2+.
29663         (Status): Mark as obsolete.
29664         * NEWS: Mention deprecated 'exit' module.
29665         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29666         of now obsolete 'exit'.
29667
29668 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29669
29670         fts-lgpl: remove unused module
29671         * modules/fts-lgpl: Remove.
29672         * MODULES.html.sh (func_all_modules): Adjust.
29673         * check-module (find_included_lib_files): Adjust.
29674         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29675
29676 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29677
29678         copy-acl: enhance Solaris ACL error handling
29679         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29680         * lib/set-mode-acl.c (qset_acl): Likewise.
29681
29682 2010-03-02  Bruno Haible  <bruno@clisp.org>
29683
29684         spawn: Don't override the system defined values on FreeBSD 8.
29685         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29686         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29687         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29688         if HAVE_POSIX_SPAWN is 1.
29689         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29690
29691 2010-03-01  Bruno Haible  <bruno@clisp.org>
29692
29693         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29694         regarding Automake.
29695
29696 2010-02-25  Bruno Haible  <bruno@clisp.org>
29697
29698         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29699         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29700         setting, not afterwards.
29701         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29702
29703 2010-02-24  Eric Blake  <eblake@redhat.com>
29704
29705         bootstrap, git-version-gen: use timestamp
29706         * build-aux/git-version-gen (scriptversion): Force UTC.
29707         * build-aux/bootstrap (scriptversion): New variable.
29708
29709         bootstrap: allow older git
29710         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29711         older than 1.6.4.  Requested by the libvirt project.
29712
29713 2010-02-23  Eric Blake  <eblake@redhat.com>
29714
29715         warn-on-use: work with old autoconf
29716         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29717         AS_VAR semantics of autoconf 2.60.
29718         Reported by Bruno Haible.
29719
29720         bootstrap: improve some comments
29721         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29722         clarification comments.
29723
29724         gettimeofday: provide correct function
29725         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29726         when replacement is declared, otherwise provide gettimeofday.
29727         Reported by Michael Goffioul.
29728
29729 2010-02-23  Jim Meyering  <meyering@redhat.com>
29730
29731         lib-ignore: relax license to "unlimited", not LGPLv2+
29732         * modules/lib-ignore (License): Relax to "unlimited".
29733
29734 2010-02-23  Jim Meyering  <meyering@redhat.com>
29735
29736         lib-ignore: relax license to LGPLv2+
29737         * modules/lib-ignore (License): Relax to LGPLv2+.
29738
29739 2010-02-22  Eric Blake  <eblake@redhat.com>
29740
29741         lseek: avoid bash 3.2 broken pipe bug
29742         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29743         warning from bash 3.2.
29744         Reported by Ben Pfaff, with analysis from Bruno Haible.
29745
29746         bootstrap: support non-FSF copyright holder
29747         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29748         bootstrap.conf override of COPYRIGHT_HOLDER.
29749         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29750
29751         bootstrap: interoperate with gettext 0.14.1
29752         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29753
29754         bootstrap: allow for alternate submodule location
29755         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29756         hardcoding submodule location.
29757         (gnulib_mk): Allow direct use of Makefile.am.
29758
29759         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29760         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29761         rather than reconfiguring where the submodule points.
29762
29763         gettimeofday: restore support for platforms that lack function
29764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29765         replacement if function is missing.
29766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29767         * modules/sys_time (Makefile.am): Substitute it.
29768         * lib/sys_time.in.h (gettimeofday): Check it.
29769         Reported by Michael Goffioul.
29770
29771 2010-02-21  Bruno Haible  <bruno@clisp.org>
29772
29773         * lib/stdio.in.h (obstack_printf): Fix typo.
29774
29775 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29776
29777         vc-list-files: use bzr ls's -R option
29778         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29779         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29780
29781 2010-02-21  Jim Meyering  <meyering@redhat.com>
29782
29783         init.sh: fix EXEEXT shims to work also for names like test-prog
29784         * tests/init.sh: Re-exec a better shell, when needed.
29785         If the current shell lacks support for posix $(...), an init.sh-using
29786         test will now try to find a shell that supports that.  If EXEEXT is
29787         nonempty, we also require support for hyphen-in-alias-name and shell
29788         substitutions like ${var#glob}.  Failure to find such a shell results
29789         in a skipped test.
29790
29791 2010-02-21  Bruno Haible  <bruno@clisp.org>
29792
29793         Really work around around "broken pipe" error message from bash 3.2.
29794         * gnulib-tool (func_reset_sigpipe): Remove function.
29795         (echo): In bash 3.2, define to a function that uses printf.
29796         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29797
29798 2010-02-20  Bruno Haible  <bruno@clisp.org>
29799
29800         Restore support for automake 1.9.6 with autoconf 2.61.
29801         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29802         Reported by James Youngman <jay@gnu.org>.
29803
29804 2010-02-20  Bruno Haible  <bruno@clisp.org>
29805
29806         Improve *printf warning condition.
29807         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29808         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29809         and the function is overridden due to SIGPIPE emulation.
29810
29811 2010-02-20  Bruno Haible  <bruno@clisp.org>
29812
29813         * lib/stdio.in.h: Tweak comments.
29814
29815 2010-02-19  Bruno Haible  <bruno@clisp.org>
29816
29817         Make it easier to find modules. New gnulib-tool option '--find'.
29818         * gnulib-tool: New option --find.
29819         (func_usage): Document it.
29820         (func_sanitize_modulelist): New function, extracted from
29821         func_all_modules.
29822         (func_all_modules): Invoke it.
29823         * doc/gnulib-tool.texi (Which modules?): New node.
29824
29825 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29826
29827         * lib/sys_select.in.h: Provide select replacement even if
29828         sys/select.h exists on a system, for Interix.
29829
29830 2010-02-18  Jim Meyering  <meyering@redhat.com>
29831
29832         init.sh: don't use $(...) just yet
29833         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29834         to accommodate e.g., Solaris' /bin/sh.
29835
29836 2010-02-17  Bruno Haible  <bruno@clisp.org>
29837
29838         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29839         Reported by Ludovic Courtès <ludo@gnu.org>.
29840
29841 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29842
29843         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29844         linking with -lintl.
29845
29846 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29847
29848         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29849         if not provided by the system's netdb.h.  Reported by
29850         ludo@gnu.org (Ludovic Courtès).
29851
29852 2010-02-15  Jim Meyering  <meyering@redhat.com>
29853
29854         init.sh: improve portability and efficiency
29855         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29856         "dummy" in a for loop.
29857         Use '!', not '^' to select the complement of a character set used
29858         in a "case" statement.
29859         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29860         Suggestions from Eric Blake.
29861
29862         init.sh: automatically accommodate programs with the .exe suffix
29863         Automatically arrange for an invocation of "prog" to execute the
29864         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29865         may use the simpler "prog", yet still work when built on a system
29866         that requires specifying the added suffix.
29867         Do this by constructing a function named "prog" that invokes
29868         "prog.exe" for each .exe file in selected directories.
29869         * tests/init.sh (find_exe_basenames_): New function.
29870         (create_exe_shim_functions_): New function.
29871         (path_prepend_): Use it.
29872
29873         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29874         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29875         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29876
29877 2010-02-14  Jim Meyering  <meyering@redhat.com>
29878
29879         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29880         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29881         (sc_prohibit_hash_pjw_without_use): New rule.
29882
29883         maint.mk: allow the default upload destination dir to be overridden
29884         * top/maint.mk (upload_dest_dir_): Define with a default that
29885         preserves the status quo.
29886         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29887         Reported by Peter Simons.
29888
29889         maint.mk: prohibit inclusion of "hash.h" without_use
29890         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29891
29892 2010-02-10  Jim Meyering  <meyering@redhat.com>
29893
29894         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29895         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29896
29897 2010-02-09  Eric Blake  <ebb9@byu.net>
29898         and Bruno Haible  <bruno@clisp.org>
29899
29900         obstack-printf-posix: ensure declaration
29901         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29902         extracted from gl_FUNC_OBSTACK_PRINTF.
29903         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29904         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29905         Likewise.
29906         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29907         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29908         0.
29909
29910 2010-02-08  Bruno Haible  <bruno@clisp.org>
29911
29912         gnulib-tool: Fix typo in 2010-02-07 commit.
29913         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29914         Reported by Eric Blake.
29915
29916 2010-02-07  Bruno Haible  <bruno@clisp.org>
29917
29918         gnulib-tool: Fix up caching patches.
29919         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29920         option --no-cache. Use associative arrays when supported by the shell.
29921         (sed_comments): New variable.
29922         (modcache): Renamed from do_cache.
29923         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29924         abbreviate unnecessarily.
29925         (have_associative): New variable.
29926         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29927         way also for ksh and zsh.
29928         (func_init_sed_convert_to_cache_statements): New function, extracted
29929         from func_cache_lookup_module. Add support for associative arrays.
29930         Don't set the c_MODULE_cached variable here. Ignore all lines before
29931         the first field header. Remove only the final newline, not all trailing
29932         newlines. Support empty fields correctly. Limit the use of 'eval' to
29933         assignments.
29934         (func_get_description, func_get_status, func_get_notice,
29935         func_get_applicability, func_get_filelist, func_get_dependencies,
29936         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29937         func_get_automake_snippet, func_get_include_directive,
29938         func_get_link_directive, func_get_license, func_get_maintainer):
29939         Update documentation. List the unoptimized code first. Add support for
29940         associative arrays. Limit the use of 'eval' to assignments.
29941         (func_get_applicability): Undo stylistic pessimisations.
29942         (func_get_automake_snippet, func_get_include_directive): Reduce code
29943         duplication.
29944         (func_modules_transitive_closure, func_modules_add_dummy,
29945         func_modules_notice, func_modules_to_filelist, func_add_file,
29946         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29947         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29948         func_create_testdir, func_create_megatestdir): Update documentation.
29949
29950 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29951
29952         * gnulib-tool (func_cache_lookup_module): Store the module name
29953         belonging to the cache variable; error out if two different
29954         module names map to the same cache variable name.
29955
29956 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29957
29958         gnulib-tool: Make caching optional.
29959         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29960         Update matching short versions of --no-changelog.
29961         (func_usage): Update.
29962         (sed_extract_cache_prog): Renamed from ...
29963         (sed_extract_prog): ... this; revert to old extraction script.
29964         (func_get_description, func_get_status)
29965         (func_get_notice, func_get_applicability, func_get_filelist)
29966         (func_get_dependencies, func_get_autoconf_early_snippet)
29967         (func_get_autoconf_snippet, func_get_automake_snippet)
29968         (func_get_include_directive, func_get_link_directive)
29969         (func_get_license, func_get_maintainer): If $do_cache is false,
29970         use old, non-caching extraction scripts.
29971         Suggestion by Bruno Haible.
29972
29973 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29974
29975         gnulib-tool: cache module metainformation.
29976         * gnulib-tool (sed_extract_prog): Match newline before each
29977         header, and rewrite header to a shell variable suffix.
29978         (func_cache_var, func_cache_lookup_module): New functions,
29979         to turn a module name into a cache variable prefix, and to
29980         look up and cache module metainformation.
29981         (func_get_description, func_get_status)
29982         (func_get_notice, func_get_applicability, func_get_filelist)
29983         (func_get_dependencies, func_get_autoconf_early_snippet)
29984         (func_get_autoconf_snippet, func_get_automake_snippet)
29985         (func_get_include_directive, func_get_link_directive)
29986         (func_get_license, func_get_maintainer): Use
29987         func_cache_lookup_module.
29988
29989 2010-02-07  Bruno Haible  <bruno@clisp.org>
29990
29991         fnctl: Fix missing dependency.
29992         * modules/fcntl (Depends-on): Add getdtablesize.
29993         Reported by John W. Eaton <jwe@gnu.org>.
29994
29995 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29996
29997         Argp: fix recognition of short alias options.
29998
29999         * lib/argp-parse.c (convert_options): Fix improper use of
30000         `|' between character values.
30001         * tests/test-argp.c (group1_option): New alias option
30002         --read (-r).
30003         (group1_parser): Special handling for 'r'.
30004         (test15): New test case.
30005         (test_fun): Add test15.
30006         * tests/test-argp-2.sh: Update expected --help and --usage
30007         outputs.
30008
30009 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30010
30011         * tests/test-argp.c: Fix indentation.
30012
30013 2010-02-04  Eric Blake  <ebb9@byu.net>
30014
30015         gettimeofday: expose type of second argument
30016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30017         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30018         * tests/test-gettimeofday.c: Use it to silence warning.
30019         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30020         the issue.
30021
30022 2010-02-03  Jim Meyering  <meyering@redhat.com>
30023
30024         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30025         * lib/regcomp.c (TYPE_SIGNED): Define.
30026         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30027
30028         regcomp.c: avoid a new -Wshadow warning
30029         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30030
30031 2010-02-01  Jim Meyering  <meyering@redhat.com>
30032
30033         removing useless parentheses in cpp #define directives
30034         For motivation, see commit c0221df4, "define STREQ(a,b)
30035         consistently, removing useless parentheses"
30036         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30037         * lib/mountlist.c (MNT_IGNORE): Likewise.
30038         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30039
30040 2010-02-01  Eric Blake  <ebb9@byu.net>
30041
30042         sys_time: use link-warning
30043         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30044         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30045         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30046         * modules/sys_time (Depends-on): Add warn-on-use.
30047         (Makefile.am): Always build replacement.
30048         (configure.ac): Update substitutions.
30049         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30050         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30051         bother with SYS_TIME_H.
30052         * modules/gettimeofday (configure.ac): Declare indicator.
30053         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30054         in use.
30055
30056         closein-tests: silence compiler warning
30057         * tests/test-closein.c (main): Ignore fread result.
30058         * modules/closein-tests (Depends-on): Add ignore-value.
30059
30060         tests: silence warning about system return
30061         * tests/test-areadlink-with-size.c (main): Ignore system result.
30062         * tests/test-areadlink.c (main): Likewise.
30063         * tests/test-areadlinkat-with-size.c (main): Likewise.
30064         * tests/test-areadlinkat.c (main): Likewise.
30065         * tests/test-canonicalize-lgpl.c (main): Likewise.
30066         * tests/test-canonicalize.c (main): Likewise.
30067         * tests/test-chown.c (main): Likewise.
30068         * tests/test-fchownat.c (main): Likewise.
30069         * tests/test-fdutimensat.c (main): Likewise.
30070         * tests/test-fstatat.c (main): Likewise.
30071         * tests/test-futimens.c (main): Likewise.
30072         * tests/test-lchown.c (main): Likewise.
30073         * tests/test-link.c (main): Likewise.
30074         * tests/test-linkat.c (main): Likewise.
30075         * tests/test-lstat.c (main): Likewise.
30076         * tests/test-mkdir.c (main): Likewise.
30077         * tests/test-mkdirat.c (main): Likewise.
30078         * tests/test-mkfifo.c (main): Likewise.
30079         * tests/test-mkfifoat.c (main): Likewise.
30080         * tests/test-mknod.c (main): Likewise.
30081         * tests/test-readlink.c (main): Likewise.
30082         * tests/test-remove.c (main): Likewise.
30083         * tests/test-rename.c (main): Likewise.
30084         * tests/test-renameat.c (main): Likewise.
30085         * tests/test-rmdir.c (main): Likewise.
30086         * tests/test-symlink.c (main): Likewise.
30087         * tests/test-symlinkat.c (main): Likewise.
30088         * tests/test-unlink.c (main): Likewise.
30089         * tests/test-unlinkat.c (main): Likewise.
30090         * tests/test-utimens.c (main): Likewise.
30091         * tests/test-utimensat.c (main): Likewise.
30092         * modules/areadlink-tests (Depends-on): Add ignore-value.
30093         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30094         * modules/areadlinkat-tests (Depends-on): Likewise.
30095         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30096         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30097         * modules/canonicalize-tests (Depends-on): Likewise.
30098         * modules/chown-tests (Depends-on): Likewise.
30099         * modules/fdutimensat-tests (Depends-on): Likewise.
30100         * modules/futimens-tests (Depends-on): Likewise.
30101         * modules/lchown-tests (Depends-on): Likewise.
30102         * modules/link-tests (Depends-on): Likewise.
30103         * modules/linkat-tests (Depends-on): Likewise.
30104         * modules/lstat-tests (Depends-on): Likewise.
30105         * modules/mkdir-tests (Depends-on): Likewise.
30106         * modules/mkfifo-tests (Depends-on): Likewise.
30107         * modules/mkfifoat-tests (Depends-on): Likewise.
30108         * modules/mknod-tests (Depends-on): Likewise.
30109         * modules/openat-tests (Depends-on): Likewise.
30110         * modules/readlink-tests (Depends-on): Likewise.
30111         * modules/remove-tests (Depends-on): Likewise.
30112         * modules/rename-tests (Depends-on): Likewise.
30113         * modules/renameat-tests (Depends-on): Likewise.
30114         * modules/rmdir-tests (Depends-on): Likewise.
30115         * modules/symlink-tests (Depends-on): Likewise.
30116         * modules/symlinkat-tests (Depends-on): Likewise.
30117         * modules/unlink-tests (Depends-on): Likewise.
30118         * modules/utimens-tests (Depends-on): Likewise.
30119         * modules/utimensat-tests (Depends-on): Likewise.
30120
30121 2010-01-31  Bruno Haible  <bruno@clisp.org>
30122
30123         Perform the same test for many <math.h> functions.
30124         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30125         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30126         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30127         of gl_MATHFUNC.
30128         * modules/acos (configure.ac): Likewise.
30129         * modules/asin (configure.ac): Likewise.
30130         * modules/atan (configure.ac): Likewise.
30131         * modules/atan2 (configure.ac): Likewise.
30132         * modules/cbrt (configure.ac): Likewise.
30133         * modules/copysign (configure.ac): Likewise.
30134         * modules/cos (configure.ac): Likewise.
30135         * modules/cosh (configure.ac): Likewise.
30136         * modules/erf (configure.ac): Likewise.
30137         * modules/erfc (configure.ac): Likewise.
30138         * modules/exp (configure.ac): Likewise.
30139         * modules/fmod (configure.ac): Likewise.
30140         * modules/hypot (configure.ac): Likewise.
30141         * modules/j0 (configure.ac): Likewise.
30142         * modules/j1 (configure.ac): Likewise.
30143         * modules/jn (configure.ac): Likewise.
30144         * modules/lgamma (configure.ac): Likewise.
30145         * modules/log (configure.ac): Likewise.
30146         * modules/log10 (configure.ac): Likewise.
30147         * modules/log1p (configure.ac): Likewise.
30148         * modules/pow (configure.ac): Likewise.
30149         * modules/remainder (configure.ac): Likewise.
30150         * modules/sin (configure.ac): Likewise.
30151         * modules/sinh (configure.ac): Likewise.
30152         * modules/tan (configure.ac): Likewise.
30153         * modules/tanh (configure.ac): Likewise.
30154         * modules/y0 (configure.ac): Likewise.
30155         * modules/y1 (configure.ac): Likewise.
30156         * modules/yn (configure.ac): Likewise.
30157         Suggested by Paolo Bonzini.
30158
30159 2010-01-31  Bruno Haible  <bruno@clisp.org>
30160
30161         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30162
30163 2010-01-31  Bruno Haible  <bruno@clisp.org>
30164
30165         Work around getdelim() bug on FreeBSD 8.0.
30166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30167         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30168         not work.
30169         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30170         is 1.
30171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30172         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30173         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30174         a non-zero size.
30175         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30176
30177 2010-01-31  Bruno Haible  <bruno@clisp.org>
30178
30179         Work around getline() bug on FreeBSD 8.0.
30180         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30181         and a non-zero size.
30182         * tests/test-getline.c (main): Likewise.
30183         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30184         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30185
30186 2010-01-28  Eric Blake  <ebb9@byu.net>
30187
30188         regex: fix build failure
30189         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30190         platforms.
30191
30192 2010-01-28  Jim Meyering  <meyering@redhat.com>
30193
30194         regex: do not ignore memory allocation failure
30195         * lib/regex_internal.c (create_cd_newstate): Detect
30196         re_node_set_init_copy failure.   Extracted from glibc commit
30197         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30198
30199         regex: sync more white-space changes from libc
30200         * lib/regex_internal.c: White-space only changes.
30201         * lib/regexec.c: Likewise.
30202
30203         regex: add many uses of __attribute_warn_unused_result__
30204         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30205         * lib/regexec.c: Likewise.
30206         Extracted from a messy glibc commit.
30207
30208         regcomp.c: spelling and merge-artifact from glibc
30209         * lib/regcomp.c: Merge remainder of glibc's
30210         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30211
30212         regcomp.c: sync white-space changes from glibc
30213         * lib/regcomp.c: Merge to accommodate white space
30214         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30215
30216         regcomp.c: do not ignore internal return values
30217         * lib/regcomp.c: Do not ignore internal return values.
30218         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30219         but without its white-space changes and spelling fixes.
30220
30221         regex_internal.h: define __attribute_warn_unused_result__
30222         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30223
30224         maint: add a syntax-check rule to check for vulnerable Makefile.in
30225         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30226
30227 2010-01-27  Jim Meyering  <meyering@redhat.com>
30228
30229         ncftpput-ftp: clean up spaces
30230         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30231         Remove trailing blanks.
30232
30233 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30234
30235         * build-aux/git-version-gen: Fix copyright statement.
30236         * build-aux/gnupload: Likewise.
30237         * tests/test-arcfour.c: Likewise.
30238         * tests/test-arctwo.c: Likewise.
30239         * tests/test-count-one-bits.c: Likewise.
30240         * tests/test-crc.c: Likewise.
30241         * tests/test-des.c: Likewise.
30242         * tests/test-gc-arcfour.c: Likewise.
30243         * tests/test-gc-arctwo.c: Likewise.
30244         * tests/test-gc-des.c: Likewise.
30245         * tests/test-gc-hmac-md5.c: Likewise.
30246         * tests/test-gc-hmac-sha1.c: Likewise.
30247         * tests/test-gc-md2.c: Likewise.
30248         * tests/test-gc-md4.c: Likewise.
30249         * tests/test-gc-md5.c: Likewise.
30250         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30251         * tests/test-gc-rijndael.c: Likewise.
30252         * tests/test-gc-sha1.c: Likewise.
30253         * tests/test-gc.c: Likewise.
30254         * tests/test-gethostname.c: Likewise.
30255         * tests/test-gettimeofday.c: Likewise.
30256         * tests/test-hash.c: Likewise.
30257         * tests/test-hmac-md5.c: Likewise.
30258         * tests/test-hmac-sha1.c: Likewise.
30259         * tests/test-md2.c: Likewise.
30260         * tests/test-md4.c: Likewise.
30261         * tests/test-md5.c: Likewise.
30262         * tests/test-memchr.c: Likewise.
30263         * tests/test-memchr2.c: Likewise.
30264         * tests/test-memcmp.c: Likewise.
30265         * tests/test-memmem.c: Likewise.
30266         * tests/test-memrchr.c: Likewise.
30267         * tests/test-rawmemchr.c: Likewise.
30268         * tests/test-read-file.c: Likewise.
30269         * tests/test-rijndael.c: Likewise.
30270         * tests/test-sockets.c: Likewise.
30271         * tests/test-strchrnul.c: Likewise.
30272         * tests/test-strstr.c: Likewise.
30273         * tests/test-strtod.c: Likewise.
30274         * build-aux/ncftpput-ftp: Likewise.
30275
30276 2010-01-26  Eric Blake  <ebb9@byu.net>
30277
30278         ignore-value: update recommended header name
30279         * modules/ignore-value (Include): Only use <> for headers that
30280         exist in glibc.
30281
30282 2010-01-26  Jim Meyering  <meyering@redhat.com>
30283
30284         test-userspec.c: avoid compiler warnings
30285         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30286         and "initialization discards qualifiers..." warnings.
30287         Put the first "uid" in its own scope, and make char* members "const".
30288
30289 2010-01-25  Bruno Haible  <bruno@clisp.org>
30290
30291         gnulib-tool: Make warning diagnostics consistent.
30292         * gnulib-tool (func_warning): New function.
30293         Use it everywhere where gnulib-tool produces output to stderr and it is
30294         not a fatal error.
30295
30296 2010-01-25  Bruno Haible  <bruno@clisp.org>
30297
30298         Fix test dependencies.
30299         * modules/xstrtol-tests (Depends-on): Add inttypes.
30300         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30301
30302 2010-01-25 Pádraig Brady <P@draigBrady.com>
30303
30304         syntax-check: detect incorrect boolean macro values in config.h
30305         * modules/maintainer-makefile (configure.ac): Parameterize the location
30306         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30307         The logic is from Eric Blake and the location indicated by Jim Meyering.
30308         Note the more natural CONFIG_HEADER name is prohibited by automake
30309         for backwards compatibility reasons.
30310         * top/maint.mk (sc_Wundef_boolean): New rule.
30311
30312 2010-01-25  Jim Meyering  <meyering@redhat.com>
30313
30314         bootstrap: detect MacOS 10.6's shasum, too
30315         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30316         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30317
30318 2010-01-23  Jim Meyering  <meyering@redhat.com>
30319
30320         xstrtoll: new module
30321         * modules/xstrtoll: New file.
30322         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30323         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30324         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30325         ./configure fails if you use this module and lack "long long".
30326         * modules/xstrtoll-tests: New module.
30327         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30328         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30329         new init.sh-based test framework.
30330
30331 2010-01-24  Bruno Haible  <bruno@clisp.org>
30332
30333         Tests for module 'yn'.
30334         * modules/yn-tests: New file.
30335         * tests/test-yn.c: New file.
30336
30337         Tests for module 'y1'.
30338         * modules/y1-tests: New file.
30339         * tests/test-y1.c: New file.
30340
30341         Tests for module 'y0'.
30342         * modules/y0-tests: New file.
30343         * tests/test-y0.c: New file.
30344
30345         Tests for module 'tanh'.
30346         * modules/tanh-tests: New file.
30347         * tests/test-tanh.c: New file.
30348
30349         Tests for module 'tan'.
30350         * modules/tan-tests: New file.
30351         * tests/test-tan.c: New file.
30352
30353         Tests for module 'sqrt'.
30354         * modules/sqrt-tests: New file.
30355         * tests/test-sqrt.c: New file.
30356
30357         Tests for module 'sinh'.
30358         * modules/sinh-tests: New file.
30359         * tests/test-sinh.c: New file.
30360
30361         Tests for module 'sin'.
30362         * modules/sin-tests: New file.
30363         * tests/test-sin.c: New file.
30364
30365         Tests for module 'rint'.
30366         * modules/rint-tests: New file.
30367         * tests/test-rint.c: New file.
30368
30369         Tests for module 'remainder'.
30370         * modules/remainder-tests: New file.
30371         * tests/test-remainder.c: New file.
30372
30373         Tests for module 'pow'.
30374         * modules/pow-tests: New file.
30375         * tests/test-pow.c: New file.
30376
30377         Tests for module 'nextafter'.
30378         * modules/nextafter-tests: New file.
30379         * tests/test-nextafter.c: New file.
30380
30381         Tests for module 'modf'.
30382         * modules/modf-tests: New file.
30383         * tests/test-modf.c: New file.
30384
30385         Tests for module 'logb'.
30386         * modules/logb-tests: New file.
30387         * tests/test-logb.c: New file.
30388
30389         Tests for module 'log1p'.
30390         * modules/log1p-tests: New file.
30391         * tests/test-log1p.c: New file.
30392
30393         Tests for module 'log10'.
30394         * modules/log10-tests: New file.
30395         * tests/test-log10.c: New file.
30396
30397         Tests for module 'log'.
30398         * modules/log-tests: New file.
30399         * tests/test-log.c: New file.
30400
30401         Tests for module 'lgamma'.
30402         * modules/lgamma-tests: New file.
30403         * tests/test-lgamma.c: New file.
30404
30405         Tests for module 'ldexp'.
30406         * modules/ldexp-tests: New file.
30407         * tests/test-ldexp.c: New file.
30408
30409         Tests for module 'jn'.
30410         * modules/jn-tests: New file.
30411         * tests/test-jn.c: New file.
30412
30413         Tests for module 'j1'.
30414         * modules/j1-tests: New file.
30415         * tests/test-j1.c: New file.
30416
30417         Tests for module 'j0'.
30418         * modules/j0-tests: New file.
30419         * tests/test-j0.c: New file.
30420
30421         Tests for module 'hypot'.
30422         * modules/hypot-tests: New file.
30423         * tests/test-hypot.c: New file.
30424
30425         Tests for module 'fmod'.
30426         * modules/fmod-tests: New file.
30427         * tests/test-fmod.c: New file.
30428
30429         Tests for module 'fabs'.
30430         * modules/fabs-tests: New file.
30431         * tests/test-fabs.c: New file.
30432
30433         Tests for module 'exp'.
30434         * modules/exp-tests: New file.
30435         * tests/test-exp.c: New file.
30436
30437         Tests for module 'erfc'.
30438         * modules/erfc-tests: New file.
30439         * tests/test-erfc.c: New file.
30440
30441         Tests for module 'erf'.
30442         * modules/erf-tests: New file.
30443         * tests/test-erf.c: New file.
30444
30445         Tests for module 'cosh'.
30446         * modules/cosh-tests: New file.
30447         * tests/test-cosh.c: New file.
30448
30449         Tests for module 'cos'.
30450         * modules/cos-tests: New file.
30451         * tests/test-cos.c: New file.
30452
30453         Tests for module 'copysign'.
30454         * modules/copysign-tests: New file.
30455         * tests/test-copysign.c: New file.
30456
30457         Tests for module 'cbrt'.
30458         * modules/cbrt-tests: New file.
30459         * tests/test-cbrt.c: New file.
30460
30461         Tests for module 'atan2'.
30462         * modules/atan2-tests: New file.
30463         * tests/test-atan2.c: New file.
30464
30465         Tests for module 'atan'.
30466         * modules/atan-tests: New file.
30467         * tests/test-atan.c: New file.
30468
30469         Tests for module 'asin'.
30470         * modules/asin-tests: New file.
30471         * tests/test-asin.c: New file.
30472
30473         Tests for module 'acos'.
30474         * modules/acos-tests: New file.
30475         * tests/test-acos.c: New file.
30476
30477 2010-01-24  Bruno Haible  <bruno@clisp.org>
30478
30479         Fix tests for common <math.h> functions.
30480         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30481         code snippet that references the function pointer, rather than merely
30482         calling the function. Substitute the FUNC_LIBM variable.
30483         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30484         * modules/acos (configure.ac): Likewise.
30485         * modules/asin (configure.ac): Likewise.
30486         * modules/atan (configure.ac): Likewise.
30487         * modules/atan2 (configure.ac): Likewise.
30488         * modules/cbrt (configure.ac): Likewise.
30489         * modules/copysign (configure.ac): Likewise.
30490         * modules/cos (configure.ac): Likewise.
30491         * modules/cosh (configure.ac): Likewise.
30492         * modules/erf (configure.ac): Likewise.
30493         * modules/erfc (configure.ac): Likewise.
30494         * modules/exp (configure.ac): Likewise.
30495         * modules/fabs (configure.ac): Likewise.
30496         * modules/fmod (configure.ac): Likewise.
30497         * modules/hypot (configure.ac): Likewise.
30498         * modules/j0 (configure.ac): Likewise.
30499         * modules/j1 (configure.ac): Likewise.
30500         * modules/jn (configure.ac): Likewise.
30501         * modules/ldexp (configure.ac): Likewise.
30502         * modules/lgamma (configure.ac): Likewise.
30503         * modules/log (configure.ac): Likewise.
30504         * modules/log10 (configure.ac): Likewise.
30505         * modules/log1p (configure.ac): Likewise.
30506         * modules/logb (configure.ac): Likewise.
30507         * modules/modf (configure.ac): Likewise.
30508         * modules/nextafter (configure.ac): Likewise.
30509         * modules/pow (configure.ac): Likewise.
30510         * modules/remainder (configure.ac): Likewise.
30511         * modules/rint (configure.ac): Likewise.
30512         * modules/sin (configure.ac): Likewise.
30513         * modules/sinh (configure.ac): Likewise.
30514         * modules/tan (configure.ac): Likewise.
30515         * modules/tanh (configure.ac): Likewise.
30516         * modules/y0 (configure.ac): Likewise.
30517         * modules/y1 (configure.ac): Likewise.
30518         * modules/yn (configure.ac): Likewise.
30519
30520 2010-01-24  Bruno Haible  <bruno@clisp.org>
30521
30522         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30523         * tests/test-acosl.c (x): New variable.
30524         (main): Store argument in x and fetch it from x.
30525         * tests/test-asinl.c (x): New variable.
30526         (main): Store argument in x and fetch it from x.
30527         * tests/test-atanl.c (x): New variable.
30528         (main): Store argument in x and fetch it from x.
30529         * tests/test-cosl.c (x): New variable.
30530         (main): Store argument in x and fetch it from x.
30531         * tests/test-expl.c (x): New variable.
30532         (main): Store argument in x and fetch it from x.
30533         * tests/test-logl.c (x): New variable.
30534         (main): Store argument in x and fetch it from x.
30535         * tests/test-sinl.c (x): New variable.
30536         (main): Store argument in x and fetch it from x.
30537         * tests/test-sqrtl.c (x): New variable.
30538         (main): Store argument in x and fetch it from x.
30539         * tests/test-tanl.c (x): New variable.
30540         (main): Store argument in x and fetch it from x.
30541
30542 2010-01-24  Bruno Haible  <bruno@clisp.org>
30543
30544         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30545         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30546         assignments to the initial TESTS_ENVIRONMENT.
30547         * doc/gnulib.texi (Unit test modules): Document it.
30548         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30549         TESTS_ENVIRONMENT.
30550         * modules/btowc-tests (Makefile.am): Likewise.
30551         * modules/c-stack-tests (Makefile.am): Likewise.
30552         * modules/c-strcase-tests (Makefile.am): Likewise.
30553         * modules/copy-file-tests (Makefile.am): Likewise.
30554         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30555         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30556         * modules/mbrtowc-tests (Makefile.am): Likewise.
30557         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30558         * modules/mbscasestr-tests (Makefile.am): Likewise.
30559         * modules/mbschr-tests (Makefile.am): Likewise.
30560         * modules/mbscspn-tests (Makefile.am): Likewise.
30561         * modules/mbsinit-tests (Makefile.am): Likewise.
30562         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30563         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30564         * modules/mbspbrk-tests (Makefile.am): Likewise.
30565         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30566         * modules/mbsrchr-tests (Makefile.am): Likewise.
30567         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30568         * modules/mbsspn-tests (Makefile.am): Likewise.
30569         * modules/mbsstr-tests (Makefile.am): Likewise.
30570         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30571         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30572         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30573         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30574         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30575         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30576         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30577         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30578         * modules/wcrtomb-tests (Makefile.am): Likewise.
30579         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30580         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30581         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30582         assignments from TESTS_ENVIRONMENT.
30583         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30584         augmentation.
30585         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30586         * modules/atexit-tests (Makefile.am): Likewise.
30587         * modules/binary-io-tests (Makefile.am): Likewise.
30588         * modules/closein-tests (Makefile.am): Likewise.
30589         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30590         * modules/exclude-tests (Makefile.am): Likewise.
30591         * modules/fflush-tests (Makefile.am): Likewise.
30592         * modules/fpending-tests (Makefile.am): Likewise.
30593         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30594         * modules/freadahead-tests (Makefile.am): Likewise.
30595         * modules/freadptr-tests (Makefile.am): Likewise.
30596         * modules/freadseek-tests (Makefile.am): Likewise.
30597         * modules/fseek-tests (Makefile.am): Likewise.
30598         * modules/fseeko-tests (Makefile.am): Likewise.
30599         * modules/ftell-tests (Makefile.am): Likewise.
30600         * modules/ftello-tests (Makefile.am): Likewise.
30601         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30602         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30603         * modules/lseek-tests (Makefile.am): Likewise.
30604         * modules/parse-duration-tests (Makefile.am): Likewise.
30605         * modules/perror-tests (Makefile.am): Likewise.
30606         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30607         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30608         * modules/pipe-tests (Makefile.am): Likewise.
30609         * modules/pread-tests (Makefile.am): Likewise.
30610         * modules/printf-posix-tests (Makefile.am): Likewise.
30611         * modules/select-tests (Makefile.am): Likewise.
30612         * modules/sigpipe-tests (Makefile.am): Likewise.
30613         * modules/tsearch-tests (Makefile.am): Likewise.
30614         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30615         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30616         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30617         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30618         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30619         * modules/version-etc-tests (Makefile.am): Likewise.
30620         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30621         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30622         * modules/xalloc-die-tests (Makefile.am): Likewise.
30623         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30624         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30625         * modules/xstrtol-tests (Makefile.am): Likewise.
30626         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30627         * modules/yesno-tests (Makefile.am): Likewise.
30628         Suggested by Jim Meyering.
30629
30630 2010-01-24  Bruno Haible  <bruno@clisp.org>
30631
30632         More documentation.
30633         * doc/gnulib.texi (Writing modules): New chapter.
30634         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30635         the new chapter.
30636
30637 2010-01-24  Jim Meyering  <meyering@redhat.com>
30638
30639         maint.mk: do not prepend "./" after filtering
30640         * top/maint.mk (_prepend_srcdir_prefix): New variable
30641         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30642         "./" when $(srcdir) is ".".
30643
30644         define STREQ(a,b) consistently, removing useless parentheses
30645         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30646         since the only risk is that "a" or "b" contains an unparenthesized
30647         comma, but if either did that, STREQ would have 3 or more arguments.
30648         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30649         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30650         * lib/hash-triple.c (STREQ): Likewise.
30651         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30652         * lib/getugroups.c (STREQ): Likewise.
30653
30654 2010-01-23  Jim Meyering  <meyering@redhat.com>
30655
30656         maint.mk: fix syntax-check in a non-srcdir build directory
30657         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30658         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30659
30660 2010-01-22  Jim Meyering  <meyering@redhat.com>
30661
30662         userspec: add unit tests
30663         * tests/test-userspec.c: New file.
30664         * modules/userspec-tests: Likewise.
30665
30666 2010-01-21  Jim Meyering  <meyering@redhat.com>
30667
30668         maint.mk: handle source file names containing "." robustly
30669         * top/maint.mk (_dot_escaped_srcdir): Define.
30670         (VC_LIST): Use it in LHS of sed substitution.
30671
30672 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30673
30674         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30675         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30676         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30677         from a non-srcdir build.
30678
30679 2010-01-20  Eric Blake  <ebb9@byu.net>
30680
30681         warn-on-use: use instead of link-warning
30682         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30683         * modules/unistd (Depends-on, Makefile.am): Likewise.
30684         * modules/arpa_inet (Depends-on): Replace link-warning with
30685         warn-on-use.
30686         (Makefile.am): Update rules accordingly.
30687         * modules/ctype (Depends-on, Makefile.am): Likewise.
30688         * modules/dirent (Depends-on, Makefile.am): Likewise.
30689         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30690         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30691         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30692         * modules/locale (Depends-on, Makefile.am): Likewise.
30693         * modules/math (Depends-on, Makefile.am): Likewise.
30694         * modules/search (Depends-on, Makefile.am): Likewise.
30695         * modules/signal (Depends-on, Makefile.am): Likewise.
30696         * modules/spawn (Depends-on, Makefile.am): Likewise.
30697         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30698         * modules/string (Depends-on, Makefile.am): Likewise.
30699         * modules/strings (Depends-on, Makefile.am): Likewise.
30700         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30701         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30702         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30703         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30704         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30705         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30706         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30707         * modules/wchar (Depends-on, Makefile.am): Likewise.
30708         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30709         should be poisoned.
30710         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30711         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30712         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30713         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30714         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30715         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30716         * m4/math_h.m4 (gl_MATH_H): Likewise.
30717         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30718         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30719         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30720         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30721         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30722         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30723         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30724         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30726         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30727         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30728         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30729         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30730         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30731         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30732         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30733         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30734         GL_LINK_WARNING.
30735         * lib/ctype.in.h: Likewise.
30736         * lib/dirent.in.h: Likewise.
30737         * lib/fcntl.in.h: Likewise.
30738         * lib/inttypes.in.h: Likewise.
30739         * lib/langinfo.in.h: Likewise.
30740         * lib/locale.in.h: Likewise.
30741         * lib/math.in.h: Likewise.
30742         * lib/search.in.h: Likewise.
30743         * lib/signal.in.h: Likewise.
30744         * lib/spawn.in.h: Likewise.
30745         * lib/stdio.in.h: Likewise.
30746         * lib/stdlib.in.h: Likewise.
30747         * lib/string.in.h: Likewise.
30748         * lib/strings.in.h: Likewise.
30749         * lib/sys_file.in.h: Likewise.
30750         * lib/sys_ioctl.in.h: Likewise.
30751         * lib/sys_select.in.h: Likewise.
30752         * lib/sys_socket.in.h: Likewise.
30753         * lib/sys_stat.in.h: Likewise.
30754         * lib/sys_times.in.h: Likewise.
30755         * lib/sys_utsname.in.h: Likewise.
30756         * lib/unistd.in.h: Likewise.
30757         * lib/wchar.in.h: Likewise.
30758
30759 2010-01-20  Bruno Haible  <bruno@clisp.org>
30760
30761         Avoid duplicate -lm.
30762         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30763         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30765         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30766         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30767         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30768         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30769         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30770         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30771         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30772         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30773         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30774         Reported by Paolo Bonzini.
30775
30776 2010-01-19  Bruno Haible  <bruno@clisp.org>
30777
30778         langinfo, nl_langinfo: Relicense under LGPLv2+.
30779         * modules/langinfo (License): Change to LGPLv2+.
30780         * modules/nl_langinfo (License): Likewise.
30781         Patch by David Lutterkort <lutter@redhat.com>.
30782
30783 2010-01-19  Bruno Haible  <bruno@clisp.org>
30784
30785         Avoid compilation error with cc on OSF/1 5.1.
30786         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30787         statement, not before.
30788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30789
30790 2010-01-18  Bruno Haible  <bruno@clisp.org>
30791
30792         Avoid a link error due to the __printf__ symbol.
30793         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30794         and 2.6.x.
30795         (__format__, __printf__): Remove definitions.
30796         * lib/argp-fmtstream.h: Likewise.
30797         * lib/argp.h: Likewise.
30798         * lib/error.h: Likewise.
30799         * lib/vasnprintf.h: Likewise.
30800         * lib/xprintf.h: Likewise.
30801         * lib/xvasprintf.h: Likewise.
30802         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30803
30804 2010-01-18  Bruno Haible  <bruno@clisp.org>
30805
30806         Tests for module 'tanl'.
30807         * modules/tanl-tests: New file.
30808         * tests/test-tanl.c: New file.
30809
30810         Tests for module 'sqrtl'.
30811         * modules/sqrtl-tests: New file.
30812         * tests/test-sqrtl.c: New file.
30813
30814         Tests for module 'sinl'.
30815         * modules/sinl-tests: New file.
30816         * tests/test-sinl.c: New file.
30817
30818         Tests for module 'logl'.
30819         * modules/logl-tests: New file.
30820         * tests/test-logl.c: New file.
30821
30822         Tests for module 'expl'.
30823         * modules/expl-tests: New file.
30824         * tests/test-expl.c: New file.
30825
30826         Tests for module 'cosl'.
30827         * modules/cosl-tests: New file.
30828         * tests/test-cosl.c: New file.
30829
30830         Tests for module 'atanl'.
30831         * modules/atanl-tests: New file.
30832         * tests/test-atanl.c: New file.
30833
30834         Tests for module 'asinl'.
30835         * modules/asinl-tests: New file.
30836         * tests/test-asinl.c: New file.
30837
30838         Tests for module 'acosl'.
30839         * modules/acosl-tests: New file.
30840         * tests/test-acosl.c: New file.
30841
30842         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30843         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30844         tanl): Use the standard gnulib idiom.
30845         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30846         * lib/sinl.c: Likewise.
30847         * lib/tanl.c: Don't include trigl.c.
30848         (kernel_tanl): Make static.
30849         * lib/sincosl.c: Include trigl.h first.
30850         * lib/trigl.c: Likewise.
30851         * m4/acosl.m4: New file.
30852         * m4/asinl.m4: New file.
30853         * m4/atanl.m4: New file.
30854         * m4/cosl.m4: New file.
30855         * m4/expl.m4: New file.
30856         * m4/logl.m4: New file.
30857         * m4/sinl.m4: New file.
30858         * m4/sqrtl.m4: New file.
30859         * m4/tanl.m4: New file.
30860         * m4/mathl.m4: Remove file.
30861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30862         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30863         Don't initialize GNULIB_MATHL.
30864         * modules/acosl: New file.
30865         * modules/asinl: New file.
30866         * modules/atanl: New file.
30867         * modules/cosl: New file.
30868         * modules/expl: New file.
30869         * modules/logl: New file.
30870         * modules/sinl: New file.
30871         * modules/sqrtl: New file.
30872         * modules/tanl: New file.
30873         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30874         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30875         substitute GNULIB_MATHL.
30876         * modules/mathl: Rewritten.
30877         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30878         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30879         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30880         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30881         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30882         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30883         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30884         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30885         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30886
30887 2010-01-18  Bruno Haible  <bruno@clisp.org>
30888
30889         sqrt: Make gl_FUNC_SQRT requirable.
30890         * m4/sqrt.m4: New file.
30891         * modules/sqrt (Files): Add it.
30892         (configure.ac): Invoke gl_FUNC_SQRT.
30893
30894 2010-01-18  Bruno Haible  <bruno@clisp.org>
30895
30896         New modules for common <math.h> functions.
30897         * m4/mathfunc.m4: New file.
30898         * modules/acos: New file.
30899         * modules/asin: New file.
30900         * modules/atan: New file.
30901         * modules/atan2: New file.
30902         * modules/cbrt: New file.
30903         * modules/copysign: New file.
30904         * modules/cos: New file.
30905         * modules/cosh: New file.
30906         * modules/erf: New file.
30907         * modules/erfc: New file.
30908         * modules/exp: New file.
30909         * modules/fabs: New file.
30910         * modules/fmod: New file.
30911         * modules/hypot: New file.
30912         * modules/j0: New file.
30913         * modules/j1: New file.
30914         * modules/jn: New file.
30915         * modules/ldexp: New file.
30916         * modules/lgamma: New file.
30917         * modules/log: New file.
30918         * modules/log10: New file.
30919         * modules/log1p: New file.
30920         * modules/logb: New file.
30921         * modules/modf: New file.
30922         * modules/nextafter: New file.
30923         * modules/pow: New file.
30924         * modules/remainder: New file.
30925         * modules/rint: New file.
30926         * modules/sin: New file.
30927         * modules/sinh: New file.
30928         * modules/sqrt: New file.
30929         * modules/tan: New file.
30930         * modules/tanh: New file.
30931         * modules/y0: New file.
30932         * modules/y1: New file.
30933         * modules/yn: New file.
30934         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30935         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30936         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30937         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30938         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30939         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30940         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30941         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30942         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30943         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30944         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30945         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30946         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30947         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30948         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30949         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30950         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30951         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30952         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30953         * doc/posix-functions/log.texi: Mention the 'log' module.
30954         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30955         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30956         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30957         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30958         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30959         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30960         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30961         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30962         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30963         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30964         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30965         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30966         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30967         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30968         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30969         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30970
30971 2010-01-18  Jim Meyering  <meyering@redhat.com>
30972
30973         ignore-value: relax license to LGPLv2+
30974         * modules/ignore-value (License): Relax to LGPLv2+.
30975
30976         getdate: don't leak when TZ contains two or more '"'s
30977         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30978         double quote in TZ after the first one.
30979
30980         readtokens: do not leak internal token_lengths buffer
30981         * lib/readtokens.c (readtokens): Free the local, lengths,
30982         when the supplied "token_lengths" parameter is NULL.
30983
30984 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30985
30986         Fix a couple of missing LIBTHREAD link failures on AIX.
30987         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30988         $(LIBTHREAD).
30989         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30990
30991         Link test-poll against INET_PTON_LIB.
30992         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30993         for inet_pton on Solaris 10.
30994
30995 2010-01-17  Bruno Haible  <bruno@clisp.org>
30996
30997         unistdio/*-sprintf: Fix typo in module description.
30998         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30999         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
31000         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
31001         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
31002         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
31003         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
31004         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
31005         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31006
31007 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31008
31009         gnulib-tool: fix filelist for AIX, HP-UX ksh.
31010         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31011         variables in shell case patterns, for AIX and HP-UX ksh.
31012
31013         Split large sed scripts, for HP-UX sed.
31014         * modules/stdio: Split sed scripts around 50 sed commands,
31015         to avoid HP-UX limit of 99 commands, in the near future.
31016         * modules/string: Likewise.
31017         * modules/unistd: Likewise.
31018
31019         gnulib-tool: avoid writing in the current directory.
31020         * gnulib-tool (func_emit_lib_Makefile_am)
31021         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31022         not in the current directory, so concurrent gnulib-tool
31023         instances do not interfere.
31024
31025 2010-01-16  Jim Meyering  <meyering@redhat.com>
31026
31027         doc: update users.txt
31028         * users.txt: Add grep.
31029         (diffutils, gzip): Update URLs.
31030
31031 2010-01-12  Bruno Haible  <bruno@clisp.org>
31032
31033         posix_spawn: Avoid test failure on Cygwin.
31034         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31035         characters.
31036         Reported by Simon Josefsson.
31037
31038 2010-01-12  Bruno Haible  <bruno@clisp.org>
31039
31040         * tests/test-cond.c (main): When skipping the test, show the reason.
31041
31042 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31043
31044         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31045
31046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31047
31048         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31049         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31050
31051 2010-01-12  Eric Blake  <ebb9@byu.net>
31052
31053         build: guarantee AS_VAR_IF
31054         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31055         (gl_AS_VAR_IF): Move...
31056         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31057         Reported by Simon Josefsson.
31058
31059 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31060
31061         * lib/stdio.in.h: Fix typo.
31062
31063 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31064
31065         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31066         libgpg-error.
31067
31068 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31069
31070         * tests/test-xalloc-die.sh: Use $EXEEXT.
31071
31072 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31073             Bruno Haible  <bruno@clisp.org>
31074
31075         getlogin, getlogin_r: Avoid test failure.
31076         * tests/test-getlogin.c: Include <stdio.h>.
31077         (main): Skip the test when the function fails because stdin is not a
31078         tty.
31079         * tests/test-getlogin_r.c: Include <stdio.h>.
31080         (main): Skip the test when the function fails because stdin is not a
31081         tty.
31082
31083 2010-01-11  Eric Blake  <ebb9@byu.net>
31084
31085         tests: avoid more large file warnings
31086         * tests/test-fflush.c: Avoid warning about ftell use.
31087         * tests/test-fseek.c: Avoid warning about fseek use.
31088
31089 2010-01-10  Bruno Haible  <bruno@clisp.org>
31090
31091         nproc: Work better on Linux when /proc and /sys are not mounted.
31092         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31093         as lower bound when, on glibc/Linux systems,
31094         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31095         Suggested by Pádraig Brady <P@draigbrady.com>.
31096         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31097
31098         nproc: Refactor.
31099         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31100         extracted from num_processors.
31101         (num_processors): Call it.
31102
31103 2010-01-11  Jim Meyering  <meyering@redhat.com>
31104
31105         utimecmp: avoid new warning from upcoming gcc-4.5.0
31106         * lib/utimecmp.c (BILLION): Define using #define rather than an
31107         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31108
31109 2010-01-11  Eric Blake  <ebb9@byu.net>
31110
31111         math: add portability warnings for classification macros
31112         * modules/math (Depends-on): Add warn-on-use.
31113         (Makefile.am): Provide new substitutions.
31114         * m4/math_h.m4 (gl_MATH_H): Require inline.
31115         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31116         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31117         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31118         implement warnings.
31119
31120         unistd: warn on use of environ without module
31121         * modules/unistd (Depends-on): Add warn-on-use.
31122         (Makefile.am): Provide new substitutions.
31123         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31124         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31125
31126         stdio: warn on suspicious uses
31127         * modules/stdio (Depends-on): Add warn-on-use.
31128         (Makefile.am): Provide new substitutions.
31129         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31130         fseeko.
31131         * lib/stdio.in.h (gets): Always warn on use.
31132         (fseek, ftell): Adjust when warnings are issued, and honor
31133         _GL_NO_LARGE_FILES as a way to silence the warning.
31134         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31135         any warning about large file offsets.
31136         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31137         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31138         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31139         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31140         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31141         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31142         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31143         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31144
31145         warn-on-use: new module
31146         * modules/warn-on-use: New file.
31147         * build-aux/warn-on-use.h: Likewise.
31148         * m4/warn-on-use.m4: Likewise.
31149         * MODULES.html.sh (Support for building): Mention it.
31150
31151 2010-01-10  Bruno Haible  <bruno@clisp.org>
31152
31153         Tests for module 'unistr/u32-strdup'.
31154         * modules/unistr/u32-strdup-tests: New file.
31155         * tests/unistr/test-u32-strdup.c: New file.
31156
31157         Tests for module 'unistr/u16-strdup'.
31158         * modules/unistr/u16-strdup-tests: New file.
31159         * tests/unistr/test-u16-strdup.c: New file.
31160
31161         Tests for module 'unistr/u8-strdup'.
31162         * modules/unistr/u8-strdup-tests: New file.
31163         * tests/unistr/test-u8-strdup.c: New file.
31164         * tests/unistr/test-strdup.h: New file.
31165
31166         Tests for module 'unistr/u32-strncmp'.
31167         * modules/unistr/u32-strncmp-tests: New file.
31168         * tests/unistr/test-u32-strncmp.c: New file.
31169
31170         Tests for module 'unistr/u16-strncmp'.
31171         * modules/unistr/u16-strncmp-tests: New file.
31172         * tests/unistr/test-u16-strncmp.c: New file.
31173
31174         Tests for module 'unistr/u8-strncmp'.
31175         * modules/unistr/u8-strncmp-tests: New file.
31176         * tests/unistr/test-u8-strncmp.c: New file.
31177         * tests/unistr/test-strncmp.h: New file.
31178
31179         Tests for module 'unistr/u32-strcoll'.
31180         * modules/unistr/u32-strcoll-tests: New file.
31181         * tests/unistr/test-u32-strcoll.c: New file.
31182
31183         Tests for module 'unistr/u16-strcoll'.
31184         * modules/unistr/u16-strcoll-tests: New file.
31185         * tests/unistr/test-u16-strcoll.c: New file.
31186
31187         Tests for module 'unistr/u8-strcoll'.
31188         * modules/unistr/u8-strcoll-tests: New file.
31189         * tests/unistr/test-u8-strcoll.c: New file.
31190
31191         Tests for module 'unistr/u32-strcmp'.
31192         * modules/unistr/u32-strcmp-tests: New file.
31193         * tests/unistr/test-u32-strcmp.c: New file.
31194         * tests/unistr/test-u32-strcmp.h: New file.
31195
31196         Tests for module 'unistr/u16-strcmp'.
31197         * modules/unistr/u16-strcmp-tests: New file.
31198         * tests/unistr/test-u16-strcmp.c: New file.
31199         * tests/unistr/test-u16-strcmp.h: New file.
31200
31201         Tests for module 'unistr/u8-strcmp'.
31202         * modules/unistr/u8-strcmp-tests: New file.
31203         * tests/unistr/test-u8-strcmp.c: New file.
31204         * tests/unistr/test-u8-strcmp.h: New file.
31205         * tests/unistr/test-strcmp.h: New file.
31206
31207         Tests for module 'unistr/u32-strncat'.
31208         * modules/unistr/u32-strncat-tests: New file.
31209         * tests/unistr/test-u32-strncat.c: New file.
31210
31211         Tests for module 'unistr/u16-strncat'.
31212         * modules/unistr/u16-strncat-tests: New file.
31213         * tests/unistr/test-u16-strncat.c: New file.
31214
31215         Tests for module 'unistr/u8-strncat'.
31216         * modules/unistr/u8-strncat-tests: New file.
31217         * tests/unistr/test-u8-strncat.c: New file.
31218         * tests/unistr/test-strncat.h: New file.
31219
31220         Tests for module 'unistr/u32-strcat'.
31221         * modules/unistr/u32-strcat-tests: New file.
31222         * tests/unistr/test-u32-strcat.c: New file.
31223
31224         Tests for module 'unistr/u16-strcat'.
31225         * modules/unistr/u16-strcat-tests: New file.
31226         * tests/unistr/test-u16-strcat.c: New file.
31227
31228         Tests for module 'unistr/u8-strcat'.
31229         * modules/unistr/u8-strcat-tests: New file.
31230         * tests/unistr/test-u8-strcat.c: New file.
31231         * tests/unistr/test-strcat.h: New file.
31232
31233         Tests for module 'unistr/u32-stpncpy'.
31234         * modules/unistr/u32-stpncpy-tests: New file.
31235         * tests/unistr/test-u32-stpncpy.c: New file.
31236
31237         Tests for module 'unistr/u16-stpncpy'.
31238         * modules/unistr/u16-stpncpy-tests: New file.
31239         * tests/unistr/test-u16-stpncpy.c: New file.
31240
31241         Tests for module 'unistr/u8-stpncpy'.
31242         * modules/unistr/u8-stpncpy-tests: New file.
31243         * tests/unistr/test-u8-stpncpy.c: New file.
31244         * tests/unistr/test-stpncpy.h: New file.
31245
31246         Tests for module 'unistr/u32-strncpy'.
31247         * modules/unistr/u32-strncpy-tests: New file.
31248         * tests/unistr/test-u32-strncpy.c: New file.
31249
31250         Tests for module 'unistr/u16-strncpy'.
31251         * modules/unistr/u16-strncpy-tests: New file.
31252         * tests/unistr/test-u16-strncpy.c: New file.
31253
31254         Tests for module 'unistr/u8-strncpy'.
31255         * modules/unistr/u8-strncpy-tests: New file.
31256         * tests/unistr/test-u8-strncpy.c: New file.
31257         * tests/unistr/test-strncpy.h: New file.
31258
31259         Tests for module 'unistr/u32-stpcpy'.
31260         * modules/unistr/u32-stpcpy-tests: New file.
31261         * tests/unistr/test-u32-stpcpy.c: New file.
31262
31263         Tests for module 'unistr/u16-stpcpy'.
31264         * modules/unistr/u16-stpcpy-tests: New file.
31265         * tests/unistr/test-u16-stpcpy.c: New file.
31266
31267         Tests for module 'unistr/u8-stpcpy'.
31268         * modules/unistr/u8-stpcpy-tests: New file.
31269         * tests/unistr/test-u8-stpcpy.c: New file.
31270         * tests/unistr/test-stpcpy.h: New file.
31271
31272         Tests for module 'unistr/u32-strcpy'.
31273         * modules/unistr/u32-strcpy-tests: New file.
31274         * tests/unistr/test-u32-strcpy.c: New file.
31275
31276         Tests for module 'unistr/u16-strcpy'.
31277         * modules/unistr/u16-strcpy-tests: New file.
31278         * tests/unistr/test-u16-strcpy.c: New file.
31279
31280         Tests for module 'unistr/u8-strcpy'.
31281         * modules/unistr/u8-strcpy-tests: New file.
31282         * tests/unistr/test-u8-strcpy.c: New file.
31283         * tests/unistr/test-strcpy.h: New file.
31284
31285         Tests for module 'unistr/u32-strnlen'.
31286         * modules/unistr/u32-strnlen-tests: New file.
31287         * tests/unistr/test-u32-strnlen.c: New file.
31288
31289         Tests for module 'unistr/u16-strnlen'.
31290         * modules/unistr/u16-strnlen-tests: New file.
31291         * tests/unistr/test-u16-strnlen.c: New file.
31292
31293         Tests for module 'unistr/u8-strnlen'.
31294         * modules/unistr/u8-strnlen-tests: New file.
31295         * tests/unistr/test-u8-strnlen.c: New file.
31296         * tests/unistr/test-strnlen.h: New file.
31297
31298         Tests for module 'unistr/u32-strlen'.
31299         * modules/unistr/u32-strlen-tests: New file.
31300         * tests/unistr/test-u32-strlen.c: New file.
31301
31302         Tests for module 'unistr/u16-strlen'.
31303         * modules/unistr/u16-strlen-tests: New file.
31304         * tests/unistr/test-u16-strlen.c: New file.
31305
31306         Tests for module 'unistr/u8-strlen'.
31307         * modules/unistr/u8-strlen-tests: New file.
31308         * tests/unistr/test-u8-strlen.c: New file.
31309
31310         Tests for module 'unistr/u32-prev'.
31311         * modules/unistr/u32-prev-tests: New file.
31312         * tests/unistr/test-u32-prev.c: New file.
31313
31314         Tests for module 'unistr/u16-prev'.
31315         * modules/unistr/u16-prev-tests: New file.
31316         * tests/unistr/test-u16-prev.c: New file.
31317
31318         Tests for module 'unistr/u8-prev'.
31319         * modules/unistr/u8-prev-tests: New file.
31320         * tests/unistr/test-u8-prev.c: New file.
31321
31322         Tests for module 'unistr/u32-next'.
31323         * modules/unistr/u32-next-tests: New file.
31324         * tests/unistr/test-u32-next.c: New file.
31325
31326         Tests for module 'unistr/u16-next'.
31327         * modules/unistr/u16-next-tests: New file.
31328         * tests/unistr/test-u16-next.c: New file.
31329
31330         Tests for module 'unistr/u8-next'.
31331         * modules/unistr/u8-next-tests: New file.
31332         * tests/unistr/test-u8-next.c: New file.
31333
31334         Tests for module 'unistr/u32-strmbtouc'.
31335         * modules/unistr/u32-strmbtouc-tests: New file.
31336         * tests/unistr/test-u32-strmbtouc.c: New file.
31337
31338         Tests for module 'unistr/u16-strmbtouc'.
31339         * modules/unistr/u16-strmbtouc-tests: New file.
31340         * tests/unistr/test-u16-strmbtouc.c: New file.
31341
31342         Tests for module 'unistr/u8-strmbtouc'.
31343         * modules/unistr/u8-strmbtouc-tests: New file.
31344         * tests/unistr/test-u8-strmbtouc.c: New file.
31345
31346         Tests for module 'unistr/u32-strmblen'.
31347         * modules/unistr/u32-strmblen-tests: New file.
31348         * tests/unistr/test-u32-strmblen.c: New file.
31349
31350         Tests for module 'unistr/u16-strmblen'.
31351         * modules/unistr/u16-strmblen-tests: New file.
31352         * tests/unistr/test-u16-strmblen.c: New file.
31353
31354         Tests for module 'unistr/u8-strmblen'.
31355         * modules/unistr/u8-strmblen-tests: New file.
31356         * tests/unistr/test-u8-strmblen.c: New file.
31357
31358         Tests for module 'unistr/u32-cpy-alloc'.
31359         * modules/unistr/u32-cpy-alloc-tests: New file.
31360         * tests/unistr/test-u32-cpy-alloc.c: New file.
31361
31362         Tests for module 'unistr/u16-cpy-alloc'.
31363         * modules/unistr/u16-cpy-alloc-tests: New file.
31364         * tests/unistr/test-u16-cpy-alloc.c: New file.
31365
31366         Tests for module 'unistr/u8-cpy-alloc'.
31367         * modules/unistr/u8-cpy-alloc-tests: New file.
31368         * tests/unistr/test-u8-cpy-alloc.c: New file.
31369         * tests/unistr/test-cpy-alloc.h: New file.
31370
31371         Tests for module 'unistr/u32-mbsnlen'.
31372         * modules/unistr/u32-mbsnlen-tests: New file.
31373         * tests/unistr/test-u32-mbsnlen.c: New file.
31374
31375         Tests for module 'unistr/u16-mbsnlen'.
31376         * modules/unistr/u16-mbsnlen-tests: New file.
31377         * tests/unistr/test-u16-mbsnlen.c: New file.
31378
31379         Tests for module 'unistr/u8-mbsnlen'.
31380         * modules/unistr/u8-mbsnlen-tests: New file.
31381         * tests/unistr/test-u8-mbsnlen.c: New file.
31382
31383         Tests for module 'unistr/u32-chr'.
31384         * modules/unistr/u32-chr-tests: New file.
31385         * tests/unistr/test-u32-chr.c: New file.
31386
31387         Tests for module 'unistr/u16-chr'.
31388         * modules/unistr/u16-chr-tests: New file.
31389         * tests/unistr/test-u16-chr.c: New file.
31390
31391         Tests for module 'unistr/u8-chr'.
31392         * modules/unistr/u8-chr-tests: New file.
31393         * tests/unistr/test-u8-chr.c: New file.
31394         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31395
31396         Tests for module 'unistr/u32-cmp2'.
31397         * modules/unistr/u32-cmp2-tests: New file.
31398         * tests/unistr/test-u32-cmp2.c: New file.
31399
31400         Tests for module 'unistr/u16-cmp2'.
31401         * modules/unistr/u16-cmp2-tests: New file.
31402         * tests/unistr/test-u16-cmp2.c: New file.
31403
31404         Tests for module 'unistr/u8-cmp2'.
31405         * modules/unistr/u8-cmp2-tests: New file.
31406         * tests/unistr/test-u8-cmp2.c: New file.
31407         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31408
31409         Tests for module 'unistr/u32-cmp'.
31410         * modules/unistr/u32-cmp-tests: New file.
31411         * tests/unistr/test-u32-cmp.c: New file.
31412
31413         Tests for module 'unistr/u16-cmp'.
31414         * modules/unistr/u16-cmp-tests: New file.
31415         * tests/unistr/test-u16-cmp.c: New file.
31416
31417         Tests for module 'unistr/u8-cmp'.
31418         * modules/unistr/u8-cmp-tests: New file.
31419         * tests/unistr/test-u8-cmp.c: New file.
31420         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31421
31422         Tests for module 'unistr/u32-set'.
31423         * modules/unistr/u32-set-tests: New file.
31424         * tests/unistr/test-u32-set.c: New file.
31425
31426         Tests for module 'unistr/u16-set'.
31427         * modules/unistr/u16-set-tests: New file.
31428         * tests/unistr/test-u16-set.c: New file.
31429
31430         Tests for module 'unistr/u8-set'.
31431         * modules/unistr/u8-set-tests: New file.
31432         * tests/unistr/test-u8-set.c: New file.
31433         * tests/unistr/test-set.h: New file.
31434
31435         Tests for module 'unistr/u32-move'.
31436         * modules/unistr/u32-move-tests: New file.
31437         * tests/unistr/test-u32-move.c: New file.
31438
31439         Tests for module 'unistr/u16-move'.
31440         * modules/unistr/u16-move-tests: New file.
31441         * tests/unistr/test-u16-move.c: New file.
31442
31443         Tests for module 'unistr/u8-move'.
31444         * modules/unistr/u8-move-tests: New file.
31445         * tests/unistr/test-u8-move.c: New file.
31446         * tests/unistr/test-move.h: New file.
31447
31448         Tests for module 'unistr/u32-cpy'.
31449         * modules/unistr/u32-cpy-tests: New file.
31450         * tests/unistr/test-u32-cpy.c: New file.
31451
31452         Tests for module 'unistr/u16-cpy'.
31453         * modules/unistr/u16-cpy-tests: New file.
31454         * tests/unistr/test-u16-cpy.c: New file.
31455
31456         Tests for module 'unistr/u8-cpy'.
31457         * modules/unistr/u8-cpy-tests: New file.
31458         * tests/unistr/test-u8-cpy.c: New file.
31459         * tests/unistr/test-cpy.h: New file.
31460
31461 2010-01-09  Bruno Haible  <bruno@clisp.org>
31462
31463         Tests for module 'unistr/u32-uctomb'.
31464         * modules/unistr/u32-uctomb-tests: New file.
31465         * tests/unistr/test-u32-uctomb.c: New file.
31466
31467         Tests for module 'unistr/u16-uctomb'.
31468         * modules/unistr/u16-uctomb-tests: New file.
31469         * tests/unistr/test-u16-uctomb.c: New file.
31470
31471         Tests for module 'unistr/u8-uctomb'.
31472         * modules/unistr/u8-uctomb-tests: New file.
31473         * tests/unistr/test-u8-uctomb.c: New file.
31474
31475         Tests for module 'unistr/u32-mbtoucr'.
31476         * modules/unistr/u32-mbtoucr-tests: New file.
31477         * tests/unistr/test-u32-mbtoucr.c: New file.
31478
31479         Tests for module 'unistr/u16-mbtoucr'.
31480         * modules/unistr/u16-mbtoucr-tests: New file.
31481         * tests/unistr/test-u16-mbtoucr.c: New file.
31482
31483         Tests for module 'unistr/u8-mbtoucr'.
31484         * modules/unistr/u8-mbtoucr-tests: New file.
31485         * tests/unistr/test-u8-mbtoucr.c: New file.
31486
31487         Tests for module 'unistr/u32-mbtouc'.
31488         * modules/unistr/u32-mbtouc-tests: New file.
31489         * tests/unistr/test-u32-mbtouc.c: New file.
31490
31491         Tests for module 'unistr/u16-mbtouc'.
31492         * modules/unistr/u16-mbtouc-tests: New file.
31493         * tests/unistr/test-u16-mbtouc.c: New file.
31494
31495         Tests for module 'unistr/u8-mbtouc'.
31496         * modules/unistr/u8-mbtouc-tests: New file.
31497         * tests/unistr/test-u8-mbtouc.c: New file.
31498
31499         Tests for module 'unistr/u32-mbtouc-unsafe'.
31500         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31501         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31502         * tests/unistr/test-u32-mbtouc.h: New file.
31503
31504         Tests for module 'unistr/u16-mbtouc-unsafe'.
31505         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31506         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31507         * tests/unistr/test-u16-mbtouc.h: New file.
31508
31509         Tests for module 'unistr/u8-mbtouc-unsafe'.
31510         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31511         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31512         * tests/unistr/test-u8-mbtouc.h: New file.
31513
31514         Tests for module 'unistr/u32-mblen'.
31515         * modules/unistr/u32-mblen-tests: New file.
31516         * tests/unistr/test-u32-mblen.c: New file.
31517
31518         Tests for module 'unistr/u16-mblen'.
31519         * modules/unistr/u16-mblen-tests: New file.
31520         * tests/unistr/test-u16-mblen.c: New file.
31521
31522         Tests for module 'unistr/u8-mblen'.
31523         * modules/unistr/u8-mblen-tests: New file.
31524         * tests/unistr/test-u8-mblen.c: New file.
31525
31526         Tests for module 'unistr/u32-to-u16'.
31527         * modules/unistr/u32-to-u16-tests: New file.
31528         * tests/unistr/test-u32-to-u16.c: New file.
31529
31530         Tests for module 'unistr/u32-to-u8'.
31531         * modules/unistr/u32-to-u8-tests: New file.
31532         * tests/unistr/test-u32-to-u8.c: New file.
31533
31534         Tests for module 'unistr/u16-to-u32'.
31535         * modules/unistr/u16-to-u32-tests: New file.
31536         * tests/unistr/test-u16-to-u32.c: New file.
31537
31538         Tests for module 'unistr/u16-to-u8'.
31539         * modules/unistr/u16-to-u8-tests: New file.
31540         * tests/unistr/test-u16-to-u8.c: New file.
31541
31542         Tests for module 'unistr/u8-to-u32'.
31543         * modules/unistr/u8-to-u32-tests: New file.
31544         * tests/unistr/test-u8-to-u32.c: New file.
31545
31546         Tests for module 'unistr/u8-to-u16'.
31547         * modules/unistr/u8-to-u16-tests: New file.
31548         * tests/unistr/test-u8-to-u16.c: New file.
31549
31550         Tests for module 'unistr/u32-check'.
31551         * modules/unistr/u32-check-tests: New file.
31552         * tests/unistr/test-u32-check.c: New file.
31553
31554         Tests for module 'unistr/u16-check'.
31555         * modules/unistr/u16-check-tests: New file.
31556         * tests/unistr/test-u16-check.c: New file.
31557
31558         Tests for module 'unistr/u8-check'.
31559         * modules/unistr/u8-check-tests: New file.
31560         * tests/unistr/test-u8-check.c: New file.
31561
31562         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31563         (category_equals): New function.
31564         (main): Add more tests.
31565         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31566
31567         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31568
31569 2010-01-10  Bruno Haible  <bruno@clisp.org>
31570
31571         unistr/u*-strcoll: Try harder to distinguish different strings.
31572         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31573         compare s1 and s2 to see if they are different.
31574
31575 2010-01-10  Bruno Haible  <bruno@clisp.org>
31576
31577         unistr/u*-stpncpy: Fix the return value.
31578         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31579         description of the return value consistent with stpncpy in glibc.
31580         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31581         written non-NUL unit.
31582
31583 2010-01-10  Bruno Haible  <bruno@clisp.org>
31584
31585         unistr/u*-next: Add missing dependencies.
31586         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31587         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31588         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31589
31590 2010-01-10  Bruno Haible  <bruno@clisp.org>
31591
31592         unistr/u8-mbsnlen: Fix return value for incomplete character.
31593         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31594         u8_mblen.
31595         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31596         Remove unistr/u8-mblen.
31597         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31598         u16_mblen.
31599         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31600         Remove unistr/u16-mblen.
31601
31602 2010-01-10  Bruno Haible  <bruno@clisp.org>
31603
31604         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31605         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31606         Reported by Brian Gough <bjg@gnu.org> and
31607         Chris Clayton <chris2553@googlemail.com> via
31608         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31609
31610 2010-01-09  Bruno Haible  <bruno@clisp.org>
31611
31612         unistr/u16-to-u32: Reject invalid input.
31613         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31614         u16_mbtouc.
31615         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31616         Remove unistr/u16-mbtouc.
31617
31618         unistr/u16-to-u8: Reject invalid input.
31619         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31620         u16_mbtouc.
31621         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31622         Remove unistr/u16-mbtouc.
31623
31624         unistr/u8-to-u32: Reject invalid input.
31625         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31626         u8_mbtouc.
31627         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31628         Remove unistr/u8-mbtouc.
31629
31630         unistr/u8-to-u16: Reject invalid input.
31631         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31632         u8_mbtouc.
31633         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31634         Remove unistr/u8-mbtouc.
31635
31636 2010-01-09  Bruno Haible  <bruno@clisp.org>
31637
31638         Tests for module 'getlogin'.
31639         * modules/getlogin-tests: New file.
31640         * tests/test-getlogin.c: New file.
31641
31642         New module 'getlogin'.
31643         * lib/unistd.in.h (getlogin): New declaration.
31644         * lib/getlogin.c: New file.
31645         * m4/getlogin.m4: New file.
31646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31647         HAVE_GETLOGIN.
31648         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31649         HAVE_GETLOGIN.
31650         * modules/getlogin: New file.
31651         * doc/posix-functions/getlogin.texi: Mention the new module.
31652         Reported by John W. Eaton <jwe@gnu.org>.
31653
31654 2010-01-09  Bruno Haible  <bruno@clisp.org>
31655
31656         getlogin_r: Support for native Windows.
31657         * lib/getlogin_r.c: Include <windows.h>
31658         (getlogin_r): Implement for native Windows.
31659         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31660         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31661         via John W. Eaton <jwe@gnu.org>.
31662
31663 2010-01-09  Bruno Haible  <bruno@clisp.org>
31664
31665         getlogin_r: Small fixes.
31666         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31667         succeeds.
31668         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31669         before testing whether getlogin_r is declared. No need to set
31670         HAVE_DECL_GETLOGIN_R to 1.
31671         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31672
31673 2010-01-09  Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/unistd.in.h (getlogin_r): Add comment.
31676
31677 2010-01-09  Bruno Haible  <bruno@clisp.org>
31678
31679         Tests for module 'getlogin_r'.
31680         * modules/getlogin_r-tests: New file.
31681         * tests/test-getlogin_r.c: New file.
31682
31683 2010-01-09  Jim Meyering  <meyering@redhat.com>
31684
31685         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31686         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31687         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31688
31689 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31690
31691         * lib/dup2.c (rpl_dup2): Improve comment.
31692
31693 2010-01-08  Eric Blake  <ebb9@byu.net>
31694
31695         maint.mk: allow packages to add makefile @@ exceptions
31696         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31697         (sc_makefile_check): Rename...
31698         (sc_makefile_at_at_check): ...to this, and use hook.
31699
31700         dup2: work around mingw bug
31701         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31702         Reported by Simon Josefsson.
31703
31704 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31705
31706         glob: Fix C++ compilation.
31707         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31708         C++.
31709
31710 2010-01-07  Bruno Haible  <bruno@clisp.org>
31711
31712         Fix indentation of wctype.in.h, broken since 2007-01-06.
31713         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31714
31715 2010-01-07  Bruno Haible  <bruno@clisp.org>
31716
31717         mbslen: Avoid collision with system function.
31718         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31719         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31720         * m4/mbslen.m4: New file.
31721         * modules/mbslen (Files): Add it.
31722         (configure.ac): Invoke gl_MBSLEN.
31723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31724         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31725         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31726         via Ian Beckwith <ianb@erislabs.net>.
31727
31728 2010-01-07  Bruno Haible  <bruno@clisp.org>
31729
31730         dirent: Document the last fix.
31731         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31732
31733 2010-01-07  Bruno Haible  <bruno@clisp.org>
31734
31735         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31736         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31737         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31738         va_list are defined.
31739         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31740         Reported by Eric Blake.
31741
31742 2010-01-07  Bruno Haible  <bruno@clisp.org>
31743
31744         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31745         * modules/xlist (Depends-on): Add 'list',
31746         * modules/xoset (Depends-on): Add 'oset'.
31747         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31748
31749 2010-01-07  Bruno Haible  <bruno@clisp.org>
31750
31751         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31752         * doc/posix-functions/strncasecmp.texi: Likewise.
31753
31754 2010-01-07  Bruno Haible  <bruno@clisp.org>
31755
31756         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31757
31758 2010-01-07  John W. Eaton  <jwe@octave.org>
31759
31760         wctype: allow C++ use
31761         * lib/wctype.in.h: Add extern "C" block for C++.
31762
31763 2010-01-06  Eric Blake  <ebb9@byu.net>
31764
31765         maint.mk: detect incorrect GFDL usage
31766         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31767
31768 2010-01-06  Jim Meyering  <meyering@redhat.com>
31769         and Eric Blake  <ebb9@byu.net>
31770
31771         maint.mk: ignore multi-line copyright in NEWS
31772         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31773
31774 2010-01-06  Eric Blake  <ebb9@byu.net>
31775
31776         select: add missing dependency
31777         * modules/select-tests (Depends-on): Move sockets dependency...
31778         * modules/select (Depends-on): ...here.
31779         Reported by Ian Beckwith.
31780
31781         doc: regenerate INSTALL
31782         * doc/INSTALL: Reflect recent autoconf update.
31783         * doc/INSTALL.ISO: Likewise.
31784         * doc/INSTALL.UTF-8: Likewise.
31785
31786         pread: fix compilation on glibc
31787         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31788         Reported by Ralf Wildenhues.
31789
31790         dirent: fix test failure
31791         * lib/dirent.in.h (includes): Guarantee ino_t.
31792         Reported by Ralf Wildenhues.
31793
31794 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31795
31796         linkat, renameat: avoid bad free
31797         * lib/at-func2.c (at_func2): Fix typo.
31798         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31799
31800 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31801
31802         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31803         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31804         to avoid failure of symlink test later.
31805
31806 2010-01-06  Eric Blake  <ebb9@byu.net>
31807
31808         stdio, unistd: guarantee ssize_t
31809         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31810         2008 are exposed when needed.
31811         * lib/stdio.in.h (includes): Likewise.
31812         Reported by Ralf Wildenhues.
31813
31814 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31815
31816         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31817         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31818         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31819
31820 2010-01-06  Jim Meyering  <meyering@redhat.com>
31821
31822         readtokens: this module *does* require xalloc.h
31823         It uses only functions that were omitted by the old syntax-check rule.
31824         * lib/readtokens.c: Include "xalloc.h" once again.
31825         * modules/readtokens (Depends-on): Add xalloc.
31826         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31827
31828 2010-01-05  Eric Blake  <ebb9@byu.net>
31829
31830         maint: support 'make announcement' from a VPATH build
31831         * top/maint.mk (announcement): Look for correct NEWS file.
31832
31833 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31834
31835         utimens (fdutimens): ignore a negative FD, per contract
31836         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31837         when we have a valid file descriptor.  Otherwise, using a brand
31838         new glibc (with just-patched futimens that now fails with EBADF)
31839         would cause this function to fail with ENOSYS.
31840         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31841         See also http://bugzilla.redhat.com/552320.
31842
31843 2010-01-05  Eric Blake  <ebb9@byu.net>
31844
31845         strcase: document what it provides
31846         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31847         gnulib module.
31848         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31849         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31850
31851 2010-01-05  Jim Meyering  <meyering@redhat.com>
31852
31853         maint: remove useless inclusions of "xalloc.h"
31854         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31855         * lib/readtokens.c: Likewise.
31856         * lib/same.c: Likewise.
31857         * modules/getloadavg (Depends-on): Remove xalloc.
31858         * modules/readtokens: Likewise.
31859         * modules/same: Likewise.
31860
31861         maint.mk: include 4 more function names in alloca.h-checking regexp
31862         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31863         regexp.  Before, we would give a false-positive (saying alloca.h
31864         is included unnecessarily) when the only uses involved omitted symbols.
31865
31866         xalloc.h: use consistent formatting
31867         * lib/xalloc.h: Move declarations to start in the first column.
31868
31869 2010-01-05  Eric Blake  <ebb9@byu.net>
31870
31871         mkdir: avoid xalloc
31872         * lib/mkdir.c (includes): Drop unused header.
31873         Reported by John W. Eaton.
31874
31875 2010-01-04  Jim Meyering  <meyering@redhat.com>
31876
31877         nl_langinfo: avoid configure-time syntax error
31878         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31879         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31880         the empty string.  Don't let that provoke a shell syntax error.
31881
31882         regcomp, regexec, fnmatch: avoid array bounds read error
31883         * lib/regcomp.c (build_equiv_class): From glibc:
31884         Use only the low 24 bits of a findidx return value as an index
31885         into the weights array.  Patch by Ulrich Drepper:
31886         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31887         * lib/regexec.c (check_node_accept_bytes): Likewise.
31888         * lib/fnmatch_loop.c (FCT): Likewise.
31889
31890         regcomp: skip collseq lookup when there are no rules
31891         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31892         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31893
31894         regcomp: recognize ill-formed { } expressions
31895         * lib/regcomp.c (parse_dup_op): From glibc:
31896         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31897
31898         regcomp: fix typo in comment
31899         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31900         s/satisfy/satisfies/.
31901
31902         regcomp: sync from glibc: remove dead store
31903         * lib/regcomp.c (duplicate_node_closure): Remove useless
31904         search_duplicated_node call and dead store.
31905
31906         regcomp: sync from glibc; always use nl_langinfo
31907         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31908         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31909         * modules/regex (Depends-on): Add nl_langinfo.
31910
31911 2010-01-04  Eric Blake  <ebb9@byu.net>
31912
31913         fdopendir: fix configure test
31914         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31915
31916 2010-01-01  Bruno Haible  <bruno@clisp.org>
31917
31918         wchar: Remove unused configure check.
31919         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31920
31921 2010-01-01  Eric Blake  <ebb9@byu.net>
31922
31923         headers: make check of system header explicit
31924         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31925         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31926         ourselves.
31927         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31929         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31930         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31931         internals.
31932         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31933         missing.
31934         Suggested by Bruno Haible.
31935
31936 2010-01-01  Jim Meyering  <meyering@redhat.com>
31937
31938         ChangeLog: tweak to eliminate unnecessary copyright line
31939         * ChangeLog: Remove a copyright line that was mistakenly updated
31940         by today's update-copyright run.  Reported by Eric Blake.
31941
31942         test-update-copyright: don't let envvar setting cause test failure
31943         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31944
31945 2010-01-01  Bruno Haible  <bruno@clisp.org>
31946
31947         localename: Avoid gcc warning.
31948         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31949         function if it is not used.
31950
31951 2010-01-01  Jim Meyering  <meyering@redhat.com>
31952
31953         update nearly all FSF copyright year lists to include 2010
31954         Use the same procedure as for 2009, outlined in
31955         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31956
31957         version-etc: set COPYRIGHT_YEAR to 2010
31958         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31959
31960 2009-12-31  Eric Blake  <ebb9@byu.net>
31961
31962         doc: correct availability of cygwin 1.5.x getopt
31963         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31964         variables.
31965         * doc/posix-functions/opterr.texi (opterr): Likewise.
31966         * doc/posix-functions/optind.texi (optind): Likewise.
31967         * doc/posix-functions/optopt.texi (optopt): Likewise.
31968         * doc/posix-functions/tzname.texi (tzname): Likewise.
31969
31970         openat: update maintainer
31971         * modules/openat (Maintainer): Add myself.
31972
31973         utimens: avoid shadowing warning
31974         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31975         buffers into one, to avoid shadowing, as well as avoiding a
31976         redundant stat.
31977         Reported by Jim Meyering.
31978
31979         test-dup2: avoid compiler warning
31980         * tests/test-dup2.c (is_inheritable): Only define if used.
31981
31982 2010-01-01  Bruno Haible  <bruno@clisp.org>
31983
31984         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31985         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31986         defined, use wctomb instead of wcrtomb.
31987
31988 2010-01-01  Bruno Haible  <bruno@clisp.org>
31989
31990         iconv: Reject native Solaris iconv.
31991         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31992         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31993
31994 2009-12-31  Bruno Haible  <bruno@clisp.org>
31995
31996         * tests/test-signal.c (main): Remove test of 'SIG'.
31997
31998 2009-12-31  Bruno Haible  <bruno@clisp.org>
31999
32000         spawn: Fix incomplete fix.
32001         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32002         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32003         warnings for GNULIB_POSIXCHECK again.
32004         Reported by Eric Blake.
32005
32006 2009-12-31  Bruno Haible  <bruno@clisp.org>
32007
32008         Avoid namespace pollution on glibc systems.
32009         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
32010         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32011         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32012         glibc systems.
32013
32014 2009-12-31  Bruno Haible  <bruno@clisp.org>
32015
32016         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32017         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32018         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32019         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32020         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32021         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32022         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32023
32024 2009-12-31  Bruno Haible  <bruno@clisp.org>
32025
32026         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32027         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32028         afterwards.
32029
32030 2009-12-31  Bruno Haible  <bruno@clisp.org>
32031
32032         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32033         SYS_UTSNAME_H.
32034
32035 2009-12-31  Bruno Haible  <bruno@clisp.org>
32036
32037         spawn: Fix misapplied patch.
32038         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32039         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32040         warnings for GNULIB_POSIXCHECK.
32041
32042 2009-12-31  Bruno Haible  <bruno@clisp.org>
32043
32044         times: Update after sys_times changed.
32045         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32046         * modules/times (Files): Add it.
32047         (configure.ac): Invoke gl_FUNC_TIMES.
32048
32049 2009-12-31  Bruno Haible  <bruno@clisp.org>
32050
32051         Use AC_C_INLINE where necessary.
32052         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32053         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32055         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32056         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32057         * m4/mbiter.m4 (gl_MBITER): Likewise.
32058         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32059         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32060         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32061         * modules/u64 (configure.ac): Likewise.
32062
32063 2009-12-31  Bruno Haible  <bruno@clisp.org>
32064
32065         Use AC_C_INLINE instead of module 'inline' where possible.
32066         * modules/inline (Description): Clarify purpose.
32067         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32068         * modules/count-one-bits (Depends-on): Remove inline.
32069         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32070         * modules/openat (Depends-on): Remove inline.
32071         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32072         instead of depending on module 'inline'.
32073         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32074         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32075         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32076         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32077         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32078         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32079         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32080         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32081         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32082         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32083         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32084         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32085         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32086         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32087         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32088         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32089         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32090         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32091         Likewise.
32092         * modules/unictype/property-ascii-hex-digit (Depends-on,
32093         configure.ac): Likewise.
32094         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32095         configure.ac): Likewise.
32096         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32097         configure.ac): Likewise.
32098         * modules/unictype/property-bidi-block-separator (Depends-on,
32099         configure.ac): Likewise.
32100         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32101         configure.ac): Likewise.
32102         * modules/unictype/property-bidi-common-separator (Depends-on,
32103         configure.ac): Likewise.
32104         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32105         Likewise.
32106         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32107         configure.ac): Likewise.
32108         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32109         configure.ac): Likewise.
32110         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32111         configure.ac): Likewise.
32112         * modules/unictype/property-bidi-european-digit (Depends-on,
32113         configure.ac): Likewise.
32114         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32115         configure.ac): Likewise.
32116         * modules/unictype/property-bidi-left-to-right (Depends-on,
32117         configure.ac): Likewise.
32118         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32119         configure.ac): Likewise.
32120         * modules/unictype/property-bidi-other-neutral (Depends-on,
32121         configure.ac): Likewise.
32122         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32123         Likewise.
32124         * modules/unictype/property-bidi-segment-separator (Depends-on,
32125         configure.ac): Likewise.
32126         * modules/unictype/property-bidi-whitespace (Depends-on,
32127         configure.ac): Likewise.
32128         * modules/unictype/property-combining (Depends-on, configure.ac):
32129         Likewise.
32130         * modules/unictype/property-composite (Depends-on, configure.ac):
32131         Likewise.
32132         * modules/unictype/property-currency-symbol (Depends-on,
32133         configure.ac): Likewise.
32134         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32135         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32136         Likewise.
32137         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32138         configure.ac): Likewise.
32139         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32140         Likewise.
32141         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32142         Likewise.
32143         * modules/unictype/property-extender (Depends-on, configure.ac):
32144         Likewise.
32145         * modules/unictype/property-format-control (Depends-on, configure.ac):
32146         Likewise.
32147         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32148         Likewise.
32149         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32150         Likewise.
32151         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32152         Likewise.
32153         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32154         Likewise.
32155         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32156         Likewise.
32157         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32158         Likewise.
32159         * modules/unictype/property-id-start (Depends-on, configure.ac):
32160         Likewise.
32161         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32162         Likewise.
32163         * modules/unictype/property-ids-binary-operator (Depends-on,
32164         configure.ac): Likewise.
32165         * modules/unictype/property-ids-trinary-operator (Depends-on,
32166         configure.ac): Likewise.
32167         * modules/unictype/property-ignorable-control (Depends-on,
32168         configure.ac): Likewise.
32169         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32170         Likewise.
32171         * modules/unictype/property-join-control (Depends-on, configure.ac):
32172         Likewise.
32173         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32174         Likewise.
32175         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32176         Likewise.
32177         * modules/unictype/property-logical-order-exception (Depends-on,
32178         configure.ac): Likewise.
32179         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32180         Likewise.
32181         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32182         * modules/unictype/property-non-break (Depends-on, configure.ac):
32183         Likewise.
32184         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32185         Likewise.
32186         * modules/unictype/property-numeric (Depends-on, configure.ac):
32187         Likewise.
32188         * modules/unictype/property-other-alphabetic (Depends-on,
32189         configure.ac): Likewise.
32190         * modules/unictype/property-other-default-ignorable-code-point
32191         (Depends-on, configure.ac): Likewise.
32192         * modules/unictype/property-other-grapheme-extend (Depends-on,
32193         configure.ac): Likewise.
32194         * modules/unictype/property-other-id-continue (Depends-on,
32195         configure.ac): Likewise.
32196         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32197         Likewise.
32198         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32199         Likewise.
32200         * modules/unictype/property-other-math (Depends-on, configure.ac):
32201         Likewise.
32202         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32203         Likewise.
32204         * modules/unictype/property-paired-punctuation (Depends-on,
32205         configure.ac): Likewise.
32206         * modules/unictype/property-paragraph-separator (Depends-on,
32207         configure.ac): Likewise.
32208         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32209         Likewise.
32210         * modules/unictype/property-pattern-white-space (Depends-on,
32211         configure.ac): Likewise.
32212         * modules/unictype/property-private-use (Depends-on, configure.ac):
32213         Likewise.
32214         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32215         Likewise.
32216         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32217         Likewise.
32218         * modules/unictype/property-radical (Depends-on, configure.ac):
32219         Likewise.
32220         * modules/unictype/property-sentence-terminal (Depends-on,
32221         configure.ac): Likewise.
32222         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32223         Likewise.
32224         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32225         * modules/unictype/property-terminal-punctuation (Depends-on,
32226         configure.ac): Likewise.
32227         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32228         Likewise.
32229         * modules/unictype/property-unassigned-code-value (Depends-on,
32230         configure.ac): Likewise.
32231         * modules/unictype/property-unified-ideograph (Depends-on,
32232         configure.ac): Likewise.
32233         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32234         Likewise.
32235         * modules/unictype/property-variation-selector (Depends-on,
32236         configure.ac): Likewise.
32237         * modules/unictype/property-white-space (Depends-on, configure.ac):
32238         Likewise.
32239         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32240         Likewise.
32241         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32242         Likewise.
32243         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32244         Likewise.
32245         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32246         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32247         Likewise.
32248
32249 2009-12-31  Bruno Haible  <bruno@clisp.org>
32250
32251         Remove unnecessary AC_C_INLINE invocation.
32252         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32253         since 2009-08-21.
32254
32255 2009-12-31  Jim Meyering  <meyering@redhat.com>
32256
32257         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32258         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32259         With this change, we can all remove the gpg_key_ID = ... definition
32260         from our respective cfg.mk files.
32261
32262         maint.mk: create announcement template in ~/, not in /tmp
32263         * top/maint.mk (emit_upload_commands): Adjust.
32264         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32265         Remove temporary file, .ci-msg.
32266
32267 2009-12-31  Eric Blake  <ebb9@byu.net>
32268
32269         link-warning: always build headers with link warnings
32270         * modules/arpa_inet (Makefile.am): Always build replacement
32271         header.
32272         * modules/ctype (Makefile.am): Likewise.
32273         * modules/dirent (Makefile.am): Likewise.
32274         * modules/inttypes (Makefile.am): Likewise.
32275         * modules/langinfo (Makefile.am): Likewise.
32276         * modules/locale (Makefile.am): Likewise.
32277         * modules/spawn (Makefile.am): Likewise.
32278         * modules/sys_file (Makefile.am): Likewise.
32279         * modules/sys_ioctl (Makefile.am): Likewise.
32280         * modules/sys_select (Makefile.am): Likewise.
32281         * modules/sys_socket (Makefile.am): Likewise.
32282         * modules/sys_times (Makefile.am): Likewise.
32283         * modules/sys_utsname (Makefile.am): Likewise.
32284         * modules/sys_wait (Makefile.am): Likewise.
32285         * modules/wchar (Makefile.am): Likewise.
32286         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32287         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32288         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
32289         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
32290         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
32291         Likewise.
32292         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32293         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32294         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
32295         Likewise.
32296         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32297         Likewise.
32298         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32299         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32300         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32302         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32303         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32304         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32305         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32306         (gl_WCHAR_H_DEFAULTS): Likewise.
32307
32308 2009-12-31  Eric Blake  <ebb9@byu.net>
32309
32310         signal, spawn: use link warnings
32311         * lib/signal.in.h (sigset_t): Make unconditional.
32312         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32313         (sigpending, sigprocmask, sigaction): Add link warnings.
32314         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32315         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32316         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32317         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32318         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32319         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32320         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32321         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32322         (posix_spawn_file_actions_destroy)
32323         (posix_spawn_file_actions_addopen)
32324         (posix_spawn_file_actions_addclose)
32325         (posix_spawn_file_actions_adddup2): Likewise.
32326         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32327         * tests/test-signal.c (main): Enhance test.
32328
32329         spawn: improve wrapper support
32330         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32331         (gl_SPAWN_H_DEFAULTS): New defaults.
32332         * modules/spawn (Makefile.am): Substitute them.
32333         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32334         Only declare if missing or broken.
32335
32336         sys_times, sys_utsname: use include_next
32337         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32338         header.
32339         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32340         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32341         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32342         * modules/sys_times (Depends-on): Add include_next.
32343         (Makefile.am): Substitute additional values.
32344         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32345         * lib/sys_times.in.h (includes): Include native header, if
32346         available.
32347         * lib/sys_utsname.in.h (includes): Likewise.
32348         * tests/test-sys_times.c (main): Enhance test.
32349
32350         fdutimensat: revert prior patch
32351         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32352         utimens.h.
32353         Reported by Bruno Haible.
32354
32355 2009-12-30  Eric Blake  <ebb9@byu.net>
32356
32357         sys_wait: drop link-warning dependency
32358         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32359         link-warning efforts.
32360         * lib/sys_wait.in.h: Likewise.
32361
32362         fdutimensat: remove bogus dependency
32363         * modules/fdutimensat (Depends-on): Drop inline.
32364
32365         unistd: fix typo
32366         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32367
32368 2009-12-30  Bruno Haible  <bruno@clisp.org>
32369
32370         Fix compilation error with Solaris cc.
32371         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32372         * lib/unicase/u16-is-invariant.c: Likewise.
32373         * lib/unicase/u32-is-invariant.c: Likewise.
32374         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32375
32376 2009-12-30  Bruno Haible  <bruno@clisp.org>
32377
32378         Fix test crash.
32379         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32380         locales.
32381         Reported by Simon Josefsson <simon@josefsson.org>.
32382
32383 2009-12-30  Bruno Haible  <bruno@clisp.org>
32384
32385         Fix compilation error on most platforms.
32386         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32387         Reported by Simon Josefsson <simon@josefsson.org>
32388         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32389
32390 2009-12-30  Eric Blake  <ebb9@byu.net>
32391
32392         futimens, utimensat: work around ntfs-3g bug
32393         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32394         a ctime bug is present, and expand workaround to cover ntfs-3g.
32395         * lib/utimens.c (fdutimens, lutimens): Likewise.
32396         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32397         (validate_timespec): Adjust return value.
32398         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32399         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32400         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32401
32402 2009-12-29  Eric Blake  <ebb9@byu.net>
32403
32404         link-warning: make usage consistent
32405         * modules/ctype (Depends-on): Add link-warning.
32406         (Makefile.am): Update rules accordingly.
32407         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32408         * modules/locale (Depends-on, Makefile.am): Likewise.
32409         * modules/sys_file (Makefile.am): Likewise.
32410         * modules/getopt-posix (Makefile.am): Delete unused link warning
32411         efforts.
32412         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32413         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32414         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32415         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32416
32417         stdio: remove unused variables
32418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32420         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32421
32422         tests: test more substitute headers
32423         * modules/ctype-tests: New file.
32424         * modules/dirent-tests: Likewise.
32425         * modules/spawn-tests: Likewise.
32426         * modules/sys_file-tests: Likewise.
32427         * modules/sys_ioctl-tests: Likewise.
32428         * modules/sys_wait-tests: Likewise.
32429         * tests/test-ctype.c: Likewise.
32430         * tests/test-dirent.c: Likewise.
32431         * tests/test-spawn.c: Likewise.
32432         * tests/test-sys_file.c: Likewise.
32433         * tests/test-sys_ioctl.c: Likewise.
32434         * tests/test-sys_wait.c: Likewise.
32435         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32436         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32437         whether or not flock is in use.
32438
32439         tests: remove License section from module
32440         * modules/arpa_inet-tests: Remove unneeded section.
32441         * modules/byteswap-tests: Likewise.
32442         * modules/ceilf-tests: Likewise.
32443         * modules/ceill-tests: Likewise.
32444         * modules/crypto/des-tests: Likewise.
32445         * modules/crypto/gc-arcfour-tests: Likewise.
32446         * modules/crypto/gc-arctwo-tests: Likewise.
32447         * modules/crypto/gc-des-tests: Likewise.
32448         * modules/crypto/gc-hmac-md5-tests: Likewise.
32449         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32450         * modules/crypto/gc-md2-tests: Likewise.
32451         * modules/crypto/gc-md4-tests: Likewise.
32452         * modules/crypto/gc-md5-tests: Likewise.
32453         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32454         * modules/crypto/gc-rijndael-tests: Likewise.
32455         * modules/crypto/gc-sha1-tests: Likewise.
32456         * modules/crypto/gc-tests: Likewise.
32457         * modules/crypto/md2-tests: Likewise.
32458         * modules/crypto/md4-tests: Likewise.
32459         * modules/fcntl-h-tests: Likewise.
32460         * modules/floorf-tests: Likewise.
32461         * modules/floorl-tests: Likewise.
32462         * modules/frexp-nolibm-tests: Likewise.
32463         * modules/frexp-tests: Likewise.
32464         * modules/frexpl-nolibm-tests: Likewise.
32465         * modules/frexpl-tests: Likewise.
32466         * modules/getaddrinfo-tests: Likewise.
32467         * modules/inttypes-tests: Likewise.
32468         * modules/isfinite-tests: Likewise.
32469         * modules/isinf-tests: Likewise.
32470         * modules/ldexpl-tests: Likewise.
32471         * modules/locale-tests: Likewise.
32472         * modules/math-tests: Likewise.
32473         * modules/netdb-tests: Likewise.
32474         * modules/netinet_in-tests: Likewise.
32475         * modules/printf-frexp-tests: Likewise.
32476         * modules/printf-frexpl-tests: Likewise.
32477         * modules/priv-set-tests: Likewise.
32478         * modules/random_r-tests: Likewise.
32479         * modules/round-tests: Likewise.
32480         * modules/roundf-tests: Likewise.
32481         * modules/roundl-tests: Likewise.
32482         * modules/search-tests: Likewise.
32483         * modules/select-tests: Likewise.
32484         * modules/signal-tests: Likewise.
32485         * modules/stdbool-tests: Likewise.
32486         * modules/stddef-tests: Likewise.
32487         * modules/stdint-tests: Likewise.
32488         * modules/stdio-tests: Likewise.
32489         * modules/stdlib-tests: Likewise.
32490         * modules/string-tests: Likewise.
32491         * modules/strings-tests: Likewise.
32492         * modules/sys_select-tests: Likewise.
32493         * modules/sys_socket-tests: Likewise.
32494         * modules/sys_stat-tests: Likewise.
32495         * modules/sys_time-tests: Likewise.
32496         * modules/sys_utsname-tests: Likewise.
32497         * modules/sysexits-tests: Likewise.
32498         * modules/time-tests: Likewise.
32499         * modules/trunc-tests: Likewise.
32500         * modules/truncf-tests: Likewise.
32501         * modules/truncl-tests: Likewise.
32502         * modules/tsearch-tests: Likewise.
32503         * modules/unistd-tests: Likewise.
32504         * modules/wchar-tests: Likewise.
32505         * modules/wctype-tests: Likewise.
32506
32507         tests: fix license on several tests
32508         * tests/test-des.c: Update to GPLv3+.
32509         * tests/test-flock.c: Likewise.
32510         * tests/test-fsync.c: Likewise.
32511         * tests/test-futimens.h: Likewise.
32512         * tests/test-gc-arcfour.c: Likewise.
32513         * tests/test-gc-arctwo.c: Likewise.
32514         * tests/test-gc-des.c: Likewise.
32515         * tests/test-gc-hmac-md5.c: Likewise.
32516         * tests/test-gc-hmac-sha1.c: Likewise.
32517         * tests/test-gc-md2.c: Likewise.
32518         * tests/test-gc-md4.c: Likewise.
32519         * tests/test-gc-md5.c: Likewise.
32520         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32521         * tests/test-gc-rijndael.c: Likewise.
32522         * tests/test-gc-sha1.c: Likewise.
32523         * tests/test-gc.c: Likewise.
32524         * tests/test-getcwd.c: Likewise.
32525         * tests/test-link.c: Likewise.
32526         * tests/test-link.h: Likewise.
32527         * tests/test-lutimens.h: Likewise.
32528         * tests/test-md2.c: Likewise.
32529         * tests/test-md4.c: Likewise.
32530         * tests/test-mkdir.h: Likewise.
32531         * tests/test-rename.c: Likewise.
32532         * tests/test-rename.h: Likewise.
32533         * tests/test-safe-alloc.c: Likewise.
32534         * tests/test-utimens-common.h: Likewise.
32535         * tests/test-utimens.h: Likewise.
32536
32537         maint: sync license texts
32538         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32539         * doc/gpl-3.0.texi: Revert copyright year update.
32540         * doc/lgpl-3.0.texi: Likewise.
32541
32542 2009-12-29  Jim Meyering  <meyering@redhat.com>
32543
32544         update nearly all FSF copyright year lists to include 2009
32545         The files named by the following are exempted:
32546             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32547               test -f "$dst" && { echo "$dst"; continue; }
32548               test -d "$dst" || continue
32549               echo "$dst"/$(basename "$src")
32550             done > exempt
32551             git ls-files tests/unictype >> exempt
32552         In the remaining files, convert to all-interval notation if
32553         - there is already at least one year interval like 2000-2003
32554         - the file is maintained by me
32555         - the file is in lib/uni*/, where that style already prevails
32556         Otherwise, use update-copyright's default.
32557
32558 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32559         and Eric Blake  <ebb9@byu.net>
32560
32561         tests: don't require debug system() to pass
32562         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32563         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32564         * tests/test-unlink.h (test_unlink_func): Likewise.
32565         * tests/test-fstatat.c (main): ...into callers.
32566         * tests/test-lstat.c (main): Likewise.
32567         * tests/test-rmdir.c (main): Likewise.
32568         * tests/test-unlink.c (main): Likewise.
32569         * tests/test-unlinkat.c (main): Likewise.
32570         * tests/test-areadlink-with-size.c (main): Don't require a
32571         debug-only system call to pass, aiding cross-testing to mingw.
32572         * tests/test-areadlink.c (main): Likewise.
32573         * tests/test-areadlinkat-with-size.c (main): Likewise.
32574         * tests/test-areadlinkat.c (main): Likewise.
32575         * tests/test-canonicalize-lgpl.c (main): Likewise.
32576         * tests/test-canonicalize.c (main): Likewise.
32577         * tests/test-chown.c (main): Likewise.
32578         * tests/test-fchownat.c (main): Likewise.
32579         * tests/test-lchown.c (main): Likewise.
32580         * tests/test-fdutimensat.c (main): Likewise.
32581         * tests/test-futimens.c (main): Likewise.
32582         * tests/test-link.c (main): Likewise.
32583         * tests/test-linkat.c (main): Likewise.
32584         * tests/test-mkdir.c (main): Likewise.
32585         * tests/test-mkdirat.c (main): Likewise.
32586         * tests/test-mkfifo.c (main): Likewise.
32587         * tests/test-mkfifoat.c (main): Likewise.
32588         * tests/test-mknod.c (main): Likewise.
32589         * tests/test-readlink.c (main): Likewise.
32590         * tests/test-remove.c (main): Likewise.
32591         * tests/test-rename.c (main): Likewise.
32592         * tests/test-renameat.c (main): Likewise.
32593         * tests/test-symlink.c (main): Likewise.
32594         * tests/test-symlinkat.c (main): Likewise.
32595         * tests/test-utimens.c (main): Likewise.
32596         * tests/test-utimensat.c (main): Likewise.
32597
32598 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32599
32600         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32601         on $(UNUSED_PARAMETER_H) to avoid build failure.
32602
32603 2009-12-28  Jim Meyering  <meyering@redhat.com>
32604
32605         update-copyright: you may specify a max. line length other than 72
32606         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32607
32608         maint: use consistent FSF copyright line syntax
32609         * lib/posixtm.c: Add missing comma in FSF copyright line.
32610         * lib/posixtm.h: Likewise.
32611         * lib/getugroups.c: Add missing ", Inc.".
32612
32613         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32614         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32615         FSF copyright line.  Remove trailing blanks.
32616
32617 2009-12-28  Eric Blake  <ebb9@byu.net>
32618
32619         test-dup2: reduce dependencies
32620         * modules/cloexec (Configure.ac): Set witness.
32621         * modules/dup2-tests (Depends-on): Drop cloexec.
32622         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32623         not present.
32624         Suggested by Bruno Haible.
32625
32626 2009-12-26  Bruno Haible  <bruno@clisp.org>
32627
32628         Remove an unneeded dependency.
32629         * modules/fseterr (Depends-on): Remove dup2.
32630
32631 2009-12-26  Eric Blake  <ebb9@byu.net>
32632
32633         tests: use macros.h in more places
32634         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32635         (ASSERT_STREAM): Provide default of stderr.
32636         * tests/test-dirent-safer.c: Include macros.h, using alternate
32637         stream for assertions.
32638         * tests/test-dup-safer.c: Likewise.
32639         * tests/test-freopen-safer.c: Likewise.
32640         * tests/test-getopt.c: Likewise.
32641         * tests/test-openat-safer.c: Likewise.
32642         * tests/test-pipe.c: Likewise.
32643         * tests/test-popen-safer.c: Likewise.
32644         * modules/dirent-safer-tests (Files): Include macros.h.
32645         * modules/unistd-safer-tests (Files): Likewise.
32646         * modules/freopen-safer-tests (Files): Likewise.
32647         * modules/getopt-posix-tests (Files): Likewise.
32648         * modules/openat-safer-tests (Files): Likewise.
32649         * modules/pipe-tests (Files): Likewise.
32650
32651 2009-12-26  Bruno Haible  <bruno@clisp.org>
32652
32653         javacomp: Portability fix.
32654         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32655         that it also works on Solaris.
32656
32657 2009-12-26  Bruno Haible  <bruno@clisp.org>
32658
32659         localename: Fix storage allocation of gl_locale_name_thread's result.
32660         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32661         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32662         all platforms that have 'uselocale'.
32663         (gl_locale_name_thread_unsafe): New function, extracted from
32664         gl_locale_name_thread.
32665         (gl_locale_name_thread): Call struniq on all platforms that have
32666         'uselocale'.
32667         * tests/test-localename.c (test_locale_name_thread): Check that the
32668         resulting strings are permanently allocated.
32669         * modules/localename-tests (Depends-on): Add strdup.
32670
32671 2009-12-26  Bruno Haible  <bruno@clisp.org>
32672
32673         * tests/test-localename.c (categories): Fill in the strings.
32674
32675 2009-12-26  Jim Meyering  <meyering@redhat.com>
32676
32677         isdir: complete the removal of m4/isdir.m4
32678         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32679
32680         isdir: clean up, since at least grep still uses it
32681         * lib/isdir.c: Include "isdir.h".
32682         (S_ISDIR): Remove now-unneeded definition.
32683         * modules/isdir (Files): Add lib/isdir.h.
32684         * lib/isdir.h: New file, with declaration.
32685         * m4/isdir.m4: Remove file -- unneeded.
32686
32687 2009-12-25  Bruno Haible  <bruno@clisp.org>
32688
32689         selinux-h: Make generated .h files standalone.
32690         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32691         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32692         * lib/se-selinux.in.h: Likewise.
32693         * modules/selinux-h (Depends-on): Add unused-parameter.
32694         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32695         selinux/selinux.h and selinux/context.h.
32696         Suggested by Eric Blake.
32697
32698 2009-12-25  Bruno Haible  <bruno@clisp.org>
32699
32700         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32701         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32702         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32703         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32704         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32705
32706 2009-12-24  Bruno Haible  <bruno@clisp.org>
32707
32708         openat: Fix warning.
32709         * lib/openat-proc.c: Include <unistd.h>.
32710
32711 2009-12-24  Bruno Haible  <bruno@clisp.org>
32712
32713         New module 'unused-parameter'.
32714         * build-aux/unused-parameter.h: New file, extracted from earlier
32715         gnulib-common.m4.
32716         * modules/unused-parameter: New file.
32717         * lib/unistr.h: Include unused-parameter.h.
32718         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32719         _GL_UNUSED.
32720         * modules/unistr/base (Depends-on): Add unused-parameter.
32721
32722 2009-12-24  Bruno Haible  <bruno@clisp.org>
32723
32724         Add missing dependencies to 'extensions' module.
32725         * m4/extensions.m4: Add comment.
32726         * modules/accept4 (Depends-on): Add extensions.
32727         * modules/dup3 (Depends-on): Likewise.
32728         * modules/fcntl (Depends-on): Likewise.
32729         * modules/futimens (Depends-on): Likewise.
32730         * modules/mknod (Depends-on): Likewise.
32731         * modules/pipe2 (Depends-on): Likewise.
32732         * modules/stat-time (Depends-on): Likewise.
32733         * modules/strcasestr-simple (Depends-on): Likewise.
32734         * modules/strsignal (Depends-on): Likewise.
32735         * modules/utimensat (Depends-on): Likewise.
32736         * modules/localcharset (Depends-on): Likewise. Needed because of
32737         gl_FCNTL_O_FLAGS.
32738         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32739         AC_TYPE_MBSTATE_T.
32740         * modules/wcsnrtombs (Depends-on): Likewise.
32741         * modules/wcsrtombs (Depends-on): Likewise.
32742
32743 2009-12-24  Bruno Haible  <bruno@clisp.org>
32744
32745         binary-io: Avoid gcc warning due to SET_BINARY.
32746         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32747         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32748
32749 2009-12-24  Bruno Haible  <bruno@clisp.org>
32750
32751         Avoid future namespace pollution on glibc systems.
32752         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32753         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32754         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32755         glibc systems.
32756
32757 2009-12-24  Bruno Haible  <bruno@clisp.org>
32758
32759         Refactor common macros used in tests.
32760         * tests/macros.h: New file.
32761         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32762         and/or <stdlib.h>, if appropriate.
32763         (ASSERT, SIZEOF): Remove macros.
32764         * tests/test-areadlink-with-size.c: Likewise.
32765         * tests/test-areadlinkat.c: Likewise.
32766         * tests/test-areadlinkat-with-size.c: Likewise.
32767         * tests/test-argmatch.c: Likewise.
32768         * tests/test-argv-iter.c: Likewise.
32769         * tests/test-array-mergesort.c: Likewise.
32770         * tests/test-array_list.c: Likewise.
32771         * tests/test-array_oset.c: Likewise.
32772         * tests/test-avltree_list.c: Likewise.
32773         * tests/test-avltree_oset.c: Likewise.
32774         * tests/test-avltreehash_list.c: Likewise.
32775         * tests/test-base64.c: Likewise.
32776         * tests/test-binary-io.c: Likewise.
32777         * tests/test-bitrotate.c: Likewise.
32778         * tests/test-btowc.c: Likewise.
32779         * tests/test-byteswap.c: Likewise.
32780         * tests/test-c-ctype.c: Likewise.
32781         * tests/test-c-stack.c: Likewise.
32782         * tests/test-c-strcasecmp.c: Likewise.
32783         * tests/test-c-strcasestr.c: Likewise.
32784         * tests/test-c-strncasecmp.c: Likewise.
32785         * tests/test-c-strstr.c: Likewise.
32786         * tests/test-canonicalize-lgpl.c: Likewise.
32787         * tests/test-canonicalize.c: Likewise.
32788         * tests/test-carray_list.c: Likewise.
32789         * tests/test-ceilf1.c: Likewise.
32790         * tests/test-ceilf2.c: Likewise.
32791         * tests/test-ceill.c: Likewise.
32792         * tests/test-chown.c: Likewise.
32793         * tests/test-cloexec.c: Likewise.
32794         * tests/test-copy-acl.c: Likewise.
32795         * tests/test-copy-file.c: Likewise.
32796         * tests/test-count-one-bits.c: Likewise.
32797         * tests/test-dprintf-posix.c: Likewise.
32798         * tests/test-dup2.c: Likewise.
32799         * tests/test-dup3.c: Likewise.
32800         * tests/test-duplocale.c: Likewise.
32801         * tests/test-fbufmode.c: Likewise.
32802         * tests/test-fchdir.c: Likewise.
32803         * tests/test-fchownat.c: Likewise.
32804         * tests/test-fcntl-safer.c: Likewise.
32805         * tests/test-fcntl.c: Likewise.
32806         * tests/test-fdopendir.c: Likewise.
32807         * tests/test-fdutimensat.c: Likewise.
32808         * tests/test-fflush2.c: Likewise.
32809         * tests/test-file-has-acl.c: Likewise.
32810         * tests/test-filevercmp.c: Likewise.
32811         * tests/test-flock.c: Likewise.
32812         * tests/test-floorf1.c: Likewise.
32813         * tests/test-floorf2.c: Likewise.
32814         * tests/test-floorl.c: Likewise.
32815         * tests/test-fnmatch.c: Likewise.
32816         * tests/test-fopen.h: Likewise.
32817         * tests/test-fpending.c: Likewise.
32818         * tests/test-fprintf-posix.c: Likewise.
32819         * tests/test-fpurge.c: Likewise.
32820         * tests/test-freadable.c: Likewise.
32821         * tests/test-freadahead.c: Likewise.
32822         * tests/test-freading.c: Likewise.
32823         * tests/test-freadptr.c: Likewise.
32824         * tests/test-freadptr2.c: Likewise.
32825         * tests/test-freadseek.c: Likewise.
32826         * tests/test-freopen.c: Likewise.
32827         * tests/test-frexp.c: Likewise.
32828         * tests/test-frexpl.c: Likewise.
32829         * tests/test-fseek.c: Likewise.
32830         * tests/test-fseeko.c: Likewise.
32831         * tests/test-fstatat.c: Likewise.
32832         * tests/test-fstrcmp.c: Likewise.
32833         * tests/test-fsync.c: Likewise.
32834         * tests/test-ftell.c: Likewise.
32835         * tests/test-ftello.c: Likewise.
32836         * tests/test-func.c: Likewise.
32837         * tests/test-futimens.c: Likewise.
32838         * tests/test-fwritable.c: Likewise.
32839         * tests/test-fwriting.c: Likewise.
32840         * tests/test-getcwd.c: Likewise.
32841         * tests/test-getdate.c: Likewise.
32842         * tests/test-getdelim.c: Likewise.
32843         * tests/test-getdtablesize.c: Likewise.
32844         * tests/test-getgroups.c: Likewise.
32845         * tests/test-getline.c: Likewise.
32846         * tests/test-getndelim2.c: Likewise.
32847         * tests/test-glob.c: Likewise.
32848         * tests/test-hash.c: Likewise.
32849         * tests/test-i-ring.c: Likewise.
32850         * tests/test-iconv-utf.c: Likewise.
32851         * tests/test-iconv.c: Likewise.
32852         * tests/test-idpriv-drop.c: Likewise.
32853         * tests/test-idpriv-droptemp.c: Likewise.
32854         * tests/test-inet_ntop.c: Likewise.
32855         * tests/test-inet_pton.c: Likewise.
32856         * tests/test-isblank.c: Likewise.
32857         * tests/test-isfinite.c: Likewise.
32858         * tests/test-isinf.c: Likewise.
32859         * tests/test-isnan.c: Likewise.
32860         * tests/test-isnand.h: Likewise.
32861         * tests/test-isnanf.h: Likewise.
32862         * tests/test-isnanl.h: Likewise.
32863         * tests/test-lchown.c: Likewise.
32864         * tests/test-ldexpl.c: Likewise.
32865         * tests/test-link.c: Likewise.
32866         * tests/test-linkat.c: Likewise.
32867         * tests/test-linked_list.c: Likewise.
32868         * tests/test-linkedhash_list.c: Likewise.
32869         * tests/test-localename.c: Likewise.
32870         * tests/test-lseek.c: Likewise.
32871         * tests/test-lstat.c: Likewise.
32872         * tests/test-mbmemcasecmp.c: Likewise.
32873         * tests/test-mbmemcasecoll.c: Likewise.
32874         * tests/test-mbrtowc.c: Likewise.
32875         * tests/test-mbscasecmp.c: Likewise.
32876         * tests/test-mbscasestr1.c: Likewise.
32877         * tests/test-mbscasestr2.c: Likewise.
32878         * tests/test-mbscasestr3.c: Likewise.
32879         * tests/test-mbscasestr4.c: Likewise.
32880         * tests/test-mbschr.c: Likewise.
32881         * tests/test-mbscspn.c: Likewise.
32882         * tests/test-mbsinit.c: Likewise.
32883         * tests/test-mbsncasecmp.c: Likewise.
32884         * tests/test-mbsnrtowcs.c: Likewise.
32885         * tests/test-mbspbrk.c: Likewise.
32886         * tests/test-mbspcasecmp.c: Likewise.
32887         * tests/test-mbsrchr.c: Likewise.
32888         * tests/test-mbsrtowcs.c: Likewise.
32889         * tests/test-mbsspn.c: Likewise.
32890         * tests/test-mbsstr1.c: Likewise.
32891         * tests/test-mbsstr2.c: Likewise.
32892         * tests/test-mbsstr3.c: Likewise.
32893         * tests/test-memchr.c: Likewise.
32894         * tests/test-memchr2.c: Likewise.
32895         * tests/test-memcmp.c: Likewise.
32896         * tests/test-memmem.c: Likewise.
32897         * tests/test-memrchr.c: Likewise.
32898         * tests/test-mkdir.c: Likewise.
32899         * tests/test-mkdirat.c: Likewise.
32900         * tests/test-mkfifo.c: Likewise.
32901         * tests/test-mkfifoat.c: Likewise.
32902         * tests/test-mknod.c: Likewise.
32903         * tests/test-nanosleep.c: Likewise.
32904         * tests/test-nl_langinfo.c: Likewise.
32905         * tests/test-obstack-printf.c: Likewise.
32906         * tests/test-open.c: Likewise.
32907         * tests/test-openat.c: Likewise.
32908         * tests/test-pipe-filter-gi1.c: Likewise.
32909         * tests/test-pipe-filter-gi2-main.c: Likewise.
32910         * tests/test-pipe-filter-ii1.c: Likewise.
32911         * tests/test-pipe-filter-ii2-main.c: Likewise.
32912         * tests/test-pipe2.c: Likewise.
32913         * tests/test-popen.h: Likewise.
32914         * tests/test-posixtm.c: Likewise.
32915         * tests/test-pread.c: Likewise.
32916         * tests/test-printf-frexp.c: Likewise.
32917         * tests/test-printf-frexpl.c: Likewise.
32918         * tests/test-printf-posix.c: Likewise.
32919         * tests/test-priv-set.c: Likewise.
32920         * tests/test-quotearg.c: Likewise.
32921         * tests/test-random_r.c: Likewise.
32922         * tests/test-rawmemchr.c: Likewise.
32923         * tests/test-rbtree_list.c: Likewise.
32924         * tests/test-rbtree_oset.c: Likewise.
32925         * tests/test-rbtreehash_list.c: Likewise.
32926         * tests/test-readlink.c: Likewise.
32927         * tests/test-remove.c: Likewise.
32928         * tests/test-rename.c: Likewise.
32929         * tests/test-renameat.c: Likewise.
32930         * tests/test-rmdir.c: Likewise.
32931         * tests/test-round1.c: Likewise.
32932         * tests/test-roundf1.c: Likewise.
32933         * tests/test-roundl.c: Likewise.
32934         * tests/test-safe-alloc.c: Likewise.
32935         * tests/test-sameacls.c: Likewise.
32936         * tests/test-set-mode-acl.c: Likewise.
32937         * tests/test-setenv.c: Likewise.
32938         * tests/test-sigaction.c: Likewise.
32939         * tests/test-signbit.c: Likewise.
32940         * tests/test-sleep.c: Likewise.
32941         * tests/test-snprintf-posix.c: Likewise.
32942         * tests/test-snprintf.c: Likewise.
32943         * tests/test-sprintf-posix.c: Likewise.
32944         * tests/test-stat-time.c: Likewise.
32945         * tests/test-stat.c: Likewise.
32946         * tests/test-strcasestr.c: Likewise.
32947         * tests/test-strchrnul.c: Likewise.
32948         * tests/test-strerror.c: Likewise.
32949         * tests/test-striconv.c: Likewise.
32950         * tests/test-striconveh.c: Likewise.
32951         * tests/test-striconveha.c: Likewise.
32952         * tests/test-strsignal.c: Likewise.
32953         * tests/test-strstr.c: Likewise.
32954         * tests/test-strtod.c: Likewise.
32955         * tests/test-strverscmp.c: Likewise.
32956         * tests/test-symlink.c: Likewise.
32957         * tests/test-symlinkat.c: Likewise.
32958         * tests/test-trunc1.c: Likewise.
32959         * tests/test-trunc2.c: Likewise.
32960         * tests/test-truncf1.c: Likewise.
32961         * tests/test-truncf2.c: Likewise.
32962         * tests/test-truncl.c: Likewise.
32963         * tests/test-uname.c: Likewise.
32964         * tests/test-unlink.c: Likewise.
32965         * tests/test-unlinkat.c: Likewise.
32966         * tests/test-unsetenv.c: Likewise.
32967         * tests/test-usleep.c: Likewise.
32968         * tests/test-utimens.c: Likewise.
32969         * tests/test-utimensat.c: Likewise.
32970         * tests/test-vasnprintf-posix.c: Likewise.
32971         * tests/test-vasnprintf-posix2.c: Likewise.
32972         * tests/test-vasnprintf.c: Likewise.
32973         * tests/test-vasprintf-posix.c: Likewise.
32974         * tests/test-vasprintf.c: Likewise.
32975         * tests/test-vdprintf-posix.c: Likewise.
32976         * tests/test-vfprintf-posix.c: Likewise.
32977         * tests/test-vprintf-posix.c: Likewise.
32978         * tests/test-vsnprintf-posix.c: Likewise.
32979         * tests/test-vsnprintf.c: Likewise.
32980         * tests/test-vsprintf-posix.c: Likewise.
32981         * tests/test-wcrtomb.c: Likewise.
32982         * tests/test-wcsnrtombs.c: Likewise.
32983         * tests/test-wcsrtombs.c: Likewise.
32984         * tests/test-wctype.c: Likewise.
32985         * tests/test-wcwidth.c: Likewise.
32986         * tests/test-xfprintf-posix.c: Likewise.
32987         * tests/test-xmemdup0.c: Likewise.
32988         * tests/test-xprintf-posix.c: Likewise.
32989         * tests/test-xvasprintf.c: Likewise.
32990         * tests/unicase/test-locale-language.c: Likewise.
32991         * tests/unicase/test-mapping-part1.h: Likewise.
32992         * tests/unicase/test-predicate-part1.h: Likewise.
32993         * tests/unicase/test-u8-casecmp.c: Likewise.
32994         * tests/unicase/test-u8-casecoll.c: Likewise.
32995         * tests/unicase/test-u8-casefold.c: Likewise.
32996         * tests/unicase/test-u8-is-cased.c: Likewise.
32997         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32998         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32999         * tests/unicase/test-u8-is-titlecase.c: Likewise.
33000         * tests/unicase/test-u8-is-uppercase.c: Likewise.
33001         * tests/unicase/test-u8-tolower.c: Likewise.
33002         * tests/unicase/test-u8-totitle.c: Likewise.
33003         * tests/unicase/test-u8-toupper.c: Likewise.
33004         * tests/unicase/test-u16-casecmp.c: Likewise.
33005         * tests/unicase/test-u16-casecoll.c: Likewise.
33006         * tests/unicase/test-u16-casefold.c: Likewise.
33007         * tests/unicase/test-u16-is-cased.c: Likewise.
33008         * tests/unicase/test-u16-is-casefolded.c: Likewise.
33009         * tests/unicase/test-u16-is-lowercase.c: Likewise.
33010         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33011         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33012         * tests/unicase/test-u16-tolower.c: Likewise.
33013         * tests/unicase/test-u16-totitle.c: Likewise.
33014         * tests/unicase/test-u16-toupper.c: Likewise.
33015         * tests/unicase/test-u32-casecmp.c: Likewise.
33016         * tests/unicase/test-u32-casecoll.c: Likewise.
33017         * tests/unicase/test-u32-casefold.c: Likewise.
33018         * tests/unicase/test-u32-is-cased.c: Likewise.
33019         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33020         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33021         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33022         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33023         * tests/unicase/test-u32-tolower.c: Likewise.
33024         * tests/unicase/test-u32-totitle.c: Likewise.
33025         * tests/unicase/test-u32-toupper.c: Likewise.
33026         * tests/unicase/test-ulc-casecmp.c: Likewise.
33027         * tests/unicase/test-ulc-casecoll.c: Likewise.
33028         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33029         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33030         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33031         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33032         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33033         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33034         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33035         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33036         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33037         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33038         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33039         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33040         * tests/unictype/test-bidi_byname.c: Likewise.
33041         * tests/unictype/test-bidi_name.c: Likewise.
33042         * tests/unictype/test-bidi_of.c: Likewise.
33043         * tests/unictype/test-bidi_test.c: Likewise.
33044         * tests/unictype/test-block_list.c: Likewise.
33045         * tests/unictype/test-block_of.c: Likewise.
33046         * tests/unictype/test-block_test.c: Likewise.
33047         * tests/unictype/test-categ_and.c: Likewise.
33048         * tests/unictype/test-categ_and_not.c: Likewise.
33049         * tests/unictype/test-categ_byname.c: Likewise.
33050         * tests/unictype/test-categ_name.c: Likewise.
33051         * tests/unictype/test-categ_none.c: Likewise.
33052         * tests/unictype/test-categ_of.c: Likewise.
33053         * tests/unictype/test-categ_or.c: Likewise.
33054         * tests/unictype/test-categ_test_withtable.c: Likewise.
33055         * tests/unictype/test-combining.c: Likewise.
33056         * tests/unictype/test-decdigit.c: Likewise.
33057         * tests/unictype/test-digit.c: Likewise.
33058         * tests/unictype/test-mirror.c: Likewise.
33059         * tests/unictype/test-numeric.c: Likewise.
33060         * tests/unictype/test-pr_byname.c: Likewise.
33061         * tests/unictype/test-pr_test.c: Likewise.
33062         * tests/unictype/test-predicate-part1.h: Likewise.
33063         * tests/unictype/test-scripts.c: Likewise.
33064         * tests/unictype/test-sy_c_ident.c: Likewise.
33065         * tests/unictype/test-sy_java_ident.c: Likewise.
33066         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33067         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33068         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33069         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33070         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33071         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33072         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33073         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33074         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33075         * tests/uninorm/test-compat-decomposition.c: Likewise.
33076         * tests/uninorm/test-composition.c: Likewise.
33077         * tests/uninorm/test-decomposing-form.c: Likewise.
33078         * tests/uninorm/test-decomposition.c: Likewise.
33079         * tests/uninorm/test-u8-nfc.c: Likewise.
33080         * tests/uninorm/test-u8-nfd.c: Likewise.
33081         * tests/uninorm/test-u8-nfkc.c: Likewise.
33082         * tests/uninorm/test-u8-nfkd.c: Likewise.
33083         * tests/uninorm/test-u8-normcmp.c: Likewise.
33084         * tests/uninorm/test-u8-normcoll.c: Likewise.
33085         * tests/uninorm/test-u16-nfc.c: Likewise.
33086         * tests/uninorm/test-u16-nfd.c: Likewise.
33087         * tests/uninorm/test-u16-nfkc.c: Likewise.
33088         * tests/uninorm/test-u16-nfkd.c: Likewise.
33089         * tests/uninorm/test-u16-normcmp.c: Likewise.
33090         * tests/uninorm/test-u16-normcoll.c: Likewise.
33091         * tests/uninorm/test-u32-nfc.c: Likewise.
33092         * tests/uninorm/test-u32-nfd.c: Likewise.
33093         * tests/uninorm/test-u32-nfkc.c: Likewise.
33094         * tests/uninorm/test-u32-nfkd.c: Likewise.
33095         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33096         * tests/uninorm/test-u32-normcmp.c: Likewise.
33097         * tests/uninorm/test-u32-normcoll.c: Likewise.
33098         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33099         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33100         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33101         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33102         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33103         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33104         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33105         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33106         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33107         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33108         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33109         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33110         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33111         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33112         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33113         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33114         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33115         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33116         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33117         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33118         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33119         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33120         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33121         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33122         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33123         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33124         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33125         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33126         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33127         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33128         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33129         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33130         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33131         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33132         * tests/uniwidth/test-u8-width.c: Likewise.
33133         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33134         * tests/uniwidth/test-u16-width.c: Likewise.
33135         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33136         * tests/uniwidth/test-u32-width.c: Likewise.
33137         * tests/uniwidth/test-uc_width.c: Likewise.
33138         * tests/uniwidth/test-uc_width2.c: Likewise.
33139         * modules/acl-tests (Files): Add tests/macros.h.
33140         * modules/areadlink-tests (Files): Likewise.
33141         * modules/areadlink-with-size-tests (Files): Likewise.
33142         * modules/areadlinkat-tests (Files): Likewise.
33143         * modules/areadlinkat-with-size-tests (Files): Likewise.
33144         * modules/argmatch-tests (Files): Likewise.
33145         * modules/argv-iter-tests (Files): Likewise.
33146         * modules/array-list-tests (Files): Likewise.
33147         * modules/array-mergesort-tests (Files): Likewise.
33148         * modules/array-oset-tests (Files): Likewise.
33149         * modules/avltree-list-tests (Files): Likewise.
33150         * modules/avltree-oset-tests (Files): Likewise.
33151         * modules/avltreehash-list-tests (Files): Likewise.
33152         * modules/base64-tests (Files): Likewise.
33153         * modules/binary-io-tests (Files): Likewise.
33154         * modules/bitrotate-tests (Files): Likewise.
33155         * modules/btowc-tests (Files): Likewise.
33156         * modules/byteswap-tests (Files): Likewise.
33157         * modules/c-ctype-tests (Files): Likewise.
33158         * modules/c-stack-tests (Files): Likewise.
33159         * modules/c-strcase-tests (Files): Likewise.
33160         * modules/c-strcasestr-tests (Files): Likewise.
33161         * modules/c-strstr-tests (Files): Likewise.
33162         * modules/canonicalize-lgpl-tests (Files): Likewise.
33163         * modules/canonicalize-tests (Files): Likewise.
33164         * modules/carray-list-tests (Files): Likewise.
33165         * modules/ceilf-tests (Files): Likewise.
33166         * modules/ceill-tests (Files): Likewise.
33167         * modules/chown-tests (Files): Likewise.
33168         * modules/cloexec-tests (Files): Likewise.
33169         * modules/copy-file-tests (Files): Likewise.
33170         * modules/count-one-bits-tests (Files): Likewise.
33171         * modules/dprintf-posix-tests (Files): Likewise.
33172         * modules/dup2-tests (Files): Likewise.
33173         * modules/dup3-tests (Files): Likewise.
33174         * modules/duplocale-tests (Files): Likewise.
33175         * modules/fbufmode-tests (Files): Likewise.
33176         * modules/fchdir-tests (Files): Likewise.
33177         * modules/fcntl-safer-tests (Files): Likewise.
33178         * modules/fcntl-tests (Files): Likewise.
33179         * modules/fdopendir-tests (Files): Likewise.
33180         * modules/fdutimensat-tests (Files): Likewise.
33181         * modules/fflush-tests (Files): Likewise.
33182         * modules/filevercmp-tests (Files): Likewise.
33183         * modules/flock-tests (Files): Likewise.
33184         * modules/floorf-tests (Files): Likewise.
33185         * modules/floorl-tests (Files): Likewise.
33186         * modules/fnmatch-tests (Files): Likewise.
33187         * modules/fopen-safer-tests (Files): Likewise.
33188         * modules/fopen-tests (Files): Likewise.
33189         * modules/fpending-tests (Files): Likewise.
33190         * modules/fprintf-posix-tests (Files): Likewise.
33191         * modules/fpurge-tests (Files): Likewise.
33192         * modules/freadable-tests (Files): Likewise.
33193         * modules/freadahead-tests (Files): Likewise.
33194         * modules/freading-tests (Files): Likewise.
33195         * modules/freadptr-tests (Files): Likewise.
33196         * modules/freadseek-tests (Files): Likewise.
33197         * modules/freopen-tests (Files): Likewise.
33198         * modules/frexp-nolibm-tests (Files): Likewise.
33199         * modules/frexp-tests (Files): Likewise.
33200         * modules/frexpl-nolibm-tests (Files): Likewise.
33201         * modules/frexpl-tests (Files): Likewise.
33202         * modules/fseek-tests (Files): Likewise.
33203         * modules/fseeko-tests (Files): Likewise.
33204         * modules/fstrcmp-tests (Files): Likewise.
33205         * modules/fsync-tests (Files): Likewise.
33206         * modules/ftell-tests (Files): Likewise.
33207         * modules/ftello-tests (Files): Likewise.
33208         * modules/func-tests (Files): Likewise.
33209         * modules/futimens-tests (Files): Likewise.
33210         * modules/fwritable-tests (Files): Likewise.
33211         * modules/fwriting-tests (Files): Likewise.
33212         * modules/getcwd-tests (Files): Likewise.
33213         * modules/getdate-tests (Files): Likewise.
33214         * modules/getdelim-tests (Files): Likewise.
33215         * modules/getdtablesize-tests (Files): Likewise.
33216         * modules/getgroups-tests (Files): Likewise.
33217         * modules/getline-tests (Files): Likewise.
33218         * modules/getndelim2-tests (Files): Likewise.
33219         * modules/glob-tests (Files): Likewise.
33220         * modules/hash-tests (Files): Likewise.
33221         * modules/i-ring-tests (Files): Likewise.
33222         * modules/iconv-tests (Files): Likewise.
33223         * modules/iconv_open-utf-tests (Files): Likewise.
33224         * modules/idpriv-drop-tests (Files): Likewise.
33225         * modules/idpriv-droptemp-tests (Files): Likewise.
33226         * modules/inet_ntop-tests (Files): Likewise.
33227         * modules/inet_pton-tests (Files): Likewise.
33228         * modules/isblank-tests (Files): Likewise.
33229         * modules/isfinite-tests (Files): Likewise.
33230         * modules/isinf-tests (Files): Likewise.
33231         * modules/isnan-tests (Files): Likewise.
33232         * modules/isnand-nolibm-tests (Files): Likewise.
33233         * modules/isnand-tests (Files): Likewise.
33234         * modules/isnanf-nolibm-tests (Files): Likewise.
33235         * modules/isnanf-tests (Files): Likewise.
33236         * modules/isnanl-nolibm-tests (Files): Likewise.
33237         * modules/isnanl-tests (Files): Likewise.
33238         * modules/lchown-tests (Files): Likewise.
33239         * modules/ldexpl-tests (Files): Likewise.
33240         * modules/link-tests (Files): Likewise.
33241         * modules/linkat-tests (Files): Likewise.
33242         * modules/linked-list-tests (Files): Likewise.
33243         * modules/linkedhash-list-tests (Files): Likewise.
33244         * modules/localename-tests (Files): Likewise.
33245         * modules/lseek-tests (Files): Likewise.
33246         * modules/lstat-tests (Files): Likewise.
33247         * modules/mbmemcasecmp-tests (Files): Likewise.
33248         * modules/mbmemcasecoll-tests (Files): Likewise.
33249         * modules/mbrtowc-tests (Files): Likewise.
33250         * modules/mbscasecmp-tests (Files): Likewise.
33251         * modules/mbscasestr-tests (Files): Likewise.
33252         * modules/mbschr-tests (Files): Likewise.
33253         * modules/mbscspn-tests (Files): Likewise.
33254         * modules/mbsinit-tests (Files): Likewise.
33255         * modules/mbsncasecmp-tests (Files): Likewise.
33256         * modules/mbsnrtowcs-tests (Files): Likewise.
33257         * modules/mbspbrk-tests (Files): Likewise.
33258         * modules/mbspcasecmp-tests (Files): Likewise.
33259         * modules/mbsrchr-tests (Files): Likewise.
33260         * modules/mbsrtowcs-tests (Files): Likewise.
33261         * modules/mbsspn-tests (Files): Likewise.
33262         * modules/mbsstr-tests (Files): Likewise.
33263         * modules/memchr-tests (Files): Likewise.
33264         * modules/memchr2-tests (Files): Likewise.
33265         * modules/memcmp-tests (Files): Likewise.
33266         * modules/memmem-tests (Files): Likewise.
33267         * modules/memrchr-tests (Files): Likewise.
33268         * modules/mkdir-tests (Files): Likewise.
33269         * modules/mkfifo-tests (Files): Likewise.
33270         * modules/mkfifoat-tests (Files): Likewise.
33271         * modules/mknod-tests (Files): Likewise.
33272         * modules/nanosleep-tests (Files): Likewise.
33273         * modules/nl_langinfo-tests (Files): Likewise.
33274         * modules/obstack-printf-tests (Files): Likewise.
33275         * modules/open-tests (Files): Likewise.
33276         * modules/openat-tests (Files): Likewise.
33277         * modules/pipe-filter-gi-tests (Files): Likewise.
33278         * modules/pipe-filter-ii-tests (Files): Likewise.
33279         * modules/pipe2-tests (Files): Likewise.
33280         * modules/popen-safer-tests (Files): Likewise.
33281         * modules/popen-tests (Files): Likewise.
33282         * modules/posixtm-tests (Files): Likewise.
33283         * modules/pread-tests (Files): Likewise.
33284         * modules/printf-frexp-tests (Files): Likewise.
33285         * modules/printf-frexpl-tests (Files): Likewise.
33286         * modules/printf-posix-tests (Files): Likewise.
33287         * modules/priv-set-tests (Files): Likewise.
33288         * modules/quotearg-tests (Files): Likewise.
33289         * modules/random_r-tests (Files): Likewise.
33290         * modules/rawmemchr-tests (Files): Likewise.
33291         * modules/rbtree-list-tests (Files): Likewise.
33292         * modules/rbtree-oset-tests (Files): Likewise.
33293         * modules/rbtreehash-list-tests (Files): Likewise.
33294         * modules/readlink-tests (Files): Likewise.
33295         * modules/remove-tests (Files): Likewise.
33296         * modules/rename-tests (Files): Likewise.
33297         * modules/renameat-tests (Files): Likewise.
33298         * modules/rmdir-tests (Files): Likewise.
33299         * modules/round-tests (Files): Likewise.
33300         * modules/roundf-tests (Files): Likewise.
33301         * modules/roundl-tests (Files): Likewise.
33302         * modules/safe-alloc-tests (Files): Likewise.
33303         * modules/setenv-tests (Files): Likewise.
33304         * modules/sigaction-tests (Files): Likewise.
33305         * modules/signbit-tests (Files): Likewise.
33306         * modules/sleep-tests (Files): Likewise.
33307         * modules/snprintf-posix-tests (Files): Likewise.
33308         * modules/snprintf-tests (Files): Likewise.
33309         * modules/sprintf-posix-tests (Files): Likewise.
33310         * modules/stat-tests (Files): Likewise.
33311         * modules/stat-time-tests (Files): Likewise.
33312         * modules/strcasestr-tests (Files): Likewise.
33313         * modules/strchrnul-tests (Files): Likewise.
33314         * modules/strerror-tests (Files): Likewise.
33315         * modules/striconv-tests (Files): Likewise.
33316         * modules/striconveh-tests (Files): Likewise.
33317         * modules/striconveha-tests (Files): Likewise.
33318         * modules/strsignal-tests (Files): Likewise.
33319         * modules/strstr-tests (Files): Likewise.
33320         * modules/strtod-tests (Files): Likewise.
33321         * modules/strverscmp-tests (Files): Likewise.
33322         * modules/symlink-tests (Files): Likewise.
33323         * modules/symlinkat-tests (Files): Likewise.
33324         * modules/trunc-tests (Files): Likewise.
33325         * modules/truncf-tests (Files): Likewise.
33326         * modules/truncl-tests (Files): Likewise.
33327         * modules/uname-tests (Files): Likewise.
33328         * modules/unicase/cased-tests (Files): Likewise.
33329         * modules/unicase/ignorable-tests (Files): Likewise.
33330         * modules/unicase/locale-language-tests (Files): Likewise.
33331         * modules/unicase/tolower-tests (Files): Likewise.
33332         * modules/unicase/totitle-tests (Files): Likewise.
33333         * modules/unicase/toupper-tests (Files): Likewise.
33334         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33335         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33336         * modules/unicase/u8-casefold-tests (Files): Likewise.
33337         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33338         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33339         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33340         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33341         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33342         * modules/unicase/u8-tolower-tests (Files): Likewise.
33343         * modules/unicase/u8-totitle-tests (Files): Likewise.
33344         * modules/unicase/u8-toupper-tests (Files): Likewise.
33345         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33346         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33347         * modules/unicase/u16-casefold-tests (Files): Likewise.
33348         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33349         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33350         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33351         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33352         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33353         * modules/unicase/u16-tolower-tests (Files): Likewise.
33354         * modules/unicase/u16-totitle-tests (Files): Likewise.
33355         * modules/unicase/u16-toupper-tests (Files): Likewise.
33356         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33357         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33358         * modules/unicase/u32-casefold-tests (Files): Likewise.
33359         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33360         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33361         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33362         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33363         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33364         * modules/unicase/u32-tolower-tests (Files): Likewise.
33365         * modules/unicase/u32-totitle-tests (Files): Likewise.
33366         * modules/unicase/u32-toupper-tests (Files): Likewise.
33367         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33368         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33369         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33370         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33371         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33372         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33373         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33374         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33375         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33376         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33377         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33378         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33379         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33380         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33381         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33382         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33383         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33384         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33385         * modules/unictype/block-list-tests (Files): Likewise.
33386         * modules/unictype/block-of-tests (Files): Likewise.
33387         * modules/unictype/block-test-tests (Files): Likewise.
33388         * modules/unictype/category-C-tests (Files): Likewise.
33389         * modules/unictype/category-Cc-tests (Files): Likewise.
33390         * modules/unictype/category-Cf-tests (Files): Likewise.
33391         * modules/unictype/category-Cn-tests (Files): Likewise.
33392         * modules/unictype/category-Co-tests (Files): Likewise.
33393         * modules/unictype/category-Cs-tests (Files): Likewise.
33394         * modules/unictype/category-L-tests (Files): Likewise.
33395         * modules/unictype/category-Ll-tests (Files): Likewise.
33396         * modules/unictype/category-Lm-tests (Files): Likewise.
33397         * modules/unictype/category-Lo-tests (Files): Likewise.
33398         * modules/unictype/category-Lt-tests (Files): Likewise.
33399         * modules/unictype/category-Lu-tests (Files): Likewise.
33400         * modules/unictype/category-M-tests (Files): Likewise.
33401         * modules/unictype/category-Mc-tests (Files): Likewise.
33402         * modules/unictype/category-Me-tests (Files): Likewise.
33403         * modules/unictype/category-Mn-tests (Files): Likewise.
33404         * modules/unictype/category-N-tests (Files): Likewise.
33405         * modules/unictype/category-Nd-tests (Files): Likewise.
33406         * modules/unictype/category-Nl-tests (Files): Likewise.
33407         * modules/unictype/category-No-tests (Files): Likewise.
33408         * modules/unictype/category-P-tests (Files): Likewise.
33409         * modules/unictype/category-Pc-tests (Files): Likewise.
33410         * modules/unictype/category-Pd-tests (Files): Likewise.
33411         * modules/unictype/category-Pe-tests (Files): Likewise.
33412         * modules/unictype/category-Pf-tests (Files): Likewise.
33413         * modules/unictype/category-Pi-tests (Files): Likewise.
33414         * modules/unictype/category-Po-tests (Files): Likewise.
33415         * modules/unictype/category-Ps-tests (Files): Likewise.
33416         * modules/unictype/category-S-tests (Files): Likewise.
33417         * modules/unictype/category-Sc-tests (Files): Likewise.
33418         * modules/unictype/category-Sk-tests (Files): Likewise.
33419         * modules/unictype/category-Sm-tests (Files): Likewise.
33420         * modules/unictype/category-So-tests (Files): Likewise.
33421         * modules/unictype/category-Z-tests (Files): Likewise.
33422         * modules/unictype/category-Zl-tests (Files): Likewise.
33423         * modules/unictype/category-Zp-tests (Files): Likewise.
33424         * modules/unictype/category-Zs-tests (Files): Likewise.
33425         * modules/unictype/category-and-not-tests (Files): Likewise.
33426         * modules/unictype/category-and-tests (Files): Likewise.
33427         * modules/unictype/category-byname-tests (Files): Likewise.
33428         * modules/unictype/category-name-tests (Files): Likewise.
33429         * modules/unictype/category-none-tests (Files): Likewise.
33430         * modules/unictype/category-of-tests (Files): Likewise.
33431         * modules/unictype/category-or-tests (Files): Likewise.
33432         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33433         * modules/unictype/combining-class-tests (Files): Likewise.
33434         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33435         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33436         * modules/unictype/ctype-blank-tests (Files): Likewise.
33437         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33438         * modules/unictype/ctype-digit-tests (Files): Likewise.
33439         * modules/unictype/ctype-graph-tests (Files): Likewise.
33440         * modules/unictype/ctype-lower-tests (Files): Likewise.
33441         * modules/unictype/ctype-print-tests (Files): Likewise.
33442         * modules/unictype/ctype-punct-tests (Files): Likewise.
33443         * modules/unictype/ctype-space-tests (Files): Likewise.
33444         * modules/unictype/ctype-upper-tests (Files): Likewise.
33445         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33446         * modules/unictype/decimal-digit-tests (Files): Likewise.
33447         * modules/unictype/digit-tests (Files): Likewise.
33448         * modules/unictype/mirror-tests (Files): Likewise.
33449         * modules/unictype/numeric-tests (Files): Likewise.
33450         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33451         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33452         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33453         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33454         Likewise.
33455         * modules/unictype/property-bidi-block-separator-tests (Files):
33456         Likewise.
33457         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33458         Likewise.
33459         * modules/unictype/property-bidi-common-separator-tests (Files):
33460         Likewise.
33461         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33462         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33463         Likewise.
33464         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33465         Likewise.
33466         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33467         Likewise.
33468         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33469         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33470         Likewise.
33471         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33472         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33473         Likewise.
33474         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33475         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33476         * modules/unictype/property-bidi-segment-separator-tests (Files):
33477         Likewise.
33478         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33479         * modules/unictype/property-byname-tests (Files): Likewise.
33480         * modules/unictype/property-combining-tests (Files): Likewise.
33481         * modules/unictype/property-composite-tests (Files): Likewise.
33482         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33483         * modules/unictype/property-dash-tests (Files): Likewise.
33484         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33485         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33486         Likewise.
33487         * modules/unictype/property-deprecated-tests (Files): Likewise.
33488         * modules/unictype/property-diacritic-tests (Files): Likewise.
33489         * modules/unictype/property-extender-tests (Files): Likewise.
33490         * modules/unictype/property-format-control-tests (Files): Likewise.
33491         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33492         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33493         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33494         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33495         * modules/unictype/property-hyphen-tests (Files): Likewise.
33496         * modules/unictype/property-id-continue-tests (Files): Likewise.
33497         * modules/unictype/property-id-start-tests (Files): Likewise.
33498         * modules/unictype/property-ideographic-tests (Files): Likewise.
33499         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33500         * modules/unictype/property-ids-trinary-operator-tests (Files):
33501         Likewise.
33502         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33503         * modules/unictype/property-iso-control-tests (Files): Likewise.
33504         * modules/unictype/property-join-control-tests (Files): Likewise.
33505         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33506         * modules/unictype/property-line-separator-tests (Files): Likewise.
33507         * modules/unictype/property-logical-order-exception-tests (Files):
33508         Likewise.
33509         * modules/unictype/property-lowercase-tests (Files): Likewise.
33510         * modules/unictype/property-math-tests (Files): Likewise.
33511         * modules/unictype/property-non-break-tests (Files): Likewise.
33512         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33513         * modules/unictype/property-numeric-tests (Files): Likewise.
33514         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33515         * modules/unictype/property-other-default-ignorable-code-point-tests
33516         (Files): Likewise.
33517         * modules/unictype/property-other-grapheme-extend-tests (Files):
33518         Likewise.
33519         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33520         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33521         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33522         * modules/unictype/property-other-math-tests (Files): Likewise.
33523         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33524         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33525         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33526         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33527         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33528         * modules/unictype/property-private-use-tests (Files): Likewise.
33529         * modules/unictype/property-punctuation-tests (Files): Likewise.
33530         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33531         * modules/unictype/property-radical-tests (Files): Likewise.
33532         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33533         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33534         * modules/unictype/property-space-tests (Files): Likewise.
33535         * modules/unictype/property-terminal-punctuation-tests (Files):
33536         Likewise.
33537         * modules/unictype/property-test-tests (Files): Likewise.
33538         * modules/unictype/property-titlecase-tests (Files): Likewise.
33539         * modules/unictype/property-unassigned-code-value-tests (Files):
33540         Likewise.
33541         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33542         * modules/unictype/property-uppercase-tests (Files): Likewise.
33543         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33544         * modules/unictype/property-white-space-tests (Files): Likewise.
33545         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33546         * modules/unictype/property-xid-start-tests (Files): Likewise.
33547         * modules/unictype/property-zero-width-tests (Files): Likewise.
33548         * modules/unictype/scripts-tests (Files): Likewise.
33549         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33550         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33551         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33552         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33553         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33554         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33555         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33556         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33557         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33558         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33559         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33560         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33561         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33562         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33563         * modules/uninorm/composition-tests (Files): Likewise.
33564         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33565         * modules/uninorm/decomposition-tests (Files): Likewise.
33566         * modules/uninorm/filter-tests (Files): Likewise.
33567         * modules/uninorm/nfc-tests (Files): Likewise.
33568         * modules/uninorm/nfd-tests (Files): Likewise.
33569         * modules/uninorm/nfkc-tests (Files): Likewise.
33570         * modules/uninorm/nfkd-tests (Files): Likewise.
33571         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33572         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33573         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33574         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33575         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33576         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33577         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33578         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33579         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33580         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33581         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33582         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33583         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33584         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33585         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33586         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33587         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33588         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33589         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33590         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33591         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33592         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33593         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33594         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33595         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33596         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33597         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33598         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33599         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33600         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33601         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33602         * modules/uniwidth/u8-width-tests (Files): Likewise.
33603         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33604         * modules/uniwidth/u16-width-tests (Files): Likewise.
33605         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33606         * modules/uniwidth/u32-width-tests (Files): Likewise.
33607         * modules/uniwidth/width-tests (Files): Likewise.
33608         * modules/unlink-tests (Files): Likewise.
33609         * modules/unsetenv-tests (Files): Likewise.
33610         * modules/usleep-tests (Files): Likewise.
33611         * modules/utimens-tests (Files): Likewise.
33612         * modules/utimensat-tests (Files): Likewise.
33613         * modules/vasnprintf-posix-tests (Files): Likewise.
33614         * modules/vasnprintf-tests (Files): Likewise.
33615         * modules/vasprintf-posix-tests (Files): Likewise.
33616         * modules/vasprintf-tests (Files): Likewise.
33617         * modules/vdprintf-posix-tests (Files): Likewise.
33618         * modules/vfprintf-posix-tests (Files): Likewise.
33619         * modules/vprintf-posix-tests (Files): Likewise.
33620         * modules/vsnprintf-posix-tests (Files): Likewise.
33621         * modules/vsnprintf-tests (Files): Likewise.
33622         * modules/vsprintf-posix-tests (Files): Likewise.
33623         * modules/wcrtomb-tests (Files): Likewise.
33624         * modules/wcsnrtombs-tests (Files): Likewise.
33625         * modules/wcsrtombs-tests (Files): Likewise.
33626         * modules/wctype-tests (Files): Likewise.
33627         * modules/wcwidth-tests (Files): Likewise.
33628         * modules/xmemdup0-tests (Files): Likewise.
33629         * modules/xprintf-posix-tests (Files): Likewise.
33630         * modules/xvasprintf-tests (Files): Likewise.
33631
33632 2009-12-24  Eric Blake  <ebb9@byu.net>
33633
33634         test-nanosleep: fix typo
33635         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33636         patch.
33637         Reported by Bruno Haible.
33638
33639 2009-12-24  Bruno Haible  <bruno@clisp.org>
33640
33641         Reduce namespace pollution on glibc systems.
33642         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33643         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33644         systems.
33645         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33646         <getopt.h> on glibc systems.
33647         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33648         systems.
33649         * lib/fcntl.c: Include <unistd.h> here instead.
33650
33651 2009-12-24  Bruno Haible  <bruno@clisp.org>
33652
33653         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33654
33655 2009-12-24  Eric Blake  <ebb9@byu.net>
33656
33657         tests: add signature checks
33658         * tests/signature.h (SIGNATURE_CHECK): New file.
33659         * modules/atexit-tests (Files): Use it.
33660         * modules/btowc-tests (Files): Likewise.
33661         * modules/canonicalize-lgpl-tests (Files): Likewise.
33662         * modules/ceilf-tests (Files): Likewise.
33663         * modules/ceill-tests (Files): Likewise.
33664         * modules/chown-tests (Files): Likewise.
33665         * modules/dprintf-posix-tests (Files): Likewise.
33666         * modules/dup2-tests (Files): Likewise.
33667         * modules/dup3-tests (Files): Likewise.
33668         * modules/duplocale-tests (Files): Likewise.
33669         * modules/fchdir-tests (Files): Likewise.
33670         * modules/fcntl-tests (Files): Likewise.
33671         * modules/fdopendir-tests (Files): Likewise.
33672         * modules/fflush-tests (Files): Likewise.
33673         * modules/flock-tests (Files): Likewise.
33674         * modules/floorf-tests (Files): Likewise.
33675         * modules/floorl-tests (Files): Likewise.
33676         * modules/fnmatch-tests (Files): Likewise.
33677         * modules/fopen-tests (Files): Likewise.
33678         * modules/fprintf-posix-tests (Files): Likewise.
33679         * modules/freopen-tests (Files): Likewise.
33680         * modules/frexp-nolibm-tests (Files): Likewise.
33681         * modules/frexp-tests (Files): Likewise.
33682         * modules/frexpl-nolibm-tests (Files): Likewise.
33683         * modules/frexpl-tests (Files): Likewise.
33684         * modules/fseek-tests (Files): Likewise.
33685         * modules/fseeko-tests (Files): Likewise.
33686         * modules/fsync-tests (Files): Likewise.
33687         * modules/ftell-tests (Files): Likewise.
33688         * modules/ftello-tests (Files): Likewise.
33689         * modules/futimens-tests (Files): Likewise.
33690         * modules/getaddrinfo-tests (Files): Likewise.
33691         * modules/getcwd-tests (Files): Likewise.
33692         * modules/getdelim-tests (Files): Likewise.
33693         * modules/getdtablesize-tests (Files): Likewise.
33694         * modules/getgroups-tests (Files): Likewise.
33695         * modules/gethostname-tests (Files): Likewise.
33696         * modules/getline-tests (Files): Likewise.
33697         * modules/getopt-posix-tests (Files): Likewise.
33698         * modules/gettimeofday-tests (Files): Likewise.
33699         * modules/glob-tests (Files): Likewise.
33700         * modules/iconv-tests (Files): Likewise.
33701         * modules/inet_ntop-tests (Files): Likewise.
33702         * modules/inet_pton-tests (Files): Likewise.
33703         * modules/isblank-tests (Files): Likewise.
33704         * modules/lchown-tests (Files): Likewise.
33705         * modules/ldexpl-tests (Files): Likewise.
33706         * modules/link-tests (Files): Likewise.
33707         * modules/linkat-tests (Files): Likewise.
33708         * modules/lseek-tests (Files): Likewise.
33709         * modules/lstat-tests (Files): Likewise.
33710         * modules/mbrtowc-tests (Files): Likewise.
33711         * modules/mbsinit-tests (Files): Likewise.
33712         * modules/mbsnrtowcs-tests (Files): Likewise.
33713         * modules/mbsrtowcs-tests (Files): Likewise.
33714         * modules/memchr-tests (Files): Likewise.
33715         * modules/memcmp-tests (Files): Likewise.
33716         * modules/memmem-tests (Files): Likewise.
33717         * modules/memrchr-tests (Files): Likewise.
33718         * modules/mkdir-tests (Files): Likewise.
33719         * modules/mkfifo-tests (Files): Likewise.
33720         * modules/mkfifoat-tests (Files): Likewise.
33721         * modules/mknod-tests (Files): Likewise.
33722         * modules/nanosleep-tests (Files): Likewise.
33723         * modules/nl_langinfo-tests (Files): Likewise.
33724         * modules/obstack-printf-tests (Files): Likewise.
33725         * modules/open-tests (Files): Likewise.
33726         * modules/openat-tests (Files): Likewise.
33727         * modules/perror-tests (Files): Likewise.
33728         * modules/pipe2-tests (Files): Likewise.
33729         * modules/poll-tests (Files): Likewise.
33730         * modules/popen-tests (Files): Likewise.
33731         * modules/posix_spawn-tests (Files): Likewise.
33732         * modules/posix_spawnp-tests (Files): Likewise.
33733         * modules/pread-tests (Files): Likewise.
33734         * modules/printf-posix-tests (Files): Likewise.
33735         * modules/pty-tests (Files): Likewise.
33736         * modules/random_r-tests (Files): Likewise.
33737         * modules/rawmemchr-tests (Files): Likewise.
33738         * modules/readlink-tests (Files): Likewise.
33739         * modules/remove-tests (Files): Likewise.
33740         * modules/rename-tests (Files): Likewise.
33741         * modules/renameat-tests (Files): Likewise.
33742         * modules/rmdir-tests (Files): Likewise.
33743         * modules/round-tests (Files): Likewise.
33744         * modules/roundf-tests (Files): Likewise.
33745         * modules/roundl-tests (Files): Likewise.
33746         * modules/select-tests (Files): Likewise.
33747         * modules/setenv-tests (Files): Likewise.
33748         * modules/sigaction-tests (Files): Likewise.
33749         * modules/sleep-tests (Files): Likewise.
33750         * modules/snprintf-posix-tests (Files): Likewise.
33751         * modules/snprintf-tests (Files): Likewise.
33752         * modules/sprintf-posix-tests (Files): Likewise.
33753         * modules/stat-tests (Files): Likewise.
33754         * modules/strcasestr-tests (Files): Likewise.
33755         * modules/strchrnul-tests (Files): Likewise.
33756         * modules/strerror-tests (Files): Likewise.
33757         * modules/strsignal-tests (Files): Likewise.
33758         * modules/strstr-tests (Files): Likewise.
33759         * modules/strtod-tests (Files): Likewise.
33760         * modules/strverscmp-tests (Files): Likewise.
33761         * modules/symlink-tests (Files): Likewise.
33762         * modules/symlinkat-tests (Files): Likewise.
33763         * modules/times-tests (Files): Likewise.
33764         * modules/trunc-tests (Files): Likewise.
33765         * modules/truncf-tests (Files): Likewise.
33766         * modules/truncl-tests (Files): Likewise.
33767         * modules/tsearch-tests (Files): Likewise.
33768         * modules/uname-tests (Files): Likewise.
33769         * modules/unlink-tests (Files): Likewise.
33770         * modules/unsetenv-tests (Files): Likewise.
33771         * modules/usleep-tests (Files): Likewise.
33772         * modules/utimensat-tests (Files): Likewise.
33773         * modules/vasprintf-tests (Files): Likewise.
33774         * modules/vdprintf-posix-tests (Files): Likewise.
33775         * modules/vfprintf-posix-tests (Files): Likewise.
33776         * modules/vprintf-posix-tests (Files): Likewise.
33777         * modules/vsnprintf-posix-tests (Files): Likewise.
33778         * modules/vsnprintf-tests (Files): Likewise.
33779         * modules/vsprintf-posix-tests (Files): Likewise.
33780         * modules/wcrtomb-tests (Files): Likewise.
33781         * modules/wcsnrtombs-tests (Files): Likewise.
33782         * modules/wcsrtombs-tests (Files): Likewise.
33783         * modules/wcwidth-tests (Files): Likewise.
33784         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33785         * tests/test-isinf.c (isinf): Likewise.
33786         * tests/test-isnan.c (isnan): Likewise.
33787         * tests/test-signbit.c (signbit): Likewise.
33788         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33789         declaration, either as macro or with correct signature.
33790         (select): Ensure function under test is declared with correct
33791         signature in correct header.
33792         * tests/test-atexit.c (atexit): Likewise.
33793         * tests/test-btowc.c (btowc): Likewise.
33794         * tests/test-canonicalize-lgpl.c (realpath)
33795         (canonicalize_file_name): Likewise.
33796         * tests/test-ceilf1.c (ceilf): Likewise.
33797         * tests/test-ceill.c (ceill): Likewise.
33798         * tests/test-chown.c (chown): Likewise.
33799         * tests/test-dprintf-posix.c (dprintf): Likewise.
33800         * tests/test-dup2.c (dup2): Likewise.
33801         * tests/test-dup3.c (dup3): Likewise.
33802         * tests/test-duplocale.c (duplocale): Likewise.
33803         * tests/test-fchdir.c (fchdir): Likewise.
33804         * tests/test-fchownat.c (fchownat): Likewise.
33805         * tests/test-fcntl.c (fcntl): Likewise.
33806         * tests/test-fdopendir.c (fdopendir): Likewise.
33807         * tests/test-fflush.c (fflush): Likewise.
33808         * tests/test-flock.c (flock): Likewise.
33809         * tests/test-floorf1.c (floorf): Likewise.
33810         * tests/test-floorl.c (floorl): Likewise.
33811         * tests/test-fnmatch.c (fnmatch): Likewise.
33812         * tests/test-fopen.c (fopen): Likewise.
33813         * tests/test-fprintf-posix.c (fprintf): Likewise.
33814         * tests/test-freopen.c (freopen): Likewise.
33815         * tests/test-frexp.c (frexp): Likewise.
33816         * tests/test-frexpl.c (frexpl): Likewise.
33817         * tests/test-fseek.c (fseek): Likewise.
33818         * tests/test-fseeko.c (fseeko): Likewise.
33819         * tests/test-fstatat.c (fstatat): Likewise.
33820         * tests/test-fsync.c (fsync): Likewise.
33821         * tests/test-ftell.c (ftell): Likewise.
33822         * tests/test-ftello.c (ftello): Likewise.
33823         * tests/test-futimens.c (futimens): Likewise.
33824         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33825         (gai_strerror): Likewise.
33826         * tests/test-getcwd.c (getcwd): Likewise.
33827         * tests/test-getdelim.c (getdelim): Likewise.
33828         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33829         * tests/test-getgroups.c (getgroups): Likewise.
33830         * tests/test-gethostname.c (gethostname): Likewise.
33831         * tests/test-getline.c (getline): Likewise.
33832         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33833         Likewise.
33834         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33835         * tests/test-glob.c (glob, globfree): Likewise.
33836         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33837         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33838         * tests/test-inet_pton.c (inet_pton): Likewise.
33839         * tests/test-isblank.c (isblank): Likewise.
33840         * tests/test-lchown.c (lchown): Likewise.
33841         * tests/test-ldexpl.c (ldexpl): Likewise.
33842         * tests/test-link.c (link): Likewise.
33843         * tests/test-linkat.c (linkat): Likewise.
33844         * tests/test-lseek.c (lseek): Likewise.
33845         * tests/test-lstat.c (lstat): Likewise.
33846         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33847         * tests/test-mbsinit.c (mbsinit): Likewise.
33848         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33849         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33850         * tests/test-memchr.c (memchr): Likewise.
33851         * tests/test-memcmp.c (memcmp): Likewise.
33852         * tests/test-memmem.c (memmem): Likewise.
33853         * tests/test-memrchr.c (memrchr): Likewise.
33854         * tests/test-mkdir.c (mkdir): Likewise.
33855         * tests/test-mkdirat.c (mkdirat): Likewise.
33856         * tests/test-mkfifo.c (mkfifo): Likewise.
33857         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33858         * tests/test-mknod.c (mknod): Likewise.
33859         * tests/test-nanosleep.c (nanosleep): Likewise.
33860         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33861         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33862         Likewise.
33863         * tests/test-open.c (open): Likewise.
33864         * tests/test-openat.c (openat): Likewise.
33865         * tests/test-perror.c (perror): Likewise.
33866         * tests/test-pipe2.c (pipe2): Likewise.
33867         * tests/test-poll.c (poll): Likewise.
33868         * tests/test-popen.c (popen, pclose): Likewise.
33869         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33870         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33871         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33872         (posix_spawn_file_actions_destroy)
33873         (posix_spawn_file_actions_addclose)
33874         (posix_spawn_file_actions_addopen)
33875         (posix_spawn_file_actions_adddup2): Likewise.
33876         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33877         * tests/test-pread.c (pread): Likewise.
33878         * tests/test-printf-posix.c (printf): Likewise.
33879         * tests/test-pty.c (openpty, forkpty): Likewise.
33880         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33881         (random_r): Likewise.
33882         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33883         * tests/test-readlink.c (readlink): Likewise.
33884         * tests/test-remove.c (remove): Likewise.
33885         * tests/test-rename.c (rename): Likewise.
33886         * tests/test-renameat.c (renameat): Likewise.
33887         * tests/test-rmdir.c (rmdir): Likewise.
33888         * tests/test-round1.c (round): Likewise.
33889         * tests/test-roundf1.c (roundf): Likewise.
33890         * tests/test-roundl.c (roundl): Likewise.
33891         * tests/test-setenv.c (setenv): Likewise.
33892         * tests/test-sigaction.c (sigaction): Likewise.
33893         * tests/test-sleep.c (sleep): Likewise.
33894         * tests/test-snprintf.c (snprintf): Likewise.
33895         * tests/test-sprintf-posix.c (sprintf): Likewise.
33896         * tests/test-stat.c (stat): Likewise.
33897         * tests/test-stpncpy.c (stpncpy): Likewise.
33898         * tests/test-strcasestr.c (strcasestr): Likewise.
33899         * tests/test-strchrnul.c (strchrnul): Likewise.
33900         * tests/test-strerror.c (strerror): Likewise.
33901         * tests/test-strsignal.c (strsignal): Likewise.
33902         * tests/test-strstr.c (strstr): Likewise.
33903         * tests/test-strtod.c (strtod): Likewise.
33904         * tests/test-strverscmp.c (strverscmp): Likewise.
33905         * tests/test-symlink.c (symlink): Likewise.
33906         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33907         * tests/test-times.c (times): Likewise.
33908         * tests/test-trunc1.c (trunc): Likewise.
33909         * tests/test-truncf1.c (truncf): Likewise.
33910         * tests/test-truncl.c (truncl): Likewise.
33911         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33912         Likewise.
33913         * tests/test-uname.c (uname): Likewise.
33914         * tests/test-unlink.c (unlink): Likewise.
33915         * tests/test-unlinkat.c (unlinkat): Likewise.
33916         * tests/test-unsetenv.c (unsetenv): Likewise.
33917         * tests/test-usleep.c (usleep): Likewise.
33918         * tests/test-utimensat.c (utimensat): Likewise.
33919         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33920         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33921         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33922         * tests/test-vprintf-posix.c (vprintf): Likewise.
33923         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33924         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33925         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33926         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33927         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33928         * tests/test-wcwidth.c (wcwidth): Likewise.
33929
33930         build: pull in conditional headers during GNULIB_POSIXCHECK
33931         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33932         definitions from any conditionally-included headers.
33933         * lib/stdlib.in.h (includes): Likewise.
33934         * lib/unistd.in.h (includes): Likewise.
33935
33936 2009-12-24  Bruno Haible  <bruno@clisp.org>
33937
33938         * tests/test-argv-iter.c: Include header file being tested immediately
33939         after config.h.
33940         * tests/test-base64.c: Likewise.
33941         * tests/test-flock.c: Likewise.
33942         * tests/test-fsync.c: Likewise.
33943         * tests/test-getdate.c: Likewise.
33944         * tests/test-getndelim2.c: Likewise.
33945         * tests/test-isfinite.c: Likewise.
33946         * tests/test-isinf.c: Likewise.
33947         * tests/test-strerror.c: Likewise.
33948         * tests/test-strsignal.c: Likewise.
33949
33950 2009-12-23  Eric Blake  <ebb9@byu.net>
33951
33952         unistd: work around cygwin bug
33953         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33954         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33955         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33956
33957 2009-12-23  Bruno Haible  <bruno@clisp.org>
33958
33959         localename: More tests.
33960         * tests/test-localename.c (SIZEOF): New macro.
33961         (categories): New variable.
33962         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33963         test_locale_name_default): Add test w.r.t. thread locale.
33964         (test_locale_name_thread): New function.
33965         (main): Invoke it.
33966
33967         localename: Make aware of thread locale.
33968         * lib/localename.h (gl_locale_name_thread): New declaration.
33969         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33970         behaviour with respect to thread locale.
33971         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33972         <langinfo.h>, glthread/lock.h.
33973         (SIZE_BITS): New macro.
33974         (string_hash): New function.
33975         (struct hash_node): New type.
33976         (HASH_TABLE_SIZE): New macro.
33977         (struniq_hash_table, struniq_lock): New variables.
33978         (struniq): New function.
33979         (gl_locale_name_thread): New function.
33980         (gl_locale_name): Invoke it.
33981         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33982         * modules/localename (Depends-on): Add lock.
33983         Reported by Mike Gran <spk121@yahoo.com>.
33984
33985 2009-12-23  Eric Blake  <ebb9@byu.net>
33986
33987         va-args: new module
33988         * modules/va-args: New file.
33989         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33990         * MODULES.html.sh (Core language properties): Mention it.
33991
33992         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33993         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33994         named alias for __attribute__((__unused__)).
33995         * lib/chown.c: Update client.
33996         * lib/fchmodat.c: Likewise.
33997         * lib/fts.c: Likewise.
33998         * lib/getdate.y: Likewise.
33999         * lib/getgroups.c: Likewise.
34000         * lib/getopt.c: Likewise.
34001         * lib/getugroups.c: Likewise.
34002         * lib/mkdir.c: Likewise.
34003         * lib/mkfifo.c: Likewise.
34004         * lib/mkfifoat.c: Likewise.
34005         * lib/mknod.c: Likewise.
34006         * lib/mknodat.c: Likewise.
34007         * lib/readlink.c: Likewise.
34008         * lib/se-context.in.h: Likewise.
34009         * lib/se-selinux.in.h: Likewise.
34010         * lib/sockets.c: Likewise.
34011         * lib/symlink.c: Likewise.
34012         * lib/symlinkat.c: Likewise.
34013         * lib/unicodeio.c: Likewise.
34014         * lib/unistr.h: Likewise.
34015         * tests/test-areadlink.c: Likewise.
34016         * tests/test-areadlinkat.c: Likewise.
34017         * tests/test-filenamecat.c: Likewise.
34018         * tests/test-fseeko.c: Likewise.
34019         * tests/test-ftello.c: Likewise.
34020         * tests/test-getdate.c: Likewise.
34021         * tests/test-getgroups.c: Likewise.
34022         * tests/test-gethostname.c: Likewise.
34023         * tests/test-quotearg.c: Likewise.
34024         * tests/test-version-etc.c: Likewise.
34025         * tests/test-xalloc-die.c: Likewise.
34026         * tests/test-xfprintf-posix.c: Likewise.
34027         * tests/test-xprintf-posix.c: Likewise.
34028         * tests/test-xvasprintf.c: Likewise.
34029
34030         tests: avoid compiler warnings
34031         * tests/test-fcntl.c (main): Delete unused parameters.
34032         * tests/test-freopen-safer.c (main): Likewise.
34033         * tests/test-xalloc-die.c (main): Mark unused parameters.
34034         * tests/test-fseeko.c (main): Likewise.
34035         * tests/test-ftello.c (main): Likewise.
34036         * tests/test-nanosleep.c (main): Avoid declaration warning.
34037         * tests/test-sleep.c (main): Likewise.
34038         * tests/test-unsetenv.c (main): Silence warning about string
34039         literal.
34040         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34041
34042 2009-12-23  Bruno Haible  <bruno@clisp.org>
34043
34044         * tests/test-localename.c (test_locale_name): New function, extracted
34045         from main. Also test mixed situations.
34046         (test_locale_name_posix, test_locale_name_environ,
34047         test_locale_name_default): New functions.
34048         (main): Invoke them all.
34049         * modules/localename-tests (configure.ac): Test for newlocale.
34050
34051 2009-12-23  Bruno Haible  <bruno@clisp.org>
34052
34053         unistd: Ensure getcwd gets declared before being overridden.
34054         * lib/unistd.in.h: Conditionally include <io.h>.
34055
34056 2009-12-22  Bruno Haible  <bruno@clisp.org>
34057
34058         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34059         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34060         (gl_WCHAR_H): Invoke it.
34061         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34062         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34063         Reported by Karl Berry <karl@freefriends.org>.
34064
34065 2009-12-22  Eric Blake  <ebb9@byu.net>
34066
34067         math, unistd: avoid redundant includes
34068         * lib/math.in.h (isnan): No need to re-include <math.h>.
34069         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34070
34071         getsubopt: work around cygwin bug
34072         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34073         avoid conflicting with system getsubopt.
34074         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34075         bug.
34076
34077         getopt: synchronize from glibc
34078         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34079         parameter order.  Adjust all callers.
34080         (_getopt_internal_r, main): Adjust quoting in error messages.
34081         Drop considerations for outdated POSIX 1003.2 error message.
34082         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34083         callers.
34084         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34085
34086         test-getopt: test stderr behavior
34087         * modules/getopt-posix-tests (Depends-on): Add dup2.
34088         * tests/test-getopt.c (ASSERT): Avoid stderr.
34089         (main): Move stderr to a temporary file.
34090         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34091         Instead, add parameter to inform caller if output occurred.
34092         (test_getopt): Adjust all existing tests to expect silence, and
34093         add new tests of leading ":".
34094         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34095         glibc shortcomings with leading "-:" or "+:" in optstring.
34096         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34097         Likewise.
34098         * doc/posix-functions/getopt.texi (getopt): Likewise.
34099
34100         test-getopt: enhance test
34101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34102         supports optind=0.
34103         * tests/test-getopt.c (OPTIND_MIN): Move...
34104         * tests/test-getopt.h (OPTIND_MIN): ...here.
34105         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34106         Require that optind=0 works, since modern BSD supports it in
34107         addition to optreset, and since coreutils expects it.
34108         (test_getopt_long_only): New test.
34109         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34110         glibc shortcomings with 'W;', and enforcement of optind=0.
34111         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34112         Likewise.
34113
34114 2009-12-21  Bruno Haible  <bruno@clisp.org>
34115
34116         localename: Improvements for MacOS X and Cygwin.
34117         * lib/localename.h (gl_locale_name_environ): New declaration.
34118         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34119         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34120         (gl_locale_name_posix): Invoke it.
34121         (gl_locale_name_default): Add comments. Use Windows native API also on
34122         Cygwin.
34123
34124 2009-12-21  Bruno Haible  <bruno@clisp.org>
34125
34126         Update list of Win32 locale ids.
34127         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34128         (LANG_SAMI): Renamed from LANG_SAAMI.
34129         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34130         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34131         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34132         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34133         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34134         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34135         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34136         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34137         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34138         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34139         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34140         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34141         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34142         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34143         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34144         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34145         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34146         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34147         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34148         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34149         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34150         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34151         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34152         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34153         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34154         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34155         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34156         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34157         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34158         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34159         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34160         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34161         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34162         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34163         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34164         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34165         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34166         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34167         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34168         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34169         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34170         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34171         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34172         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34173         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34174         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34175         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34176         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34177         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34178         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34179         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34180         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34181         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34182         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34183         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34184         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34185         Add more languages and countries for Sami, Sorbian. Add more countries
34186         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34187         for Pashto. Change country for Syriac, Tswana.
34188
34189 2009-12-21  Eric Blake  <ebb9@byu.net>
34190
34191         test-utimens: avoid spurious failure
34192         * tests/test-chown.h (nap): Factor...
34193         * tests/nap.h: ...into new file.
34194         * tests/test-lchown.h (nap): Avoid duplication.
34195         * tests/test-utimens-common.h (nap): Use shared implementation,
34196         necessary on file systems with 1-second resolution.
34197         * modules/chown-tests (Files): Include new file.
34198         * modules/fdutimensat-tests (Files): Likewise.
34199         * modules/futimens-tests (Files): Likewise.
34200         * modules/lchown-tests (Files): Likewise.
34201         * modules/openat-tests (Files): Likewise.
34202         * modules/utimens-tests (Files): Likewise.
34203         * modules/utimensat-tests (Files): Likewise.
34204
34205 2009-12-19  Eric Blake  <ebb9@byu.net>
34206
34207         futimens, utimensat: work around Linux bug
34208         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34209         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34210         * lib/utimensat.c (rpl_utimensat): Work around it.
34211         * lib/futimens.c (rpl_futimens): Adjust comment.
34212
34213         utimens: work around Linux ctime bug
34214         * lib/utimens.c (detect_ctime_bug): New helper function.
34215         (update_timespec): Differentiate between workaround needed for
34216         this bug vs. what is needed for systems that lack utimensat.
34217         (fdutimens, lutimens): Work around bug.
34218
34219         utimens: check for ctime update
34220         * tests/test-utimens-common.h (check_ctime): Define.
34221         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34222         * tests/test-futimens.h (test_futimens): Likewise.
34223         * tests/test-lutimens.h (test_lutimens): Likewise.
34224         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34225         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34226
34227 2009-12-19  Bruno Haible  <bruno@clisp.org>
34228
34229         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34230         * tests/test-dprintf-posix2.sh: New file.
34231         * tests/test-dprintf-posix2.c: New file.
34232         * modules/dprintf-posix-tests (Files): Add them.
34233         (configure.ac): Check for getrlimit and setrlimit.
34234         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34235
34236 2009-12-19  Bruno Haible  <bruno@clisp.org>
34237
34238         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34239         * tests/test-fprintf-posix3.sh: New file.
34240         * tests/test-fprintf-posix3.c: New file.
34241         * modules/fprintf-posix-tests (Files): Add them.
34242         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34243
34244 2009-12-19  Eric Blake  <ebb9@byu.net>
34245
34246         dirfd: fix prototype
34247         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34248         * lib/dirfd.c (dirfd): Likewise.
34249
34250         canonicalize: reduce memory usage
34251         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34252         allocation to size.
34253         Reported by Solar Designer <solar@openwall.com>.
34254
34255 2009-12-19  Bruno Haible  <bruno@clisp.org>
34256
34257         New module attribute 'Applicability'.
34258         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34259         * gnulib-tool: New option --extract-applicability.
34260         (func_usage): Document it.
34261         (sed_extract_prog): Recognize it.
34262         (func_get_applicability): New function.
34263         (func_import): Generalize handling of 'link-warning' module.
34264         * modules/link-warning (Applicability): New section.
34265         * modules/arg-nonnull (Applicability): New section.
34266         Repoted by Simon Josefsson <simon@josefsson.org>.
34267
34268 2009-12-19  Bruno Haible  <bruno@clisp.org>
34269
34270         fflush: tweak
34271         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34272         * lib/fseeko.c (rpl_fseeko): Likewise.
34273
34274 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34275
34276         * lib/gl_list.h: Fix typo in comment.
34277
34278 2009-12-16  Eric Blake  <ebb9@byu.net>
34279
34280         fcntl: use to simplify other modules
34281         * modules/cloexec (Depends-on): Add fcntl.
34282         * modules/fchdir (Depends-on): Likewise.
34283         * modules/fd-safer-flag (Depends-on): Likewise.
34284         * modules/unistd-safer (Depends-on): Likewise.
34285         * modules/dup3 (configure.ac): Set module indicator.
34286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34287         missing.
34288         * lib/fchdir.c (_gl_register_dup): Fix comment.
34289         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
34290         * lib/dup-safer.c (dup_safer): Likewise.
34291         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
34292         * lib/dup3.c (dup3): Likewise.
34293         * tests/test-fchdir.c (main): Enhance test.
34294         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
34295
34296         fcntl: port portions of fcntl to mingw
34297         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34298         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34299         replacement for mingw.
34300         * modules/fcntl (Description): Update.
34301         (Depends-on): Add dup2.
34302         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34303         * modules/fcntl-h (Makefile.am): Substitute it.
34304         * lib/fcntl.in.h (fcntl): Update declaration.
34305         (F_DUPFD, F_GETFD): New macros, when needed.
34306         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34307         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34308         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34309         we now guarantee.
34310
34311         fcntl: work around cygwin bug in F_DUPFD
34312         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34313         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34314         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34315         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34316         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34317
34318         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34319         * modules/fcntl (Files): List new files.
34320         (configure.ac): Run a test.
34321         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34322         * lib/fcntl.c (rpl_fcntl): Likewise.
34323         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34324         (gl_FCNTL_H): Always replace fcntl.h.
34325         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34326         * lib/fcntl.in.h (fcntl): Declare replacement.
34327         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34328         needed, plus a witness.
34329         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34330         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34331         * tests/test-fcntl.c: New file.
34332         * modules/fcntl-tests: Likewise.
34333
34334         binary-io: avoid potential compilation warning
34335         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34336         directives.
34337
34338         fflush: avoid compilation error on NetBSD
34339         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34340         between off_t and fpos_t, since the latter is sometimes a struct.
34341         * lib/fseeko.c (rpl_fseeko): Likewise.
34342         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34343
34344 2009-12-15  Eric Blake  <ebb9@byu.net>
34345
34346         fcntl-h, stdio, sys_ioctl: fix declarations
34347         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34348         function must not take arguments.
34349         * lib/sys_ioctl.in.h (ioctl): Likewise.
34350         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34351         (open): Add a link warning.
34352
34353 2009-12-15  Jim Meyering  <meyering@redhat.com>
34354
34355         areadlink, areadlink-with-size: relax license to LGPLv2+
34356         * modules/areadlink (License): Relax to LGPLv2+.
34357         * modules/areadlink-with-size (License): Likewise.
34358
34359 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34360             Bruno Haible  <bruno@clisp.org>
34361
34362         *printf: Fix memory leak.
34363         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34364         * lib/vfprintf.c (vfprintf): Likewise.
34365         * lib/dprintf.c (dprintf): Likewise.
34366         * lib/vdprintf.c (vdprintf): Likewise.
34367
34368 2009-12-14  Eric Blake  <ebb9@byu.net>
34369
34370         accept4: adjust module dependencies
34371         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34372
34373         utimens: one more try at avoiding compiler warning
34374         * lib/utimens.c (lutimens): Lower scope of result.
34375
34376 2009-12-13  Bruno Haible  <bruno@clisp.org>
34377
34378         Move the malloc checking from module 'list' to new module 'xlist'.
34379         * modules/xlist: New file.
34380         * lib/gl_xlist.h: New file.
34381         * lib/gl_xlist.c: New file.
34382         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34383         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34384         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34385         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34386         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34387         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34388         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34389         gl_sortedlist_nx_add): New declarations.
34390         (struct gl_list_implementation): Rename and change methods accordingly.
34391         (gl_list_nx_create_empty): Renamed from 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_list.c (gl_list_nx_create_empty): Renamed from
34402         gl_list_create_empty.
34403         (gl_list_nx_create): Renamed from gl_list_create.
34404         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34405         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34406         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34407         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34408         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34409         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34410         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34411         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34412         * lib/gl_array_list.c: Don't include xalloc.h.
34413         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34414         NULL upon out-of-memory.
34415         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34416         out-of-memory.
34417         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34418         Change return type to 'int'.
34419         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34420         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34421         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34422         upon out-of-memory.
34423         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34424         upon out-of-memory.
34425         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34426         upon out-of-memory.
34427         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34428         upon out-of-memory.
34429         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34430         out-of-memory.
34431         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34432         Update.
34433         (gl_array_list_implementation): Update.
34434         * lib/gl_carray_list.c: Don't include xalloc.h.
34435         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34436         Return NULL upon out-of-memory.
34437         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34438         out-of-memory.
34439         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34440         Change return type to 'int'.
34441         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34442         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34443         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34444         upon out-of-memory.
34445         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34446         upon out-of-memory.
34447         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34448         out-of-memory.
34449         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34450         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34451         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34452         Update.
34453         (gl_carray_list_implementation): Update.
34454         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34455         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34456         gl_linked_create_empty. Return NULL upon out-of-memory.
34457         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34458         out-of-memory.
34459         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34460         Change return type to 'int'. Return -1 upon out-of-memory.
34461         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34462         out-of-memory.
34463         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34464         upon out-of-memory.
34465         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34466         upon out-of-memory.
34467         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34468         NULL upon out-of-memory.
34469         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34470         upon out-of-memory.
34471         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34472         out-of-memory.
34473         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34474         Update.
34475         * lib/gl_linked_list.c: Don't include xalloc.h.
34476         (gl_linked_list_implementation): Update.
34477         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34478         (add_to_bucket): Change return type to 'int'.
34479         (gl_linkedhash_list_implementation): Update.
34480         * lib/gl_anytree_list1.h (free_subtree): New function.
34481         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34482         gl_tree_create_empty. Return NULL upon out-of-memory.
34483         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34484         Change return type to 'int'. Return -1 upon out-of-memory.
34485         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34486         out-of-memory.
34487         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34488         (gl_tree_remove_node): New function, moved here from
34489         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34490         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34491         Update.
34492         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34493         malloc, not xmalloc. Return NULL upon out-of-memory.
34494         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34495         out-of-memory.
34496         (gl_tree_remove_node_from_tree): New function, extracted from
34497         gl_tree_remove_node.
34498         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34499         upon out-of-memory.
34500         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34501         out-of-memory.
34502         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34503         upon out-of-memory.
34504         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34505         upon out-of-memory.
34506         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34507         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34508         not xmalloc. Return NULL upon out-of-memory.
34509         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34510         out-of-memory.
34511         (gl_tree_remove_node_from_tree): New function, extracted from
34512         gl_tree_remove_node.
34513         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34514         upon out-of-memory.
34515         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34516         out-of-memory.
34517         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34518         upon out-of-memory.
34519         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34520         upon out-of-memory.
34521         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34522         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34523         gl_anytree_list1.h before gl_anyavltree_list2.h.
34524         (gl_avltree_list_implementation): Update.
34525         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34526         gl_anytree_list1.h before gl_anyavltree_list2.h.
34527         (gl_rbtree_list_implementation): Update.
34528         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34529         Change return type to 'int'. Return -1 upon out-of-memory. Use
34530         __builtin_expect.
34531         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34532         (gl_avltreehash_list_implementation): Update.
34533         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34534         (gl_rbtreehash_list_implementation): Update.
34535         * modules/array-list (Depends-on): Remove xalloc.
34536         * modules/carray-list (Depends-on): Likewise.
34537         * modules/linked-list (Depends-on): Likewise.
34538         * modules/linkedhash-list (Depends-on): Likewise.
34539         * modules/avltree-list (Depends-on): Likewise.
34540         * modules/rbtree-list (Depends-on): Likewise.
34541         * modules/avltreehash-list (Depends-on): Likewise.
34542         * modules/rbtreehash-list (Depends-on): Likewise.
34543
34544         * modules/xsublist: New file.
34545         * lib/gl_xsublist.h: New file.
34546         * lib/gl_xsublist.c: New file.
34547         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34548         (gl_sublist_nx_create): New declaration.
34549         * lib/gl_sublist.c: Don't include xalloc.h.
34550         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34551         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34552         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34553         Change return type to 'int'. Return -1 upon out-of-memory.
34554         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34555         upon out-of-memory.
34556         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34557         NULL upon out-of-memory.
34558         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34559         upon out-of-memory.
34560         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34561         NULL upon out-of-memory.
34562         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34563         NULL upon out-of-memory.
34564         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34565         upon out-of-memory.
34566         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34567         (gl_sublist_list_implementation): Update.
34568         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34569         upon out-of-memory.
34570         * modules/sublist (Depends-on): Remove xalloc.
34571
34572         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34573         * tests/test-carray_list.c: Likewise.
34574         * tests/test-linked_list.c: Likewise.
34575         * tests/test-linkedhash_list.c: Likewise.
34576         * tests/test-avltree_list.c: Likewise.
34577         * tests/test-rbtree_list.c: Likewise.
34578         * tests/test-avltreehash_list.c: Likewise.
34579         * tests/test-rbtreehash_list.c: Likewise.
34580         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34581         * modules/carray-list-tests (Makefile.am): Likewise.
34582         * modules/linked-list-tests (Makefile.am): Likewise.
34583         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34584         * modules/avltree-list-tests (Makefile.am): Likewise.
34585         * modules/rbtree-list-tests (Makefile.am): Likewise.
34586         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34587         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34588
34589         * NEWS: Mention the changes.
34590
34591         * lib/clean-temp.c: Include gl_xlist.h.
34592         * modules/clean-temp (Depends-on): Add xlist.
34593
34594         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34595         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34596
34597         * tests/test-array_oset.c: Include gl_xlist.h.
34598         * modules/array-oset-tests (Depends-on): Add xlist.
34599
34600         Reported by José E. Marchesi <jemarch@gnu.org>.
34601
34602 2009-12-13  Bruno Haible  <bruno@clisp.org>
34603
34604         Move the malloc checking from module 'oset' to new module 'xoset'.
34605         * modules/xoset: New file.
34606         * lib/gl_xoset.h: New file.
34607         * lib/gl_xoset.c: New file.
34608         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34609         declarations.
34610         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34611         (struct gl_oset_implementation): Rename and change methods accordingly.
34612         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34613         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34614         'int'. Mark as __warn_unused_result__.
34615         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34616         gl_oset_create_empty.
34617         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34618         'int'.
34619         * lib/gl_array_oset.c: Don't include xalloc.h.
34620         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34621         malloc, not xmalloc.
34622         (grow): Change return type to 'int'. Don't call xalloc_die.
34623         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34624         to 'int'.
34625         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34626         'int'.
34627         (gl_array_oset_implementation): Update.
34628         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34629         gl_tree_create_empty.
34630         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34631         'int'.
34632         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34633         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34634         xmalloc.
34635         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34636         not xmalloc.
34637         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34638         xmalloc.
34639         (gl_avltree_oset_implementation): Update.
34640         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34641         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34642         xmalloc.
34643         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34644         not xmalloc.
34645         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34646         xmalloc.
34647         (gl_rbtree_oset_implementation): Update.
34648         * modules/array-oset (Depends-on): Remove xalloc.
34649         * modules/avltree-oset (Depends-on): Likewise.
34650         * modules/rbtree-oset (Depends-on): Likewise.
34651         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34652         * tests/test-avltree_oset.c: Likewise.
34653         * tests/test-rbtree_oset.c: Likewise.
34654         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34655         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34656         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34657         * NEWS: Mention the change.
34658
34659 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34660
34661         maint.mk: allow a project to override release-prep commands
34662         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34663         commands into a new rule.
34664         (release-prep): New rule.
34665         (release-prep-hook): New overridable variable.
34666
34667 2009-12-13  Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34670
34671 2009-12-13  Jim Meyering  <meyering@redhat.com>
34672
34673         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34674         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34675
34676 2009-12-12  Bruno Haible  <bruno@clisp.org>
34677
34678         duplocale: Tweak.
34679         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34680
34681 2009-12-12  Karl Berry  <karl@gnu.org>
34682
34683         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34684
34685 2009-12-12  Bruno Haible  <bruno@clisp.org>
34686
34687         * m4/po.m4: Undo incorrect untabification.
34688
34689 2009-12-12  Bruno Haible  <bruno@clisp.org>
34690
34691         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34692         * modules/c-strtod (Depends-on): Add locale.
34693         * modules/c-strtold (Depends-on): Likewise.
34694
34695 2009-12-12  Bruno Haible  <bruno@clisp.org>
34696
34697         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34698
34699 2009-12-11  Eric Blake  <ebb9@byu.net>
34700
34701         setenv: relax requirement in light of POSIX ruling
34702         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34703         not NULL.
34704         * tests/test-setenv.c (main): Relax test.
34705         * tests/test-unsetenv.c (main): Likewise.
34706         * doc/posix-functions/setenv.texi (setenv): Document this.
34707         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34708
34709 2009-12-11  Bruno Haible  <bruno@clisp.org>
34710
34711         New module 'fd-safer-flag'.
34712         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34713         * lib/dup-safer.c (dup_safer_flag): Remove function.
34714         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34715         * lib/fd-safer.c (fd_safer_flag): Remove function.
34716         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34717         * modules/cloexec (configure.ac): Drop indicator macro.
34718         * modules/fd-safer-flag: New file.
34719         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34720         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34721         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34722
34723 2009-12-11  Bruno Haible  <bruno@clisp.org>
34724
34725         Tests for module 'nl_langinfo'.
34726         * modules/nl_langinfo-tests: New file.
34727         * tests/test-nl_langinfo.sh: New file.
34728         * tests/test-nl_langinfo.c: New file.
34729
34730         New module 'nl_langinfo'.
34731         * lib/nl_langinfo.c: New file.
34732         * m4/nl_langinfo.m4: New file.
34733         * modules/nl_langinfo: New file.
34734         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34735
34736 2009-12-11  Bruno Haible  <bruno@clisp.org>
34737
34738         Tests for module 'langinfo'.
34739         * modules/langinfo-tests: New file.
34740         * tests/test-langinfo.c: New file.
34741
34742         New module 'langinfo'.
34743         * lib/langinfo.in.h: New file.
34744         * m4/langinfo_h.m4: New file.
34745         * modules/langinfo: New file.
34746         * doc/posix-headers/langinfo.texi: Mention the new module.
34747
34748 2009-12-11  Bruno Haible  <bruno@clisp.org>
34749
34750         * lib/config.charset: Untabify.
34751
34752 2009-12-11  Bruno Haible  <bruno@clisp.org>
34753
34754         * modules/unistd-safer (configure.ac): Drop indicator macro.
34755
34756 2009-12-11  Bruno Haible  <bruno@clisp.org>
34757
34758         Move pipe2-safer code to its own file.
34759         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34760         * lib/pipe-safer.c (pipe2_safer): Remove function.
34761         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34762         (Makefile.am): Add it to lib_SOURCES.
34763
34764 2009-12-10  Bruno Haible  <bruno@clisp.org>
34765
34766         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34767
34768 2009-12-10  Bruno Haible  <bruno@clisp.org>
34769
34770         Declare which arguments expect non-NULL values, for GCC and clang.
34771         * build-aux/arg-nonnull.h: New file.
34772         * modules/arg-nonnull: New file.
34773         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34774         (inet_ntop, inet_pton): Use it.
34775         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34776         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34777         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34778         (open, openat): Use it.
34779         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34780         (fnmatch): Use it.
34781         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34782         (getopt, getopt_long, getopt_long_only): Use it.
34783         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34784         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34785         Use it.
34786         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34787         (iconv_open): Use it.
34788         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34789         (strtoimax, strtoumax): Use it.
34790         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34791         (duplocale): Use it.
34792         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34793         (frexp, frexpl): Use it.
34794         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34795         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34796         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34797         (tsearch, tfind, tdelete, twalk): Use it.
34798         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34799         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34800         sigpending): Use it.
34801         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34802         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34803         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34804         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34805         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34806         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34807         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34808         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34809         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34810         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34811         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34812         Use it.
34813         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34814         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34815         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34816         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34817         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34818         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34819         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34820         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34821         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34822         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34823         strtoull, unsetenv): Use it.
34824         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34825         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34826         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34827         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34828         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34829         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34830         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34831         (strcasecmp, strncasecmp): Use it.
34832         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34833         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34834         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34835         rpl_setsockopt): Use it.
34836         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34837         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34838         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34839         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34840         (gettimeofday): Use it.
34841         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34842         (times): Use it.
34843         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34844         (uname): Use it.
34845         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34846         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34847         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34848         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34849         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34850         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34851         unlinkat, write): Use it.
34852         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34853         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34854         * lib/argv-iter.h: Include arg-nonnull.h.
34855         (_ATTRIBUTE_NONNULL_): Remove macro.
34856         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34857         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34858         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34859         optimization.
34860         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34861         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34862         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34863         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34864         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34865         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34866         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34867         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34868         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34869         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34870         * modules/dirent (Depends-on): Add arg-nonnull.
34871         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34872         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34873         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34874         * modules/fnmatch (Depends-on): Add arg-nonnull.
34875         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34876         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34877         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34878         * modules/glob (Depends-on): Add arg-nonnull.
34879         (Makefile.am): Insert arg-nonnull.h into glob.h.
34880         * modules/iconv_open (Depends-on): Add arg-nonnull.
34881         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34882         * modules/inttypes (Depends-on): Add arg-nonnull.
34883         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34884         * modules/locale (Depends-on): Add arg-nonnull.
34885         (Makefile.am): Insert arg-nonnull.h into locale.h.
34886         * modules/math (Depends-on): Add arg-nonnull.
34887         (Makefile.am): Insert arg-nonnull.h into math.h.
34888         * modules/netdb (Depends-on): Add arg-nonnull.
34889         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34890         * modules/search (Depends-on): Add arg-nonnull.
34891         (Makefile.am): Insert arg-nonnull.h into search.h.
34892         * modules/signal (Depends-on): Add arg-nonnull.
34893         (Makefile.am): Insert arg-nonnull.h into signal.h.
34894         * modules/spawn (Depends-on): Add arg-nonnull.
34895         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34896         * modules/stdio (Depends-on): Add arg-nonnull.
34897         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34898         * modules/stdlib (Depends-on): Add arg-nonnull.
34899         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34900         * modules/string (Depends-on): Add arg-nonnull.
34901         (Makefile.am): Insert arg-nonnull.h into string.h.
34902         * modules/strings (Depends-on): Add arg-nonnull.
34903         (Makefile.am): Insert arg-nonnull.h into strings.h.
34904         * modules/sys_socket (Depends-on): Add arg-nonnull.
34905         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34906         * modules/sys_stat (Depends-on): Add arg-nonnull.
34907         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34908         * modules/sys_time (Depends-on): Add arg-nonnull.
34909         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34910         * modules/sys_times (Depends-on): Add arg-nonnull.
34911         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34912         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34913         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34914         * modules/time (Depends-on): Add arg-nonnull.
34915         (Makefile.am): Insert arg-nonnull.h into time.h.
34916         * modules/unistd (Depends-on): Add arg-nonnull.
34917         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34918         * modules/wchar (Depends-on): Add arg-nonnull.
34919         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34920         * modules/argv-iter (Depends-on): Add arg-nonnull.
34921         * tests/test-canonicalize.c (null_ptr): New function.
34922         (main): Use it.
34923         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34924         (main): Use it.
34925         * tests/test-memmem.c (null_ptr): New function.
34926         (main): Use it.
34927         Reported by Jim Meyering.
34928
34929 2009-12-10  Bruno Haible  <bruno@clisp.org>
34930
34931         Use spaces for indentation, not tabs.
34932         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34933         * m4/*.m4: Untabify.
34934         * build-aux/*.h: Untabify.
34935         * tests/**/*.[hc]: Untabify.
34936         * README: New section "Indent with spaces, not TABs", based on
34937         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34938         * NEWS: Mention the change.
34939
34940 2009-12-10  Bruno Haible  <bruno@clisp.org>
34941
34942         pty test: Fix link error.
34943         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34944         test_pty_LDADD.
34945
34946 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34947
34948         * modules/pty: New file.
34949         * modules/pty-tests: New file.
34950         * m4/pty.m4: New file.
34951         * tests/test-pty.c: New file.
34952         * doc/glibc-headers/pty.texi: Modified.
34953         * doc/glibc-functions/forkpty.texi: Modified.
34954         * doc/glibc-functions/openpty.texi: Modified.
34955
34956 2009-12-10  Bruno Haible  <bruno@clisp.org>
34957
34958         Avoid syntax error in C++ mode.
34959         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34960
34961 2009-12-10  Bruno Haible  <bruno@clisp.org>
34962
34963         Use sed with option -e.
34964         * gnulib-tool (func_version, func_emit_copyright_notice,
34965         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34966         option -e to sed.
34967         * modules/link-warning (Makefile.am): Likewise.
34968
34969 2009-12-10  Jim Meyering  <meyering@redhat.com>
34970
34971         mgetgroups: do not write bytes beyond end of malloc'd buffer
34972         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34973         username, we call getgroups with a one-element-shorter buffer,
34974         but still told it the length was original, max_n_groups.
34975
34976 2009-12-09  Eric Blake  <ebb9@byu.net>
34977
34978         cloexec: relax license
34979         * modules/cloexec (Maintainer): Add myself.
34980         (License): Use LGPL, not GPL.
34981
34982         link-warning: optimize generation
34983         * modules/link-warning (Makefile.am): Reduce process usage.
34984
34985 2009-12-09  Bruno Haible  <bruno@clisp.org>
34986
34987         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34988         workaround was added on 2009-11-17.
34989
34990 2009-12-09  Jim Meyering  <meyering@redhat.com>
34991             Bruno Haible  <bruno@clisp.org>
34992
34993         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34994         * modules/link-warning (Makefile.am): Make the comment-removing sed
34995         command more robust in the face of bootstrap-prepended comment lines.
34996
34997 2009-12-09  Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
35000         most one group.
35001
35002 2009-12-09  Simon Josefsson <simon@josefsson.org>
35003             Bruno Haible  <bruno@clisp.org>
35004
35005         * build-aux/link-warning.h: Add copyright notice.
35006         * modules/link-warning (Makefile.am): Generate link-warning.h from
35007         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
35008         * NEWS: Mention change in link-warning module.
35009         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
35010         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35011         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35012         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35013         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35014         * modules/math (Makefile.am): Add dependency to math.h.
35015         * modules/search (Makefile.am): Add dependency to search.h.
35016         * modules/signal (Makefile.am): Add dependency to signal.h.
35017         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35018         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35019         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35020         * modules/string (Makefile.am): Add dependency to string.h.
35021         * modules/strings (Makefile.am): Add dependency to strings.h.
35022         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35023         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35024         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35025         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35026         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35027         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35028         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35029         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35030         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35031
35032 2009-12-09  Bruno Haible  <bruno@clisp.org>
35033
35034         fchdir: Optimize away rpl_fstat when possible.
35035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35036         REPLACE_OPEN_DIRECTORY.
35037         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35038
35039 2009-12-09  Bruno Haible  <bruno@clisp.org>
35040
35041         * lib/fchdir.c: Update comment.
35042
35043 2009-12-09  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35046
35047 2009-12-08  Eric Blake  <ebb9@byu.net>
35048
35049         fchdir: avoid memory leak on re-registration.
35050         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35051
35052 2009-12-08  Jim Meyering  <meyering@redhat.com>
35053
35054         init.sh: avoid Solaris 10 /bin/sh portability problem
35055         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35056         sourced script:
35057           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35058           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35059           bar
35060         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35061         and two tests used that idiom.
35062         * tests/init.sh: Update suggested usage comments.
35063         (path_prepend_): New function, to be used in place
35064         of the --src-path=DIR option.
35065         (setup_): Move PATH-prepending code into path_prepend_.
35066         * tests/test-pread.sh: Adapt to new usage.
35067         * tests/test-xalloc-die.sh: Likewise.
35068
35069 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35070
35071         * doc/gnulib.texi (Glibc pty.h): Add.
35072         * doc/glibc-functions/forkpty.texi: Add.
35073         * doc/glibc-functions/openpty.texi: Add.
35074         Suggested by Bruno Haible.
35075
35076 2009-12-08  Eric Blake  <ebb9@byu.net>
35077
35078         fchdir: fix logic bugs
35079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35080         * tests/test-fchdir.c (main): Enhance test.
35081         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35082         is in use.
35083
35084         dup2: fix logic bugs
35085         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35086         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35087         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35088         exists.
35089         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35090
35091 2009-12-07  Eric Blake  <ebb9@byu.net>
35092
35093         unlink: fix m4 detection
35094         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35095
35096         unistd-safer: add unit test
35097         * modules/unistd-safer-tests: New file.
35098         * tests/test-dup-safer.c: Likewise.
35099         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35100         * tests/test-dup2.c (setmode): Likewise.
35101         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35102
35103         cloexec: preserve text vs. binary across dup_cloexec
35104         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35105         mode.
35106         * modules/dup2-tests (Depends-on): Add binary-io.
35107         * modules/cloexec-tests (Depends-on): Likewise.
35108         * tests/test-dup2.c (setmode, is_mode): New helpers.
35109         (main): Add tests that translation mode is preserved.
35110         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35111         Reported by Bruno Haible.
35112
35113         mgetgroups: reduce duplicate listings
35114         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35115         resulting array.
35116         * tests/test-chown.h (test_chown): Simplify client.
35117         * tests/test-lchown.h (test_lchown): Likewise.
35118
35119 2009-12-06  Bruno Haible  <bruno@clisp.org>
35120
35121         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35122         value.
35123
35124 2009-12-06  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/progname.c: Include stdio.h, stdlib.h.
35127         (set_program_name): Reject a NULL argument.
35128
35129 2009-12-05  Eric Blake  <ebb9@byu.net>
35130
35131         pipe2-safer: new module
35132         * modules/pipe2-safer: New file.
35133         * lib/unistd-safer.h (pipe2_safer): New prototype.
35134         * lib/unistd--.h (pipe2): New wrapper.
35135         * lib/pipe-safer.c (pipe2_safer): New function.
35136         * modules/pipe (Depends-on): Add pipe2-safer.
35137         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35138
35139         stdlib-safer: preserve cloexec flag for mkostemp[s]
35140         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35141         fd_safer_flag.
35142
35143         unistd-safer: allow preservation of cloexec status via flag
35144         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35145         prototypes.
35146         * lib/dup-safer.c (dup_safer_flag): New function.
35147         * lib/fd-safer.c (fd_safer_flag): Likewise.
35148         * modules/cloexec (configure.ac): Set witness.
35149
35150         test-dup2: enhance test
35151         * modules/dup2-tests (Depends-on): Add cloexec.
35152         * tests/test-dup2.c (main): Enhance test.
35153
35154         cloexec: add dup_cloexec
35155         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35156         header and comments.
35157         * lib/cloexec.c (set_cloexec_flag): Add comments.
35158         (dup_cloexec): New function, with mingw implementation borrowed
35159         from...
35160         * lib/w32spawn.h (dup_noinherit): ...here.
35161         * modules/execute (Depends-on): Add cloexec.
35162         * modules/pipe (Depends-on): Likewise.
35163         * modules/cloexec (Depends-on): Add dup2.
35164         * modules/cloexec-tests (Files): New file.
35165         * tests/test-cloexec.c: Likewise.
35166
35167         test-xalloc-die: fix test for mingw
35168         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35169         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35170         directory and .exe suffix off argv[0] output.
35171
35172         test-fseeko: fix test for mingw
35173         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35174         than undefining fseek, so test will pass on mingw.
35175
35176 2009-12-05  Bruno Haible  <bruno@clisp.org>
35177
35178         * lib/progname.h (set_program_name): Clarify specification.
35179         * lib/progname.c (set_program_name): Likewise.
35180         Reported by Jim Meyering.
35181
35182 2009-12-05  Jim Meyering  <meyering@redhat.com>
35183
35184         maint.mk: backslash-escape parens in default regexp
35185         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35186         backslash-escape the literal parentheses.
35187
35188         maint.mk: news-date-check: use grep -E
35189         * top/maint.mk (today): Define a Make variable, not a...
35190         (news-date-check): ...shell variable.
35191         (news-date-regexp): Use the Make variable.
35192         Use grep's -E option.  Change the failing diagnostic to mention
35193         the variable, $(news-date-regexp).
35194
35195 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35196
35197         maintainer-makefile: allow customization of NEWS entry format
35198         * top/maint.mk (news-date-regexp): New overridable variable.
35199         (news-date-check): Use it.
35200
35201 2009-12-04  Eric Blake  <ebb9@byu.net>
35202
35203         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35204         * lib/mgetgroups.h (xgetgroups): New prototype.
35205         * lib/mgetgroups.c (xgetgroups): New wrapper.
35206         (mgetgroups): Handle ENOSYS.
35207         * modules/mgetgroups (Depends-on): Add realloc.
35208         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35209
35210         mgetgroups: avoid argument promotion issues with -1
35211         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35212         for invalid gid_t.
35213         * tests/test-chown.h (getegid, test_chown): Likewise.
35214         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35215
35216 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35217
35218         exclude: Fix header file problems.
35219         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35220
35221 2009-12-01  Jim Meyering  <meyering@redhat.com>
35222
35223         fts: fts_open: do not let an empty string cause immediate failure
35224         This is required in support of GNU rm, for which the command
35225         "rm A '' B" must process and remove both A and B, in spite of
35226         the empty string argument.
35227         * lib/fts.c (fts_open): Do not let the presence of an empty string
35228         cause fts_open to fail immediately.  Most fts-using tools must be
35229         able to process all arguments, in order, and can be expected to
35230         diagnose such arguments themselves.
35231
35232 2009-11-30  Eric Blake  <ebb9@byu.net>
35233
35234         utimens: fix compilation error
35235         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35236         Declare variable at right scope.
35237
35238 2009-11-29  Jim Meyering  <meyering@redhat.com>
35239
35240         bootstrap: handle perl-5.11's changed --version output
35241         * build-aux/bootstrap (get_version): Handle perl separately,
35242         since perl-5.11's --version output is different.
35243
35244 2009-11-28  Jim Meyering  <meyering@redhat.com>
35245
35246         userspec: depend on the inttostr module, too
35247         * modules/userspec (Depends-on): Add inttostr.
35248
35249         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35250         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35251         number of MAXUID when it evaluates to (uid_t) -1.
35252         Likewise for group ID.  Reported by Matt McCutchen in
35253         <http://savannah.gnu.org/bugs/?28113>
35254
35255         userspec: reformat to use spaces, not TABs
35256         * lib/userspec.c: Expand TABs to spaces.
35257         Add Emacs' "indent-tabs-mode: nil" hint.
35258
35259 2009-11-27  Eric Blake  <ebb9@byu.net>
35260
35261         getopt-gnu: flush out another BSD bug
35262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35263         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35264         flush out BSD bug.
35265         * tests/test-getopt.h (test_getopt): End lists with NULL.
35266         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35267         (test_getopt_long_posix): Enhance test.
35268         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35269         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35270         getopt-gnu.
35271         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35272         Likewise.
35273
35274 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35275
35276         * modules/idpriv-droptemp-tests (Notice): Fix text.
35277
35278 2009-11-27  Jim Meyering  <meyering@redhat.com>
35279
35280         test-xalloc-die: avoid spurious failure due to libtool argv difference
35281         In a libtool-enabled project, this test would fail due to a difference
35282         in the emitted program name, e.g.,
35283         -test-xalloc-die: memory exhausted
35284         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35285         Use program to avoid that.
35286         * modules/xalloc-die-tests (Depends-on): Add progname.
35287         * tests/test-xalloc-die.c: Include progname.h".
35288         (program_name): Remove decl.
35289         (main): Call set_program_name.
35290         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
35291
35292 2009-11-26  Richard Jones  <rjones@redhat.com>
35293
35294         w32sock: leave win32 error in place.
35295         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35296
35297 2009-11-26  Eric Blake  <ebb9@byu.net>
35298
35299         init.sh: suggest to use skip_ and fail_ functions in comments
35300         * tests/init.sh: Add a sentence.
35301
35302 2009-11-25  Bruno Haible  <bruno@clisp.org>
35303
35304         init.sh: add documentation in comments
35305         * tests/init.sh: Add some developer and user documentation.
35306
35307 2009-11-26  Jim Meyering  <meyering@redhat.com>
35308
35309         init.sh: accommodate even those who specify bogus srcdir manually
35310         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35311         configure-time tests to be sanitized, so that there is no need to
35312         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35313         (with no double quotes) suffices.  However, since tests may be
35314         invoked manually, and since you may explicitly set srcdir to the
35315         name of a directory containing spaces, do quote its uses here.
35316         * tests/test-pread.sh: Likewise.
35317         Suggested by Bruno Haible.
35318
35319         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35320         * tests/test-pread.sh: Write no data into the pipe, because
35321         test-pread actually reads none.  This avoids a diagnostic,
35322         "bash: echo: write error: Broken pipe", that arises in the unusual
35323         event something is ignoring SIGPIPE, and might be interpreted
35324         as some sort of failure.  Reported by Bruno Haible.
35325
35326 2009-11-25  Jim Meyering  <meyering@redhat.com>
35327
35328         test-pread: cover failure with ESPIPE and EINVAL
35329         * tests/test-pread.c (main): Test for failure, too.
35330         * tests/test-pread.sh: Invoke with stdin on a pipe.
35331         Suggested by Eric Blake.
35332
35333         pread: improvement and fix
35334         * modules/pread (Depends-on): Depend on lseek, for portability to
35335         e.g., mingw.  Suggested by Eric Blake.
35336         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35337
35338         unistd.in.h: correct declaration of pread
35339         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35340         Reported by Richard W.M. Jones.
35341
35342         test-pread.sh: distribute the test script
35343         * modules/pread-tests (Files): Include test-pread.sh.
35344
35345         test-pread.sh: clean up
35346         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35347         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35348         That is unnecessary, since it's always ".".
35349         Suggestion from Eric Blake.
35350
35351         test-pread.sh: make executable
35352         * tests/test-pread.sh: Set executable bit.
35353         Reported by Eric Blake.
35354
35355         correct typo in test-pread.sh
35356         * tests/test-pread.sh: Add #! line.
35357
35358         test pread
35359         * tests/test-pread.c: New file.
35360         * tests/test-pread.sh: Likewise.
35361         * modules/pread-tests: Likewise.
35362
35363         pread: new module
35364         * modules/pread: New file.
35365         * lib/unistd.in.h (pread): Define/declare.
35366         * lib/pread.c (pread): New file.
35367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35368         * modules/unistd (Makefile.am): Substitute witnesses.
35369         * doc/posix-functions/pread.texi (pread): Update.
35370         * MODULES.html.sh: Add pread.
35371
35372 2009-11-25  Jim Meyering  <meyering@redhat.com>
35373
35374         tests/init.sh: new file to be used via most *.sh tests
35375         * tests/init.sh: New file.
35376
35377 2009-11-25  Eric Blake  <ebb9@byu.net>
35378
35379         utimens: work around older Linux failure with symlinks
35380         * lib/utimens.c (lutimensat_works_really): New variable.
35381         (fdutimens, lutimens): Use it to manage kernels that support
35382         nanosecond times on files, but not on symlinks.
35383         Reported by OndÅ™ej Vašík.
35384
35385         utimes: fix configure grammar
35386         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35387
35388 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35389
35390         regex: Fix fastmap for multibyte character ranges.
35391         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35392         characters when a multibyte character range is included.
35393
35394 2009-11-22  Andy Wingo  <wingo@pobox.com>
35395
35396         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35397         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35398
35399 2009-11-24  Bruno Haible  <bruno@clisp.org>
35400
35401         doc: Most *_l functions exist in MacOS X 10.5.
35402         * doc/posix-functions/duplocale.texi: Update platforms list.
35403         * doc/posix-functions/freelocale.texi: Likewise.
35404         * doc/posix-functions/newlocale.texi: Likewise.
35405         * doc/posix-functions/uselocale.texi: Likewise.
35406         * doc/posix-functions/isalnum_l.texi: Likewise.
35407         * doc/posix-functions/isalpha_l.texi: Likewise.
35408         * doc/posix-functions/isblank_l.texi: Likewise.
35409         * doc/posix-functions/iscntrl_l.texi: Likewise.
35410         * doc/posix-functions/isdigit_l.texi: Likewise.
35411         * doc/posix-functions/isgraph_l.texi: Likewise.
35412         * doc/posix-functions/islower_l.texi: Likewise.
35413         * doc/posix-functions/isprint_l.texi: Likewise.
35414         * doc/posix-functions/ispunct_l.texi: Likewise.
35415         * doc/posix-functions/isspace_l.texi: Likewise.
35416         * doc/posix-functions/isupper_l.texi: Likewise.
35417         * doc/posix-functions/iswalnum_l.texi: Likewise.
35418         * doc/posix-functions/iswalpha_l.texi: Likewise.
35419         * doc/posix-functions/iswblank_l.texi: Likewise.
35420         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35421         * doc/posix-functions/iswctype_l.texi: Likewise.
35422         * doc/posix-functions/iswdigit_l.texi: Likewise.
35423         * doc/posix-functions/iswgraph_l.texi: Likewise.
35424         * doc/posix-functions/iswlower_l.texi: Likewise.
35425         * doc/posix-functions/iswprint_l.texi: Likewise.
35426         * doc/posix-functions/iswpunct_l.texi: Likewise.
35427         * doc/posix-functions/iswspace_l.texi: Likewise.
35428         * doc/posix-functions/iswupper_l.texi: Likewise.
35429         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35430         * doc/posix-functions/isxdigit_l.texi: Likewise.
35431         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35432         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35433         * doc/posix-functions/strcoll_l.texi: Likewise.
35434         * doc/posix-functions/strfmon_l.texi: Likewise.
35435         * doc/posix-functions/strftime_l.texi: Likewise.
35436         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35437         * doc/posix-functions/strxfrm_l.texi: Likewise.
35438         * doc/posix-functions/tolower_l.texi: Likewise.
35439         * doc/posix-functions/toupper_l.texi: Likewise.
35440         * doc/posix-functions/towctrans_l.texi: Likewise.
35441         * doc/posix-functions/towlower_l.texi: Likewise.
35442         * doc/posix-functions/towupper_l.texi: Likewise.
35443         * doc/posix-functions/wcscoll_l.texi: Likewise.
35444         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35445         * doc/posix-functions/wctrans_l.texi: Likewise.
35446         * doc/posix-functions/wctype_l.texi: Likewise.
35447         * doc/glibc-functions/strptime_l.texi: Likewise.
35448         * doc/glibc-functions/strtod_l.texi: Likewise.
35449         * doc/glibc-functions/strtof_l.texi: Likewise.
35450         * doc/glibc-functions/strtol_l.texi: Likewise.
35451         * doc/glibc-functions/strtold_l.texi: Likewise.
35452         * doc/glibc-functions/strtoll_l.texi: Likewise.
35453         * doc/glibc-functions/strtoul_l.texi: Likewise.
35454         * doc/glibc-functions/strtoull_l.texi: Likewise.
35455         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35456         * doc/glibc-functions/wcstod_l.texi: Likewise.
35457         * doc/glibc-functions/wcstof_l.texi: Likewise.
35458         * doc/glibc-functions/wcstol_l.texi: Likewise.
35459         * doc/glibc-functions/wcstold_l.texi: Likewise.
35460         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35461         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35462         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35463
35464 2009-11-24  Bruno Haible  <bruno@clisp.org>
35465
35466         duplocale: Fix logic bug.
35467         * lib/duplocale.c: Don't include <langinfo.h>.
35468         (_NL_LOCALE_NAME): Remove macro.
35469         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35470         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35471
35472 2009-11-23  Jim Meyering  <meyering@redhat.com>
35473
35474         test-update-copyright: don't hard-code /usr/bin/perl
35475         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35476         perl to print the current year.  Gilles Espinasse reported that
35477         the replaced use of perl was hard-coded as /usr/bin/perl.
35478
35479 2009-11-23  Bruno Haible  <bruno@clisp.org>
35480
35481         duplocale: Add support for glibc 2.3.x.
35482         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35483
35484 2009-11-22  Bruno Haible  <bruno@clisp.org>
35485
35486         vasnprintf: Tiny optimization.
35487         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35488         MacOS X.
35489
35490 2009-11-22  Bruno Haible  <bruno@clisp.org>
35491
35492         Tests for module 'duplocale'.
35493         * modules/duplocale-tests: New file.
35494         * tests/test-duplocale.c: New file.
35495
35496         New module 'duplocale'.
35497         * m4/duplocale.m4: New file.
35498         * lib/locale.in.h (duplocale): New declaration.
35499         * lib/duplocale.c: New file.
35500         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35501         gl_LOCALE_H_DEFAULTS): New macros.
35502         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35503         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35504         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35505         REPLACE_DUPLOCALE.
35506         * modules/duplocale: New file.
35507         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35508
35509 2009-11-22  Bruno Haible  <bruno@clisp.org>
35510
35511         * modules/locale-tests (configure.ac): Test for newlocale function.
35512         * tests/test-locale.c: When the system has extended locale functions,
35513         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35514
35515         locale: Make locale_t available when possible.
35516         * lib/locale.in.h: Include <xlocale.h> when it exists.
35517         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35518         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35519         * modules/locale (Depends-on): Add extensions.
35520         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35521         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35522
35523 2009-11-22  Bruno Haible  <bruno@clisp.org>
35524
35525         Add comments.
35526         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35527         invocation.
35528         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35529         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35530         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35531
35532 2009-11-22  Bruno Haible  <bruno@clisp.org>
35533
35534         error: account for the possibility of freopen (stdout).
35535         * lib/error.c: Include <unistd.h>.
35536         (flush_stdout): New function, extracted from error and error_at_line.
35537         Determine stdout's fd dynamically.
35538         (error, error_at_line): Invoke flush_stdout.
35539         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35540         * modules/error (Depends-on): Add unistd.
35541
35542 2009-11-22  Bruno Haible  <bruno@clisp.org>
35543
35544         diffseq: Add comment.
35545         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35546
35547 2009-11-22  Jim Meyering  <meyering@redhat.com>
35548
35549         c-stack: avoid defining an unused static function
35550         * lib/c-stack.c (find_stack_direction): Do not define this function
35551         when it will not be used.
35552
35553         diffseq: avoid spurious gcc warnings
35554         * lib/diffseq.h (IF_LINT2): Define.
35555         (compareseq): Use it to initialize two members of "part".
35556         This avoids two used-uninitialized warnings.
35557
35558 2009-11-21  Jim Meyering  <meyering@redhat.com>
35559
35560         c-stack: avoid "ignoring return value of `write'" warning
35561         * lib/c-stack.c: Include "ignore-value.h".
35562         (die): Explicitly ignore each write return value.
35563         * modules/c-stack (Depends-on): Add ignore-value.
35564
35565 2009-11-21  Bruno Haible  <bruno@clisp.org>
35566
35567         diffseq: reduce scope of variable 'best'.
35568         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35569         variable, earlier used for two different purposes.
35570
35571 2009-11-21  Jim Meyering  <meyering@redhat.com>
35572
35573         diffseq: remove useless assignment to "best"
35574         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35575         assignment.  At that point "best" is already guaranteed to be zero.
35576
35577 2009-11-20  Eric Blake  <ebb9@byu.net>
35578
35579         build: mention ftp redirector in release announcements
35580         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35581         values that used to come from cfg.mk; mention FTP redirect URL.
35582         * build-aux/announce-gen: Mention the mirror list.
35583         Suggested by Karl Berry.
35584
35585         nanosleep: improve port to mingw
35586         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35588         LIB_NANOSLEEP, but only when needed.
35589         * modules/select (Link): Document LIBSOCKET.
35590         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35591         enough.
35592
35593         nanosleep: work around cygwin bug
35594         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35595         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35596         bug.
35597         (getnow): Delete, not needed.
35598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35599         LIB_CLOCK_GETTIME.
35600         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35601         clock-time, gettime.
35602         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35603         bug.
35604         * modules/nanosleep-tests: New test.
35605         * tests/test-nanosleep.c: New file.
35606
35607         sleep: work around cygwin bug
35608         * lib/sleep.c (rpl_sleep): Work around the bug.
35609         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35610         (gl_PREREQ_SLEEP): Delete unused macro.
35611         * modules/sleep (Depends-on): Add verify.
35612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35613         * modules/unistd (Makefile.am): Substitute witness.
35614         * lib/unistd.in.h (sleep): Update prototype.
35615         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35616         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35617         * modules/sleep-tests (Depends-on): Check for alarm.
35618
35619 2009-11-20  Jim Meyering  <meyering@redhat.com>
35620
35621         maint.mk: improve sc_prohibit_magic_number_exit
35622         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35623         so it does not match uses like System.exit(1).
35624         Add comments showing how to correct all offenders.
35625
35626 2009-11-19  Eric Blake  <ebb9@byu.net>
35627
35628         xalloc-die-tests: add missing library
35629         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35630
35631         test-xvasprintf: silence compiler warnings
35632         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35633         empty string from gcc.
35634
35635 2009-11-19  Jim Meyering  <meyering@redhat.com>
35636
35637         xfreopen: new module, from coreutils
35638         * modules/xfreopen: New module.
35639         * lib/xfreopen.c: New file.
35640         * lib/xfreopen.h: New file.
35641         * MODULES.html.sh (File stream based Input/Output"): Add it.
35642
35643 2009-11-19  Eric Blake  <ebb9@byu.net>
35644
35645         manywarnings: depend on warnings
35646         * modules/manywarnings (Depends-on): Add warnings.
35647
35648         build: avoid compiler warnings
35649         * lib/select.c (rpl_select): Delete unused variable.
35650         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35651
35652 2009-11-18  Eric Blake  <ebb9@byu.net>
35653
35654         tests: avoid false negative with --with-packager
35655         * tests/test-version-etc.sh: Discard packager information.
35656         * tests/test-argp-version-etc-1.sh: Likewise.
35657         Reported by Mike Frysinger.
35658
35659         utimens: fix regression on Solaris
35660         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35661         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35662         can only change fd timestamps via futimesat.  Instead, use an
35663         additional witness macro to avoid BSD bug.
35664         Reported by Jim Meyering.
35665
35666 2009-11-17  Eric Blake  <ebb9@byu.net>
35667
35668         usleep: use it to simplify tests
35669         * modules/stat-time-tests (Depends-on): Add usleep.
35670         (configure.ac): Drop usleep check.
35671         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35672         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35673         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35674         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35675         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35676         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35677         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35678         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35679         Likewise.
35680         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35681         * tests/test-lchown.h (nap): Likewise.
35682         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35683         * tests/test-stat-time.c (nap): Likewise.
35684         * tests/test-utimens-common.h (nap): Update comments.
35685
35686         usleep: new module
35687         * modules/usleep: New file.
35688         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35689         * lib/usleep.c (usleep): Likewise.
35690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35691         * modules/unistd (Makefile.am): Substitute witnesses.
35692         * lib/unistd.in.h (usleep): Add declaration.
35693         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35694         * MODULES.html.sh (Date and time): Likewise.
35695         * modules/usleep-tests (Depends-on): New test.
35696         * tests/test-usleep.c: New file.
35697
35698         chown: work around OpenBSD bug
35699         * lib/chown.c (rpl_chown): Work around the bug.
35700         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35701         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35702         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35703         * modules/chown (Depends-on): Add stdbool.
35704         * modules/lchown (Depends-on): Likewise.
35705         * doc/posix-functions/chown.texi (chown): Document the bug.
35706         * doc/posix-functions/lchown.texi (lchown): Likewise.
35707         * tests/test-lchown.h (test_chown): Relax test.
35708
35709         mkstemp: avoid conflict with C++ keyword template
35710         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35711         * lib/mkostemp.c (mkostemp): Likewise.
35712         * lib/mkostemps.c (mkostemps): Likewise.
35713         * lib/mkstemp.c (mkstemp): Likewise.
35714         * lib/mkstemps.c (mkstemps): Likewise.
35715
35716         xalloc-die-tests: optimize
35717         * tests/test-xalloc-die.sh: Reduce number of processes.
35718
35719 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35720
35721         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35722         patch from ludo@gnu.org (Ludovic Courtès).
35723
35724 2009-11-17  Jim Meyering  <meyering@redhat.com>
35725
35726         version-etc: use proper license string
35727         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35728         * modules/version-etc-fsf: Likewise.
35729
35730 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35731
35732         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35733         printed to stdout.  Deal with EOL differences.
35734
35735 2009-11-17  Eric Blake  <ebb9@byu.net>
35736
35737         unsetenv: work around Solaris bug
35738         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35739         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35740         Reported by Jim Meyering.
35741
35742         vasnprintf: avoid compiler warnings
35743         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35744         variables.
35745         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35746
35747 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35748
35749         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35750         settings since xalloc-die is no longer the self test,
35751         xalloc-die.sh is.
35752
35753 2009-11-17  Jim Meyering  <meyering@redhat.com>
35754
35755         test-xalloc-die.sh: make the code agree with the commit log
35756         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35757         at the end, just in case you happen to have a test-xalloc-die
35758         program in some other PATH directory.
35759
35760         test-xalloc-die.sh: fix a portability bug
35761         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35762         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35763         Otherwise, argv[0] (as often seen in diagnostics) would be too
35764         system-dependent, sometimes with, and sometimes without the leading "./".
35765
35766         version-etc-fsf: relax license to LGPLv3+
35767         * modules/version-etc-fsf (License): Relax license.
35768
35769 2009-11-16  Eric Blake  <ebb9@byu.net>
35770
35771         xalloc-die-tests: avoid printing null pointer
35772         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35773         shell script.
35774         * tests/test-xalloc-die.c (program_name): Declare.
35775         * tests/test-xalloc-die.sh (tmpfiles): New file.
35776
35777         setenv, unsetenv: work around various bugs
35778         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35779         (setenv) [HAVE_SETENV]: Work around bugs.
35780         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35781         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35782         for bugs.
35783         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35784         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35786         * modules/stdlib (Makefile.am): Update substitutions.
35787         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35788         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35789         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35790         * modules/setenv-tests: New test.
35791         * modules/unsetenv-tests: Likewise.
35792         * tests/test-setenv.c: New file.
35793         * tests/test-unsetenv.c: Likewise.
35794
35795 2009-11-16  Jim Meyering  <meyering@redhat.com>
35796
35797         version-etc: relax license to LGPLv3+
35798         * modules/version-etc (License): Relax license.
35799
35800         better AC_REQUIRE expanded-before-required-warning avoidance
35801         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35802         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35803         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35804         which is no longer needed.
35805
35806 2009-11-16  Eric Blake  <ebb9@byu.net>
35807
35808         test-freading: clean up temporary file
35809         * tests/test-freading.c (main): Remove file on success, and use
35810         ASSERT more liberally.
35811         Reported by Jim Meyering.
35812
35813 2009-11-16  Jim Meyering  <meyering@redhat.com>
35814
35815         avoid new AC_REQUIRE expanded-before-required warnings
35816         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35817         merely using it.
35818         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35819         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35820
35821 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35822
35823         * tests/test-xalloc-die.c: New file.
35824         * modules/xalloc-die-tests: New file.
35825         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35826         XFAIL_TESTS so it can be appended by modules.
35827
35828 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35829
35830         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35831         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35832
35833 2009-11-14  Eric Blake  <ebb9@byu.net>
35834
35835         fnmatch: avoid compiler warning
35836         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35837         to silence compiler warning about mismatch signedness in ?:.
35838         Reported by Robert Millan.
35839
35840         intprops: add double-inclusion guard
35841         * lib/intprops.h: Allow idempotent includes.
35842         Suggested by Bruce Korb.
35843
35844         openat: detect Solaris fchownat bug
35845         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35846         penalizing glibc chownat when only lchownat is broken.
35847         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35848         trailing slash bugs.
35849         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35850         * modules/openat-tests (Files): Include more files.
35851         (Depends-on): Add mgetgroups, sleep, stat-time.
35852         (configure.ac): Add additional checks.
35853         (Makefile.am): Build new test.
35854         * tests/test-fchownat.c: New file.
35855
35856         lchown: detect Solaris and FreeBSD bug
35857         * lib/lchown.c (rpl_lchown): Work around bug.
35858         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35860         * modules/unistd (Makefile.am): Populate it.
35861         * lib/unistd.in.h (lchown): Update declaration.
35862         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35863         * modules/lchown-tests: New file.
35864         * tests/test-lchown.h (test_lchown): Likewise.
35865         * tests/test-lchown.c (main): Likewise.
35866
35867         chown: detect Solaris and FreeBSD bug
35868         * lib/chown.c (rpl_chown): Work around bug.
35869         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35870         (gl_PREREQ_CHOWN): Delete.
35871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35872         * modules/unistd (Makefile.am): Populate it.
35873         * lib/unistd.in.h (chown): Update declaration.
35874         * lib/lchown.c (chown): Update client.
35875         * modules/lchown (Depends-on): Add lstat.
35876         * doc/posix-functions/chown.texi (chown): Document the bug.
35877         * doc/posix-functions/getgroups.texi (getgroups): Document
35878         getgroups pitfall.
35879         * modules/chown-tests: New file.
35880         * tests/test-chown.h (test_chown): Likewise.
35881         * tests/test-chown.c (main): Likewise.
35882
35883 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35884
35885         gnulib-tool: correctly detect absence of m4 directories
35886         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35887
35888 2009-11-14  Jim Meyering  <meyering@redhat.com>
35889
35890         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35891         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35892
35893 2009-11-14  John W. Eaton  <jwe@gnu.org>
35894
35895         strftime.h: wrap funtion declaration in extern "C" block
35896         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35897
35898 2009-11-13  Eric Blake  <ebb9@byu.net>
35899
35900         getgroups: avoid compiler warning
35901         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35902
35903         getgroups: work around FreeBSD bug
35904         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35905         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35906         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35907         * tests/test-getgroups.c (main): Fix buffer overrun.
35908
35909         getgroups: avoid compilation failure
35910         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35911         * modules/getgroups (Depends-on): Add stdint.
35912
35913 2009-11-13  Jim Meyering  <meyering@redhat.com>
35914
35915         test-getgroups: avoid compilation failure
35916         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35917
35918 2009-11-13  Eric Blake  <ebb9@byu.net>
35919
35920         mgetgroups: new module, taken from coreutils
35921         * modules/mgetgroups: New file.
35922         * lib/mgetgroups.h: Likewise.
35923         * lib/mgetgroups.c (mgetgroups): Likewise.
35924         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35925         * MODULES.html.sh (Users and groups): Mention it.
35926
35927         getgroups: don't expose GETGROUPS_T to user
35928         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35929         an element at a time if GETGROUPS_T is wrong size.
35930         * lib/getugroups.h (getugroups): Change signature.
35931         * lib/unistd.in.h (getgroups): Likewise.
35932         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35933         signature needs fixing.
35934         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35935         AC_TYPE_GETGROUPS.
35936         * modules/group-member (Depends-on): Add getgroups.
35937         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35938         (group_member): Rely on getgroups replacement.
35939         * lib/getugroups.c (getugroups): Use gid_t.
35940         * tests/test-getgroups.c (main): Likewise.
35941         * NEWS: Mention the signature change.
35942         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35943         problem with signature.
35944         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35945         GETGROUPS_T is still useful for setgroups.
35946
35947         getgroups, getugroups: provide stubs for mingw
35948         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35949         * lib/getugroups.c (getugroups): Likewise.
35950         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35951         function.  Modernize replacement scheme.
35952         (gl_PREREQ_GETGROUPS): Delete.
35953         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35954         * modules/getgroups (configure.ac): Declare witness.
35955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35956         * modules/unistd (Depends-on): Substitute witness.
35957         * lib/unistd.in.h (getgroups): Declare replacement.
35958
35959         getgroups: avoid calling exit
35960         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35961         drop xalloc.
35962         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35963         dependencies.
35964         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35965         exiting, in the rare case of malloc failure.
35966
35967         getgroups: fix logic error
35968         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35969         has more than 20 groups.
35970         * modules/getgroups-tests: New test.
35971         * tests/test-getgroups.c: New file.
35972
35973 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35974
35975         * tests/test-base64.c: Improve.
35976
35977 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35978
35979         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35980         Blake <ebb9@byu.net>.
35981
35982 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35983
35984         * tests/test-xvasprintf.c: Add %s%s related checks.
35985
35986 2009-11-12  Eric Blake  <ebb9@byu.net>
35987
35988         version-etc: match standards.texi style
35989         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35990         and use <> only for URLs.
35991
35992 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35993
35994         fts: do not fail on a submount during traversal
35995         * lib/fts.c (fts_build): Read the stat info again after opening
35996         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35997         Original report at http://bugzilla.redhat.com/501848.
35998
35999 2009-11-12  Jim Meyering  <meyering@redhat.com>
36000
36001         bootstrap: sync from coreutils
36002         * build-aux/bootstrap (bootstrap_epilogue): New function.
36003         Use git_modules_config in one more place.  This make bootstrap's
36004         --gnulib-srcdir option more useful for testing.
36005
36006         bootstrap: generalize autoheader check
36007         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
36008         AC_CONFIG_HEADERS.
36009
36010 2009-11-11  Eric Blake  <ebb9@byu.net>
36011
36012         mkfifoat: use new modules for Solaris and BSD bugs
36013         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36014         * lib/mkfifoat.c (mknodat): Split...
36015         * lib/mknodat.c (mknodat): ...into new file.
36016         * modules/mkfifoat (Files): Ship new file.
36017         (Depends-on): Add mkfifo, mknod.
36018         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36019         (Depends-on): Add symlink.
36020         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36021         redundant with test_mkfifo.h.
36022         (do_mkfifoat, do_mknodat): New helpers.
36023
36024         mknod: new module
36025         * modules/mknod: New file.
36026         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36027         * lib/mknod.c (mknod): Likewise.
36028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36029         defaults.
36030         * modules/sys_stat (Makefile.am): Substitute them.
36031         * lib/sys_stat.in.h (mknod): Declare replacement.
36032         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36033         Document it.
36034         * doc/posix-functions/mknod.texi (mknod): Likewise.
36035         * modules/mknod-tests: New test.
36036         * tests/test-mknod.c: Likewise.
36037
36038         mkfifo: new module
36039         * modules/mkfifo: New file.
36040         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36041         * lib/mkfifo.c (mkfifo): Likewise.
36042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36043         defaults.
36044         * modules/sys_stat (Makefile.am): Substitute them.
36045         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36046         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36047         Document it.
36048         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36049         * modules/mkfifo-tests: New test.
36050         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36051         from test-mkfifoat.c.
36052         * tests/test-mkfifo.c: New file.
36053
36054         readlink: detect FreeBSD bug
36055         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36056         slash on symlink.
36057         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36058         * tests/test-readlink.h (test_readlink): Enhance test.
36059
36060         symlink: detect FreeBSD bug
36061         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36062         slash on symlink.
36063         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36064         * tests/test-symlink.h (test_symlink): Enhance test.
36065
36066 2009-11-10  Eric Blake  <ebb9@byu.net>
36067
36068         link: detect FreeBSD bug
36069         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36070         symlink.
36071         * doc/posix-functions/link.texi (link): Document the bug.
36072         * tests/test-link.h (test_link): Enhance test.
36073         * tests/test-linkat.c (main): Update caller.
36074
36075         unlink, remove: detect FreeBSD bug
36076         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36077         slash on symlink.
36078         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36079         * doc/posix-functions/remove.texi (remove): Likewise.
36080         * tests/test-unlink.h (test_unlink): Enhance test.
36081         * tests/test-remove.c (main): Likewise.
36082
36083 2009-11-09  Eric Blake  <ebb9@byu.net>
36084
36085         rename: detect FreeBSD bug
36086         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36087         slash on symlink.
36088         * modules/renameat-tests (Depends-on): Add filenamecat.
36089         * tests/test-rename.h (test_rename): Allow one more errno.
36090         * tests/test-renameat.c (main): Likewise.
36091         * doc/posix-functions/rename.texi (rename): Document the bug.
36092
36093         open: detect FreeBSD bug
36094         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36095         symlink.
36096         * doc/posix-functions/open.texi (open): Document the bug.
36097         * doc/posix-functions/utimes.texi (utimes): Likewise.
36098         * tests/test-open.h (test_open): Add parameters, and test symlink
36099         handling.
36100         * tests/test-open.c (main): Adjust caller.
36101         * tests/test-fcntl-safer.c (main): Likewise.
36102         * modules/open-tests (Depends-on): Add stdbool, symlink.
36103         * modules/fcntl-safer-tests (Depends-on): Likewise.
36104         * tests/test-openat.c (main): Add test-open tests.
36105
36106         stat: detect FreeBSD bug
36107         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36108         symlink.
36109         * doc/posix-functions/stat.texi (stat): Document the bug.
36110         * tests/test-stat.h (test_stat_func): Add argument.
36111         * tests/test-stat.c (main): Adjust caller.
36112         * tests/test-fstatat.c (main): Likewise.
36113         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36114         Reported by Jim Meyering.
36115
36116 2009-11-09  James Youngman  <jay@gnu.org>
36117
36118         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36119         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36120
36121 2009-11-08  Jim Meyering  <meyering@redhat.com>
36122
36123         utimens: remove invalid futimesat call
36124         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36125         It used the file descriptor of the target file as the DIR_FD
36126         parameter and NULL as the file name.  That caused failure with
36127         errno == EFAULT on FreeBSD-8.0-rc2
36128
36129 2009-11-07  Eric Blake  <ebb9@byu.net>
36130
36131         fflush, freadseek: use fseeko, not fseek
36132         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36133         (clear_ungetc_buffer): Avoid potential problems on large files.
36134         * lib/freadseek.c (freadseek): Likewise.
36135         * modules/freadseek (Depends-on): Add fseeko.
36136         * modules/fseek (configure.ac): Set a witness.
36137         * tests/test-fflush.c (main): Use fseeko.
36138         * tests/test-fpurge.c (fseek): Disable link warning.
36139         * tests/test-freadable.c (fseek): Likewise.
36140         * tests/test-freading.c (fseek): Likewise.
36141         * tests/test-fseeko.c (fseek): Likewise.
36142         * tests/test-ftell.c (fseek): Likewise.
36143         * tests/test-ftello.c (fseek): Likewise.
36144         * tests/test-fwritable.c (fseek): Likewise.
36145         * tests/test-fwriting.c (fseek): Likewise.
36146
36147 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36148
36149         * modules/memchr (Depends-on): Drop getpagesize dependency.
36150
36151 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36152
36153         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36154         Reported by Ludovic Courtès.
36155         * build-aux/pmccabe2html: Improve example usage.
36156         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36157
36158 2009-11-06  Jim Meyering  <meyering@redhat.com>
36159
36160         do-release-commit-and-tag: New module.
36161         Automate the release-commit and tag process.
36162         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36163         * modules/do-release-commit-and-tag: New file.
36164         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36165
36166 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36167
36168         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36169         because test-select.c uses inet_pton.
36170
36171 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36172
36173         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36174         GETADDRINFO_LIB.  Bump serial number.
36175         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36176         Suggested by Eric Blake <ebb9@byu.net>.
36177
36178 2009-11-05  Eric Blake  <ebb9@byu.net>
36179
36180         strtod: detect darwin bug
36181         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36182         Reported by Leo Davis.
36183
36184         freopen-safer: new module
36185         * modules/freopen-safer: New module.
36186         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36187         * lib/freopen-safer.c (freopen_safer): New file.
36188         * lib/stdio-safer.h (freopen_safer): New declaration.
36189         * lib/stdio--.h (freopen): New override.
36190         * MODULES.html.sh (File stream based Input/Output): Mention it.
36191         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36192         freopen-safer module.
36193         * doc/posix-functions/stderr.texi (stderr): Likewise.
36194         * doc/posix-functions/stdin.texi (stdin): Likewise.
36195         * doc/posix-functions/stdout.texi (stdout): Likewise.
36196         * modules/freopen-safer-tests: New test.
36197         * tests/test-reopen-safer.c: New file.
36198
36199 2009-11-05  Jim Meyering  <meyering@redhat.com>
36200
36201         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36202         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36203
36204 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36205
36206         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36207
36208 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36209
36210         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36211
36212 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36213
36214         Fix link error.
36215         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36216         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36217
36218 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36219
36220         * tests/test-func.c: Also test value of __func__.
36221
36222 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36223
36224         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36225         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36226
36227 2009-11-05  Bruno Haible  <bruno@clisp.org>
36228
36229         Fix link error.
36230         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36231         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36232         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36233
36234 2009-11-05  Bruno Haible  <bruno@clisp.org>
36235
36236         Tests for module 'inet_pton'.
36237         * modules/inet_pton-tests: New file.
36238         * tests/test-inet_pton.c: New file.
36239
36240 2009-11-05  Bruno Haible  <bruno@clisp.org>
36241
36242         Tests for module 'inet_ntop'.
36243         * modules/inet_ntop-tests: New file.
36244         * tests/test-inet_ntop.c: New file.
36245
36246 2009-11-04  Eric Blake  <ebb9@byu.net>
36247
36248         stdlib-safer: wrap all mkstemp variants
36249         * modules/mkostemp (configure.ac): Set witness.
36250         * modules/mkostemps (configure.ac): Likewise.
36251         * modules/mkstemps (configure.ac): Likewise.
36252         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36253         (mkstemps_safer): Wrap more functions.
36254         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36255         wrapping.
36256         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36257         (mkstemps_safer): Implement the wrappers.
36258
36259         mkstemps, mkostemps: new modules
36260         * modules/mkostemps: New module.
36261         * modules/mkstemps: Likewise.
36262         * lib/mkostemps.c (mkostemps): New file.
36263         * lib/mkstemps.c (mkstemps): Likewise.
36264         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36265         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36267         * modules/stdlib (Makefile.am): Substitute them.
36268         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36269         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36270         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36271         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36272         * MODULES.html.sh (File system functions): Mention them.
36273
36274         tempname: resync from glibc
36275         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36276         same values for __GT_FILE as glibc.  Abort even when assertions
36277         are disabled.
36278         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36279         match its value otherwise.  Allow idempotent inclusion.
36280         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36281         * lib/mkostemp.c (mkostemp): Likewise.
36282         * lib/mkstemp.c (mkstemp): Likewise.
36283         * lib/tmpfile.c (tmpfile): Likewise.
36284         * NEWS: Document this.
36285
36286         utimens: fix use of futimens on older Linux
36287         * lib/utimens.c (fdutimens): Use updated, rather than original,
36288         timespec to avoid bug in older Linux kernel.
36289         Reported by Simon Josefsson.
36290
36291 2009-11-04  Bruno Haible  <bruno@clisp.org>
36292
36293         Make num_processors more flexible and consistent.
36294         * lib/nproc.h (enum nproc_query): New type.
36295         (num_processors): Add a 'query' argument.
36296         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36297         (num_processors): Add a 'query' argument. Test the value of the
36298         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36299         mingw, count the number of CPUs available for the current process.
36300         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36301         Check for sched_getaffinity and sched_getaffinity_np.
36302         * modules/nproc (Depends-on): Add c-ctype, extensions.
36303         * NEWS: Mention the change.
36304
36305 2009-11-03  Bruno Haible  <bruno@clisp.org>
36306
36307         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36308
36309 2009-11-03  Jim Meyering  <meyering@redhat.com>
36310
36311         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36312         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36313         if it is defined.
36314
36315 2009-11-02  Eric Blake  <ebb9@byu.net>
36316
36317         mktime, timegm: share common declaration
36318         * lib/mktime-internal.h: New file.
36319         * lib/mktime.c: Use it rather than open-coding a declaration.
36320         * lib/timegm.c: Likewise.
36321         * modules/mktime (Files): Ship it.
36322         * modules/timegm (Files): Likewise.
36323         Suggested by Bruno Haible.
36324
36325         test-update-copyright: update test to match script changes
36326         * tests/test-update-copyright.sh: Avoid hard-coding perl
36327         location.  Don't update *.bak created by earlier runs.
36328
36329 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36330             Simon Josefsson  <simon@josefsson.org>
36331             Bruno Haible  <bruno@clisp.org>
36332
36333         Fix link error on Solaris 8.
36334         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36335         also in libnsl. Define also INET_PTON_LIB.
36336         * modules/inet_pton (Link): New section.
36337
36338 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36339             Bruno Haible  <bruno@clisp.org>
36340
36341         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36342         * modules/inet_ntop (Link): New section.
36343         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36344
36345 2009-11-02  Eric Blake  <ebb9@byu.net>
36346
36347         maint: avoid compiler warnings in m4 macros
36348         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36349         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36350
36351 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36352
36353         * m4/pmccabe2html.m4: Remove file.
36354         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36355         function.  Change maintainer.
36356         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36357         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36358         Courtès).
36359
36360 2009-10-31  Eric Blake  <ebb9@byu.net>
36361
36362         fseeko: fix m4 regression
36363         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36364         regression from 2009-10-27.
36365         Reported by Ralf Wildenhues.
36366
36367 2009-10-31  Jim Meyering  <meyering@redhat.com>
36368
36369         inttostr: aesthetics and improved (compile-time) safety
36370         Define inttype_is_signed rather than inttype_is_unsigned,
36371         since the sole use is via "#if inttype_is_signed".
36372         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36373         inttype_is_unsigned.
36374         * lib/offtostr.c (inttype_is_signed): Likewise.
36375         * lib/uinttostr.c (inttype_is_signed): Likewise.
36376         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36377         * lib/inttostr.c (inttostr): Use verify to cross-check the
36378         inttype_is_signed value and the signedness of the actual type.
36379         * modules/inttostr (Depends-on): Add verify.
36380
36381 2009-10-30  Eric Blake  <ebb9@byu.net>
36382
36383         build: avoid compiler warnings
36384         * lib/fchmodat.c (lchmod): Mark unused variables.
36385         * lib/getopt.c (_getopt_initialize): Likewise.
36386         * lib/mktime.c (__mktime_internal): Provide prototype.
36387         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36388         older gcc that do not understand #pragma GCC diagnostic.
36389         * lib/uinttostr.c (inttype_is_unsigned): Define.
36390         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36391
36392 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36393
36394         stat: fix compilation on AIX
36395         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36396         only see struct stat64.
36397
36398 2009-10-30  Eric Blake  <ebb9@byu.net>
36399
36400         exclude: make more robust
36401         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36402         rather than masking a coding bug.
36403         Suggested by Bruno Haible.
36404
36405 2009-10-30  Jim Meyering  <meyering@redhat.com>
36406
36407         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36408         Rather than putting #!/usr/bin/perl on the first line,
36409         start with a variant of what's recommended by "man perlrun" that
36410         invokes the first "perl" program from your shell's search path.
36411         * build-aux/gitlog-to-changelog: Replace #!... as above.
36412         Add a "Local Variables" perl mode setting.
36413         Prompted by a patch from Ludovic Courtès.
36414         Improved by Eric Blake.
36415         * build-aux/useless-if-before-free: Likewise.
36416         * build-aux/announce-gen: Likewise.
36417         * build-aux/update-copyright: Likewise.
36418
36419 2009-10-29  Eric Blake  <ebb9@byu.net>
36420
36421         filenamecat-lgpl: adjust clients
36422         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36423         filenamecat.
36424         * modules/renameat (Depends-on): Likewise.
36425
36426         filenamecat: split into filenamecat-lgpl
36427         * modules/filenamecat-lgpl: New module.
36428         * modules/filenamecat (Files): Move library-safe files into
36429         filenamecat-lgpl.
36430         (Depends-on): Add filenamecat-lgpl.
36431         (configure.ac): Declare witness.
36432         * lib/filenamecat.h (file_name_concat): Only declare when using
36433         GPL module.
36434         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36435         Move...
36436         * lib/filenamecat-lgpl.c: ...into new file.
36437         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36438         (gl_FILE_NAME_CONCAT): Use it.
36439         * MODULES.html.sh (File system functions): Mention new module.
36440
36441         argp: avoid memory leak
36442         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36443         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36444         base_name, since the latter malloc()s and can call exit().
36445         Leak introduced 2006-07-03.
36446
36447         dirname-lgpl: adjust clients that don't need full dirname
36448         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36449         * modules/filenamecat (Depends-on): Likewise.
36450         * modules/linkat (Depends-on): Likewise.
36451         * modules/mkancesdirs (Depends-on): Likewise.
36452         * modules/mkdir (Depends-on): Likewise.
36453         * modules/openat (Depends-on): Likewise.
36454         * modules/savewd (Depends-on): Likewise.
36455         * modules/rename (Depends-on): Likewise.
36456         (License): Relax license.
36457         * modules/mkdir-tests (Depends-on): Drop progname.
36458         (Makefile.am): Delete unneeded LDADD.
36459         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36460
36461         dirname: split into dirname-lgpl
36462         * modules/dirname-lgpl: New module.
36463         * modules/dirname (Files): Move library-safe files into
36464         dirname-lgpl.
36465         (Depends-on): Add dirname-lgpl.
36466         (configure.ac): Declare witness.
36467         * modules/double-slash-root (License): Relax license.
36468         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36469         module.
36470         * lib/dirname.c (dir_len, mdir_name): Move...
36471         * lib/dirname-lgpl.c: ...into new file.
36472         * lib/basename.c (last_component, base_len): Move...
36473         * lib/basename-lgpl.c: ...into new file.
36474         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36475         (gl_DIRNAME): Use it.
36476         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36477         Mention new module.
36478         * modules/dirname-tests (Depends-on): Add progname.
36479         * tests/test-dirname.c (program_name): Delete.
36480
36481         mkdir: make safe for libraries
36482         * modules/mkdir (Depends-on): Drop xalloc.
36483         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36484         exit.
36485
36486         tests: avoid some compiler warnings
36487         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36488         literals.
36489         * tests/test-memchr.c (main): Avoid type mismatch.
36490         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36491         * tests/test-base64.c (main): Likewise.
36492         * tests/test-getdelim.c (main): Likewise.
36493         * tests/test-gethostname.c (main): Likewise.
36494         * tests/test-getline.c (main): Likewise.
36495         * tests/test-netinet_in.c (main): Likewise.
36496         * tests/test-select.c (open_server_socket, main): Likewise.
36497         * tests/test-select-stdin.c (main): Likewise.
36498         * tests/test-sockets.c (main): Likewise.
36499         * tests/test-strsignal.c (main): Likewise.
36500         * tests/test-sys_select.c (main): Likewise.
36501         * tests/test-sys_socket.c (main): Likewise.
36502         * tests/test-u64.c (main): Likewise.
36503         * tests/test-xfprintf-posix.c (main): Likewise.
36504         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36505
36506         sockets: avoid compiler warning
36507         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36508
36509         maint: detect usage(1) and other suspicious exits
36510         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36511
36512 2009-10-29  Jim Meyering  <meyering@redhat.com>
36513
36514         timespec: long-to-int truncation could make timespec_cmp malfunction
36515         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36516         a multiple of 2^32 nanoseconds as no difference.
36517
36518 2009-10-28  Jim Meyering  <meyering@redhat.com>
36519
36520         fprintftime: wrap macro code argument in "do {...} while(0)"
36521         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36522         cpy macro must be a statement that can be followed by a semicolon.
36523         Now that the else clause contains a comment and is hence longer
36524         than one line, I require curly braces.  That in turn requires
36525         that we wrap this code block in the standard do...while(0).
36526
36527         fprintftime: remove stray semicolon from previous change
36528         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36529
36530         fprintftime: avoid a warning about ignored fwrite return value
36531         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36532         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36533         that is unsafe.
36534         * modules/fprintftime (Depends-on): Add ignore-value.
36535
36536         exclude: avoid an unwarranted warning
36537         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36538
36539 2009-10-27  Eric Blake  <ebb9@byu.net>
36540
36541         fseek: avoid compilation failure when fflush is replaced
36542         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36543         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36544         module is in use.
36545         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36546         module is not in use; since REPLACE_FSEEK worked otherwise.
36547         (GNULIB_FTELLO): Likewise for ftell.
36548         Reported by Ian Beckwith and others.
36549
36550 2009-10-27  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36553         Reported by Jim Meyering.
36554
36555 2009-10-27  Jim Meyering  <jim@meyering.net>
36556             Bruno Haible  <bruno@clisp.org>
36557
36558         Avoid warning despite dropping the return value of fwrite.
36559         * lib/unicodeio.c: Include ignore-value.h.
36560         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36561         * modules/unicodeio (Depends-on): Add ignore-value.
36562
36563 2009-10-26  Eric Blake  <ebb9@byu.net>
36564
36565         areadlinkat: fix fallback path
36566         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36567         pointer and zero.
36568
36569 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36570
36571         Use a better IO block size for modern systems
36572         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36573         * lib/md2.c: Likewise.
36574         * lib/md4.c: Likewise.
36575         * lib/md5.c: Likewise.
36576         * lib/sha1.c: Likewise.
36577         * lib/sha256.c: Likewise.
36578         * lib/sha512.c: Likewise.
36579
36580 2009-10-22  Eric Blake  <ebb9@byu.net>
36581
36582         tests: avoid several compiler warnings
36583         * tests/test-getcwd.c (main): Avoid buffer underflow.
36584         * tests/test-getdate.c (main): String literals are not safe with
36585         putenv, so use setenv.  Declare unused argument.
36586         * modules/getdate-tests (Depends-on): Add setenv.
36587         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36588         problems with string literals in char *.
36589         * tests/test-hash.c (main): Avoid shadowing declaration.
36590         (insert_new): Treat string literals as char const *.
36591         * tests/test-getopt.h (test_getopt): Likewise.
36592         (getopt_loop): Alter types to minimize casting elsewhere.
36593         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36594         (test_getopt_long_posix): Likewise.
36595         (do_getopt_long): Add wrapper to minimize casting.
36596         * tests/test-atexit.c (clear_temp_file): Use void.
36597         * tests/test-areadlink-with-size.c (main): Declare unused
36598         arguments.
36599         * tests/test-areadlink.c (main): Likewise.
36600         * tests/test-areadlinkat-with-size.c (main): Likewise.
36601         * tests/test-areadlinkat.c (main): Likewise.
36602         * tests/test-canonicalize-lgpl.c (main): Likewise.
36603         * tests/test-canonicalize.c (main): Likewise.
36604         * tests/test-dirent-safer.c (main): Likewise.
36605         * tests/test-dirname.c (main): Likewise.
36606         * tests/test-dup2.c (main): Likewise.
36607         * tests/test-fchdir.c (main): Likewise.
36608         * tests/test-fcntl-h.c (main): Likewise.
36609         * tests/test-fcntl-safer.c (main): Likewise.
36610         * tests/test-fdopendir.c (main): Likewise.
36611         * tests/test-fdutimensat.c (main): Likewise.
36612         * tests/test-fflush.c (main): Likewise.
36613         * tests/test-filenamecat.c (main): Likewise.
36614         * tests/test-filevercmp.c (main): Likewise.
36615         * tests/test-fopen-safer.c (main): Likewise.
36616         * tests/test-fopen.c (main): Likewise.
36617         * tests/test-fpending.c (main): Likewise.
36618         * tests/test-fpurge.c (main): Likewise.
36619         * tests/test-freading.c (main): Likewise.
36620         * tests/test-fstatat.c (main): Likewise.
36621         * tests/test-fsync.c (main): Likewise.
36622         * tests/test-futimens.c (main): Likewise.
36623         * tests/test-getndelim2.c (main): Likewise.
36624         * tests/test-gettimeofday.c (main): Likewise.
36625         * tests/test-getopt.c (main): Likewise.
36626         * tests/test-i-ring.c (main): Likewise.
36627         * tests/test-inttypes.c (main): Likewise.
36628         * tests/test-link.c (main): Likewise.
36629         * tests/test-lstat.c (main): Likewise.
36630         * tests/test-math.c (main): Likewise.
36631         * tests/test-md5.c (main): Likewise.
36632         * tests/test-memchr2.c (main): Likewise.
36633         * tests/test-memrchr.c (main): Likewise.
36634         * tests/test-mkdir.c (main): Likewise.
36635         * tests/test-mkdirat.c (main): Likewise.
36636         * tests/test-mkfifoat.c (main): Likewise.
36637         * tests/test-open.c (main): Likewise.
36638         * tests/test-openat-safer.c (main): Likewise.
36639         * tests/test-openat.c (main): Likewise.
36640         * tests/test-quotearg.c (main): Likewise.
36641         * tests/test-rawmemchr.c (main): Likewise.
36642         * tests/test-readlink.c (main): Likewise.
36643         * tests/test-remove.c (main): Likewise.
36644         * tests/test-rename.c (main): Likewise.
36645         * tests/test-renameat.c (main): Likewise.
36646         * tests/test-rmdir.c (main): Likewise.
36647         * tests/test-sha1.c (main): Likewise.
36648         * tests/test-signal.c (main): Likewise.
36649         * tests/test-sigaction.c (main): Likewise.
36650         * tests/test-stat.c (main): Likewise.
36651         * tests/test-stat-time.c (main): Likewise.
36652         * tests/test-stddef.c (main): Likewise.
36653         * tests/test-stdint.c (main): Likewise.
36654         * tests/test-stdio.c (main): Likewise.
36655         * tests/test-stdlib.c (main): Likewise.
36656         * tests/test-strchrnul.c (main): Likewise.
36657         * tests/test-strerror.c (main): Likewise.
36658         * tests/test-string.c (main): Likewise.
36659         * tests/test-strtod.c (main): Likewise.
36660         * tests/test-strverscmp.c (main): Likewise.
36661         * tests/test-symlink.c (main): Likewise.
36662         * tests/test-symlinkat.c (main): Likewise.
36663         * tests/test-sys_stat.c (main): Likewise.
36664         * tests/test-sys_time.c (main): Likewise.
36665         * tests/test-time.c (main): Likewise.
36666         * tests/test-unistd.c (main): Likewise.
36667         * tests/test-unlink.c (main): Likewise.
36668         * tests/test-unlinkat.c (main): Likewise.
36669         * tests/test-utimens.c (main): Likewise.
36670         * tests/test-utimensat.c (main): Likewise.
36671         * tests/test-version-etc.c (main): Likewise.
36672         * tests/test-wchar.c (main): Likewise.
36673         * tests/test-wctype.c (main): Likewise.
36674         * tests/test-xprintf-posix.c (main): Likewise.
36675         * tests/test-posixtm.c (main): Likewise.
36676         (STREQ): Delete unused macro.
36677         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36678         shadowed variables.
36679         * tests/test-memchr.c (main): Likewise.
36680
36681 2009-10-21  Eric Blake  <ebb9@byu.net>
36682
36683         areadlinkat: avoid failure on older glibc
36684         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36685         rather than mis-comparing 0 against FUNC_RESULT of char*.
36686
36687 2009-10-21  Bruno Haible  <bruno@clisp.org>
36688
36689         * modules/stpncpy (License): Relicense under LGPLv2+.
36690         Reported by David Lutterkort <lutter@redhat.com>.
36691
36692 2009-10-20  Eric Blake  <ebb9@byu.net>
36693
36694         utimensat: work around Solaris 9 bug
36695         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36696         has trailing slash bugs.
36697         * tests/test-lutimens.h (test_lutimens): Enhance test.
36698         * tests/test-utimens.h (test_utimens): Likewise.
36699         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36700         * doc/posix-functions/utimes.texi (utimes): Likewise.
36701         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36702         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36703         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36704         * doc/posix-functions/futimens.texi (futimens): Likewise.
36705
36706         fdutimensat: new module
36707         * modules/fdutimensat: New file.
36708         * lib/fdutimensat.c (fdutimensat): Likewise.
36709         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36710         * MODULES.html.sh (File system functions): Mention module.
36711         * modules/fdutimensat-tests: New test.
36712         * tests/test-fdutimensat.c: Likewise.
36713
36714         doc: regenerate INSTALL
36715         * doc/INSTALL: Reflect recent autoconf update.
36716         * doc/INSTALL.ISO: Likewise.
36717         * doc/INSTALL.UTF-8: Likewise.
36718
36719 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36720
36721         acl: warn if ACL support is not detected
36722         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36723
36724 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36725
36726         * lib/nproc.h: Add extern "C" block for C++.
36727
36728 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36729             Bruno Haible  <bruno@clisp.org>
36730
36731         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36732         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36733         * doc/posix-functions/isalpha.texi: Likewise.
36734         * doc/posix-functions/isblank.texi: Likewise.
36735         * doc/posix-functions/iscntrl.texi: Likewise.
36736         * doc/posix-functions/isdigit.texi: Likewise.
36737         * doc/posix-functions/isgraph.texi: Likewise.
36738         * doc/posix-functions/islower.texi: Likewise.
36739         * doc/posix-functions/isprint.texi: Likewise.
36740         * doc/posix-functions/ispunct.texi: Likewise.
36741         * doc/posix-functions/isspace.texi: Likewise.
36742         * doc/posix-functions/isupper.texi: Likewise.
36743         * doc/posix-functions/isxdigit.texi: Likewise.
36744
36745 2009-10-18  Bruno Haible  <bruno@clisp.org>
36746
36747         Tests for module 'isblank'.
36748         * modules/isblank-tests: New file.
36749         * tests/test-isblank.c: New file.
36750
36751         New module 'isblank'.
36752         * lib/isblank.c: New file.
36753         * m4/isblank.m4: New file.
36754         * modules/isblank: New file.
36755         * doc/posix-functions/isblank.texi: Mention the new module.
36756
36757 2009-10-18  Bruno Haible  <bruno@clisp.org>
36758
36759         New module 'ctype'.
36760         * lib/ctype.in.h: New file.
36761         * m4/ctype.m4: New file.
36762         * modules/ctype: New file.
36763         * doc/posix-headers/ctype.texi: Mention the new module.
36764
36765 2009-10-18  Jim Meyering  <meyering@redhat.com>
36766
36767         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36768         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36769         right after its initialization, rather than farther down.
36770         Keeping these in close proximity makes it easier to ensure
36771         that each such variable is initialized.  E.g.,
36772
36773             LIB_CLOCK_GETTIME=
36774             AC_SUBST([LIB_CLOCK_GETTIME])
36775
36776         This change also increments these serial numbers.
36777         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36778         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36780
36781 2009-10-18  Bruno Haible  <bruno@clisp.org>
36782
36783         Don't let environment variables perturb build.
36784         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36785         (gl_PREREQ_GETHRXTIME): ... not here.
36786
36787 2009-10-18  Bruno Haible  <bruno@clisp.org>
36788
36789         Avoid symlink attack in localcharset module.
36790         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36791         (O_NOFOLLOW): Define fallback.
36792         (get_charset_aliases): Don't open the file if it is a symbolic link.
36793         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36794         gl_FCNTL_H.
36795         (gl_FCNTL_H): Require it.
36796         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36797         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36798         Reported by Fergal Glynn <fglynn@veracode.com>.
36799
36800 2009-10-18  Bruno Haible  <bruno@clisp.org>
36801
36802         Implement nproc for mingw.
36803         * lib/nproc.c: Include <windows.h>
36804         (num_processors): On native Windows platforms, try GetSystemInfo.
36805
36806 2009-10-18  Bruno Haible  <bruno@clisp.org>
36807
36808         Implement nproc for IRIX.
36809         * lib/nproc.c: Include <sys/sysmp.h>.
36810         (num_processors): On IRIX systems, try sysmp.
36811         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36812
36813 2009-10-18  Bruno Haible  <bruno@clisp.org>
36814
36815         Implement nproc for HP-UX.
36816         * lib/nproc.c: Include <sys/pstat.h>
36817         (num_processors): On HP-UX systems, try pstat_getdynamic.
36818         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36819         pstat_getdynamic.
36820
36821 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36822             Bruno Haible  <bruno@clisp.org>
36823
36824         Implement nproc for NetBSD, OpenBSD.
36825         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36826         (ARRAY_SIZE): New macro.
36827         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36828         * m4/nproc.m4: New file.
36829         * modules/nproc (Files): Add m4/nproc.m4.
36830         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36831         (Makefile.am): Instead, augment lib_SOURCES.
36832
36833 2009-10-18  Bruno Haible  <bruno@clisp.org>
36834
36835         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36836         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36837         sys/param.h.
36838
36839 2009-10-16  Eric Blake  <ebb9@byu.net>
36840
36841         utimensat: new module
36842         * modules/utimensat: New file.
36843         * lib/utimensat.c (utimensat): Likewise.
36844         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36845         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36846         so we can work around Linux bugs.
36847         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36848         * modules/sys_stat (Makefile.am): Substitute them.
36849         * lib/sys_stat.in.h (utimensat): Declare it.
36850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36851         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36852         * modules/utimensat-tests: New test.
36853         * tests/test-utimensat.c: Likewise.
36854
36855         utimens: let lutimens work on non-symlinks
36856         * lib/utimens.c (lutimens): Fall back to utimens rather than
36857         failing with ENOSYS, when file is not a symlink.
36858         (utimens): Reduce redirection.
36859         * tests/test-lutimens.h (test_lutimens): Update test to cover
36860         non-symlinks.
36861         * tests/test-utimens.h (test_utimens): Update test to cover
36862         symlinks.
36863         * tests/test-utimens.c (main): Update caller.
36864
36865         utimens: cache whether utimensat syscall works
36866         * lib/utimens.c (utimensat_works_really): New cache variable.
36867         (fdutimens, lutimens): Use it to avoid failing syscall.
36868
36869         test-stat-time, test-utimens: improve portability
36870         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36871         ext4 on alpha, and for cygwin.
36872         * tests/test-utimens-common.h: New file.
36873         (nap): Factor delays into single function.
36874         * tests/test-lutimens.h (test_lutimens): Use new header.
36875         * tests/test-futimens.h (test_futimens): Likewise.
36876         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36877         timestamps to occur from same machine, as was done previously for
36878         test_utimens.
36879         * modules/utimens-tests (Files): Ship new file.
36880         * modules/futimens-tests (Files): Likewise.
36881         Reported in part by Jim Meyering.
36882
36883         sys_stat: sort replacement declarations
36884         * lib/sys_stat.in.h: Sort declarations.
36885         * lib/futimens.c (futimens): Fix typo.
36886
36887 2009-10-15  Jim Meyering  <meyering@redhat.com>
36888
36889         don't let environment settings perturb build
36890         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36891         could cause a configure-time and/or build-time malfunction.
36892         Typically, a configure-time function-in-library test is performed
36893         via code like this:
36894
36895           LIB_VAR=
36896           AC_SUBST([LIB_VAR])
36897           prefix_saved_LIBS=$LIBS
36898             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36899                        [test "$ac_cv_search_FUNC" = "none required" ||
36900                         LIB_VAR=$ac_cv_search_FUNC])
36901           LIBS=$prefix_saved_LIBS
36902
36903         However, in each of the files affected by this change, the LIB_VAR=
36904         initialization was omitted.  Thus, when set in the environment, its
36905         value would propagate into generated Makefiles when FUNC is not found
36906         in LIB_NAME.
36907         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36908         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36910
36911 2009-10-14  Eric Blake  <ebb9@byu.net>
36912
36913         fchdir: avoid infinite recursion in mingw
36914         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36915         recursing.
36916
36917         test-stat-time: port to mingw
36918         * tests/test-stat-time.c (force_unlink): Return a value.
36919         (test_ctime) [W32]: Fix compilation error.
36920         (nap): Don't call usleep with too large an argument.  Use
36921         force_unlink.
36922         * doc/pastposix-functions/usleep.texi (usleep): Document the
36923         portability issue.
36924
36925 2009-10-13  Jim Meyering  <meyering@redhat.com>
36926
36927         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36928         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36929         * modules/pipe-filter-ii: Likewise.
36930         * modules/sys_socket-tests: Likewise.
36931         * modules/tsearch-tests: Likewise.
36932         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36933         (check): Depend on it.
36934
36935 2009-10-12  Eric Blake  <ebb9@byu.net>
36936
36937         utimens-tests: port to NFS file systems
36938         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36939         comparisons to avoid spurious failures from timestamp drift
36940         between NFS machines.
36941
36942 2009-10-12  Eric Blake  <ebb9@byu.net>
36943
36944         stat-time-tests: minor cleanups
36945         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36946         * tests/test-stat-time.c (nap): Separate assignment from call.
36947         Suggested by Paolo Bonzini and Bruno Haible.
36948
36949         sys_stat: guarantee struct timespec
36950         * lib/sys_stat.in.h (includes): Always include <time.h>
36951         * modules/sys_stat (Depends-on): Add time.
36952         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36953         mode_t permission values.
36954         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36955         get at subsecond timestamps.
36956
36957 2009-10-10  Eric Blake  <ebb9@byu.net>
36958
36959         futimens: new module
36960         * modules/futimens: New file.
36961         * lib/futimens.c (futimens): Likewise.
36962         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36963         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36964         we can work around Linux bugs.
36965         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36966         * modules/sys_stat (Makefile.am): Substitute them.
36967         * lib/sys_stat.in.h (futimens): Declare it.
36968         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36969         * doc/posix-functions/futimens.texi (futimens): Likewise.
36970         * modules/futimens-tests: New test.
36971         * tests/test-futimens.c: Likewise.
36972
36973         utimens: introduce fdutimens
36974         * lib/utimens.h (fdutimens): New prototype.
36975         * lib/utimens.c (gl_futimens): Move guts...
36976         (fdutimens): ...to new interface.
36977         * tests/test-utimens.c (do_fdutimens): Use it.
36978
36979         utimens: add UTIME_NOW and UTIME_OMIT support
36980         * lib/utimens.c (validate_timespec, update_timespec): New helper
36981         functions.
36982         (gl_futimens, lutimens): Use them.
36983         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36984         stdbool, sys_stat.
36985         (Link): Mention resulting library dependency.
36986         * modules/utimecmp (Link): Likewise.
36987         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36988         (Makefile.am): Pick up library dependency.
36989         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36990         definition.
36991         * tests/test-sys_stat.c: Test the definitions.
36992         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36993         * NEWS: Document library dependency.
36994
36995         utimecmp: support symlink timestamps
36996         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36997         hashing when possible.  Use pathconf when available.
36998         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36999         * modules/utimecmp (Depends-on): Add lstat.
37000
37001         utimens: add lutimens interface
37002         * lib/utimens.c (lutimens): New function.
37003         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
37004         * lib/utimens.h (lutimens): Declare new interface.
37005         * tests/test-utimens.c (main): Enhance test.
37006         * tests/test-lutimens.h (test_lutimens): New file.
37007         * modules/utimens-tests (Files): Distribute it.
37008         (Depends-on): Add symlink.
37009         (configure.ac): Check for usleep.
37010
37011         utimens: validate futimens usage
37012         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37013         fewer syscalls on failure later on.  Avoid compiler warning on
37014         mingw.
37015         * modules/utimens (Depends-on): Add dup2.
37016
37017         utimens: add test
37018         * modules/utimens-tests: New test.
37019         * tests/test-utimens.h: New file.
37020         * tests/test-futimens.h: Likewise.
37021         * tests/test-utimens.c: Likewise.
37022
37023         doc: mention timestamp portability issues
37024         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37025         instead.
37026         * doc/posix-functions/utime.texi (utime): Likewise.
37027         * doc/posix-functions/utimes.texi (utimes): Likewise.
37028         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37029         instead.
37030         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37031         module.
37032         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37033         Mention weakness with symlink timestamps.
37034         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37035         to utimensat/futimens instead.
37036         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37037
37038         test-dup2: enhance test
37039         * tests/test-dup2.c (main): Also check AT_FDCWD.
37040
37041         test-stat-time: avoid more spurious failures
37042         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37043         xfs; and avoid race if the two timestamps cross quantization edge.
37044
37045         relocatable: prefer 'file system' over 'filesystem'
37046         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37047         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37048         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37049         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37050         * lib/relocatable.c (compute_curr_prefix): Likewise.
37051
37052 2009-10-10  Jim Meyering  <meyering@redhat.com>
37053
37054         stat-time-tests: check for the usleep function
37055         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37056
37057 2009-10-10  Bruno Haible  <bruno@clisp.org>
37058
37059         * modules/xnanosleep: Put the Link section after the Include section.
37060
37061 2009-10-09  Eric Blake  <ebb9@byu.net>
37062
37063         dup2: work around FreeBSD 6.1 bug
37064         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37065         * doc/posix-functions/dup2.texi (dup2): Document it.
37066         Reported by Nelson H. F. Beebe and Jim Meyering.
37067
37068         test-stat-time: port to buggy NFS clients
37069         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37070         (test_ctime): Also skip test if mtime and ctime are skewed.
37071
37072         maint: prefer 'file system' over 'filesystem'
37073         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37074         * doc/posix-functions/lstat.texi (lstat): Likewise.
37075         * lib/file-has-acl.c (file_has_acl): Likewise.
37076         * lib/fwriteerror.c [TEST]: Likewise.
37077         * tests/test-areadlink.h (test_areadlink): Likewise.
37078         * tests/test-areadlinkat-with-size.c (main): Likewise.
37079         * tests/test-areadlinkat.c (main): Likewise.
37080         * tests/test-canonicalize-lgpl.c (main): Likewise.
37081         * tests/test-canonicalize.c (main): Likewise.
37082         * tests/test-fstatat.c (main): Likewise.
37083         * tests/test-linkat.c (main): Likewise.
37084         * tests/test-lstat.h (test_lstat_func): Likewise.
37085         * tests/test-mkdir.h (test_mkdir): Likewise.
37086         * tests/test-readlink.h (test_readlink): Likewise.
37087         * tests/test-remove.c (main): Likewise.
37088         * tests/test-rename.h (test_rename): Likewise.
37089         * tests/test-renameat.c (main): Likewise.
37090         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37091         * tests/test-symlink.h (test_symlink): Likewise.
37092         * tests/test-symlinkat.c (main): Likewise.
37093         * tests/test-unlink.h (test_unlink_func): Likewise.
37094         * tests/test-unlinkat.c (main): Likewise.
37095
37096         maint: make realtime library usage explicit
37097         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37098         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37099         * modules/settime (Link): Likewise.
37100         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37101
37102         test-stat-time: speed up execution
37103         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37104         warning on mingw.
37105         (nap): New helper function.
37106         (prepare_test): Use it to reduce sleep time.
37107         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37108         execution.
37109         * modules/stat-time-tests (configure.ac): Check for usleep.
37110
37111 2009-10-09  Jim Meyering  <meyering@redhat.com>
37112
37113         selinux-h: always use getfilecon wrappers
37114         * lib/getfilecon.c: New file.
37115         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37116         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37117         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37118         (fgetfilecon): Provide a stub.
37119         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37120         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37121         file unconditionally.
37122         When <selinux/selinux.h> is found, arrange to use wrappers.
37123         * modules/selinux-h (Files): Add getfilecon.c.
37124         (Makefile.am): Substitute include-next-related bits
37125         into the now-always-generated selinux/selinux.h file.
37126         * doc/glibc-functions/lgetfilecon.texi: New file.
37127         * doc/glibc-functions/fgetfilecon.texi: New file.
37128         * doc/glibc-functions/getfilecon.texi: New file.
37129         * doc/glibc-functions/getfilecon-desc.texi: New file.
37130         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37131         which to pull in the new files.
37132         * MODULES.html.sh (Misc): Add selinux-h.
37133
37134 2009-10-08  Jim Meyering  <meyering@redhat.com>
37135
37136         unistd: fix comment typo
37137         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37138
37139 2009-10-08  Eric Blake  <ebb9@byu.net>
37140
37141         areadlink: use SIZE_MAX consistently
37142         * modules/areadlink (Depends-on): Add stdint.
37143         * modules/areadlink-with-size (Depends-on): Likewise.
37144         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37145         gives NULL; drop sys/types, since unistd gives size_t; and add
37146         stdint for SIZE_MAX.
37147         (SIZE_MAX): Rely on headers.
37148         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37149         and add stdint.
37150         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37151         (SIZE_MAX): Likewise.
37152         (INITIAL_BUF_SIZE): Turn into enum.
37153         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37154
37155 2009-10-08  Jim Meyering  <meyering@redhat.com>
37156
37157         areadlinkat: avoid compilation failure
37158         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37159         Fix typo in comment.
37160
37161 2009-10-07  Eric Blake  <ebb9@byu.net>
37162
37163         areadlinkat-with-size: new module
37164         * modules/areadlinkat-with-size: New module.
37165         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37166         * lib/areadlink.h (areadlinkat): Declare it.
37167         * MODULES.html.sh (File system functions): Mention it.
37168         * modules/areadlinkat-with-size-tests: New test.
37169         * tests/test-areadlinkat-with-size.c: New file.
37170
37171         xreadlinkat: new module
37172         * modules/xreadlinkat: New module.
37173         * lib/xreadlinkat.c (xreadlinkat): New file.
37174         * lib/xreadlink.h (xreadlinkat): Declare it.
37175         * MODULES.html.sh (File system functions): Mention it.
37176
37177         areadlinkat: new module
37178         * lib/at-func.c (FUNC_FAIL): New define.
37179         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37180         * modules/areadlinkat: New module.
37181         * lib/linkat.c (areadlinkat): Move...
37182         * lib/areadlinkat.c (areadlinkat): ...to new file.
37183         * lib/areadlink.h (areadlinkat): Declare it.
37184         * modules/linkat (Depends-on): Add areadlinkat.
37185         * MODULES.html.sh (File system functions): Mention it.
37186         * modules/areadlinkat-tests: New test.
37187         * tests/test-areadlinkat.c: New file.
37188
37189         areadlink, areadlink-with-size: add tests
37190         * modules/areadlink-tests: New test.
37191         * modules/areadlink-with-size-tests: Likewise.
37192         * tests/test-areadlink.h: New file.
37193         * tests/test-areadlink.c: Likewise.
37194         * tests/test-areadlink-with-size.c: Likewise.
37195
37196         maint: minor cleanups
37197         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37198         _UNUSED_PARAMETER_ instead.
37199         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37200         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37201         * modules/linkat-tests (Files): Distribute test-link.h.
37202
37203         openat, utimens: whitespace cleanup
37204         * lib/openat.c: Prefer space throughout, rather than mix of 8
37205         spaces vs. tabs.
37206         * lib/at-func.c: Likewise.
37207         * lib/utimens.c: Likewise.
37208
37209         openat: avoid using wrong fd
37210         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37211         working directory chooses same fd.
37212         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37213
37214         mkdir, mkdirat: fix cygwin 1.5.x bug
37215         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37216         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37217         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37218         bug.
37219         (gl_PREREQ_MKDIR): Delete unused macro.
37220         * modules/mkdir (Files): Track file rename.
37221         (configure.ac): Update macro name.
37222         * modules/openat (Depends-on): Add mkdir.
37223         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37224
37225         mkdir, mkdirat: add tests
37226         * modules/mkdir-tests: New test.
37227         * tests/test-mkdir.h: New file.
37228         * tests/test-mkdir.c: Likewise.
37229         * tests/test-mkdirat.c: Likewise.
37230         * modules/openat-tests (Files): Add new files.
37231         (Makefile.am): Run new test.
37232
37233 2009-10-06  Eric Blake  <ebb9@byu.net>
37234
37235         doc: tweak *at function documentation
37236         * doc/posix-functions/faccessat.texi (faccessat): Mention
37237         known issue with replacement.
37238         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37239         * doc/posix-functions/linkat.texi (linkat): Likewise.
37240         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37241         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37242         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37243         * doc/posix-functions/renameat.texi (renameat): Likewise.
37244         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37245
37246         openat: fix GNU/Hurd bug in unlinkat
37247         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37248         broken.
37249         * doc/posix-functions/unlink.texi (unlink): Document this.
37250         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37251
37252         fdopendir: fix GNU/Hurd bug
37253         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37254         allowing non-directory fds.
37255         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37256         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37257         * modules/dirent (Makefile.am): Substitute it.
37258         * lib/dirent.in.h (fdopendir): Declare replacement.
37259         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37260         * tests/test-fdopendir.c (main): Test something other than
37261         /dev/null, since on Hurd that behaves like a directory.
37262
37263         test-symlink: port to GNU/Hurd
37264         * tests/test-symlink.h (test_symlink): Relax expected errno.
37265
37266         doc: tweak more cygwin information
37267         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37268         now compatible with glibc.
37269         * doc/posix-functions/getopt.texi (getopt): Likewise.
37270
37271         getopt-gnu: add another test
37272         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37273         guarantee behavior relied on by m4.
37274         * tests/test-getopt.c (main): Use it.
37275         * modules/getopt-posix-tests (Depends-on): Add setenv.
37276         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37277
37278         getopt: fix compilation on darwin
37279         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37280         include.
37281         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37282         Reported by Ludovic Courtès.
37283
37284 2009-10-06  Bruno Haible  <bruno@clisp.org>
37285
37286         * modules/size_max (Description): Discourage its use.
37287         Reported by Simon Josefsson.
37288
37289 2009-10-06  Jim Meyering  <meyering@redhat.com>
37290
37291         linkat: avoid compilation failure
37292         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
37293
37294 2009-10-05  Eric Blake  <ebb9@byu.net>
37295
37296         linkat: support Linux 2.6.17
37297         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37298         linkat on Linux, but allow cache variable override.
37299         * lib/linkat.c (rpl_linkat): Define override.
37300         * modules/linkat (Depends-on): Add symlinkat.
37301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37302         * modules/unistd (Makefile.am): Substitute it.
37303         * lib/unistd.in.h (linkat): Declare replacement.
37304         Reported by Pádraig Brady.
37305
37306         quotearg: port test to systems with C.UTF-8 locale
37307         * tests/test-quotearg.c (struct result_strings): Add another
37308         member, differentiating between C.ASCII and C.UTF-8 handling.
37309         (compare_strings): Add parameter.
37310         (main): Adjust all callers.
37311
37312         getopt: avoid clash with FreeBSD _getopt_internal
37313         * lib/getopt.in.h (_getopt_internal): Override the name.
37314         * lib/getopt_int.h (includes): Pick up any overrides.
37315         Reported by Reuben Thomas.
37316
37317         hash: allow C89 compilation
37318         * lib/hash.c (check_tuning): Move declaration before statement.
37319         Reported by Reuben Thomas.
37320
37321 2009-10-05  Karl Berry  <karl@gnu.org>
37322
37323         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37324
37325 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37326             Bruno Haible  <bruno@clisp.org>
37327
37328         * lib/uname.c (uname): Use a table-driven algorithm to compute
37329         Windows NT versions.
37330
37331 2009-10-04  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37334         program_invocation_short_name.
37335         * modules/progname (configure.ac): Test for presence of
37336         program_invocation_short_name.
37337         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37338
37339 2009-10-04  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/progname.c (set_program_name): Fix comment.
37342         Reported by Jim Meyering.
37343
37344 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37345             Bruno Haible  <bruno@clisp.org>
37346
37347         * lib/uname.c: Include <string.h>.
37348         (uname): Do only one call to GetVersionEx in the common case.
37349
37350 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37351             Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37354         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37355         (uname): Add support for Windows CE and various non-x86 CPU types.
37356
37357 2009-10-03  Bruno Haible  <bruno@clisp.org>
37358
37359         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37360         invocation to tests/configure.ac.
37361         Reported by Ian Beckwith <ianb@erislabs.net>.
37362
37363 2009-10-02  Eric Blake  <ebb9@byu.net>
37364
37365         fchdir: avoid compiler warning
37366         * lib/fchdir.c (canonicalize_file_name)
37367         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37368
37369         test-open: support mingw errno values
37370         * tests/test-open.h (test_open): Relax test.
37371         * tests/test-fopen.h (test_fopen): Likewise.
37372         * tests/test-openat-safer.c (main): Likewise.
37373
37374         open: fix opening directory on mingw
37375         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37376
37377         test-open: on GNU/Hurd, /dev/null is a directory
37378         * tests/test-fopen.h (main): Rename...
37379         (test_fopen): ...to this.  Use a guaranteed non-directory when
37380         confirming open behavior on trailing slash.
37381         * tests/test-openat-safer.c (main): Likewise.
37382         * tests/test-open.h (main): Likewise....
37383         (test_open): ...to this.
37384         * tests/test-fopen.c (main): Adjust caller.
37385         * tests/test-fopen-safer.c (main): Likewise.
37386         * tests/test-open.c (main): Likewise.
37387         * tests/test-fcntl-safer.c (main): Likewise.
37388         Reported by Samuel Thibault.
37389
37390         rename, fchdir: don't ignore chdir failure
37391         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37392         * lib/rename.c (rpl_rename) [W32]: Likewise.
37393         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37394         an empty destination directory if source cannot be renamed,
37395         although there is still possibility for failure.
37396         * doc/posix-functions/rename.texi (rename): Document the race.
37397         Reported by Jim Meyering.
37398
37399         maint: cleanup whitespace in recent commits
37400         * lib/rename.c (rpl_rename): Remove tabs.
37401         * tests/test-link.h (test_link): Likewise.
37402         * lib/fchdir.c (get_name): Likewise.
37403         Reported by Jim Meyering.
37404
37405 2009-10-02  Ben Pfaff  <blp@gnu.org>
37406
37407         relocatable-prog-wrapper: Add missing dependency on
37408         double-slash-root.
37409         * modules/relocatable-prog-wrapper: Add dependency.
37410         Reported by Ian Beckwith <ianb@erislabs.net>.
37411
37412 2009-10-02  Eric Blake  <ebb9@byu.net>
37413
37414         renameat: fix Solaris bugs
37415         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37416         needed fixing.
37417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37418         * modules/stdio (Makefile.am): Substitute it.
37419         * lib/stdio.in.h (renameat): Declare replacement.
37420         * lib/renameat.c (rpl_renameat): Implement fix.
37421
37422         renameat: new module
37423         * modules/renameat: New file.
37424         * lib/renameat.c (renameat): Likewise.
37425         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37427         * modules/stdio (Makefile.am): Substitute them.
37428         * lib/stdio.in.h (renameat): Declare it.
37429         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37430         * doc/posix-functions/renameat.texi (renameat): Likewise.
37431         * modules/renameat-tests: New test.
37432         * tests/test-renameat.c: Likewise.
37433
37434         rename: fix mingw bugs
37435         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37436         directory overwrite bugs.
37437
37438         rename: fix another cygwin 1.5 bug
37439         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37440         checks.
37441         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37442         unnecessary cygwin workarounds.  Also work around bug with moving
37443         full directory onto an empty one.
37444         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37445
37446         rename-dest-slash: merge into rename module
37447         * modules/rename-dest-slash (Status): Mark obsolete.
37448         (Depends-on): Add rename.
37449         (Files): Let rename do it all.
37450         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37451         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37452         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37453         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37454         * lib/rename.c (rpl_rename): Update comments.
37455
37456         rename: fix cygwin 1.5.x bugs
37457         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37458         * lib/rename.c (rpl_rename): Work around them.
37459         * modules/rename (Depends-on): Add same-inode.
37460
37461         rename: fix Solaris 10 bug
37462         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37463         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37464         was the only bug.
37465
37466         rename: fix Solaris 9 bug
37467         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37468         on non-directory.  Avoid calling exit.
37469         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37470         strdup.
37471         * modules/rename-tests (Depends-on): Drop lstat.
37472         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37473         (gl_PREREQ_RENAME): Delete unused macro.
37474
37475         rename-dest-slash: fix NetBSD bug
37476         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37477         links.
37478         * modules/rename-dest-slash (Depends-on): Add same-inode.
37479
37480         rename-tests: new test, exposes several platform bugs
37481         * modules/rename-tests: New file.
37482         * tests/test-rename.h: Likewise.
37483         * tests/test-rename.c: Likewise.
37484         * doc/posix-functions/rename.texi (rename): Improve documentation,
37485         including bugs that will eventually be fixed in gnulib.
37486
37487 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37488
37489         * lib/uname.c: Include <stdlib.h>
37490         (uname): Assume version info is available.
37491
37492 2009-10-02  Jim Meyering  <meyering@redhat.com>
37493
37494         gnu-web-doc-update: correct --help output
37495         * build-aux/gnu-web-doc-update: Make --help output relevant.
37496
37497         gnu-web-doc-update: add standard options
37498         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37499
37500         gnu-web-doc-update: New module.
37501         Use this script to automatically update the on-line web documentation
37502         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37503         * modules/gnu-web-doc-update: New file, from coreutils.
37504         * build-aux/gnu-web-doc-update: New script.
37505
37506 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37507
37508         link: LoadLibrary is not needed.
37509         * lib/link.c: Use GetModuleHandle.
37510
37511 2009-10-01  Eric Blake  <ebb9@byu.net>
37512
37513         getopt: bump serial number
37514         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37515         change.
37516
37517         tests: tighten link, rmdir, and remove tests
37518         * tests/test-link.h (includes): No need to use <config.h> here.
37519         Clean up if directory hard link was created, otherwise test for
37520         trailing '.'.
37521         * tests/test-linkat.c (main): Simplify.
37522         * tests/test-remove.c (main): Enhance test for trailing '.'.
37523         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37524
37525 2009-10-01  Jim Meyering  <meyering@redhat.com>
37526
37527         maint.mk: requiring "make major" was annoying, for a "minor" release.
37528         What is intended is "stable", to contrast with alpha and beta,
37529         so require "make stable", not "make major".
37530         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37531         (get_tool_versions): Likewise.
37532         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37533
37534 2009-09-30  Ben Pfaff  <blp@gnu.org>
37535
37536         Fix broken build of replacement for Windows tmpfile().
37537         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37538         flags argument added along with the 'mkostemp' module.
37539
37540 2009-09-28  Bruno Haible  <bruno@clisp.org>
37541
37542         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37543         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37544         to 'remove_elt'.
37545         (gl_list_remove): Update.
37546         * lib/gl_list.c (gl_list_remove): Update.
37547         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37548         to 'remove_elt'.
37549         (gl_oset_remove): Update.
37550         * lib/gl_list.c (gl_oset_remove): Update.
37551         Reported by Eric Blake.
37552
37553 2009-09-28  Eric Blake  <ebb9@byu.net>
37554
37555         doc: mention yet more cygwin 1.7 status
37556         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37557         cygwin.
37558         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37559         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37560
37561         argp: fix test failure
37562         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37563         that are not upper-case.  Pass correct range to tolower.
37564
37565 2009-09-27  Jim Meyering  <meyering@redhat.com>
37566
37567         test-yesno: work around sparc-dash here-document infelicity
37568         Without this change, the literal \177 byte in a here document
37569         would make dash 0.5.5.1-3 access uninitialized memory.
37570         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37571         Instead, use a marker, "@", and filter through tr to create the desired
37572         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37573
37574 2009-09-27  Bruno Haible  <bruno@clisp.org>
37575
37576         Disable untested support for new flavours of ACLs on AIX.
37577         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37578         progress.
37579         * lib/set-mode-acl.c (qset_acl): Likewise.
37580
37581 2008-12-07  Bruno Haible  <bruno@clisp.org>
37582
37583         Add support for new flavours of ACLs on AIX. (Untested.)
37584         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37585         (file_has_acl): Add support for newer AIX.
37586         * lib/set-mode-acl.c (qset_acl): Likewise.
37587         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37588         Rainer Tammer <tammer@tammer.net>.
37589
37590 2009-09-26  Eric Blake  <ebb9@byu.net>
37591
37592         argp: fix compilation of getopt
37593         * lib/getopt.in.h (includes): Use different guard than glibc.
37594         Reported by Sergey Poznyakoff.
37595
37596         doc: mention more cygwin 1.7 status
37597         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37598         bug.
37599         * doc/posix-functions/execl.texi (execl): Likewise.
37600         * doc/posix-functions/execle.texi (execle): Likewise.
37601         * doc/posix-functions/execlp.texi (execlp): Likewise.
37602         * doc/posix-functions/execv.texi (execv): Likewise.
37603         * doc/posix-functions/execve.texi (execve): Likewise.
37604         * doc/posix-functions/execvp.texi (execvp): Likewise.
37605         * doc/glibc-functions/canonicalize_file_name.texi
37606         (canonicalize_file_name): Cygwin 1.7 now provides this.
37607         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37608         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37609         on AT_SYMLINK_NOFOLLOW.
37610
37611 2009-09-24  Eric Blake  <ebb9@byu.net>
37612
37613         test-linkat: make test more robust
37614         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37615
37616         getopt: fix inclusion guards for cygwin
37617         * modules/getopt-posix (Depends-on): Add include-next.
37618         (Makefile.am): Substitute more items in replacement header.
37619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37620         <getopt.h>.
37621         * lib/getopt.in.h (includes): Use split inclusion guard, and
37622         prefer <getopt.h> over include <unistd.h> when one is present.
37623         (option): Also override name of 'struct option'.
37624
37625         same-inode: revert prior change; it is not yet ready
37626         * NEWS: Undo mention of this change.
37627         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37628         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37629         * lib/cycle-check.c (cycle_check): Likewise.
37630         * lib/same.c (same_name): Likewise.
37631         * lib/at-func2.c (at_func2): Likewise.
37632
37633 2009-09-23  Eric Blake  <ebb9@byu.net>
37634
37635         linkat: new module
37636         * modules/linkat: New file.
37637         * lib/at-func2.c (at_func2): Likewise.
37638         * lib/linkat.c (linkat): Likewise.
37639         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37640         * lib/openat-priv.h (at_func2): Add declaration.
37641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37642         * modules/unistd (Makefile.am): Substitute them.
37643         * lib/unistd.in.h (linkat): Declare it.
37644         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37645         * doc/posix-functions/linkat.texi (linkat): Likewise.
37646         * doc/posix-functions/link.texi (link): Tweak wording.
37647         * tests/test-link.c (main): Move guts...
37648         * tests/test-link.h (test_link): ...into new file.
37649         * modules/linkat-tests: New test.
37650         * tests/test-linkat.c: Likewise.
37651         * modules/link-tests (Files): Ship new file.
37652         (Depends-on): Add stdbool.
37653
37654         dirname: add library-safe mdir_name
37655         * lib/dirname.h (mdir_name): New prototype.
37656         * lib/dirname.c (dir_name): Move guts...
37657         (mdir_name): ...to new function that avoids xalloc_die.
37658
37659         fchdir: another mingw fix
37660         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37661         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37662         on mingw (where it has not yet been ported), and make it optional
37663         elsewhere.
37664         (_gl_register_fd): Use it.
37665
37666         same-inode: make SAME_INODE tri-state, to port to mingw
37667         * NEWS: Mention this change.
37668         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37669         st_ino always being 0.
37670         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37671         * lib/cycle-check.c (cycle_check): Likewise.
37672         * lib/same.c (same_name): Likewise.
37673
37674         lstat: avoid mingw compilation error
37675         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37676         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37677         lstat ourselves.
37678         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37679         was adequate.
37680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37681         the checks for lstat.
37682         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37683
37684         link: fix test failure on Solaris 9
37685         * lib/link.c (rpl_link): Don't assume link will catch bogus
37686         trailing slash on source.
37687
37688         test-symlinkat: enhance test
37689         * tests/test-readlink.c (main): Move guts...
37690         * tests/test-readlink.h (test_readlink): ...into new file.
37691         * tests/test-symlink.c (main): Move guts...
37692         * tests/test-symlink.h (test_symlink): ...into new file.
37693         * tests/test-symlinkat.c (main): Use new files for further
37694         coverage.
37695         (do_symlink, do_readlink): New helper functions.
37696         * modules/symlink-tests (Files): Ship new file.
37697         (Depends-on): Add stdbool.
37698         * modules/readlink-tests (Files): Ship new file.
37699         (Depends-on): Add stdbool.
37700         * modules/symlinkat-tests (Files): Use new files.
37701
37702 2009-09-23  Eric Blake  <ebb9@byu.net>
37703
37704         readlink: document portability issue with symlink length
37705         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37706         systems have bogus st_size on symlinks, and mention the
37707         areadlink-with-size module.
37708         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37709         * doc/posix-functions/readlink.texi (readlink): Mention the
37710         areadlink module, and ERANGE failure.
37711         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37712         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37713
37714         readlink: fix Solaris 9 bug with trailing slash
37715         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37716         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37717         * doc/posix-functions/readlink.texi (readlink): Document this.
37718         * modules/readlink-tests: New test.
37719         * tests/test-readlink.c: Likewise.
37720
37721         readlink: fix cygwin 1.5.x bug with return type
37722         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37723         * lib/unistd.in.h (readlink): Use ssize_t.
37724         * lib/readlink.c (readlink): Likewise.
37725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37726         * modules/unistd (Makefile.am): Substitute it.
37727         * lib/unistd.in.h (readlink): Declare replacement.
37728         * doc/posix-functions/readlink.texi (readlink): Document this.
37729
37730         symlink: use throughout gnulib
37731         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37732         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37733         symlink is not used.
37734         * modules/symlinkat (Depends-on): Add symlink.
37735         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37736         * modules/canonicalize-tests (Depends-on): Likewise.
37737         * modules/lstat-tests (Depends-on): Likewise.
37738         * modules/openat-tests (Depends-on): Likewise.
37739         * modules/remove-tests (Depends-on): Likewise.
37740         * modules/rmdir-tests (Depends-on): Likewise.
37741         * modules/unlink-tests (Depends-on): Likewise.
37742         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37743         * tests/test-canonicalize.c (symlink): Likewise.
37744         * tests/test-fstatat.c (symlink): Likewise.
37745         * tests/test-lstat.c (symlink): Likewise.
37746         * tests/test-remove.c (symlink): Likewise.
37747         * tests/test-rmdir.c (symlink): Likewise.
37748         * tests/test-unlink.c (symlink): Likewise.
37749         * tests/test-unlinkat.c (symlink): Likewise.
37750
37751         symlink: new module, for Solaris 9 bug
37752         * modules/symlink: New file.
37753         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37754         * lib/symlink.c: Likewise.
37755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37756         * modules/unistd (Makefile.am): Substitute them.
37757         * lib/unistd.in.h (symlink): Declare replacement.
37758         * MODULES.html.sh (File system functions): Mention it.
37759         * doc/posix-functions/symlink.texi (symlink): Likewise.
37760         * modules/symlink-tests: New test.
37761         * tests/test-symlink.c: Likewise.
37762
37763 2009-09-23  Bruno Haible  <bruno@clisp.org>
37764
37765         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37766         when needed.
37767         Test case: gnulib-tool --import --with-tests atexit inttypes.
37768         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37769
37770 2009-09-23  Bruno Haible  <bruno@clisp.org>
37771
37772         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37773         subcommand, not in a subshell.
37774
37775 2009-09-22  Eric Blake  <ebb9@byu.net>
37776
37777         unistd: sort replacement declarations
37778         * lib/unistd.in.h: Sort declarations.
37779
37780         open, openat: minor optimization
37781         * lib/open.c (open): If open succeeded, len is non-zero.
37782         * lib/openat.c (rpl_openat): Likewise.
37783
37784         link-follow: ensure correct result
37785         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37786         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37787         distinguish between possible failures.
37788
37789 2009-09-21  Eric Blake  <ebb9@byu.net>
37790
37791         fts: avoid compiler warning
37792         * lib/fts.c (dirent_inode_sort_may_be_useful)
37793         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37794
37795 2009-09-19  Bruno Haible  <bruno@clisp.org>
37796
37797         * lib/progreloc.c (canonicalize_file_name): New declaration.
37798
37799 2009-09-19  Eric Blake  <ebb9@byu.net>
37800
37801         link: fix quoting
37802         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37803
37804         openat: fix openat bugs on Solaris 9
37805         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37806         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37807         * modules/openat (Depends-on): Add open.
37808         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37809         * modules/fcntl-h (Makefile.am): Substitute it.
37810         * lib/fcntl.in.h (openat): Declare replacement.
37811         * doc/posix-functions/openat.texi (openat): Document this.
37812
37813         openat: move fstatat and unlinkat into correct files
37814         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37815         compiled.
37816         * lib/openat.c (fstatat, unlinkat): Move...
37817         * lib/fstatat.c (fstatat): ...into correct files.
37818         * lib/unlinkat.c (unlinkat): Likewise.
37819
37820         openat: fix unlinkat bugs on Solaris 9
37821         * lib/unlinkat.c (unlinkat): New file.
37822         * modules/openat (Depends-on): Add unlink.
37823         (Files): Distribute it.
37824         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37825         trailing slash behavior is broken.
37826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37827         * modules/unistd (Makefile.am): Substitute it.
37828         * lib/unistd.in.h (unlinkat): Declare replacement.
37829         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37830
37831         openat: fix fstatat bugs on Solaris 9
37832         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37833         stat.
37834         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37835
37836         test-unlinkat: enhance test, to expose Solaris 9 bug
37837         * tests/test-unlink.c (main): Factor guts...
37838         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37839         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37840         * tests/test-rmdir.c (main): Adjust caller.
37841         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37842         (unlinker): New helper function.
37843         (rmdirat): Enhance check.
37844         * modules/rmdir-tests (Depends-on): Add stdbool.
37845         * modules/unlink-tests (Depends-on): Likewise.
37846         (Files): Add test-unlink.h.
37847         * modules/openat-tests (Files): Likewise.
37848         (Depends-on): Add unlinkdir.
37849
37850         test-fstatat: new test, to expose Solaris 9 bugs
37851         * tests/test-stat.c (main): Factor guts...
37852         * tests/test-stat.h (test_stat_func): ...into new file.
37853         * tests/test-lstat.c (main): Factor guts...
37854         * tests/test-lstat.h (test_lstat_func): ...into new file.
37855         * tests/test-fstatat.c: New file.
37856         * modules/stat-tests (Files): Add test-stat.h.
37857         * modules/lstat-tests (Files): Add test-lstat.h.
37858         (Depends-on): Add stdbool.
37859         * modules/openat-tests (Depends-on): Add pathmax.
37860         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37861         (Makefile.am): Run new test.
37862
37863         remove: new module, for mingw and Solaris 9 bugs
37864         * modules/remove: New file.
37865         * lib/remove.c: Likewise.
37866         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37868         * modules/stdio (Makefile.am): Use them.
37869         * lib/stdio.in.h (remove): Declare replacement.
37870         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37871         * doc/posix-functions/remove.texi (remove): Likewise.
37872         * modules/remove-tests: New test.
37873         * tests/test-remove.c: Likewise.
37874
37875         unlink: new module, for Solaris 9 bug
37876         * modules/unlink: New file.
37877         * lib/unlink.c: Likewise.
37878         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37880         * modules/unistd (Makefile.am): Use them.
37881         * lib/unistd.in.h (stat): Declare replacement.
37882         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37883         * doc/posix-functions/unlink.texi (unlink): Likewise.
37884         * modules/unlink-tests: New test.
37885         * tests/test-unlink.c: Likewise.
37886
37887         lstat: fix Solaris 9 bug
37888         * lib/lstat.c (lstat): Also check for trailing slash on
37889         non-symlink, non-directories.  Use stat module to simplify logic.
37890         * doc/posix-functions/lstat.texi (lstat): Document it.
37891         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37892         (configure.ac): Check for symlink.
37893         * tests/test-lstat.c (main): Add more tests.
37894
37895         stat: add as dependency to other modules
37896         * modules/chown (Depends-on): Add stat.
37897         * modules/euidaccess (Depends-on): Likewise.
37898         * modules/fchdir (Depends-on): Likewise.
37899         * modules/isdir (Depends-on): Likewise.
37900         * modules/link (Depends-on): Likewise.
37901         * modules/lstat (Depends-on): Likewise.
37902         * modules/mkdir-p (Depends-on): Likewise.
37903         * modules/modechange (Depends-on): Likewise.
37904         * modules/open (Depends-on): Likewise.
37905         * modules/readlink (Depends-on): Likewise.
37906         * modules/same (Depends-on): Likewise.
37907
37908         stat: fix Solaris 9 bug
37909         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37910         slash.
37911         * lib/stat.c (rpl_stat): Work around it.
37912         * doc/posix-functions/stat.texi (stat): Update documentation.
37913
37914         stat: new module, for mingw bug
37915         * modules/stat: New file.
37916         * lib/stat.c: Likewise.
37917         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37919         * modules/sys_stat (Makefile.am): Use them.
37920         * lib/sys_stat.in.h (stat): Declare replacement.
37921         * lib/openat.c (fstatat): Deal with lstat and stat being function
37922         macros.
37923         * modules/openat (Depends-on): Add inline.
37924         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37925         * doc/posix-functions/stat.texi (stat): Likewise.
37926         * modules/stat-tests: New test.
37927         * tests/test-stat.c: Likewise.
37928
37929 2009-09-19  Jim Meyering  <meyering@redhat.com>
37930
37931         syntax-check: detect unnecessary inclusion of canonicalize.h
37932         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37933
37934 2009-09-19  Eric Blake  <ebb9@byu.net>
37935
37936         canonicalize-lgpl: adjust clients to use correct header
37937         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37938         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37939         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37940         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37941         * lib/progreloc.c (includes): Likewise.
37942
37943 2009-09-19  Jim Meyering  <meyering@redhat.com>
37944
37945         test-posixtm.c: correct a comment
37946         * tests/test-posixtm.c: Correct first-line comment.
37947         Spotted by Eric Blake.
37948
37949 2009-09-16  Jim Meyering  <meyering@redhat.com>
37950
37951         posixtm-tests: make T const-correct; add a test case
37952         * tests/test-posixtm.c (T): Declare const.
37953         Add a test for -(2^31+1).
37954         Remove useless can-succeed-only-in-2002 test.
37955
37956         posixtm-tests: adjust the sole failing test
37957         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37958         expected output matches what mktime now produces.  Cross-checked via
37959         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37960
37961         posixtm: move #ifdef'd tests into a new module
37962         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37963         * tests/test-posixtm.c: ... this new file.
37964         * modules/posixtm-tests: New module.
37965
37966 2009-09-19  Eric Blake  <ebb9@byu.net>
37967
37968         openat: simplify use of at-func.c
37969         * lib/at-func.c (includes): Include prerequisites here, to
37970         simplify requirements on client files.
37971         * lib/openat-priv.h: Add double-inclusion guard.
37972         * lib/faccessat.c (includes): Simplify.
37973         * lib/fchmodat.c (includes): Likewise.
37974         * lib/fchownat.c (includes): Likewise.
37975         * lib/mkdirat.c (includes): Likewise.
37976         * lib/mkfifoat.c (includes): Likewise.
37977         * lib/symlinkat.c (includes): Likewise.
37978
37979         openat: allow return of fd 0
37980         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37981         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37982         unistd-safer.
37983         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37984         <fcntl.h>; this module does not leak fds.
37985         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37986         must be allowed to return 0, leaving openat_safer to add the
37987         safety.
37988         (openat_permissive): Avoid writing to just-opened fd 2 if
37989         restoring the current directory fails.
37990         * lib/openat-die.c (openat_restore_fail): Add comment.
37991         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37992         (save_cwd): Guarantee safe fd, but without use of open_safer.
37993         * tests/test-openat.c: New test.
37994         * modules/openat-tests (Files, Makefile.am): Distribute and build
37995         new file.
37996
37997         relocatable-prog-wrapper: fix build
37998         * modules/relocatable-prog-wrapper (Files): Update name of
37999         canonicalize m4 file, broken on 2009-09-17.
38000         Reported by emad hajjar <aleppos@hotmail.com>.
38001
38002 2009-09-19  Bruno Haible  <bruno@clisp.org>
38003
38004         * lib/safe-alloc.h: Use the standard header with GPL copyright.
38005         * lib/safe-alloc.c: Likewise.
38006         Reported by Ian Beckwith <ianb@erislabs.net>.
38007
38008 2009-09-18  Bruno Haible  <bruno@clisp.org>
38009
38010         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38011         Reported by <erobles@sensacd.com.mx>.
38012
38013 2009-09-17  Eric Blake  <ebb9@byu.net>
38014
38015         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38016         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38017         slashes when checking if last component is missing.
38018         * tests/test-canonicalize.c (main): Test this.
38019
38020         canonicalize, canonicalize-lgpl: honor // if distinct from /
38021         * modules/canonicalize (Files): Add double-slash-root.m4.
38022         * modules/canonicalize-lgpl (Files): Likewise.
38023         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38024         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38025         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38026         fallback definition.
38027         (canonicalize_filename_mode): Use it to protect //.
38028         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38029         (__realpath): Likewise.
38030         * tests/test-canonicalize.c (main): Test this.
38031         * tests/test-canonicalize-lgpl.c (main): Likewise.
38032         * modules/canonicalize-tests (Depends-on): Add same-inode.
38033         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38034
38035         canonicalize-lgpl: fix glibc bug with trailing slash
38036         * m4/canonicalize-lgpl.m4: Move contents...
38037         * m4/canonicalize.m4: ...here.
38038         (gl_CANONICALIZE_LGPL): Factor realpath check...
38039         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38040         glibc 2.3.5 bug, fixed 2005-04-27.
38041         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38042         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38043         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38044         * modules/canonicalize-lgpl (Files): Manage file rename.
38045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38046         * modules/stdlib (Makefile.am): Substitute witness.
38047         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38048         is needed.
38049         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38050         replacement is required.
38051         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38052         * doc/glibc-functions/canonicalize_file_name.texi
38053         (canonicalize_file_name): Document this.
38054         * doc/posix-functions/realpath.texi (realpath): Likewise.
38055
38056         canonicalize-lgpl: reject non-directory with trailing slash
38057         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38058         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38059         catches failures in glibc 2.3.5.
38060         * tests/test-canonicalize.c (main): Likewise.
38061
38062         canonicalize-lgpl: use native realpath if it works
38063         * lib/canonicalize-lgpl.c (realpath): Guard with
38064         FUNC_REALPATH_WORKS.
38065         * lib/stdlib.in.h (realpath): Make declaration optional based on
38066         HAVE_REALPATH.
38067         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38068         native realpath works.
38069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38070         * modules/stdlib (Makefile.am): Substitute witness.
38071
38072         canonicalize, canonicalize-lgpl: use <stdlib.h>
38073         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38074         (Include): Mention <stdlib.h>.
38075         (configure.ac): Mention functions we provide.
38076         * modules/canonicalize (configure.ac): Likewise.
38077         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38078         realpath if canonicalize_file_name is missing.
38079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38080         * modules/stdlib (Makefile.am): Substitute witnesses.
38081         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38082         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38083         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38084         * NEWS: Document this.
38085         * doc/glibc-functions/canonicalize_file_name.texi
38086         (canonicalize_file_name): Likewise.
38087         * doc/posix-functions/realpath.texi (realpath): Likewise.
38088         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38089
38090         test-canonicalize: consolidate into single C program
38091         * tests/test-canonicalize.sh: Delete; move setup into...
38092         * tests/test-canonicalize.c (main): ...the program, making it
38093         easier to run in debugger.  Add some tests.
38094         * modules/canonicalize-tests (Files): Remove unused file.
38095         (Depends-on): Add progname.
38096         (configure.ac, Makefile.am): Simplify.
38097
38098         test-canonicalize-lgpl: consolidate into single C program
38099         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38100         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38101         easier to run in debugger.  Add some tests.
38102         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38103         (configure.ac, Makefile.am): Simplify.
38104
38105         canonicalize: avoid resolvepath
38106         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38107         unnecessary checks.
38108         * lib/canonicalize.c (includes): Simplify.
38109         (canonicalize_file_name): Drop resolvepath implementation.
38110         * modules/canonicalize (Depends-on): Drop filenamecat.
38111
38112         canonicalize: don't lose errno
38113         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38114         over calls to free.
38115
38116         canonicalize: simplify errno handling
38117         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38118         assignment.
38119
38120         canonicalize, canonicalize-lgpl: update module dependencies
38121         * modules/canonicalize (Depends-on): Add extensions, lstat,
38122         pathmax, stdlib.
38123         (Files): Drop pathmax.h.
38124         (configure.ac): Adjust macro name.
38125         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38126         lstat, stdlib, sys_stat.
38127         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38128         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38129         extensions.
38130         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38131         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38132         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38133         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38134         declaration, if available.
38135         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38136         we can rely on the readlink module.
38137         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38138         (includes): Use <unistd.h> unconditionally.
38139
38140 2009-09-17  Eric Blake  <ebb9@byu.net>
38141
38142         maint: make Include sections of modules consistent
38143         * modules/alloca: Use only header name; no need to list #include.
38144         * modules/alloca-opt: Likewise.
38145         * modules/arpa_inet: Likewise.
38146         * modules/canon-host: Likewise.
38147         * modules/configmake: Likewise.
38148         * modules/dirent: Likewise.
38149         * modules/eealloc: Likewise.
38150         * modules/environ: Likewise.
38151         * modules/fchdir: Likewise.
38152         * modules/fcntl: Likewise.
38153         * modules/fcntl-h: Likewise.
38154         * modules/gethrxtime: Likewise.
38155         * modules/gettime: Likewise.
38156         * modules/ignore-value: Likewise.
38157         * modules/inet_ntop: Likewise.
38158         * modules/inet_pton: Likewise.
38159         * modules/inttypes: Likewise.
38160         * modules/isnand-nolibm: Likewise.
38161         * modules/isnanf-nolibm: Likewise.
38162         * modules/mbchar: Likewise.
38163         * modules/mbfile: Likewise.
38164         * modules/mbiter: Likewise.
38165         * modules/mbuiter: Likewise.
38166         * modules/netdb: Likewise.
38167         * modules/netinet_in: Likewise.
38168         * modules/nproc: Likewise.
38169         * modules/pagealign_alloc: Likewise.
38170         * modules/poll: Likewise.
38171         * modules/printf-frexp: Likewise.
38172         * modules/pthread: Likewise.
38173         * modules/putenv: Likewise.
38174         * modules/random_r: Likewise.
38175         * modules/relocatable-prog: Likewise.
38176         * modules/search: Likewise.
38177         * modules/select: Likewise.
38178         * modules/selinux-h: Likewise.
38179         * modules/settime: Likewise.
38180         * modules/signal: Likewise.
38181         * modules/size_max: Likewise.
38182         * modules/socklen: Likewise.
38183         * modules/ssize_t: Likewise.
38184         * modules/stdarg: Likewise.
38185         * modules/stdbool: Likewise.
38186         * modules/stddef: Likewise.
38187         * modules/stdint: Likewise.
38188         * modules/stdio: Likewise.
38189         * modules/stdlib: Likewise.
38190         * modules/string: Likewise.
38191         * modules/strings: Likewise.
38192         * modules/sys_file: Likewise.
38193         * modules/sys_ioctl: Likewise.
38194         * modules/sys_select: Likewise.
38195         * modules/sys_socket: Likewise.
38196         * modules/sys_stat: Likewise.
38197         * modules/sys_time: Likewise.
38198         * modules/sys_times: Likewise.
38199         * modules/sys_utsname: Likewise.
38200         * modules/sys_wait: Likewise.
38201         * modules/sysexits: Likewise.
38202         * modules/time: Likewise.
38203         * modules/times: Likewise.
38204         * modules/tmpfile: Likewise.
38205         * modules/trim: Likewise.
38206         * modules/unistd: Likewise.
38207         * modules/wchar: Likewise.
38208         * modules/wctype: Likewise.
38209
38210 2009-09-17  Bruno Haible  <bruno@clisp.org>
38211
38212         Make getdate.y compile on QNX and NetBSD 5 / i386.
38213         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38214         TIME_T_FITS_IN_LONG_INT.
38215         * lib/getdate.y (long_time_t): New type.
38216         (relative_time): Change type of 'seconds' field to long_time_t.
38217         (get_date): Update types of local variables. Check against overflow
38218         during conversion from long_time_t to time_t.
38219         Reported by Matt Kraai <kraai@ftbfs.org>
38220         and Hasso Tepper <hasso@netbsd.org>.
38221
38222 2009-09-17  Bruno Haible  <bruno@clisp.org>
38223
38224         * modules/COPYING: Update copyright years.
38225         * modules/README: Likeiwse.
38226         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38227         Reported by Ian Beckwith <ianb@erislabs.net>.
38228
38229 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38230
38231         * users.txt: Update references for gnuit package.
38232
38233 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38234
38235         * m4/getdelim.m4: Fix typo in copyright line.
38236
38237 2009-09-17  Bruno Haible  <bruno@clisp.org>
38238
38239         * lib/atoll.c: Use the standard header with GPL copyright.
38240         * lib/argz.in.h: Likewise.
38241         * lib/glob.c: Likewise.
38242         * lib/glob-libc.h: Likewise.
38243         * lib/random_r.c: Likewise.
38244         * lib/siglist.h: Likewise.
38245         * lib/strsignal.c: Likewise.
38246         Reported by Ian Beckwith <ianb@erislabs.net>.
38247
38248 2009-09-17  Eric Blake  <ebb9@byu.net>
38249
38250         rmdir: ensure correct dependency order
38251         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38252
38253 2009-09-17  Bruno Haible  <bruno@clisp.org>
38254
38255         Disable assertion that fails on NetBSD 5 / i386.
38256         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38257         Reported by Sam Steingold <sds@gnu.org>
38258         and Hasso Tepper <hasso@netbsd.org>.
38259
38260 2009-09-16  Eric Blake  <ebb9@byu.net>
38261
38262         unlinkdir: port to mingw
38263         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38264         on which no one can unlink a directory.
38265
38266         stdlib: sort witness names
38267         * modules/stdlib (Makefile.am): Sort replacements.
38268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38269         * lib/stdlib.in.h: Likewise.
38270
38271         parse-duration-tests: avoid link failure
38272         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38273         LIBINTL.
38274         Reported by Tom G. Christensen.
38275
38276         openat-tests: ensure unlinkat behaves like rmdir
38277         * tests/test-rmdir.c (main): Factor guts...
38278         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38279         * modules/rmdir-tests (Files): Ship new file.
38280         * modules/openat-tests: New test.
38281         * tests/test-unlinkat.c: Likewise.
38282
38283         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38284         * modules/rmdir-errno (Status, Notice): Now obsolete.
38285
38286         rmdir: work around cygwin 1.5.x and mingw bugs
38287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38288         * lib/rmdir.c (rmdir): Work around it.
38289         * modules/rmdir (Status, Notice): No longer obsolete.
38290         (Files): Add dos.m4.
38291         (Depends-on): Add unistd.
38292         (configure.ac): Set witnesses.
38293         (License): Relax to LGPLv2+.
38294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
38295         * modules/unistd (Makefile.am): Substitute witnesses.
38296         * lib/unistd.in.h (rmdir): Declare replacement.
38297         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38298         * modules/rmdir-tests: New tests.
38299         * tests/test-rmdir.c: Likewise.
38300
38301 2009-09-15  Eric Blake  <ebb9@byu.net>
38302
38303         fchdir: improve use of replacement functions
38304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38307         REPLACE_CLOSEDIR.
38308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38309         * modules/sys_stat (Makefile.am): Substitute correct witness.
38310         * modules/dirent (Makefile.am): Likewise.
38311         * modules/unistd (Makefile.am): Likewise.
38312         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38313         * lib/unistd.in.h (dup): Likewise.
38314         * lib/sys_stat.in.h (fstat): Likewise.
38315
38316         maint: ignore gnulib-tool temp files
38317         * .gitignore: Ignore files created during gnulib-tool --test.
38318
38319 2009-09-13  Jim Meyering  <meyering@redhat.com>
38320
38321         posixtm: don't reject a time that specify "60" as the number of seconds
38322         * lib/posixtm.c (posixtime): The code to reject invalid dates
38323         would also reject a time specified with the .60 suffix.
38324         But POSIX allows that, in order to accommodate leap seconds.
38325         So don't reject it.
38326         (main): Adjust tests accordingly.
38327         * modules/posixtm (Depends-on): Add stpcpy.
38328
38329 2009-09-11  Jim Meyering  <meyering@redhat.com>
38330
38331         announce-gen: include [$release_type] in emitted Subject:
38332         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38333         e.g., [stable] in the emitted Subject: line.
38334
38335 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38336
38337         Remove obsolete macros from several modules.
38338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38339         obsolete Autoconf macros with their modern counterparts.
38340         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38341         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38343         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38344         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38345         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38347         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38348         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38349         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38350         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38351         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38352         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38353         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38354         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38355         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38356         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38357         * m4/time_r.m4 (gl_TIME_R): Likewise.
38358         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38359         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38360         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38361
38362         Fix copyright header in build-aux scripts.
38363         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38364         recommendation.
38365         * build-aux/ncftpput-ftp: Likewise.
38366         * build-aux/update-copyright: Likewise.
38367
38368 2009-09-09  Eric Blake  <ebb9@byu.net>
38369
38370         test-link: allow Linux choice of errno
38371         * tests/test-link.c (main): Relax test for alternate error.
38372
38373         strndup: fix improper m4 caching
38374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38375         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38376         (gl_PREREQ_STRNDUP): Delete.
38377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38378         * modules/string (Makefile.am): Substitute it.
38379         * lib/string.in.h (strndup): Modernize prototype.
38380
38381         getcwd: port to mingw
38382         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38383         different from the POSIX assumptions made throughout the getcwd
38384         module; fortunately, the mingw getcwd does not need replacement.
38385         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38386         * modules/getcwd-tests: New test.
38387         * tests/test-getcwd.c: Likewise.
38388
38389         link: fix platform bugs
38390         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38391         * lib/link.c (link): Work around them.  Fix related mingw bug.
38392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38393         * modules/unistd (Makefile.am): Substitute it.
38394         * lib/unistd.in.h (link): Declare replacement.
38395         * doc/posix-functions/link.texi (link): Document this.
38396         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38397
38398         test-link: consolidate into single C program, test more cases
38399         * tests/test-link.sh: Delete.
38400         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38401         at least Cygwin and Solaris.
38402         * modules/link-tests (Files): Remove unused file.
38403         (Depends-on): Add errno, sys_stat.
38404         (Makefile.am): Simplify.
38405
38406 2009-09-08  Bruno Haible  <bruno@clisp.org>
38407
38408         Work around towlower, towupper bug on mingw.
38409         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38410         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38411         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38412         * doc/posix-functions/towupper.texi: Likewise.
38413         Reported by Eric Blake.
38414
38415 2009-09-08  Jim Meyering  <meyering@redhat.com>
38416
38417         build: don't try to run autoheader if we don't use it
38418         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38419         is not used in configure.ac.
38420
38421 2009-09-08  Eric Blake  <ebb9@byu.net>
38422
38423         euidaccess: fix compilation error
38424         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38425
38426         rawmemchr: relax license
38427         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38428         okay.
38429         Reported by Jim Meyering.
38430
38431         mkfifoat: new module
38432         * modules/mkfifoat: New file.
38433         * lib/mkfifoat.c: Likewise.
38434         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38436         * modules/sys_stat (Makefile.am): Use them.
38437         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38438         * MODULES.html.sh (File system functions): Mention module.
38439         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38440         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38441         * modules/mkfifoat-tests: New test.
38442         * tests/test-mkfifoat.c: Likewise.
38443
38444         strchrnul: relax license
38445         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38446         okay.
38447         Reported by Jim Meyering.
38448
38449 2009-09-08  Eric Blake  <ebb9@byu.net>
38450
38451         fstatat: fix compilation on Solaris
38452         * lib/fstatat.c (includes): Add fcntl.h.
38453         Reported by Pádraig Brady.
38454
38455 2009-09-07  Eric Blake  <ebb9@byu.net>
38456
38457         rename: modernize replacement
38458         * modules/rename (Depends-on): Add stdio.
38459         (configure.ac): Declare witness.
38460         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38461         stdio take care of replacement.
38462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38463         * modules/stdio (Makefile.am): Substitute them.
38464         * lib/stdio.in.h (rename): Declare replacement.
38465         * lib/rename.c (includes): Allow cross-compilation to non-windows
38466         machines.
38467         * doc/posix-functions/rename.texi (rename): Improve
38468         documentation.
38469
38470         stdio: sort witness names
38471         * modules/stdio (Makefile.am): Sort replacements.
38472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38473         * lib/stdio.in.h: Likewise.
38474
38475         getcwd: minor cleanups
38476         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38477         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38478
38479         openat: provide more convenience names
38480         * modules/faccessat (configure.ac): Add C witness.
38481         * lib/unistd.in.h (readlinkat): Fix typo.
38482         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38483         convenience wrappers.
38484         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38485         wrappers in syntax checks.
38486
38487 2009-09-06  Eric Blake  <ebb9@byu.net>
38488
38489         doc: fix comments in recent patches
38490         * lib/faccessat.c: Mention correct function.
38491         * lib/fchmodat.c: Likewise.
38492         * lib/fchownat.c: Likewise.
38493         * lib/symlinkat.c: Likewise.
38494         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38495         constants.
38496
38497         faccessat, symlinkat: continue cleanup of previous patch
38498         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38499         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38500         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38502         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38503         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38504         set.
38505
38506 2009-09-06  Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38509         (fstatat): Declare if GNULIB_FSTATAT is set.
38510         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38511         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38512         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38513         * modules/fcntl-h (Files): Remove m4/openat.m4.
38514         * modules/sys_stat (Files): Remove m4/openat.m4.
38515         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38516         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38517         * modules/unistd (Files): Remove m4/openat.m4.
38518         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38519         GNULIB_OPENAT.
38520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38521         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38523         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38524         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38525         gl_OPENAT_DEFAULTS.
38526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38527         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38528         Don't require gl_OPENAT_DEFAULTS.
38529         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38530         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38531         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38532         (gl_OPENAT_DEFAULTS): Remove macro.
38533
38534 2009-09-06  Bruno Haible  <bruno@clisp.org>
38535
38536         * modules/openat (configure.ac): Remove unneeded witness.
38537
38538 2009-09-06  Bruno Haible  <bruno@clisp.org>
38539
38540         Set errno to ENOSYS when a function is entirely unsupported.
38541         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38542         EOPNOTSUPP.
38543         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38544         * modules/chown (Depends-on): Remove errno.
38545
38546 2009-09-06  Bruno Haible  <bruno@clisp.org>
38547
38548         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38549
38550 2009-09-06  Bruno Haible  <bruno@clisp.org>
38551
38552         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38553
38554 2009-09-06  Ben Pfaff  <blp@gnu.org>
38555             Bruno Haible  <bruno@clisp.org>
38556
38557         Work around a glibc bug in strtok_r.
38558         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38559         Undefine if UNDEFINE_STRTOK_R is set.
38560         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38562         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38563         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38564         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38565         UNDEFINE_STRTOK_R.
38566         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38567
38568 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38569
38570         exclude: minor fix
38571         * lib/exclude.c: Include wctype.h
38572
38573 2009-09-06  Akim Demaille  <demaille@gostai.com>
38574
38575         bootstrap: improve error message
38576         * build-aux/bootstrap (find_tool): Upon failure, report the list
38577         of candidates.
38578         Honor the initial value of the envvar.
38579
38580 2009-09-05  Eric Blake  <ebb9@byu.net>
38581
38582         symlinkat: new module
38583         * modules/symlinkat: New file.
38584         * lib/symlinkat.c: Likewise.
38585         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38587         * modules/unistd (Makefile.am): Use them.
38588         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38589         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38590         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38591         * MODULES.html.sh (File system functions): Mention module.
38592         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38593         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38594         * modules/symlinkat-tests: New test.
38595         * tests/test-symlinkat.c: Likewise.
38596
38597         test-openat-safer: add more checks
38598         * tests/test-openat-safer.c (main): Check more code paths.
38599
38600 2009-09-05  Jim Meyering  <meyering@redhat.com>
38601
38602         syntax-check: detect unnecessary inclusion of openat.h
38603         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38604
38605 2009-09-05  Bruno Haible  <bruno@clisp.org>
38606
38607         Support towlower, towupper.
38608         * doc/posix-functions/towlower.texi: Mention module wctype.
38609         * doc/posix-functions/towupper.texi: Likewise.
38610         * lib/wctype.in.h (towlower, towupper): New functions.
38611         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38612         (ASSERT): New macro.
38613         (e): New variable.
38614         (main): Test also towlower, towupper. Test WEOF argument.
38615         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38616
38617 2009-09-05  Bruno Haible  <bruno@clisp.org>
38618
38619         Fix conversion behaviour when the input is invalid.
38620         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38621         mark occurring in first pass of indirect conversion.
38622         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38623         input.
38624         Found by clang's static analyzer.
38625
38626 2009-09-05  Bruno Haible  <bruno@clisp.org>
38627
38628         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38629         where direct conversion is possible.
38630
38631 2009-09-04  Eric Blake  <ebb9@byu.net>
38632
38633         openat: fail with ENOENT on empty name
38634         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38635         buffer.
38636
38637         link-follow: fix logic bug in prior patch
38638         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38639         reversed sense of yes and no in prior patch.  Avoid confusing
38640         compilation failure with desired semantics.
38641
38642         link-follow: accomodate mingw and cross-compilation
38643         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38644         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38645         cross-compilation results to -1, to make linkat easier to
38646         implement when cross-compiling.  Trivially support mingw.
38647         * modules/link-follow (configure.ac): Call new name.
38648         * NEWS: Mention this.
38649
38650 2009-09-03  Eric Blake  <ebb9@byu.net>
38651
38652         faccessat: compile replacement
38653         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38654         needed.
38655
38656         fts: fix compilation error
38657         * lib/fts.c (includes): Re-add "openat.h", for
38658         openat_needs_fchdir.
38659
38660         faccessat: new module
38661         * modules/faccessat: New file.
38662         * lib/faccessat.c: Likewise.
38663         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38665         * modules/unistd (Makefile.am): Use it.
38666         * lib/unistd.in.h (faccessat): Declare it.
38667         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38668         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38669         * MODULES.html.sh (File system functions): Mention it.
38670         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38671         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38672
38673         euidaccess: prefer POSIX over non-standard implementation
38674         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38675         * lib/euidaccess.c (euidaccess): Use it if available.
38676
38677         openat: make template easier to use
38678         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38679         AT_FUNC_F2 to be undefined.
38680         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38681         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38682         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38683         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38684         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38685         Likewise.
38686         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38687         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38688         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38689         Likewise.
38690
38691         openat: declare in POSIX headers
38692         * NEWS: Mention this.
38693         * modules/openat (configure.ac): Declare witnesses.
38694         (Depends-on): Add fcntl-h, sys_stat, unistd.
38695         (Include): Mention correct headers.
38696         * modules/fcntl-h (Depends-on): Add link-warning.
38697         (Files): Add openat.m4.
38698         (Makefile.am): Substitute witnesses.
38699         * modules/sys_stat (Files, Makefile.am): Likewise.
38700         * modules/unistd (Files, Makefile.am): Likewise.
38701         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38702         (gl_OPENAT_DEFAULTS): New macro.
38703         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38706         (SYS_STAT_H): Remove unused variable.
38707         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38708         * lib/fcntl--.h (includes): Remove unneeded header.
38709         * lib/openat-safer.c (includes): Likewise.
38710         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38711         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38712         appropriate headers.
38713         (__OPENAT_PREFIX): Delete.
38714         * lib/fcntl.in.h (openat): Provide declaration.
38715         (AT_FDCWD): Fix Solaris bug.
38716         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38717         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38718         * lib/fchmodat.c (includes):  Adjust to find declaration.
38719         * lib/fchownat.c (includes): Likewise.
38720         * lib/mkdirat.c (includes): Likewise.
38721         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38722         still visible.
38723
38724 2009-09-02  Eric Blake  <ebb9@byu.net>
38725
38726         errno: use consistently
38727         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38728         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38729         * lib/canonicalize.c (ELOOP): Likewise.
38730         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38731         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38732         * lib/lchown.c (EOPNOTSUPP): Likewise.
38733         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38734         * lib/savewd.c (ESTALE): Likewise.
38735         * lib/settime.c (ENOSYS): Likewise.
38736         * lib/utimens.c (ENOSYS): Likewise.
38737         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38738         * lib/chdir-safer.c (ELOOP): Likewise.
38739         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38740         * modules/c-stack (Depends-on): Add errno.
38741         * modules/canonicalize (Depends-on): Likewise.
38742         * modules/chdir-safer (Depends-on): Likewise.
38743         * modules/fdopendir (Depends-on): Likewise.
38744         * modules/inet_ntop (Depends-on): Likewise.
38745         * modules/inet_pton (Depends-on): Likewise.
38746         * modules/lchown (Depends-on): Likewise.
38747         * modules/openat (Depends-on): Likewise.
38748         * modules/savewd (Depends-on): Likewise.
38749         * modules/settime (Depends-on): Likewise.
38750         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38751
38752         fts: avoid leaking fds
38753         * modules/fts (Depends-on): Add cloexec.
38754         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38755         flag.
38756
38757         fts: make directory fds more robust
38758         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38759         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38760
38761         backupfile, chdir-long, fts, savedir: make safer
38762         * lib/backupfile.c (includes): Use "dirent--.h", since
38763         numbered_backup can write to stderr during readdir.
38764         * lib/savedir.c (includes): Likewise.
38765         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38766         emulation can write to stderr on failure.
38767         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38768         * lib/getcwd.c: Document why opendir_safer is unused.
38769         * lib/glob.c: Likewise.
38770         * lib/scandir.c: Likewise.
38771         * lib/openat-proc.c: Likewise, for open_safer.
38772         * modules/backupfile (Depends-on): Add dirent-safer.
38773         * modules/savedir (Depends-on): Likewise.
38774         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38775         * modules/chdir-long (Depends-on): Add openat-safer.
38776
38777         openat-safer: new module
38778         * modules/openat-safer: New file.
38779         * lib/openat-safer.c: Likewise.
38780         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38781         * lib/fcntl-safer.h (openat_safer): Declare.
38782         * lib/fcntl--.h (openat): Override.
38783         * MODULES.html.sh (File descriptor based I/O): Mention it.
38784         * lib/openat.h: Add double-inclusion guards.
38785         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38786         "fcntl--.h", so we can implement openat.
38787         * modules/openat-safer-tests: New test.
38788         * tests/test-openat-safer.c: New file.
38789
38790         dirent-safer: new module
38791         * modules/dirent-safer: New file.
38792         * lib/dirent--.h: Likewise.
38793         * lib/dirent-safer.h: Likewise.
38794         * lib/opendir-safer.c: Likewise.
38795         * m4/dirent-safer.m4: Likewise.
38796         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38797         * modules/dirent-safer-tests: New test.
38798         * tests/test-dirent-safer.c: New file.
38799         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38800
38801         fdopendir: optimize on mingw
38802         * lib/unistd.in.h (_gl_directory_name): New prototype.
38803         * lib/fchdir.c (_gl_directory_name): Implement it.
38804         (fchdir): Use it to simplify implementation.
38805         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38806         fchdir, when available, to avoid calling [f]chdir().
38807
38808         fdopendir: split into its own module
38809         * lib/openat.c (fdopendir): Move...
38810         * lib/fdopendir.c: ...into new file.
38811         * modules/fdopendir: New module.
38812         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38813         * modules/openat (Depends-on): Add fdopendir.
38814         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38815         fdopendir here.
38816         * modules/savedir (Depends-on): Only need fdopendir, not full
38817         openat.
38818         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38819         * lib/openat.h (fdopendir): Drop prototype.
38820         * lib/dirent.in.h (fdopendir): Provide prototype.
38821         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38822         * modules/dirent (Makefile.am): Substitute them.
38823         * MODULES.html.sh (File system functions): Mention it.
38824         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38825         * modules/fdopendir-tests: New file.
38826         * tests/test-fdopendir.c: Likewise.
38827
38828         fchdir: use more consistent macro convention
38829         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38830         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38831         REPLACE_FCHDIR, rather than relying on config.h macros.
38832         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38833         inside a single make-time REPLACE_FCHDIR block, rather than using
38834         the config.h FCHDIR_REPLACEMENT.
38835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38836         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38837         Manage fstat replacement.
38838         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38839         REPLACE_FCHDIR.
38840         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38841         (Makefile.am): Substitute REPLACE_FCHDIR.
38842         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38843         FCHDIR_REPLACEMENT.
38844         * lib/dup-safer.c (dup_safer): Likewise.
38845         * lib/dup2.c (rpl_dup2): Likewise.
38846         * lib/dup3.c (rpl_dup3): Likewise.
38847         * lib/open.c (rpl_open): Likewise.
38848
38849         fchdir: simplify error handling, and support dup3
38850         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38851         stdbool, malloc-posix, realloc-posix.
38852         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38853         (ensure_dirs_slot): Return false on allocation failure.
38854         (rpl_dup2): Delete.
38855         (_gl_register_dup): New function.
38856         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38857         (_gl_register_fd): Close fd on allocation failure.
38858         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38859         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38860         prototype.
38861         (rpl_dup2_fchdir): Delete prototype.
38862         * lib/open.c (open): Update caller.
38863         * lib/dup2.c (dup2): Track fchdir metadata.
38864         * lib/dup3.c (dup3): Likewise.
38865         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38867
38868 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38869
38870         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38871         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38872         don't pass arguments to AC_OUTPUT.
38873
38874 2009-09-02  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/mkdtemp (License): Relicense under LGPLv2+.
38877         Reported by Paolo Bonzini.
38878
38879 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38880
38881         Replace uses of obsolete autoconf macros in Jim's modules.
38882         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38883         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38884         can evoke a warning from autoconf when run with -Wobsolete
38885         enabled.  They were declared obsolete for good reasons (see
38886         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38887         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38888         should not continue using the deprecated macros.
38889         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38890         obsolete Autoconf macros with modern counterparts.
38891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38892         * m4/dos.m4 (gl_AC_DOS): Likewise.
38893         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38895         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38896         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38897         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38898         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38899         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38900         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38901         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38902         Likewise.
38903         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38904         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38905         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38906         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38907         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38908         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38909
38910 2009-09-01  Eric Blake  <ebb9@byu.net>
38911
38912         fchdir: fix off-by-one bug in previous patch
38913         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38914         (_gl_unregister_fd): Delete useless if.
38915
38916 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38917
38918         maint.mk: sort the list of syntax-check rules
38919         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38920         easier to get a sense of progress when the rules are run sequentially
38921         and take a long time.
38922
38923 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38924
38925         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38926         * modules/netinet_in: Likewise.
38927         * modules/sys_file: Likewise.
38928         * modules/sys_ioctl: Likewise.
38929         * modules/sys_select: Likewise.
38930         * modules/sys_socket: Likewise.
38931         * modules/sys_stat: Likewise.
38932         * modules/sys_time: Likewise.
38933         * modules/sys_times: Likewise.
38934         * modules/sys_utsname: Likewise.
38935         * modules/sys_wait: Likewise.
38936
38937 2009-09-01  Jim Meyering  <meyering@redhat.com>
38938
38939         fts: help ensure that return values are not ignored
38940         * lib/fts_.h (__GNUC_PREREQ): Define.
38941         (__attribute_warn_unused_result__): Define.
38942         (fts_children, fts_close, fts_open, fts_read): Declare with
38943         __attribute_warn_unused_result__.
38944
38945         fts: fts_close now fails also when closing a dir file descriptor fails
38946         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38947         and propagate to caller, along with errno.
38948
38949         announce-gen: correct formatting in --help output
38950         * build-aux/announce-gen (usage): Move the one-line description in
38951         --help output "up", to where it belongs, just after Usage:.
38952
38953 2009-08-31  Eric Blake  <ebb9@byu.net>
38954
38955         fchdir: port to mingw
38956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38957         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38958         opened, then use a substitute.
38959         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38960         replacement.
38961         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38962         (_gl_register_fd): No need to check stat if open already filters
38963         all directories.
38964         (fchdir): Fix error condition to match POSIX.
38965         * modules/fchdir (Depends-on): Add sys_stat.
38966         * doc/posix-functions/open.texi (open): Document the limitation.
38967         * modules/fchdir-tests: New file.
38968         * tests/test-fchdir.c: Likewise.
38969
38970         canonicalize: allow cross-testing from cygwin to mingw
38971         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38972         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38973         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38974         Likewise.
38975         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38976         target does not support symlinks.
38977         * tests/test-canonicalize-lgpl.sh: Likewise.
38978
38979         chown: avoid compilation warning on mingw
38980         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38981         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38982         mingw.
38983         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38984         * modules/chown (Depends-on): Add errno.
38985
38986 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38987
38988         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38989         command.
38990
38991 2009-08-31  Jim Meyering  <meyering@redhat.com>
38992
38993         canonicalize: remove useless initialization
38994         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38995         initialization of local, "end".
38996
38997 2009-08-30  Bruno Haible  <bruno@clisp.org>
38998
38999         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
39000         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
39001         ENOSYS.
39002
39003 2009-08-30  Bruno Haible  <bruno@clisp.org>
39004
39005         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
39006         /usr/xpg4/bin/tr when it exists.
39007         * tests/test-pipe-filter-gi1.sh: Likewise.
39008
39009 2009-08-30  Bruno Haible  <bruno@clisp.org>
39010
39011         Work around deficient /usr/bin/id program on Solaris.
39012         * tests/test-file-has-acl.sh (ID): New variable.
39013         * tests/test-set-mode-acl.sh (ID): Likewise.
39014         * tests/test-copy-acl.sh (ID): Likewise.
39015         * tests/test-copy-file.sh (ID): Likewise.
39016
39017 2009-08-30  Bruno Haible  <bruno@clisp.org>
39018
39019         New module 'xstriconveh'.
39020         * lib/xstriconveh.h: New file.
39021         * lib/xstriconveh.c: New file.
39022         * modules/xstriconveh: New file.
39023
39024 2009-08-30  Bruno Haible  <bruno@clisp.org>
39025
39026         Make it easier to use mem_cd_iconveh.
39027         * lib/striconveh.h (iconveh_t): New type.
39028         (iconveh_open, iconveh_close): New declarations.
39029         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39030         with a single 'const iconveh_t *' argument.
39031         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39032         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39033         with a single 'const iconveh_t *' argument.
39034         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39035         * tests/test-striconveh.c (main): Update.
39036         * NEWS: Mention the change.
39037
39038 2009-08-30  Bruno Haible  <bruno@clisp.org>
39039
39040         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39041         problem.
39042
39043 2009-08-30  Bruno Haible  <bruno@clisp.org>
39044
39045         Work around iconv_open problem on Solaris.
39046         * lib/iconv_open-solaris.gperf: New file.
39047         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39048         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39049         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39050         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39051         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39052         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39053
39054 2009-08-29  Jim Meyering  <meyering@redhat.com>
39055
39056         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39057         * top/maint.mk (cvs-check): Remove target; it was just an alias
39058         to the better-named vc-diff-check.
39059         (maintainer-distcheck): Remove rule.  It was used only from
39060         the (alpha/beta/major) target, and all of its commands but one
39061         were coreutils-specific.
39062         (vc-dist): Remove rule.
39063         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39064         Run vc-diff-check, not vc-dist.
39065         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39066
39067 2009-08-27  Bruno Haible  <bruno@clisp.org>
39068
39069         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39070         of 0.
39071
39072 2009-08-27  Bruno Haible  <bruno@clisp.org>
39073
39074         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39075         compilers.
39076         * doc/func.texi: Document the SunPRO C bug.
39077
39078 2009-08-27  Bruno Haible  <bruno@clisp.org>
39079
39080         Fix link error on Solaris.
39081         * tests/test-parse-duration.c (xstrdup): Remove function.
39082
39083 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39084
39085         ignore-value: handle pointer types, too
39086         * lib/ignore-value.h (__attribute__): Remove definition.
39087         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39088         of a more concise and more-often effective "(void) i" statement.
39089         (ignore_ptr): New function to suppress warnings from functions that
39090         return pointers, and to make it explicit that one function doesn't
39091         handle all cases.
39092
39093 2009-08-25  Bruno Haible  <bruno@clisp.org>
39094
39095         dup2: work around a Linux bug.
39096         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39097         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39098         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39099         Reported by Simon Josefsson.
39100
39101 2009-08-25  Jim Meyering  <meyering@redhat.com>
39102
39103         libguestfs uses gnulib
39104         * users.txt: Add libguestfs.
39105
39106 2009-08-24  Eric Blake  <ebb9@byu.net>
39107
39108         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39109         * lib/pipe2.c (includes): Add binary-io.h.
39110         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39111
39112 2009-08-24  Bruno Haible  <bruno@clisp.org>
39113
39114         Tolerate declared but missing accept4 syscall.
39115         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39116         available.
39117         * lib/sys_socket.in.h (accept4): If the function is already present,
39118         override it.
39119         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39120         * modules/accept4 (Makefile.am): Compile accept4.c always.
39121         Reported by Paolo Bonzini and Eric Blake.
39122
39123 2009-08-23  Bruno Haible  <bruno@clisp.org>
39124
39125         New module 'accept4'.
39126         * lib/sys_socket.in.h (accept4): New declaration.
39127         * lib/accept4.c: New file.
39128         * m4/accept4.m4: New file.
39129         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39130         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39131         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39132         HAVE_ACCEPT4.
39133         * modules/accept4: New file.
39134         * doc/glibc-functions/accept4.texi: Mention the new module.
39135
39136 2009-08-24  Jim Meyering  <meyering@redhat.com>
39137
39138         progname: also set global program_invocation_name, when possible
39139         Before this change, a libtool-enabled program that calls glibc's
39140         error function would report the program name as
39141         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39142         * modules/progname (configure.ac): Check for a declaration of
39143         program_invocation_name.
39144         * lib/progname.c:  Include <errno.h>.
39145         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39146         Set program_invocation_name.
39147
39148 2009-08-23  Bruno Haible  <bruno@clisp.org>
39149
39150         * lib/dup3.c: Include <string.h>.
39151
39152 2009-08-23  Bruno Haible  <bruno@clisp.org>
39153
39154         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39155         * lib/pipe2.c (pipe2): Likewise.
39156         Suggested by Eric Blake.
39157
39158 2009-08-23  Bruno Haible  <bruno@clisp.org>
39159
39160         Tolerate declared but missing dup3 syscall.
39161         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39162         * lib/unistd.in.h (dup3): If the function is already present,
39163         override it.
39164         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39165         * modules/dup3 (Makefile.am): Compile dup3.c always.
39166         Reported by Paolo Bonzini.
39167
39168 2009-08-23  Bruno Haible  <bruno@clisp.org>
39169
39170         Tolerate declared but missing pipe2 syscall.
39171         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39172         available.
39173         * lib/unistd.in.h (pipe2): If the function is already present,
39174         override it.
39175         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39176         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39177         Reported by Paolo Bonzini.
39178
39179 2009-08-23  Bruno Haible  <bruno@clisp.org>
39180
39181         * lib/pipe2.c (pipe2): Move #ifs inside function.
39182
39183 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39184
39185         quotearg: document limitations of quote_these_too
39186         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39187         those limitations are created.
39188         * lib/quotearg.h (set_char_quoting): Document that digits and
39189         letters that are special after backslash are not permitted.
39190         (quotearg_char): Cross-reference set_char_quoting documentation.
39191
39192 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39193
39194         quotearg: implement custom_quoting_style
39195         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39196         right_quote fields.
39197         (set_custom_quoting): New public function.
39198         (quotearg_buffer_restyled): Add left_quote and right_quote
39199         arguments, handle them very much like locale quoting, and update
39200         all uses.
39201         (quotearg_n_custom): New public function.
39202         (quotearg_n_custom_mem): New public function.
39203         (quotearg_custom): New public function.
39204         (quotearg_custom_mem): New public function.
39205         * lib/quotearg.h: Prototype and document new public functions.
39206         (enum quoting_style): For escape_quoting_style and
39207         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39208         ignored even though they're otherwise like c_quoting_style.
39209         Add custom_quoting_style member and document with comparison to
39210         clocale_quoting_style.
39211         * tests/test-quotearg.c (custom_quotes): New array.
39212         (custom_results): New array.
39213         (main): Extend to test custom quoting.
39214
39215 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39216
39217         quotearg: fix right quote escaping when it's in quote_these_too
39218         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39219         quote, be sure to prepend only one backslash.
39220         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39221         (main): Test it.
39222
39223 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39224
39225         quotearg-tests: test escaping of embedded locale quotes
39226         * tests/test-quotearg.c (struct result_strings): Add member for
39227         new input.
39228         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39229         (inputs): Add new input.
39230         (results_g): Add expected results.
39231         (flag_results): Likewise.
39232         (locale_results): Likewise.
39233         (compare_strings): Check those.
39234
39235 2009-08-23  Bruno Haible  <bruno@clisp.org>
39236
39237         Tests for module 'dup3'.
39238         * modules/dup3-tests: New file.
39239         * tests/test-dup3.c: New file.
39240
39241         New module 'dup3'.
39242         * lib/unistd.in.h (dup3): New declaration.
39243         * lib/dup3.c: New file.
39244         * m4/dup3.m4: New file.
39245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39246         HAVE_DUP3.
39247         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39248         * modules/dup3: New file.
39249         * doc/glibc-functions/dup3.texi: Mention the new module.
39250
39251 2009-08-23  Bruno Haible  <bruno@clisp.org>
39252
39253         Tweak the dup2 test.
39254         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39255         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39256         the test file is still empty. Fix argument order of lseek.
39257
39258 2009-08-23  Bruno Haible  <bruno@clisp.org>
39259
39260         Avoid test link errors when the modules getopt-gnu, gettext are used.
39261         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39263
39264 2009-08-23  Bruno Haible  <bruno@clisp.org>
39265
39266         Fix getdtablesize() on mingw.
39267         * lib/getdtablesize.c (getdtablesize): Implement differently.
39268         * lib/unistd.in.h (getdtablesize): Improve comment.
39269
39270 2009-08-23  Bruno Haible  <bruno@clisp.org>
39271
39272         New module 'mkostemp'.
39273         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39274         * lib/stdlib.in.h (mksotemp): New declaration.
39275         * lib/mkostemp.c: New file, from glibc with modifications.
39276         * lib/tempname.h (GT_FILE): Remove outdated comment.
39277         (gen_tempname): Add flags argument.
39278         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39279         (__GT_FILE): Map to 1.
39280         (small_open, large_open): Remove macros.
39281         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39282         * lib/mkstemp.c (mkstemp): Update.
39283         * lib/mkdtemp.c (mkdtemp): Likewise.
39284         * m4/mkostemp.m4: New file.
39285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39286         HAVE_MKOSTEMP.
39287         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39288         HAVE_MKOSTEMP.
39289         * modules/mkostemp: New file, based on modules/mkstemp.
39290         * doc/glibc-functions/mkostemp.texi: Mention the new module.
39291         * NEWS: Mention the change.
39292
39293 2009-08-23  Bruno Haible  <bruno@clisp.org>
39294
39295         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39296         Reported by Eric Blake.
39297
39298 2009-08-23  Bruno Haible  <bruno@clisp.org>
39299
39300         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39301         Reported by Eric Blake.
39302
39303 2009-08-23  Bruno Haible  <bruno@clisp.org>
39304
39305         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39306         * modules/pipe2 (Depends-on): Likewise.
39307
39308 2009-08-23  Eric Blake  <ebb9@byu.net>
39309
39310         fcntl-h: add O_TTY_INIT support
39311         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39312         * tests/test-fcntl-h.c (o): Test it.
39313         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39314
39315         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39316         * modules/fcntl: Move <fcntl.h> header replacement...
39317         * modules/fcntl-h: ...to new name, so as not to collide with
39318         like-named function.
39319         * tests/test-fcntl.c: Rename...
39320         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39321         * modules/fcntl-tests: Rename...
39322         * modules/fcntl-h-tests: ...to this.  Update test file name.
39323         * modules/chdir-long (Depends-on): Update clients.
39324         * modules/chdir-safer (Depends-on): Likewise.
39325         * modules/fcntl-safer (Depends-on): Likewise.
39326         * modules/fts (Depends-on): Likewise.
39327         * modules/mkancesdirs (Depends-on): Likewise.
39328         * modules/mkdir-p (Depends-on): Likewise.
39329         * modules/open (Depends-on): Likewise.
39330         * modules/savewd (Depends-on): Likewise.
39331         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39332         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39333
39334 2009-08-22  Bruno Haible  <bruno@clisp.org>
39335
39336         * modules/binary-io (License): Relicense under LGPL.
39337         * modules/pipe2 (License): Likewise.
39338
39339 2009-08-22  Bruno Haible  <bruno@clisp.org>
39340
39341         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39342         return value.
39343         * lib/pipe-filter-gi.c (filter_init): Likewise.
39344         Reported by Eric Blake.
39345
39346 2009-08-22  Bruno Haible  <bruno@clisp.org>
39347
39348         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39349         * modules/pipe (Depends-on): Add pipe2.
39350
39351 2009-08-22  Bruno Haible  <bruno@clisp.org>
39352
39353         Tests for module 'pipe2'.
39354         * modules/pipe2-tests: New file.
39355         * tests/test-pipe2.c: New file.
39356
39357         New module 'pipe2'.
39358         * lib/unistd.in.h (pipe2): New declaration.
39359         * lib/pipe2.c: New file.
39360         * m4/pipe2.m4: New file.
39361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39362         HAVE_PIPE2.
39363         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39364         * modules/pipe2: New file.
39365         * doc/glibc-functions/pipe2.texi: Mention the new module.
39366
39367 2009-08-22  Bruno Haible  <bruno@clisp.org>
39368
39369         Reference some new glibc functions.
39370         * doc/glibc-functions/accept4.texi: New file.
39371         * doc/glibc-functions/dup3.texi: New file.
39372         * doc/glibc-functions/mkostemp.texi: New file.
39373         * doc/glibc-functions/pipe2.texi: New file.
39374         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39375         (Glibc sys/socket.h): Refer to accept4.
39376         (Glibc unistd.h): Refer to dup3, pipe2.
39377         Reported by Eric Blake.
39378
39379 2009-08-22  Jim Meyering  <meyering@redhat.com>
39380             Bruno Haible  <bruno@clisp.org>
39381
39382         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39383         This makes it so packages using automake-1.11's silent-rules option
39384         can print e.g., a single "GEN    configmake.h" line, rather than
39385         the 30+ statements that perform the job.  If you want to see the
39386         actual commands, you can still run "make V=1".
39387         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39388         so that make output is abbreviated when those variables are defined
39389         appropriately.
39390         * modules/argz: Likewise.
39391         * modules/arpa_inet: Likewise.
39392         * modules/byteswap: Likewise.
39393         * modules/configmake: Likewise.
39394         * modules/dirent: Likewise.
39395         * modules/errno: Likewise.
39396         * modules/fcntl: Likewise.
39397         * modules/float: Likewise.
39398         * modules/fnmatch: Likewise.
39399         * modules/getopt-posix: Likewise.
39400         * modules/glob: Likewise.
39401         * modules/iconv_open: Likewise.
39402         * modules/inttypes: Likewise.
39403         * modules/localcharset: Likewise.
39404         * modules/locale: Likewise.
39405         * modules/math: Likewise.
39406         * modules/netdb: Likewise.
39407         * modules/netinet_in: Likewise.
39408         * modules/poll: Likewise.
39409         * modules/posix_spawnp-tests: Likewise.
39410         * modules/sched: Likewise.
39411         * modules/search: Likewise.
39412         * modules/selinux-h: Likewise.
39413         * modules/signal: Likewise.
39414         * modules/spawn: Likewise.
39415         * modules/stdarg: Likewise.
39416         * modules/stdbool: Likewise.
39417         * modules/stddef: Likewise.
39418         * modules/stdint: Likewise.
39419         * modules/stdio: Likewise.
39420         * modules/stdlib: Likewise.
39421         * modules/string: Likewise.
39422         * modules/strings: Likewise.
39423         * modules/sys_file: Likewise.
39424         * modules/sys_ioctl: Likewise.
39425         * modules/sys_select: Likewise.
39426         * modules/sys_socket: Likewise.
39427         * modules/sys_stat: Likewise.
39428         * modules/sys_time: Likewise.
39429         * modules/sys_times: Likewise.
39430         * modules/sys_utsname: Likewise.
39431         * modules/sys_wait: Likewise.
39432         * modules/sysexits: Likewise.
39433         * modules/time: Likewise.
39434         * modules/unistd: Likewise.
39435         * modules/wchar: Likewise.
39436         * modules/wctype: Likewise.
39437
39438 2009-08-22  Jim Meyering  <meyering@redhat.com>
39439
39440         announce-gen: detect write failure
39441         * build-aux/announce-gen: Add Coda at end.
39442         Remove equivalent-but-more-verbose block at top.
39443
39444 2009-08-19  Akim Demaille  <demaille@gostai.com>
39445
39446         bootstrap: --help to stdout.
39447         * bootstrap (usage): Don't send --help to stderr.
39448         Use a here doc instead of a long string.
39449
39450 2009-08-21  Eric Blake  <ebb9@byu.net>
39451
39452         test-popen-safer: split from test-popen
39453         * tests/test-popen.c (main): Move...
39454         * tests/test-popen.h: ...into new file.
39455         * tests/test-popen-safer2.c: New file.
39456         * modules/popen-tests (Files): Add test-popen.h.
39457         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39458         Suggested by Bruno Haible.
39459
39460         test-fcntl-safer: split from test-open
39461         * tests/test-open.c (main): Move...
39462         * tests/test-open.h: ...into new file.
39463         * tests/test-fcntl-safer.c: New file.
39464         * modules/open-tests (Files): Add test-open.h.
39465         * modules/fcntl-safer-tests: New file.
39466         Suggested by Bruno Haible.
39467
39468         test-fopen-safer: split from test-fopen
39469         * tests/test-fopen.c (main): Move...
39470         * tests/test-fopen.h: ...into new file.
39471         * tests/test-fopen-safer.c: New file.
39472         * modules/fopen-tests (Files): Add test-fopen.h.
39473         * modules/fopen-safer-tests: New file.
39474         Suggested by Bruno Haible.
39475
39476 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39477
39478         popen-safer: test O_CLOEXEC at run-time.
39479         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39480
39481 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39482
39483         fcntl: move more flags to the header
39484         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39485         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39486         * lib/fcntl.in.h: Do both things here.
39487
39488 2009-08-21  Jim Meyering  <meyering@redhat.com>
39489
39490         consistently remove $@-t before redirecting to it
39491         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39492         * modules/alloca-opt: Likewise.
39493         * modules/byteswap: Likewise.
39494         * modules/fnmatch: Likewise.
39495         * modules/getopt-posix: Likewise.
39496         * modules/glob: Likewise.
39497         * modules/poll: Likewise.
39498         * modules/posix_spawnp-tests: Likewise.
39499         * modules/sys_socket: Likewise.
39500         * modules/sysexits: Likewise.
39501
39502 2009-08-21  Eric Blake  <ebb9@byu.net>
39503
39504         popen: simplify access to original popen
39505         * lib/popen.c (rpl_popen): No need to worry about popen being a
39506         macro.
39507         Reported by Bruno Haible.
39508
39509 2009-08-20  Eric Blake  <ebb9@byu.net>
39510
39511         build: avoid some compiler warnings
39512         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39513         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39514         type.
39515         (new_exclude_segment, excluded_file_pattern_p)
39516         (excluded_file_name_p): Reduce scope.
39517         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39518         old-style declaration.
39519
39520 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39521
39522         * tests/test-exclude1.sh: Handle Windows EOL.
39523         * tests/test-exclude2.sh: Likewise.
39524         * tests/test-exclude3.sh: Likewise.
39525         * tests/test-exclude4.sh: Likewise.
39526         * tests/test-exclude5.sh: Likewise.
39527         * tests/test-exclude6.sh: Likewise.
39528         * tests/test-exclude7.sh: Likewise.
39529
39530 2009-08-19  Akim Demaille  <demaille@gostai.com>
39531
39532         bootstrap: find sha1sum when named gsha1sum.
39533         * bootstrap (find_tool): New.
39534         ($SHA1SUM): New.
39535         Use it.
39536
39537 2009-08-20  Jim Meyering  <meyering@redhat.com>
39538
39539         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39540         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39541         expression that converts "." in a file name to "\." in the resulting
39542         regexp.  Start with a dummy statement, so that prior shell variable
39543         definitions are expanded portably.  Reported by Simon Josefsson.
39544
39545 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39546
39547         Fix polling for writeability of a screen buffer.
39548         * lib/poll.c: Distinguish input and screen buffers for the
39549         Win32 implementation.
39550         * lib/select.c: Likewise.
39551
39552 2009-08-19  Eric Blake  <ebb9@byu.net>
39553
39554         popen-safer: prevent popen from clobbering std descriptors
39555         * modules/popen-safer: New file.
39556         * lib/popen-safer.c: Likewise.
39557         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39558         * lib/stdio--.h (popen): Provide override.
39559         * lib/stdio-safer.h (popen_safer): Provide declaration.
39560         * tests/test-popen.c (includes): Partially test this.
39561         * modules/popen-safer-tests: New file, for more tests.
39562         * tests/test-popen-safer.c: Likewise.
39563         * MODULES.html.sh (file stream based Input/Output): Mention it.
39564
39565         tests: test some of the *-safer modules
39566         * modules/fopen-safer (Depends-on): Add fopen.
39567         * modules/fcntl-safer (Depends-on): Add fcntl.
39568         * modules/stdlib-safer (Depends-on): Add stdlib.
39569         (configure.ac): Set indicator.
39570         * modules/unistd-safer (configure.ac): Likewise.
39571         * modules/tmpfile-safer (configure.ac): Likewise.
39572         (Depends-on): Add tmpfile.
39573         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39574         active.
39575         * tests/test-fopen.c (includes): Test safer versions when they are
39576         in use.
39577         * tests/test-open.c (includes): Likewise.
39578
39579         popen: fix cygwin 1.5 bug when stdin closed
39580         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39581         * modules/popen: New file.
39582         * modules/popen-tests: Likewise.
39583         * tests/test-popen.c: Likewise.
39584         * m4/popen.m4: Likewise.
39585         * lib/popen.c: Likewise.
39586         * lib/stdio.in.h (popen): New declaration.
39587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39588         * modules/stdio (Makefile.am): Likewise.
39589         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39590
39591 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39592
39593         maint.mk: give full control over update-copyright exclusions
39594         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39595         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39596         (update-copyright): Don't force inclusion of top-level
39597         ChangeLog.  Don't force exclusion of all COPYING files, but make
39598         them the default exclusion instead.
39599
39600 2009-08-16  Bruno Haible  <bruno@clisp.org>
39601
39602         Fix test failures on Solaris 10.
39603         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39604         tests when Solaris iconv() is used.
39605         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39606         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39607         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39608         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39609         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39610
39611 2009-08-16  Bruno Haible  <bruno@clisp.org>
39612
39613         Fix test failures on Solaris 10.
39614         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39615         'tr' program and pass it as first argument.
39616         * tests/test-pipe-filter-gi1.sh: Likewise.
39617         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39618         program as first argument.
39619         * tests/test-pipe-filter-gi1.c (main): Likewise.
39620
39621 2009-08-16  Eric Blake  <ebb9@byu.net>
39622
39623         fpurge: fix previous commits
39624         * modules/fpurge (Makefile.am): Make replacement conditional,
39625         partially reverting 2007-04-29 change; missed in previous
39626         attempt.
39627         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39628         is missing.
39629
39630 2009-08-16  Bruno Haible  <bruno@clisp.org>
39631
39632         Clarify fpurge's effect on the file position.
39633         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39634         * tests/test-fpurge.c (main): Make a second pass for checking the file
39635         position.
39636
39637 2009-08-16  Bruno Haible  <bruno@clisp.org>
39638
39639         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39640         declaration of fpurge is missing.
39641         * tests/test-fpurge.c (main): Check that the file has not more contents
39642         than expected. Close the file before removing it.
39643
39644 2009-08-15  Eric Blake  <ebb9@byu.net>
39645
39646         fpurge: don't wrap working cygwin implementation
39647         * lib/fpurge.c (fpurge): Fix comment typo.
39648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39649         1.7 to avoid replacement.
39650         * tests/test-fpurge.c (main): Enhance test.
39651
39652 2009-08-15  Eric Blake  <ebb9@byu.net>
39653         and Jim Meyering  <meyering@redhat.com>
39654
39655         test-update-copyright: skip if perl is insufficient
39656         * tests/test-update-copyright.sh: Failure to run maintainer tool
39657         should not cause testsuite failure on cygwin 1.5.
39658
39659 2009-08-14  Eric Blake  <ebb9@byu.net>
39660
39661         doc: mention more functions added in cygwin 1.7.0
39662         * doc/posix-headers/limits.texi (limits.h): Update for recent
39663         cygwin additions.
39664         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39665         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39666         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39667         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39668         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39669
39670 2009-08-14  Eric Blake  <ebb9@byu.net>
39671
39672         maint.mk: simplify update-copyright rule
39673         * top/maint.mk (update-copyright-local): Delete, and document how
39674         to do it in cfg.mk instead.
39675         (update-copyright-exclude-regexp): Delete, and document how to do
39676         it in .x-update-copyright instead.
39677         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39678         exclude ChangeLog.
39679
39680 2009-08-14  Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39683
39684 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39685
39686         maint.mk: support update-copyright-env
39687         * top/maint.mk (update-copyright-env): Define place-holder.
39688         (update-copyright): Expand $(update-copyright-env) before
39689         invoking update-copyright.
39690
39691 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39692
39693         update-copyright: implement forced reformatting
39694         * build-aux/update-copyright: Implement and document
39695         UPDATE_COPYRIGHT_FORCE.
39696         * tests/test-update-copyright.sh: Test it.
39697
39698 2009-08-14  Eric Blake  <ebb9@byu.net>
39699         and Bruno Haible  <bruno@clisp.org>
39700
39701         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39702         * tests/test-locale.c: Revert previous patch related to NULL.
39703         * tests/test-stdio.c: Likewise.
39704         * tests/test-stdlib.c: Likewise.
39705         * tests/test-string.c: Likewise.
39706         * tests/test-unistd.c: Likewise.
39707         * modules/time-tests (Depends-on): Add verify.
39708         * modules/wchar-tests (Depends-on): Likewise.
39709         * tests/test-time.c: Test for NULL compliance.
39710         * tests/test-wchar.c: Likewise.
39711         * modules/locale (Depends-on): Add stddef.
39712         * modules/stdio (Depends-on): Likewise.
39713         * modules/stdlib (Depends-on): Likewise.
39714         * modules/string (Depends-on): Likewise.
39715         * modules/time (Depends-on): Likewise.
39716         * modules/unistd (Depends-on): Likewise.
39717         * modules/wchar (Depends-on): Likewise.
39718         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39719         * lib/stdlib.in.h (includes): Likewise.
39720         * lib/string.in.h (includes): Likewise.
39721         * lib/time.in.h (includes): Likewise.
39722         * lib/unistd.in.h (includes): Likewise.
39723         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39724         replaced.
39725         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39726         * m4/stddef_h.m4: New file.
39727         * modules/stddef: Likewise.
39728         * lib/stddef.in.h: Likewise.
39729         * modules/stddef-tests: Likewise.
39730         * tests/test-stddef.c: Likewise.
39731         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39732         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39733         * doc/posix-headers/locale.texi (locale.h): Likewise.
39734         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39735         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39736         * doc/posix-headers/string.texi (string.h): Likewise.
39737         * doc/posix-headers/time.texi (time.h): Likewise.
39738         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39739         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39740
39741 2009-08-14  Eric Blake  <ebb9@byu.net>
39742
39743         doc: improve git diff of texinfo files
39744         * .gitattributes: Add rule for *.texi files, with hint on how to
39745         use it.
39746         Copied from m4, and based on a report by Bruno Haible.
39747
39748 2009-08-14  Bruno Haible  <bruno@clisp.org>
39749
39750         Disable multithread support by default on Cygwin 1.5.x for real.
39751         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39752
39753 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39754
39755         update-copyright: much ado about intervals
39756         * build-aux/update-copyright: Implement and document
39757         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39758         of copyright year intervals.
39759         Also, document UPDATE_COPYRIGHT_YEAR.
39760         * tests/test-update-copyright.sh: Test it.
39761
39762         update-copyright: convert 2-digit to 4-digit years
39763         * build-aux/update-copyright: Implement and document.
39764         * tests/test-update-copyright.sh: Update.
39765
39766 2009-08-14  Jim Meyering  <meyering@redhat.com>
39767
39768         test-exclude: avoid coreutils "make check" failure
39769         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39770         just as in test-argmatch.c.
39771
39772 2009-08-13  Eric Blake  <ebb9@byu.net>
39773
39774         test-dup2: fix bad assumption
39775         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39776         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39777
39778         test-version-etc: fix CRLF portability issue
39779         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39780         recognize \r.
39781         * tests/test-argp-version-etc-1.sh: Likewise.
39782
39783         getopt: update client modules
39784         * modules/argp (Depends-on): Use getopt-gnu.
39785         * modules/git-merge-changelog (Depends-on): Likewise.
39786         * modules/long-options (Depends-on): Likewise.
39787         * modules/xstrtol (Depends-on): Likewise.
39788
39789 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39790
39791         * tests/test-version-etc.sh: Don't fail on different
39792         project/version.  Don't fail on CRLF differences.  Rewrite to use
39793         multiple -e instead of multiple sed forks, suggested by Eric Blake
39794         <ebb9@byu.net>.
39795         * tests/test-argp-version-etc-1.sh: Likewise.
39796
39797 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39798
39799         * tests/test-version-etc.sh: Don't fail on different
39800         project/version.
39801
39802 2009-08-12  Bruno Haible  <bruno@clisp.org>
39803
39804         Tests for modules 'getopt-posix', 'getopt-gnu'.
39805         * modules/getopt-posix-tests: New file.
39806         * tests/test-getopt.c: New file.
39807         * tests/test-getopt.h: New file.
39808         * tests/test-getopt_long.h: New file.
39809
39810         New modules 'getopt-posix', 'getopt-gnu'.
39811         * modules/getopt-gnu: New file, renamed from modules/getopt.
39812         * modules/getopt-posix: New file.
39813         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39814         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39815         (gl_GETOPT): Remove macro.
39816         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39817         Disable the test against BSD systems that declare optreset. Test
39818         against mingw bug. Test against lack of support of optional arguments
39819         on many platforms.
39820         * doc/glibc-headers/getopt.texi: Update module name and list of
39821         relevant platforms.
39822         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39823         'getopt-gnu' and more portability problems.
39824         * NEWS: Mention the changes.
39825
39826 2009-08-12  Bruno Haible  <bruno@clisp.org>
39827
39828         Ensure that optarg etc. get declared by <unistd.h>.
39829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39830         AC_USE_SYSTEM_EXTENSIONS.
39831         * modules/getopt (Depends-on): Add 'extensions'.
39832
39833 2009-08-12  Bruno Haible  <bruno@clisp.org>
39834
39835         Avoid test link errors.
39836         * modules/pipe-filter-ii-tests (Makefile.am): Define
39837         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39838         * modules/pipe-filter-gi-tests (Makefile.am): Define
39839         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39841
39842 2009-08-12  Bruno Haible  <bruno@clisp.org>
39843
39844         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39845         gl_GETOPT_SUBSTITUTE before.
39846         (gl_GETOPT): Use it.
39847         * m4/argp.m4 (gl_ARGP): Update.
39848         Reported by Sergey Poznyakoff.
39849
39850         * m4/getopt.m4: Reorder macros.
39851         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39852         (gl_GETOPT_SUBSTITUTE): Remove macro.
39853
39854 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39855
39856         Minor improvement in gitlog-to-changelog
39857
39858         * build-aux/gitlog-to-changelog: New option `--format' makes
39859         output format string configurable.
39860
39861 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39862
39863         Optimize exclude: use hash tables for non-wildcard patterns.
39864
39865         * lib/exclude.c: Include hash.h and mbuiter.h
39866         (struct exclude_pattern, exclude_segment): New data types.
39867         (struct exclude): Rewrite.
39868         (fnmatch_pattern_has_wildcards): New function.
39869         (new_exclude_segment, free_exclude_segment): New functions.
39870         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39871         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39872         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39873         * modules/exclude: Depend on hash and mbuiter.
39874
39875         * modules/exclude-tests: New file.
39876         * tests/test-exclude.c: New file.
39877         * tests/test-exclude1.sh: New file.
39878         * tests/test-exclude2.sh: New file.
39879         * tests/test-exclude3.sh: New file.
39880         * tests/test-exclude4.sh: New file.
39881         * tests/test-exclude5.sh: New file.
39882         * tests/test-exclude6.sh: New file.
39883         * tests/test-exclude7.sh: New file.
39884
39885 2009-08-12  Bruno Haible  <bruno@clisp.org>
39886
39887         Ensure that getopt() gets declared by <unistd.h>.
39888         * lib/unistd.in.h: Conditionally include getopt.h.
39889         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39890         Set GNULIB_UNISTD_H_GETOPT.
39891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39892         GNULIB_UNISTD_H_GETOPT.
39893         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39894
39895 2009-08-12  Bruno Haible  <bruno@clisp.org>
39896
39897         Clarify logic.
39898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39899         gl_replace_getopt instead of GETOPT_H.
39900
39901 2009-08-12  Bruno Haible  <bruno@clisp.org>
39902
39903         * m4/getopt.m4: Add comments.
39904
39905 2009-08-12  Bruno Haible  <bruno@clisp.org>
39906
39907         Disable multithread support by default on Cygwin 1.5.x.
39908         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39909         set gl_use_threads=no if not specified otherwise.
39910
39911 2009-08-11  Bruno Haible  <bruno@clisp.org>
39912
39913         Avoid compilation error on NetBSD 5.0.
39914         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39915         * tests/test-stdio.c: Likewise.
39916         * tests/test-stdlib.c: Likewise.
39917         * tests/test-string.c: Likewise.
39918         * tests/test-unistd.c: Likewise.
39919         Reported by Greg Troxel <gdt@ir.bbn.com>
39920         at <https://savannah.gnu.org/support/?106973>.
39921
39922 2009-08-11  Bruno Haible  <bruno@clisp.org>
39923
39924         * modules/dup2-tests (Depends-on): Remove close.
39925
39926         Undo 2009-07-19 commit.
39927         * modules/acl-tests (Depends-on): Remove close.
39928         * modules/binary-io-tests (Depends-on): Likewise.
39929         * modules/closein-tests (Depends-on): Likewise.
39930         * modules/flock-tests (Depends-on): Likewise.
39931         * modules/fsync-tests (Depends-on): Likewise.
39932         * modules/lseek-tests (Depends-on): Likewise.
39933         * modules/pipe-tests (Depends-on): Likewise.
39934         * modules/posix_spawn-tests (Depends-on): Likewise.
39935         * modules/posix_spawnp-tests (Depends-on): Likewise.
39936         * modules/stat-time-tests (Depends-on): Likewise.
39937         * modules/yesno-tests (Depends-on): Likewise.
39938
39939 2009-08-10  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39942
39943 2009-08-10  Bruno Haible  <bruno@clisp.org>
39944
39945         Fix a gcc warning.
39946         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39947
39948 2009-08-10  Bruno Haible  <bruno@clisp.org>
39949
39950         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39951         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39952         not only the first time.
39953         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39954         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39955         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39956         is 1, not only the the first time.
39957
39958 2009-08-10  Bruno Haible  <bruno@clisp.org>
39959
39960         Make it possible to use module 'gethostname' without module 'close'.
39961         * lib/unistd.in.h (close): Evoke a link error only if
39962         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39964         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39965         * modules/unistd (Makefile.am): Substitute
39966         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39967         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39968         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39969         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39970         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39971         * modules/sys_ioctl (Makefile.am): Substitute
39972         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39973         * modules/socket (configure.ac): On native Windows, set
39974         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39975         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39976         Reported by Sam Steingold <sds@gnu.org>.
39977
39978 2009-08-10  Bruno Haible  <bruno@clisp.org>
39979
39980         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39981         * modules/ioctl (configure.ac): Likewise.
39982
39983 2009-08-10  Bruno Haible  <bruno@clisp.org>
39984
39985         Avoid collision between gnulib wrapper and libintl wrapper.
39986         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39987         already defined in intl/printf.c.
39988         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39989         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39990
39991 2009-08-09  Bruno Haible  <bruno@clisp.org>
39992
39993         Make <sys/select.h> really self-contained, also on Solaris 10.
39994         * lib/sys_select.in.h: Include <string.h>.
39995         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39996         Solaris 10 problem.
39997         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39998         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39999         Reported by Jim Meyering.
40000
40001 2009-08-09  Bruno Haible  <bruno@clisp.org>
40002
40003         Avoid warnings from 'aclocal' that are due to a use of macro name
40004         AM_XGETTEXT_OPTION that is not defined in automake.
40005         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
40006         automake.
40007         * modules/error (configure.ac): Likewise.
40008         * modules/propername (configure.ac): Likewise.
40009         * modules/vasprintf (configure.ac): Likewise.
40010         * modules/verror (configure.ac): Likewise.
40011         * modules/xprintf (configure.ac): Likewise.
40012         * modules/xvasprintf (configure.ac): Likewise.
40013
40014 2009-08-08  Bruno Haible  <bruno@clisp.org>
40015
40016         Avoid compilation error in C++ mode.
40017         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40018         Reported by Sam Steingold <sds@gnu.org>.
40019
40020 2009-08-08  Bruno Haible  <bruno@clisp.org>
40021
40022         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40023         for the various Unix platforms.
40024         * doc/posix-headers/limits.texi: Update platforms list regarding
40025         HOST_NAME_MAX.
40026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40027
40028 2009-08-07  Jim Meyering  <meyering@redhat.com>
40029
40030         selinux-at: fix typo in a comment
40031         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40032         Spotted by Paolo Bonzini.
40033
40034         selinux-at: remove redundant m4 code, add documentation
40035         * modules/selinux-at (configure.ac): Remove redundant code.
40036         LIB_SELINUX is already set via the dependent module, selinux-h.
40037         (Include): Add quotes around selinux-at.h.
40038         * lib/selinux-at.h: Add documentation.
40039         Reported by Bruno Haible in
40040         http://marc.info/?l=gnulib-bug&m=124958988300749
40041
40042 2009-08-07  Bruno Haible  <bruno@clisp.org>
40043
40044         Avoid link error on MacOS X 10.3 and 10.4.
40045         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40046         on non-ELF systems.
40047         * lib/argp-pv.c (argp_program_version): Likewise.
40048         Reported by Simon Josefsson.
40049
40050 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40051
40052         * tests/test-version-etc.sh: Use $EXEEXT.
40053
40054 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40055
40056         update-copyright: update documentation to point to maint.mk
40057         * build-aux/update-copyright: Here.
40058
40059 2009-08-06  Jim Meyering  <meyering@redhat.com>
40060
40061         maint.mk: support update-copyright-local
40062         * top/maint.mk (update-copyright-local): Define place-holder.
40063         (update-copyright): Depend on $(update-copyright-local).
40064
40065 2009-08-06  Jim Meyering  <meyering@redhat.com>
40066
40067         selinux-at: new module
40068         Initially written for coreutils, this module will soon be
40069         used by findutils, too.
40070         * MODULES.html.sh [Misc]: Add selinux-at.
40071         * lib/selinux-at.h: New file, from coreutils.
40072         * lib/selinux-at.c: Likewise.
40073         * modules/selinux-at: Likewise.
40074         (License): Change from LGPL to GPL, since it depends
40075         on the GPL'd openat module.
40076
40077         doc: update README
40078         * README: Remove references to cogito.
40079         Remove cvs-repo-updating instructions from 2007.
40080         Don't imply that CVS is better if you have limited disk space.
40081
40082 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40083
40084         update-copyright: support C-style comments
40085         * build-aux/update-copyright: Implement and document.
40086         * tests/test-update-copyright.sh: Test.
40087
40088 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40089
40090         update-copyright: support omitted "(C)"
40091         * build-aux/update-copyright: Implement and document.  Also,
40092         allow variable whitespace before "(C)".
40093         * tests/test-update-copyright.sh: Test.
40094
40095 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40096
40097         update-copyright: don't trip on non-FSF copyright statements
40098         * build-aux/update-copyright: Fix so that the first correctly
40099         formatted FSF copyright statement is recognized no matter what
40100         appears before it.  Update documentation.
40101         * tests/test-update-copyright.sh: Test that.
40102
40103 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40104
40105         update-copyright: clean up code a little
40106         * build-aux/update-copyright: Append "_re" to the name of any
40107         variable holding a regular expression.
40108         Replace "old" and "new" with "stmt" in variable names.
40109         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40110         handled correctly.
40111         Format code more consistently.
40112
40113 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40114
40115         update-copyright-tests: improve portability
40116         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40117         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40118
40119 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40120
40121         update-copyright: support @copyright{} and &copy;
40122         * build-aux/update-copyright: Implement and document.
40123         * tests/test-update-copyright.sh: Test.
40124
40125 2009-08-04  Jim Meyering  <meyering@redhat.com>
40126
40127         update-copyright-tests: correctly test EOL=\r\n handling
40128         * tests/test-update-copyright.sh: Put \r at the end of some lines
40129         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40130
40131         maint.mk: make update-copyright exclusion list more configurable
40132         * top/maint.mk (update-copyright): Default to excluding COPYING,
40133         but allow an override, in case someone does want to update that file.
40134
40135         maint.mk: don't update copyright date in COPYING
40136         * top/maint.mk (update-copyright): Exclude COPYING.
40137
40138         maint.mk: add a copyright-updating rule
40139         * top/maint.mk (update-copyright): New rule.
40140         Derived from coreutils/Makefile.am.
40141
40142         update-copyright: rename some variables
40143         * build-aux/update-copyright: Rename a few variables for clarity.
40144         Tweak syntax.  List Joel E. Denny as coauthor.
40145
40146 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40147
40148         update-copyright: fix bug for 2-digit last year and add tests
40149         * build-aux/update-copyright: Fix bug.
40150         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40151         specified.
40152         * modules/update-copyright-tests: New
40153         * tests/test-update-copyright.sh: New.
40154
40155 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40156
40157         update-copyright: handle leading tabs in line prefix
40158         * build-aux/update-copyright: Count leading tabs as 8 spaces
40159         when computing margin.  This helps with the formatting of
40160         ChangeLogs, for example.
40161         Fix documentation a little.
40162
40163 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40164
40165         update-copyright: support EOL=\r\n
40166         * build-aux/update-copyright: Implement that.
40167
40168 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40169
40170         update-copyright: automatically format copyright statements
40171         * build-aux/update-copyright: Implement that.
40172         Also, be a little more predictable and safer by always failing
40173         when the full copyright format is not perfectly recognized as an
40174         unbroken whole.  Discussed at
40175         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40176         Rewrite documentation.
40177
40178 2009-08-03  Bruno Haible  <bruno@clisp.org>
40179
40180         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40181
40182 2009-08-02  Bruno Haible  <bruno@clisp.org>
40183
40184         Tests for module 'uname'.
40185         * modules/uname-tests: New file.
40186         * tests/test-uname.c: New file.
40187
40188         New module 'uname'.
40189         * lib/uname.c: New file.
40190         * m4/uname.m4: New file.
40191         * modules/uname: New file.
40192         * doc/posix-functions/uname.texi: Mention the new module.
40193
40194 2009-08-02  Bruno Haible  <bruno@clisp.org>
40195
40196         Tests for module 'sys_utsname'.
40197         * modules/sys_utsname-tests: New file.
40198         * tests/test-sys_utsname.c: New file.
40199
40200         New module 'sys_utsname'.
40201         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40202         * m4/sys_utsname_h.m4: New file.
40203         * modules/sys_utsname: New file.
40204         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40205
40206 2009-08-02  Bruno Haible  <bruno@clisp.org>
40207
40208         Implicitly initialize the sockets library.
40209         * lib/gethostname.c: Include sockets.h.
40210         (rpl_gethostname): Invoke gl_sockets_startup.
40211         * lib/socket.c: Include sockets.h.
40212         (rpl_socket): Invoke gl_sockets_startup.
40213         * modules/gethostname (Depends-on): Add sockets.
40214         * modules/socket (Depends-on): Likewise.
40215         * tests/test-poll.c: Don't include sockets.h.
40216         (main): Don't invoke gl_sockets_startup.
40217         * tests/test-select.c: Don't include sockets.h.
40218         (main): Don't invoke gl_sockets_startup.
40219
40220 2009-08-02  Bruno Haible  <bruno@clisp.org>
40221
40222         Allow multiple calls to gl_sockets_startup.
40223         * lib/sockets.c (initialized_sockets_version): New variable.
40224         (gl_sockets_startup): Do nothing if already called for this or a higher
40225         version.
40226         (gl_sockets_cleanup): Reset initialized_sockets_version.
40227
40228 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40229
40230         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40231         different project/version.
40232
40233 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40234             Bruno Haible  <bruno@clisp.org>
40235
40236         Tests for module 'pipe-filter-gi'.
40237         * modules/pipe-filter-gi-tests: New file.
40238         * tests/test-pipe-filter-gi1.sh: New file.
40239         * tests/test-pipe-filter-gi1.c: New file.
40240         * tests/test-pipe-filter-gi2.sh: New file.
40241         * tests/test-pipe-filter-gi2-main.c: New file.
40242         * tests/test-pipe-filter-gi2-child.c: New file.
40243
40244         New module 'pipe-filter-gi'.
40245         * lib/pipe-filter-gi.c: New file.
40246         * modules/pipe-filter-gi: New file.
40247
40248 2009-08-02  Bruno Haible  <bruno@clisp.org>
40249             Paolo Bonzini  <bonzini@gnu.org>
40250
40251         Tests for module 'pipe-filter-ii'.
40252         * modules/pipe-filter-ii-tests: New file.
40253         * tests/test-pipe-filter-ii1.sh: New file.
40254         * tests/test-pipe-filter-ii1.c: New file.
40255         * tests/test-pipe-filter-ii2.sh: New file.
40256         * tests/test-pipe-filter-ii2-main.c: New file.
40257         * tests/test-pipe-filter-ii2-child.c: New file.
40258
40259         New module 'pipe-filter-ii'.
40260         * lib/pipe-filter.h: New file.
40261         * lib/pipe-filter-ii.c: New file.
40262         * lib/pipe-filter-aux.h: New file.
40263         * modules/pipe-filter-ii: New file.
40264
40265 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40266
40267         * lib/gc-libgcrypt.c: Change copyright to FSF.
40268         * lib/gc-gnulib.c: Likewise.
40269
40270 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40271
40272         * lib/gethostname.c: Include limits.h.
40273
40274 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40275             Bruno Haible  <bruno@clisp.org>
40276
40277         Ensure HOST_NAME_MAX as part of the gethostname module.
40278         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40279         define also HOST_NAME_MAX.
40280         * tests/test-gethostname.c: Include <limits.h>.
40281         (main): Check also HOST_NAME_MAX.
40282         * doc/posix-headers/limits.texi: Document the mingw problem.
40283
40284 2009-08-02  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40287         Add comments.
40288
40289 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40290
40291         * lib/gethostname.c: Add Windows wrapper.
40292         * m4/gethostname.m4: Look for gethostname in -lws2_32.
40293         * modules/gethostname: Depend on sys_socket & errno, for also
40294         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
40295         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40296
40297 2009-07-31  Jim Meyering  <meyering@redhat.com>
40298
40299         getloadavg: fix symbol name in comment
40300         * lib/getloadavg.c: Correct a typo I introduced when adding
40301         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40302         Matt Kraai spotted the problem.
40303
40304 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40305
40306         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40307         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40308         code also if ! defined N_NAME_POINTER.
40309         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40310         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40311         but the n_name member is a 12-byte array.
40312
40313 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40314
40315         update-copyright: generalize comment handling
40316         * build-aux/update-copyright: Handle copyright statements
40317         within more comment styles.
40318         Document usage.
40319         Report any file with an external copyright holder or parse failure.
40320
40321 2009-07-29  Jim Meyering  <meyering@redhat.com>
40322
40323         mktime: correct setting of REPLACE_MKTIME
40324         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40325
40326         update-copyright: new module
40327         * modules/update-copyright: New file.
40328         * build-aux/update-copyright: New file.
40329         * MODULES.html.sh (maint+release support): Add update-copyright.
40330
40331 2009-07-27  Bruno Haible  <bruno@clisp.org>
40332
40333         Fix compilation error when <ctime> is used and mktime is replaced.
40334         * lib/time.in.h (mktime): New declaration.
40335         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40336         REPLACE_MKTIME instead of defining mktime in config.h.
40337         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40338         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40339         Reported by Ross McFarland <rwmcfa1@neces.com>.
40340
40341 2009-07-27  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40344         Reported by Matt Kraai <mkraai@beckman.com>.
40345
40346 2009-07-25  Jim Meyering  <meyering@redhat.com>
40347
40348         maint.mk: avoid warnings about missing files
40349         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40350         diagnostic when .prev-version does not exist.
40351         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40352         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40353         nonexistent cfg.mk.
40354         Suggestions from Simon Josefsson.
40355
40356 2009-07-25  Bruno Haible  <bruno@clisp.org>
40357
40358         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40359         defined as macros. Needed on QNX 6.4.1.
40360         Reported by Matt Kraai <mkraai@beckman.com>.
40361
40362 2009-07-23  Jim Meyering  <meyering@redhat.com>
40363
40364         maint.mk: invoke "make dist" with a working value of XZ_OPT
40365         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40366
40367 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40368
40369         Make fseeko.c compile on QNX.
40370         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40371
40372 2009-07-22  Peter Simons  <simons@cryp.to>
40373
40374         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40375         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40376         * lib/md4.h: Likewise.
40377         * lib/md5.h: Likewise.
40378         * lib/sha1.h: Likewise.
40379         * lib/sha256.h: Likewise.
40380         * lib/sha512.h: Likewise.
40381
40382         tests-sha1: don't assign literal string to 'char *' variable
40383         * tests/test-sha1.c (main): Declare locals with "const" to match
40384         attributes of the right hand side.
40385
40386 2009-07-21  Eric Blake  <ebb9@byu.net>
40387
40388         dup2: fix more mingw problems
40389         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40390         fd to itself.
40391         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40392         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40393         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40394         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40395         care of mingw bugs.
40396
40397 2009-07-21  Jim Meyering  <meyering@redhat.com>
40398
40399         vc-list-files: avoid failure when /bin/sh is dash
40400         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40401         On some Debian based systems, /bin/sh is a symlink to dash, and running
40402         this command would omit the "/" following each 'tests' prefix:
40403           dash -x build-aux/vc-list-files -C . tests
40404         That is because bash and dash work differently:
40405           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40406           bash ok
40407           dash odd
40408
40409 2009-07-21  Eric Blake  <ebb9@byu.net>
40410
40411         dup2-tests: test previous patch
40412         * modules/dup2-tests: New file.
40413         * tests/test-dup2.c: Likewise.
40414         * tests/test-open.c (main): Avoid unspecified behavior.
40415         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40416         test.
40417
40418         dup2: work around mingw and cygwin 1.5 bug
40419         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40421         * modules/unistd (Makefile.am): Substitute it.
40422         * lib/unistd.in.h (dup2): Declare the replacement.
40423         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40424         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40425         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40426         * modules/execute (Depends-on): Add dup2.
40427         * modules/fseterr (Depends-on): Likewise.
40428         * modules/pipe (Depends-on): Likewise.
40429         * modules/posix_spawn-internal (Depends-on): Likewise.
40430
40431 2009-07-21  Bruno Haible  <bruno@clisp.org>
40432
40433         * modules/.gitattributes: New file.
40434
40435 2009-07-20  Bruno Haible  <bruno@clisp.org>
40436
40437         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40438         (main): Use it.
40439
40440 2009-07-20  Eric Blake  <ebb9@byu.net>
40441
40442         test-pipe: make a bit more robust.
40443         * tests/test-pipe.c (myerr): Allow error messages regardless of
40444         what we do to stderr.
40445         (test_pipe): Rearrange to avoid deadlock.
40446         (child_main): Try a larger read, to ensure we avoided deadlock.
40447         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40448         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40449         if misused.
40450
40451 2009-07-19  Jim Meyering  <meyering@redhat.com>
40452
40453         fts: avoid false-positive cycle-detection
40454         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40455         for each new command line argument.
40456
40457 2009-07-19  Bruno Haible  <bruno@clisp.org>
40458
40459         Fix build error on mingw with the modules sys_select and unistd.
40460         * modules/acl-tests (Depends-on): Add close.
40461         * modules/binary-io-tests (Depends-on): Likewise.
40462         * modules/closein-tests (Depends-on): Likewise.
40463         * modules/flock-tests (Depends-on): Likewise.
40464         * modules/fsync-tests (Depends-on): Likewise.
40465         * modules/lseek-tests (Depends-on): Likewise.
40466         * modules/pipe-tests (Depends-on): Likewise.
40467         * modules/posix_spawn-tests (Depends-on): Likewise.
40468         * modules/posix_spawnp-tests (Depends-on): Likewise.
40469         * modules/stat-time-tests (Depends-on): Likewise.
40470         * modules/yesno-tests (Depends-on): Likewise.
40471
40472 2009-07-19  Bruno Haible  <bruno@clisp.org>
40473
40474         Unify conditionals.
40475         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40476         macros, not at the compiler macros.
40477         * lib/pipe.c: Likewise.
40478         * lib/execute.c: Likewise.
40479         * lib/spawni.c: Likewise.
40480
40481 2009-07-19  Bruno Haible  <bruno@clisp.org>
40482
40483         Fix handling of closed stdin/stdout/stderr on mingw.
40484         * lib/w32spawn.h: Include unistd.h.
40485         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40486         file descriptor with O_NOINHERIT flag.
40487         (fd_safer_noinherit): New function, based on fd-safer.c.
40488         (dup_safer_noinherit): New function, based on dup-safer.c.
40489         (undup_safer_noinherit): New function.
40490         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40491         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40492         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40493         instead of fd_safer.
40494         * tests/test-pipe.c: Include <windows.h>.
40495         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40496         result.
40497
40498         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40499         from main.
40500         (test_pipe): Pass an extra argument for disambiguation.
40501         (main): Invoke parent_main or child_main.
40502
40503         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40504         consistently.
40505
40506 2009-07-18  Eric Blake  <ebb9@byu.net>
40507
40508         test-pipe: fix mingw build
40509         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40510
40511 2009-07-18  Bruno Haible  <bruno@clisp.org>
40512
40513         * modules/pipe-tests (Makefile.am): Fix typo.
40514
40515 2009-07-18  Eric Blake  <ebb9@byu.net>
40516
40517         error: fix mingw build
40518         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40519         Reported by Bruno Haible.
40520
40521         error: avoid undefined use of stdout
40522         * lib/error.c (error, error_at_line): Check that fd 1 is open
40523         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40524         is handling faults and the close_stdout module wants to report the
40525         detection of closed stdout as an error.
40526
40527 2009-07-17  Eric Blake  <ebb9@byu.net>
40528
40529         pipe: be robust in face of closed fds
40530         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40531         should cause child to misbehave.
40532         * modules/pipe-tests: New module.
40533         * tests/test-pipe.c: New file.
40534         * tests/test-pipe.sh: New file.
40535         Reported by Akim Demaille.
40536
40537 2009-07-14  Bruno Haible  <bruno@clisp.org>
40538
40539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40540         Reported by anonymous kc.
40541
40542 2009-07-07  Jim Meyering  <meyering@redhat.com>
40543
40544         maint.mk: don't look for translatable strings in *.m4 or *.mk
40545         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40546         when searching for translatable strings.
40547
40548 2009-07-05  Jim Meyering  <meyering@redhat.com>
40549
40550         remove superfluous parentheses in STREQ definition
40551         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40552         * lib/getugroups.c (STREQ): Likewise.
40553         * lib/fnmatch.c (STREQ): Likewise.
40554         Spotted by Bruno Haible.
40555
40556 2009-07-04  Jim Meyering  <meyering@redhat.com>
40557
40558         argv-iter: new module
40559         * MODULES.html.sh: Add argv-iter.
40560         * lib/argv-iter.c, lib/argv-iter.h: New files.
40561         * modules/argv-iter: New file.
40562         * modules/argv-iter-tests: New file.
40563         * tests/test-argv-iter.c: Test it.
40564
40565 2009-07-04  Bruno Haible  <bruno@clisp.org>
40566
40567         Fix assertion.
40568         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40569         contains more exact copies of a given entry than file2, leave the extra
40570         copies unpaired rather than aborting.
40571         Reported by Eric Blake.
40572
40573 2009-07-02  Bruno Haible  <bruno@clisp.org>
40574
40575         Speedup git-merge-changelog for git cherry-pick.
40576         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40577         (entries_mapping_get): New function, extracted from compute_mapping.
40578         (entries_mapping_reverse_get): New function.
40579         (compute_mapping): Add a 'full' argument. Return the result in a
40580         'struct entries_mapping'.
40581         (main): Update. Access the mappings through entries_mapping_get.
40582         Reported by Eric Blake.
40583
40584 2009-07-02  Bruno Haible  <bruno@clisp.org>
40585
40586         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40587         best_i.
40588
40589 2009-07-02  Bruno Haible  <bruno@clisp.org>
40590
40591         Speed up approximate search for matching ChangeLog entries.
40592         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40593         argument. Call fstrcmp_bounded instead of fstrcmp.
40594         (compute_mapping, try_split_merged_entry, main): Update callers.
40595
40596 2009-07-02  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40599
40600 2009-06-30  Bruno Haible  <bruno@clisp.org>
40601
40602         Reduce the number of uc_is_cased calls.
40603         * lib/unicase.h (casing_suffix_context_t): Add
40604         'first_char_except_ignorable' field.
40605         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40606         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40607         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40608         Update initializer.
40609         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40610         case-ignorable characters.
40611         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40612         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40613         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40614         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40615         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40616
40617 2009-06-30  Bruno Haible  <bruno@clisp.org>
40618
40619         Tests for module 'unicase/ignorable'.
40620         * modules/unicase/ignorable-tests: New file.
40621         * tests/unicase/test-ignorable.c: New file, generated by
40622         gen-uni-tables.
40623
40624         Tests for module 'unicase/cased'.
40625         * modules/unicase/cased-tests: New file.
40626         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40627         * tests/unicase/test-predicate-part1.h: New file, derived from
40628         tests/unictype/test-predicate-part1.h.
40629         * tests/unicase/test-predicate-part2.h: New file, same as
40630         tests/unictype/test-predicate-part2.h.
40631
40632         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40633         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40634         (output_casing_properties): New function.
40635         (main): Call it.
40636         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40637         * lib/unicase/cased.c: Include unictype/bitmap.h.
40638         (uc_is_cased): Define through a bitmap lookup.
40639         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40640         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40641         (uc_is_case_ignorable): Define through a bitmap lookup.
40642         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40643         lib/unictype/bitmap.h.
40644         (Depends-on): Add inline. Clean up.
40645         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40646         lib/unictype/bitmap.h.
40647         (Depends-on): Add inline. Clean up.
40648         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40649         recognition.
40650         * tests/unicase/test-u16-tolower.c (main): Likewise.
40651         * tests/unicase/test-u32-tolower.c (main): Likewise.
40652
40653 2009-06-30  Bruno Haible  <bruno@clisp.org>
40654
40655         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40656         * lib/unicase/u16-casemap.c: Likewise.
40657         * lib/unicase/u32-casemap.c: Likewise.
40658
40659 2009-06-29  Bruno Haible  <bruno@clisp.org>
40660
40661         Define u32_casefold as a wrapper around u32_ct_casefold.
40662         * lib/unicase/u32-casefold.c: Update.
40663         * modules/unicase/u32-casefold (Depends-on): Add
40664         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40665         unicase/empty-suffix-context. Clean up.
40666
40667         Define u16_casefold as a wrapper around u16_ct_casefold.
40668         * lib/unicase/u16-casefold.c: Update.
40669         * modules/unicase/u16-casefold (Depends-on): Add
40670         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40671         unicase/empty-suffix-context. Clean up.
40672
40673         Define u8_casefold as a wrapper around u8_ct_casefold.
40674         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40675         * lib/unicase/u8-casefold.c: Update.
40676         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40677         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40678
40679         Define u32_totitle as a wrapper around u32_ct_totitle.
40680         * lib/unicase/u32-totitle.c: Update.
40681         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40682         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40683
40684         Define u16_totitle as a wrapper around u16_ct_totitle.
40685         * lib/unicase/u16-totitle.c: Update.
40686         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40687         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40688
40689         Define u8_totitle as a wrapper around u8_ct_totitle.
40690         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40691         functions.
40692         (FUNC): Delegate to U_CT_TOTITLE.
40693         * lib/unicase/u8-totitle.c: Update.
40694         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40695         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40696
40697         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40698         invocation.
40699         * modules/unicase/u32-tolower (Depends-on): Add
40700         unicase/empty-prefix-context, unicase/empty-suffix-context.
40701
40702         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40703         invocation.
40704         * modules/unicase/u16-tolower (Depends-on): Add
40705         unicase/empty-prefix-context, unicase/empty-suffix-context.
40706
40707         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40708         * modules/unicase/u8-tolower (Depends-on): Add
40709         unicase/empty-prefix-context, unicase/empty-suffix-context.
40710
40711         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40712         invocation.
40713         * modules/unicase/u32-toupper (Depends-on): Add
40714         unicase/empty-prefix-context, unicase/empty-suffix-context.
40715
40716         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40717         invocation.
40718         * modules/unicase/u16-toupper (Depends-on): Add
40719         unicase/empty-prefix-context, unicase/empty-suffix-context.
40720
40721         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40722         * modules/unicase/u8-toupper (Depends-on): Add
40723         unicase/empty-prefix-context, unicase/empty-suffix-context.
40724
40725         New module 'unicase/u32-ct-casefold'.
40726         * lib/unicase/u32-ct-casefold.c: New file.
40727         * modules/unicase/u32-ct-casefold: New file.
40728
40729         New module 'unicase/u16-ct-casefold'.
40730         * lib/unicase/u16-ct-casefold.c: New file.
40731         * modules/unicase/u16-ct-casefold: New file.
40732
40733         New module 'unicase/u8-ct-casefold'.
40734         * lib/unicase/u8-ct-casefold.c: New file.
40735         * lib/unicase/u-ct-casefold.h: New file, derived from
40736         lib/unicase/u-casefold.h.
40737         * modules/unicase/u8-ct-casefold: New file.
40738
40739         New module 'unicase/u32-ct-totitle'.
40740         * lib/unicase/u32-ct-totitle.c: New file.
40741         * modules/unicase/u32-ct-totitle: New file.
40742
40743         New module 'unicase/u16-ct-totitle'.
40744         * lib/unicase/u16-ct-totitle.c: New file.
40745         * modules/unicase/u16-ct-totitle: New file.
40746
40747         New module 'unicase/u8-ct-totitle'.
40748         * lib/unicase/u8-ct-totitle.c: New file.
40749         * lib/unicase/u-ct-totitle.h: New file, derived from
40750         lib/unicase/u-totitle.h.
40751         * modules/unicase/u8-ct-totitle: New file.
40752
40753         New module 'unicase/u32-ct-tolower'.
40754         * lib/unicase/u32-ct-tolower.c: New file.
40755         * modules/unicase/u32-ct-tolower: New file.
40756
40757         New module 'unicase/u16-ct-tolower'.
40758         * lib/unicase/u16-ct-tolower.c: New file.
40759         * modules/unicase/u16-ct-tolower: New file.
40760
40761         New module 'unicase/u8-ct-tolower'.
40762         * lib/unicase/u8-ct-tolower.c: New file.
40763         * modules/unicase/u8-ct-tolower: New file.
40764
40765         New module 'unicase/u32-ct-toupper'.
40766         * lib/unicase/u32-ct-toupper.c: New file.
40767         * modules/unicase/u32-ct-toupper: New file.
40768
40769         New module 'unicase/u16-ct-toupper'.
40770         * lib/unicase/u16-ct-toupper.c: New file.
40771         * modules/unicase/u16-ct-toupper: New file.
40772
40773         New module 'unicase/u8-ct-toupper'.
40774         * lib/unicase/u8-ct-toupper.c: New file.
40775         * modules/unicase/u8-ct-toupper: New file.
40776
40777         Add context arguments to u*_casemap functions.
40778         * lib/unicase/unicasemap.h: Include unicase.h.
40779         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40780         suffix_context arguments.
40781         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40782         functions.
40783         (FUNC): Add prefix_context and suffix_context arguments. Use
40784         uc_is_cased and uc_is_case_ignorable.
40785         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40786         * lib/unicase/u16-casemap.c: Likewise.
40787         * lib/unicase/u32-casemap.c: Likewise.
40788         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40789         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40790         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40791         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40792         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40793         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40794
40795         New module 'unicase/u32-suffix-context'.
40796         * lib/unicase/u32-suffix-context.c: New file.
40797         * modules/unicase/u32-suffix-context: New file.
40798
40799         New module 'unicase/u16-suffix-context'.
40800         * lib/unicase/u16-suffix-context.c: New file.
40801         * modules/unicase/u16-suffix-context: New file.
40802
40803         New module 'unicase/u8-suffix-context'.
40804         * lib/unicase/u8-suffix-context.c: New file.
40805         * lib/unicase/u-suffix-context.h: New file.
40806         * modules/unicase/u8-suffix-context: New file.
40807
40808         New module 'unicase/empty-suffix-context'.
40809         * lib/unicase/empty-suffix-context.c: New file.
40810         * modules/unicase/empty-suffix-context: New file.
40811
40812         New module 'unicase/u32-prefix-context'.
40813         * lib/unicase/u32-prefix-context.c: New file.
40814         * modules/unicase/u32-prefix-context: New file.
40815
40816         New module 'unicase/u16-prefix-context'.
40817         * lib/unicase/u16-prefix-context.c: New file.
40818         * modules/unicase/u16-prefix-context: New file.
40819
40820         New module 'unicase/u8-prefix-context'.
40821         * lib/unicase/u8-prefix-context.c: New file.
40822         * lib/unicase/u-prefix-context.h: New file.
40823         * lib/unicase/context.h: New file.
40824         * modules/unicase/u8-prefix-context: New file.
40825
40826         New module 'unicase/empty-prefix-context'.
40827         * lib/unicase/empty-prefix-context.c: New file.
40828         * modules/unicase/empty-prefix-context: New file.
40829
40830         New module 'unicase/ignorable'.
40831         * lib/unicase/ignorable.c: New file.
40832         * modules/unicase/ignorable: New file.
40833
40834         New module 'unicase/cased'.
40835         * lib/unicase/caseprop.h: New file.
40836         * lib/unicase/cased.c: New file.
40837         * modules/unicase/cased: New file.
40838
40839         New functions for case mapping of substrings.
40840         * lib/unicase.h (casing_prefix_context_t): New type.
40841         (unicase_empty_prefix_context): New variable.
40842         (u8_casing_prefix_context, u16_casing_prefix_context,
40843         u32_casing_prefix_context, u8_casing_prefixes_context,
40844         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40845         declarations.
40846         (casing_suffix_context_t): New type.
40847         (unicase_empty_suffix_context): New variable.
40848         (u8_casing_suffix_context, u16_casing_suffix_context,
40849         u32_casing_suffix_context, u8_casing_suffixes_context,
40850         u16_casing_suffixes_context, u32_casing_suffixes_context,
40851         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40852         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40853         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40854         declarations.
40855
40856 2009-06-28  Jim Meyering  <meyering@redhat.com>
40857
40858         boostrap: indent only with spaces
40859         * build-aux/bootstrap: Indent only with spaces, never TABs.
40860
40861         bootstrap: split long lines
40862         * build-aux/bootstrap: Keep line length < 80.
40863
40864         bootstrap: sync from coreutils
40865         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40866         just as autoreconf does.  Verify a list of prerequisite
40867         package-name,version-number pairs if defined in bootstrap.conf.
40868         Refer to README-prereq, if prerequisites are not satisfied.
40869
40870 2009-06-27  Eric Blake  <ebb9@byu.net>
40871
40872         tests: add test for bogus NULL definition
40873         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40874         * tests/test-stdlib.c: Likewise.
40875         * tests/test-string.c: Likewise.
40876         * tests/test-locale.c: Likewise.
40877         * tests/test-unistd.c: Likewise.
40878         * modules/stdio-tests (Depends-on): Add verify.
40879         * modules/stdlib-tests (Depends-on): Likewise.
40880         * modules/string-tests (Depends-on): Likewise.
40881         * modules/locale-tests (Depends-on): Likewise.
40882         * modules/unistd-tests (Depends-on): Likewise.
40883
40884 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40885
40886         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40887         self-explaining comment.
40888         * m4/selinux-selinux-h: Update serial.
40889         (gl_LIBSELINUX): New macro, adding a warning for missing development
40890         packages to code extracted from...
40891         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40892         Add warning for missing development packages here, too.
40893
40894 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40895
40896         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40897
40898 2009-06-25  Eric Blake  <ebb9@byu.net>
40899
40900         version-etc: fix regression
40901         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40902         gcc.
40903         (version_etc): Use it, to catch bugs with trailing NULL.
40904         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40905         (version_etc_va): Fix logic bug.
40906         * modules/version-etc-tests: Add test.
40907         * tests/test-version-etc.c: New file.
40908         * tests/test-version-etc.sh: Likewise.
40909
40910 2009-06-25  Sam Steingold  <sds@gnu.org>
40911
40912         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40913         mbtowc declaration.
40914
40915 2009-06-25  Eric Blake  <ebb9@byu.net>
40916
40917         fpurge: migrate into <stdio.h>
40918         * lib/fpurge.h: Delete...
40919         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40920         * lib/fpurge.c (fpurge): Change declaring header.
40921         * modules/fpurge (Files): Drop deleted file.
40922         (Depends-on): Add stdio.
40923         (configure.ac): Set witness.
40924         * modules/stdio (Makefile.am): Support fpurge macros.
40925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40926         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40927         * lib/fflush.c: Update client.
40928         * tests/test-fpurge.c: Likewise.
40929         * NEWS: Mention the change.
40930
40931 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40932
40933         * lib/argp-version-etc.c (program_authors): Add const
40934         qualifier.
40935         * lib/version-etc.c: Fix typos in the comments.
40936         * modules/argp-version-etc: Depends on version-etc.
40937
40938 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40939
40940         argp-version-etc: new module.
40941
40942         * lib/argp-version-etc.c: New file.
40943         * lib/argp-version-etc.h: New file.
40944         * modules/argp-version-etc: New file.
40945         * modules/argp-version-etc-tests: New file.
40946         * tests/test-argp-version-etc.c: New test.
40947         * tests/test-argp-version-etc-1.sh: New test.
40948
40949 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40950
40951         Provide additional interfaces and documentation for version-etc
40952         module.
40953
40954         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40955         interfaces.
40956         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40957         prototypes.
40958
40959 2009-06-24  Bruno Haible  <bruno@clisp.org>
40960
40961         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40962         HAVE_LIB${NAME} macro.
40963         Reported by Sam Steingold <sds@gnu.org>.
40964
40965 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40966
40967         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40968         needed.
40969
40970 2009-06-21  Bruno Haible  <bruno@clisp.org>
40971
40972         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40973         work.
40974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40975         together with LIB${NAME}, LTLIB${NAME}.
40976         Reported by Sam Steingold <sds@gnu.org>.
40977
40978 2009-06-20  Jim Meyering  <meyering@redhat.com>
40979
40980         tests: make sc_require_test_exit_idiom more generic
40981         * top/maint.mk (Exit_witness_file): New overridable variable.
40982         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40983         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40984
40985 2009-06-19  Jim Meyering  <meyering@redhat.com>
40986
40987         hash: reverse order of src/dst parameters in an internal interface
40988         * lib/hash.c (transfer_entries): Reverse order of parameters to
40989         put DST before SRC.  Adjust callers.
40990
40991         tests: test-hash: avoid wholesale duplication
40992         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40993         Instead, use a loop and add a single conditional.
40994
40995         tests: test-hash: allow seed selection via a command line argument
40996         * tests/test-hash.c (get_seed): New function.
40997         (main): Use it.
40998
40999 2009-06-19  Eric Blake  <ebb9@byu.net>
41000
41001         hash: avoid memory leak on allocation failure
41002         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
41003         failure.  Factor repeated algorithm...
41004         (transfer_entries): ...into new helper routine.
41005         (hash_delete): React to hash_rehash return value.
41006
41007         hash: reduce memory pressure in hash_rehash no-op case
41008         * lib/hash.c (next_prime): Avoid overflow.
41009         (hash_initialize): Factor bucket size computation...
41010         (compute_bucket_size): ...into new helper function.
41011         (hash_rehash): Use new function and open coding to reduce memory
41012         pressure, and avoid a memory leak in USE_OBSTACK code.
41013         Reported by Jim Meyering.
41014
41015 2009-06-18  Eric Blake  <ebb9@byu.net>
41016
41017         hash: make rotation more obvious
41018         * modules/hash (Depends-on): Add bitrotate and stdint.
41019         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41020         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41021         (SIZE_MAX): Rely on headers for definition.
41022         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41023         (raw_hasher): Use rotr_sz.
41024         Suggested by Jim Meyering.
41025
41026         hash: fix memory leak in last patch
41027         * lib/hash.c (hash_rehash): Avoid memory leak.
41028
41029         hash: avoid no-op rehashing
41030         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41031
41032         hash: provide default callback functions
41033         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41034         (hash_initialize): Use them as defaults.
41035         * tests/test-hash.c (main): Test this.
41036
41037         hash: minor optimization
41038         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41039         when possible.
41040         (hash_initialize): Document this promise.
41041         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41042         * tests/test-hash.c (hash_compare_strings): Test this.
41043
41044 2009-06-18  Bruno Haible  <bruno@clisp.org>
41045
41046         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41047         going to be replaced anyway.
41048
41049 2009-06-18  Bruno Haible  <bruno@clisp.org>
41050
41051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41052         in one place.
41053         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41054         be replaced anyway.
41055
41056 2009-06-18  Eric Blake  <ebb9@byu.net>
41057
41058         hash: check for resize before insertion
41059         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41060         threshold before insertion, so that a pathological hash_rehash
41061         that fills every bucket can still trigger another rehash.
41062
41063 2009-06-18  Jim Meyering  <meyering@redhat.com>
41064
41065         hash-tests: add a loop around the small tests
41066         * tests/test-hash.c (main): Repeat small tests with selected
41067         small initial table sizes.
41068
41069 2009-06-17  Eric Blake  <ebb9@byu.net>
41070
41071         hash: minor cleanups
41072         * lib/hash.h (hash_entry): Make opaque, by moving...
41073         * lib/hash.c (hash_entry): ...here.
41074         (hash_insert): Clarify restrictions on what can be inserted.
41075         (hash_get_next): Clarify when it is safe to remove an element
41076         during traversal.
41077         (check_tuning): Skip verification when tuning is known safe.
41078         (hash_initialize): Clarify restrictions on tuning.
41079
41080 2009-06-17  Jim Meyering  <jim@meyering.net>
41081         and Eric Blake  <ebb9@byu.net>
41082
41083         hash-tests: new module
41084         * modules/hash-tests: New file.
41085         * tests/test-hash.c: New file.
41086
41087 2009-06-17  Eric Blake  <ebb9@byu.net>
41088
41089         strstr-simple: document new module
41090         * MODULES.html.sh: Document new module.
41091
41092         strstr, strcasestr: replace on platforms with broken memchr
41093         * modules/strstr: Split into...
41094         * modules/strstr-simple: ...new module that does not care about
41095         performance, but does care about glibc bug.
41096         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41097         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41098         if platform memchr is broken, per Debian bug 521737.
41099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41100         memchr.
41101         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41102         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41103         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41104         * modules/mountlist (Depends-on): Add strstr-simple.
41105         * modules/gen-uni-tables (Depends-on): Likewise.
41106         * modules/argz (Depends-on): Add strstr.
41107
41108 2009-06-17  Bruno Haible  <bruno@clisp.org>
41109
41110         * modules/posix_spawn-internal (Depends-on): Add errno.
41111
41112 2009-06-17  Bruno Haible  <bruno@clisp.org>
41113
41114         Define missing ESTALE on Interix 3.5.
41115         * lib/errno.in.h (ESTALE): Assign a value if missing.
41116         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41118         missing.
41119         * doc/posix-headers/errno.texi: Mention the Interix bug.
41120         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41121
41122 2009-06-15  Eric Blake  <ebb9@byu.net>
41123
41124         memchr, memchr2: add valgrind exception
41125         * lib/memchr.valgrind: New file.
41126         * lib/memchr2.valgrind: New file.
41127         * modules/memchr (Files): Distribute valgrind file.
41128         * modules/memchr2 (Files): Likewise.
41129
41130         docs: memchr is no longer obsolete
41131         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41132         * lib/string.in.h (memchr): Simplify logic.
41133
41134 2009-06-14  Jim Meyering  <meyering@redhat.com>
41135
41136         link-follow: fix the "checking..." message to not mention trailing slash
41137         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41138         never considered trailing slashes.
41139
41140 2009-06-14  Bruno Haible  <bruno@clisp.org>
41141
41142         * m4/memchr.m4: Mention also the bug on IA-64.
41143         * doc/posix-functions/memchr.texi: Likewise.
41144
41145 2009-06-12  Eric Blake  <ebb9@byu.net>
41146
41147         memchr: detect broken x86_64 and alpha implementations
41148         * modules/memchr-tests (Depends-on): Move mmap detection...
41149         * modules/memchr (Depends-on): ...here.
41150         (configure.ac): Set indicator.
41151         * lib/string.in.h (memchr): Declare replacement.
41152         * modules/string (Makefile.am): Trigger replacement.
41153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41154         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41155         bugs.
41156         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41157         * modules/getpagesize (License): Relax license.
41158
41159 2009-06-11  Bruno Haible  <bruno@clisp.org>
41160
41161         * lib/idpriv.h: Add more references.
41162
41163 2009-06-08  Bruno Haible  <bruno@clisp.org>
41164
41165         Tests for module 'idpriv-droptemp'.
41166         * modules/idpriv-droptemp-tests: New file.
41167         * tests/test-idpriv-droptemp.sh: New file.
41168         * tests/test-idpriv-droptemp.su.sh: New file.
41169         * tests/test-idpriv-droptemp.c: New file.
41170
41171         New module 'idpriv-droptemp'.
41172         * lib/idpriv-droptemp.c: New file.
41173         * modules/idpriv-droptemp: New file.
41174
41175 2009-06-08  Bruno Haible  <bruno@clisp.org>
41176
41177         Tests for module 'idpriv-drop'.
41178         * modules/idpriv-drop-tests: New file.
41179         * tests/test-idpriv-drop.sh: New file.
41180         * tests/test-idpriv-drop.su.sh: New file.
41181         * tests/test-idpriv-drop.c: New file.
41182
41183         New module 'idpriv-drop'.
41184         * lib/idpriv.h: New file.
41185         * lib-idpriv-drop.c: New file.
41186         * m4/idpriv.m4: New file.
41187         * modules/idpriv-drop: New file.
41188
41189 2009-06-08  Bruno Haible  <bruno@clisp.org>
41190
41191         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41192         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41193         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41194         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41195         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41196         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41197         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41198
41199 2009-06-08  Eric Blake  <ebb9@byu.net>
41200
41201         test-strstr: use memory fence, when possible
41202         * tests/test-strstr.c (main): Use memory fence, in order to be
41203         more likely to trigger Debian bug 521737.
41204         * modules/strstr-tests (Files): Pull in additional files.
41205
41206         memchr: no longer obsolete, for wider field testing
41207         * modules/memchr (Status, Notice): Delete, this module is no
41208         longer obsolete.
41209         * modules/vasnprintf (Depends-on): Add memchr.
41210
41211 2009-06-07  Jim Meyering  <meyering@redhat.com>
41212
41213         hash: declare some functions with the warn_unused_result attribute
41214         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41215
41216 2009-06-07  Bruno Haible  <bruno@clisp.org>
41217
41218         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41219         Reported by Eric Blake.
41220
41221 2009-06-06  Eric Blake  <ebb9@byu.net>
41222
41223         test-alignof: fix typo with long double
41224         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41225         compiler error.
41226
41227 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41228
41229         Escape non-texinfo { and }s.
41230         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41231         markup error.
41232
41233 2009-06-04  Jim Meyering  <meyering@redhat.com>
41234
41235         gitlog-to-changelog: don't infloop on an empty commit log
41236         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41237         Reported by Boris Petersen <transacid@centerim.org>.
41238
41239 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41240
41241         version-etc: extend for packagers
41242         Add three new configure options, intended for packagers:
41243           --with-packager="packager name"
41244           --with-packager-version="packager-specific version"
41245           --with-packager-bug-reports="packager bug reporting"
41246         An example with coreutils:
41247           $ ./configure \
41248             --with-packager=Gentoo \
41249             --with-packager-bug-report=http://bugs.gentoo.org/ \
41250             --with-packager-version="patchset 1.6"
41251           $ ./src/ls --version | head -n2
41252           ls (GNU coreutils) 7.1-dirty
41253           Packaged by Gentoo (patchset 1.6)
41254         Note that the bug reporting info via --help doesn't show up because
41255         coreutils uses its own custom emit_bug_reporting_address() implementation
41256         in src/system.h.  If it didn't, it'd look like:
41257           $ ./src/ls --help | tail -n4
41258           Report bugs to <bug-coreutils@gnu.org>.
41259           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41260           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41261           General help using GNU software: <http://www.gnu.org/gethelp/>.
41262         * lib/version-etc.c: Print new information, if provided.
41263         * m4/version-etc.m4: New file.
41264         * modules/version-etc (Files): Add m4/version-etc.m4.
41265         (configure.ac): Add gl_VERSION_ETC.
41266
41267 2009-05-31  Bruno Haible  <bruno@clisp.org>
41268
41269         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41270         and 'int64_t'.
41271         * modules/alignof-tests (Dependencies): Add stdint.
41272         Reported by Eric Blake.
41273
41274 2009-05-31  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41277         restriction due to compiler bugs.
41278         Reported by Eric Blake.
41279
41280 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41281             Bruno Haible  <bruno@clisp.org>
41282
41283         Fix test-alignof failure.
41284         * lib/alignof.h (alignof_slot): New macro.
41285         (alignof_type): New macro, with the same semantics as the previous
41286         'alignof'.
41287         (alignof): Alias to alignof_slot.
41288         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
41289         check that the results are usable as constant expressions.
41290
41291 2009-05-31  Bruno Haible  <bruno@clisp.org>
41292
41293         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
41294         * tests/test-memchr.c (main): Check that memchr does not read past the
41295         first occurrence of the byte.
41296         * tests/test-strstr.c (main): Update comment.
41297         Suggested by Eric Blake.
41298
41299 2009-05-30  Bruno Haible  <bruno@clisp.org>
41300
41301         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41302         detail how to use dumpbin.
41303         Reported by David Byron <dbyron@dbyron.com>.
41304
41305 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41306
41307         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41308
41309 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41310
41311         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41312
41313 2009-05-28  Bruno Haible  <bruno@clisp.org>
41314
41315         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41316         build-aux/ files.
41317
41318 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41319
41320         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41321
41322 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41323
41324         * gnulib-tool (sed_transform_main_lib_file)
41325         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41326         regexps.
41327
41328 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41329
41330         * tests/test-strstr.c: Add another self-test.
41331         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41332         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41333
41334 2009-05-23  Bruno Haible  <bruno@clisp.org>
41335
41336         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41337         change.
41338
41339 2009-05-21  Bruno Haible  <bruno@clisp.org>
41340
41341         Simplify use of mode_t varargs.
41342         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41343         uses 'mode_t' or 'int'.
41344         * lib/openat.c (openat): Likewise.
41345         * lib/open-safer.c (open_safer): Likewise.
41346         * m4/mode_t.m4: New file.
41347         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41348         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41349         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41350         * modules/open (Files): Add m4/mode_t.m4.
41351         * modules/openat (Files): Likewise.
41352         * modules/fcntl-safer (Files): Likewise.
41353         Suggested by Eric Blake.
41354
41355 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41356
41357         * doc/glibc-functions/fallocate.texi: New file.
41358         * doc/gnulib.texi: Include it.
41359
41360 2009-05-21  Eric Blake  <ebb9@byu.net>
41361             Bruno Haible  <bruno@clisp.org>
41362
41363         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41364         invocations.
41365         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41366
41367 2009-05-21  Eric Blake  <ebb9@byu.net>
41368             Bruno Haible  <bruno@clisp.org>
41369
41370         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41371         include_next. Fix of 2008-11-20 commit.
41372         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41373         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41374         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41375         NEXT_MATH_H.
41376         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41377         instead of NEXT_MATH_H.
41378
41379 2009-05-21  Bruno Haible  <bruno@clisp.org>
41380
41381         Avoid redefinition warnings for SIZE_MAX.
41382         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41383         Reported by Simon Josefsson.
41384
41385 2009-05-21  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41388         AC_CACHE_VAL.
41389
41390 2009-05-20  Bruno Haible  <bruno@clisp.org>
41391
41392         Make zeroptr.h work on mingw.
41393         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41394         mprotect.
41395         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41396         * modules/memchr2-tests (configure.ac): Likewise.
41397         * modules/memcmp-tests (configure.ac): Likewise.
41398         * modules/memmem-tests (configure.ac): Likewise.
41399         * modules/memrchr-tests (configure.ac): Likewise.
41400         Reported by Simon Josefsson.
41401
41402 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41403
41404         * tests/test-glob.c: Include string.h for strcmp prototype.
41405
41406 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41407
41408         * modules/getdelim (Depends-on): Add explicit stdint, although it
41409         was implicitly already pulled in via realloc-posix.
41410         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41411
41412 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41413
41414         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41415         G. Christensen" <tgc@jupiterrise.com>.
41416         * m4/sys_socket_h.m4: Check for sa_family_t.
41417         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41418         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41419         * tests/test-sys_socket.c: Check that sa_family_t works.
41420
41421 2009-05-18  Eric Blake  <ebb9@byu.net>
41422
41423         maint.mk: allow gnulib_dir in VPATH build
41424         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41425
41426 2009-05-15  Jim Meyering  <meyering@redhat.com>
41427
41428         maint.mk: Give gnulib_dir a default definition.
41429         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41430         Thus, most packages no longer need to specify this variable in cfg.mk
41431
41432 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41433
41434         rename.m4: fix typos that would make non-mingw cross-configure fail
41435         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41436
41437 2009-05-13  Eric Blake  <ebb9@byu.net>
41438
41439         mmap-anon: avoid out-of-order autoconf expansion
41440         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41441         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41442         * modules/memchr-tests (Depends-on): Add extensions.
41443         * modules/memchr2-tests (Depends-on): Add extensions.
41444         * modules/memcmp-tests (Depends-on): Add extensions.
41445         * modules/memmem-tests (Depends-on): Add extensions.
41446         * modules/memrchr-tests (Depends-on): Add extensions.
41447
41448 2009-05-13  Bruno Haible  <bruno@clisp.org>
41449
41450         Make some tests ISO C 99 compliant.
41451         * tests/zerosize-ptr.h: New file.
41452         * tests/test-memchr.c: Include zerosize-ptr.h.
41453         (main): Use a zero-size object pointer instead of NULL.
41454         * tests/test-memchr2.c: Include zerosize-ptr.h.
41455         (main): Use a zero-size object pointer instead of NULL.
41456         * tests/test-memcmp.c: Include zerosize-ptr.h.
41457         (main): Use a zero-size object pointer instead of NULL.
41458         * tests/test-memmem.c: Include zerosize-ptr.h.
41459         (main): Use a zero-size object pointer instead of NULL.
41460         * tests/test-memrchr.c: Include zerosize-ptr.h.
41461         (main): Use a zero-size object pointer instead of NULL.
41462         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41463         m4/mmap-anon.m4.
41464         (Depends-on): Add getpagesize.
41465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41466         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41467         m4/mmap-anon.m4.
41468         (Depends-on): Add getpagesize.
41469         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41470         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41471         m4/mmap-anon.m4.
41472         (Depends-on): Add getpagesize.
41473         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41474         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41475         m4/mmap-anon.m4.
41476         (Depends-on): Add getpagesize.
41477         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41478         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41479         m4/mmap-anon.m4.
41480         (Depends-on): Add getpagesize.
41481         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41482
41483 2009-05-12  Bruno Haible  <bruno@clisp.org>
41484
41485         Tests for module 'alignof'.
41486         * modules/alignof-tests: New file.
41487         * tests/test-alignof.c: New file.
41488
41489 2009-05-12  Bruno Haible  <bruno@clisp.org>
41490
41491         Fix alignof macro.
41492         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41493         vendor compilers that are always correct.
41494
41495 2009-05-12  Bruno Haible  <bruno@clisp.org>
41496
41497         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41498         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41499         not whether its fully works.
41500
41501 2009-05-12  Bruno Haible  <bruno@clisp.org>
41502
41503         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41504
41505 2009-05-12  Jim Meyering  <meyering@redhat.com>
41506
41507         * top/maint.mk: Adjust backslash alignment.
41508
41509 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41510
41511         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41512
41513 2009-05-11  Eric Blake  <ebb9@byu.net>
41514
41515         argp: avoid undefined behavior
41516         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41517         macros.
41518
41519 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41520
41521         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41522         user.name to prevent git commit from complaining.
41523
41524 2009-05-10  Bruno Haible  <bruno@clisp.org>
41525
41526         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41527         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41528         it rewrites every file name only once.
41529         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41530
41531 2009-05-08  Bruno Haible  <bruno@clisp.org>
41532
41533         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41534         instead of 'max'.
41535
41536 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41537
41538         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41539         sockaddr_storage test.
41540
41541 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41542
41543         * modules/sys_socket (Makefile.am): Substitute
41544         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41545         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41546         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41547         * tests/test-sys_socket.c: Check sockaddr_storage.
41548
41549 2009-05-08  Bruno Haible  <bruno@clisp.org>
41550
41551         New module 'alignof'.
41552         * lib/alignof.h: New file.
41553         * modules/alignof: New file.
41554
41555 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41556             Bruno Haible  <bruno@clisp.org>
41557
41558         Fix test-file-has-acl on FreeBSD.
41559         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41560         mask is implicitly added.
41561         * tests/test-file-has-acl.c: Include <signal.h>.
41562         (main): Terminate the test after 5 seconds.
41563         * modules/acl-tests (configure.ac): Check for alarm function.
41564
41565 2009-05-04  Bruno Haible  <bruno@clisp.org>
41566
41567         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41569         * modules/errno (configure.ac): Drop AC_REQUIRE.
41570         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41571         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41572
41573 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41574
41575         * modules/glob-tests: New module.
41576         * tests/test-glob.c: Add.
41577
41578 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41579
41580         * modules/fnmatch-tests: New module.
41581         * tests/test-fnmatch.c: Add.
41582
41583 2009-05-04  Eric Blake  <ebb9@byu.net>
41584
41585         maint: make the new no-submodule-changes rule VPATH-safe
41586         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41587
41588 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41589             Bruno Haible  <bruno@clisp.org>
41590
41591         acl: Fix infinite loop on FreeBSD.
41592         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41593         of return value from acl_get_entry.
41594         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41595         Likewise.
41596
41597 2009-05-03  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/acl-internal.h (acl_entries): Clarify return value.
41600         * lib/acl_entries.c (acl_entries): Likewise.
41601
41602 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41603
41604         Bug fix in acl module.
41605         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41606
41607 2009-05-03  Bruno Haible  <bruno@clisp.org>
41608
41609         Create gperf-generated file in the source dir, not in the build dir.
41610         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41611         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41612         * modules/unicase/locale-language (unicase/locale-languages.h):
41613         Likewise.
41614         * modules/unicase/special-casing (unicase/special-casing-table.h):
41615         Likewise.
41616         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41617         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41618         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41619         Reported by Ralf Wildenhues.
41620
41621 2009-05-03  Bruno Haible  <bruno@clisp.org>
41622
41623         * modules/fnmatch (Description, configure.ac): Taken from
41624         fnmatch-posix.
41625         * modules/fnmatch-posix: Turn into a symbolic reference to the
41626         'fnmatch' module, and deprecate.
41627         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41628
41629 2009-05-03  Bruno Haible  <bruno@clisp.org>
41630
41631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41632         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41633         Reported by Ralf Wildenhues.
41634
41635 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41636
41637         * m4/fnmatch.m4: Fix fnmatch re-define.
41638
41639 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41640
41641         priv-set: new module and tests; adapt write-any-file
41642         * lib/priv-set.c: New file.
41643         * lib/priv-set.h: New file.
41644         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41645         * lib/write-any-file.c: Simplify by using priv-set module.
41646         * m4/priv-set.m4: New file.
41647         * modules/priv-set: New file.
41648         * modules/unlinkdir: Add dependency on priv-set module.
41649         * modules/write-any-file: Likewise.
41650
41651         Tests for module 'priv-set'.
41652         * modules/priv-set-tests: New file.
41653         * tests/test-priv-set.c: New file.
41654
41655 2009-05-03  Jim Meyering  <meyering@redhat.com>
41656             Bruno Haible  <bruno@clisp.org>
41657
41658         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41659         use the converted UTF-8 variant of the name instead.
41660
41661 2009-05-03  Jim Meyering  <meyering@redhat.com>
41662
41663         tests: tighten some getdate tests
41664         * tests/test-getdate.c (main): Tighten tests: require equality,
41665         not just greater than.  Set TZ envvar to UTC0.
41666
41667 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41668
41669         getdate: correctly interpret "next monday" when run on a Monday
41670         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41671         that e.g., "next tues" (when run on a tuesday) results in a date
41672         that is one week in the future, and not today's date.
41673         I.e., add a week when the wday is the same as the current one.
41674         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41675         and earlier by Martin Bernreuther and Jan Minář.
41676         * tests/test-getdate.c (main): Check that "next DAY" is always in
41677         the future and that "last DAY" is always in the past.
41678
41679 2009-05-02  Jim Meyering  <meyering@redhat.com>
41680
41681         build: ensure that a release build fails when a submodule is unclean
41682         * top/maint.mk (no-submodule-changes): New rule.
41683         (alpha beta major): Depend on it.
41684
41685 2009-05-02  Bruno Haible  <bruno@clisp.org>
41686
41687         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41688         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41689         shell variable gl_fnmatch_required to detect which variant is
41690         requested.
41691         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41692         gl_FUNC_FNMATCH_POSIX.
41693         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41694         exclude fnmatch-posix.
41695
41696 2009-05-02  Bruno Haible  <bruno@clisp.org>
41697
41698         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41699         * modules/mbsrtowcs (License): Change to LGPLv2+.
41700         * modules/strnlen1 (License): Likewise.
41701         Reported by Simon Josefsson.
41702
41703 2009-05-02  Bruno Haible  <bruno@clisp.org>
41704
41705         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41706         "cross".
41707         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41708         gnulib-tool was called with option --source-base=lib.
41709
41710 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41711
41712         Use automake *-local hooks without commands, for extensibility.
41713         * modules/localcharset (Makefile.am): Rename install-exec-local
41714         rule to install-exec-localcharset, and make it a prerequisite of
41715         install-exec-local.  Likewise, rename the uninstall-local rule to
41716         uninstall-localcharset, and make it a prerequisite of the former.
41717
41718 2009-05-01  Bruno Haible  <bruno@clisp.org>
41719
41720         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41721         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41722         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41724         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41725         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41726         m4/locale-zh.m4, m4/codeset.m4.
41727
41728         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41729         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41730         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41731         m4/locale-zh.m4.
41732
41733         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41734         REPLACE_WCRTOMB if mbstate_t must be replaced.
41735         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41736         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41737
41738 2009-05-01  Bruno Haible  <bruno@clisp.org>
41739
41740         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41741         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41742         dngettext, dcngettext, textdomain, bindtextdomain,
41743         bind_textdomain_codeset): Undefine before redefining.
41744
41745 2009-04-30  Bruno Haible  <bruno@clisp.org>
41746
41747         Fix bug introduced on 2009-04-25.
41748         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41749         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41750         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41751         is defined.
41752         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41753         is defined.
41754         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41755         is defined.
41756         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41757
41758 2009-04-28  Bruno Haible  <bruno@clisp.org>
41759
41760         Comment tweaks.
41761         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41762         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41763         * lib/unicase.h (u*_casexfrm): Likewise.
41764         Reported by Paolo Bonzini.
41765
41766 2009-04-28  Bruno Haible  <bruno@clisp.org>
41767
41768         Fix a compilation error.
41769         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41770         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41771         Reported by Jim Meyering.
41772
41773 2009-04-27  Bruno Haible  <bruno@clisp.org>
41774
41775         New module 'libunistring'.
41776         * modules/libunistring: New file.
41777         * m4/libunistring.m4: New file.
41778         * MODULES.html.sh (Unicode string functions): Add it.
41779
41780 2009-04-27  Eric Blake  <ebb9@byu.net>
41781
41782         maint.mk: allow package-specific header to provide <config.h>
41783         * top/maint.mk (sc_require_config_h): New variable.
41784         (sc_require_config_h, sc_require_config_h_first): Use it.
41785
41786 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41787
41788         * top/maint.mk (sc_avoid_if_before_free): Except
41789         useless-if-before-free script.
41790
41791 2009-04-27  Eric Blake  <ebb9@byu.net>
41792
41793         maintainer-makefile: depend on all required helper scripts
41794         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41795         useless-if-before-free.
41796         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41797         version, rather than assuming gnulib checkout is available.
41798         Reported by Simen Josefsson.
41799
41800 2009-04-26  Bruno Haible  <bruno@clisp.org>
41801
41802         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41803         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41804         "../" or "..".
41805
41806 2009-04-26  Bruno Haible  <bruno@clisp.org>
41807
41808         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41809         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41810         AC_LIB_HAVE_LINKFLAGS.
41811
41812 2009-04-26  Bruno Haible  <bruno@clisp.org>
41813
41814         Simplify calling convention of u*_conv_from_encoding.
41815         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41816         u32_conv_from_encoding): Expect a resultbuf argument and return the
41817         result directly as a pointer.
41818         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41819         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41820         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41821         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41822         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41823         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41824         Update.
41825         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41826         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41827         * lib/vasnprintf.c (VASNPRINTF): Update.
41828         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41829         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41830         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41831         * NEWS: Mention the change.
41832
41833 2009-04-26  Bruno Haible  <bruno@clisp.org>
41834
41835         Simplify calling convention of u*_conv_to_encoding.
41836         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41837         u32_conv_to_encoding): Expect a resultbuf argument and return the
41838         result directly as a pointer.
41839         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41840         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41841         freeing scaled_offsets if mem_iconveha failed.
41842         * lib/unicase/u-casexfrm.h (FUNC): Update.
41843         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41844         * lib/vasnprintf.c (VASNPRINTF): Update.
41845         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41846         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41847         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41848         * NEWS: Mention the change.
41849
41850 2009-04-26  Bruno Haible  <bruno@clisp.org>
41851
41852         Avoid test failures on AIX and OSF/1.
41853         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41854         malloc(0).
41855         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41856         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41857         Likewise.
41858         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41859         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41860         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41861         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41862         * doc/posix-functions/malloc.texi: Document the portability problem
41863         related to malloc(0).
41864
41865 2009-04-26  Bruno Haible  <bruno@clisp.org>
41866
41867         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41868         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41869         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41870
41871 2009-04-25  Bruno Haible  <bruno@clisp.org>
41872
41873         Avoid link error when creating a namespace clean library.
41874         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41875         as macro with arguments if already defined as an alias.
41876         * lib/signbitf.c (gl_signbitf): Don't undefine.
41877         * lib/signbitd.c (gl_signbitd): Don't undefine.
41878         * lib/signbitl.c (gl_signbitl): Don't undefine.
41879
41880 2009-04-25  Jim Meyering  <meyering@redhat.com>
41881
41882         vc-list-files: fix another quoting bug
41883         * build-aux/vc-list-files: Avoid sed backslash expansion
41884         of pathological directory names.
41885
41886 2009-04-25  Eric Blake  <ebb9@byu.net>
41887
41888         vc-list-files: fix shell quoting error
41889         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41890         timestamp.
41891
41892 2009-04-25  Jim Meyering  <meyering@redhat.com>
41893
41894         vc-list-files: restore lost functionality with subdir argument
41895         * build-aux/vc-list-files: When given a non-"." sub-directory
41896         argument, substitute the $dir/ prefix back onto each resulting name.
41897         Otherwise, coreutils' root_tests check would fail.
41898
41899 2009-04-24  Eric Blake  <ebb9@byu.net>
41900
41901         vc-list-files: ignore git symlinks
41902         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41903         than ls-files, to ignore git symlinks.
41904
41905         maint.mk: import improvements from m4
41906         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41907         (move_if_change): Delete unused macro.
41908         (news-date-check, vc-diff-check): Support VPATH builds.
41909         (announcement): Likewise.  Split --bootstrap-tools list...
41910         (boostrap-tools): ...into separate list, which can be overridden
41911         in cfg.mk.
41912         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41913         requiring dependency on useless-if-before-free module.
41914         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41915         Support VPATH builds.
41916
41917 2009-04-24  Jim Meyering  <meyering@redhat.com>
41918
41919         maint.mk: remove coreutils-specific rules and variables
41920         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41921         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41922         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41923
41924         maint.mk: remove obsolete rule
41925         * top/maint.mk (rel-check): Remove rule.
41926         (WGET, WGETFLAGS): Remove now-unused variables.
41927
41928 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41929
41930         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41931         consistency.
41932
41933         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41934         '$(PATH_SEPARATOR)' instead of ':'.
41935
41936 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41937
41938         * lib/getopt1.c (main): Use 'const' for static array.
41939
41940 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41941
41942         * top/maint.mk: Sync with coreutils.
41943         * NEWS: Explain incompatibilities.
41944
41945 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41946             Bruno Haible  <bruno@clisp.org>
41947
41948         Fix cross-compilation results.
41949         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41950         statement, as third argument of AC_TRY_RUN.
41951         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41952         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41953         Likewise.
41954         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41955         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41956         Likewise.
41957         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41958         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41959         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41960
41961 2009-04-20  Bruno Haible  <bruno@clisp.org>
41962
41963         Avoid test failure on mingw.
41964         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41965
41966 2009-04-20  Bruno Haible  <bruno@clisp.org>
41967
41968         Avoid compilation error on mingw.
41969         * modules/localename-tests (Depends-on): Add locale.
41970
41971 2009-04-19  Bruno Haible  <bruno@clisp.org>
41972
41973         Support for building a shared library on Windows platforms.
41974         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41975         (main): Test the presence of UNINORM_NFC here.
41976         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41977         (main): Test the presence of UNINORM_NFD here.
41978         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41979         (main): Test the presence of UNINORM_NFKC here.
41980         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41981         (main): Test the presence of UNINORM_NFKD here.
41982
41983 2009-04-19  Bruno Haible  <bruno@clisp.org>
41984
41985         Avoid a compiler warning.
41986         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41987         Change type of variable 'sequence'.
41988
41989 2009-04-19  Bruno Haible  <bruno@clisp.org>
41990
41991         * modules/configmake (Makefile.am): When the contents of configmake.h
41992         does not change, arrange to preserve its modification time.
41993
41994 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41995
41996         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41997         gettext domain.
41998
41999 2009-04-16  Jim Meyering  <meyering@redhat.com>
42000
42001         useless-if-before-free: improve conversion code
42002         * build-aux/useless-if-before-free: Adjust code-in-comment to match
42003         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
42004
42005 2009-04-14  Bruno Haible  <bruno@clisp.org>
42006
42007         * modules/fcntl (Depends-on): Add extensions.
42008         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
42009
42010 2009-04-12  Ben Pfaff  <blp@gnu.org>
42011
42012         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42013         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42014
42015 2009-03-20  Ben Pfaff  <blp@gnu.org>
42016
42017         Make rename replace existing destinations on Windows.
42018         * m4/rename.m4: Add test for Mingw.
42019         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42020         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42021         * doc/posix-functions/rename.texi: Document.
42022
42023 2009-04-10  Bruno Haible  <bruno@clisp.org>
42024
42025         New include file "iconveh.h".
42026         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42027         * lib/striconveh.h: Include it.
42028         (enum iconv_ilseq_handler): Remove definition.
42029         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42030         striconveh.h.
42031         * lib/striconveha.c: Include striconveh.h.
42032         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42033         * modules/striconveh (Files): Add lib/iconveh.h.
42034         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42035         lib/striconveh.h.
42036
42037 2009-04-10  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/uniconv.h: Update comment.
42040
42041 2009-04-10  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42044         always.
42045         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42046         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42047         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42048         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42049         "unistring-notinline.h", so that the function gets defined always.
42050         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42051         * lib/unistr/u8-uctomb.c: Likewise.
42052         * lib/unistr/u16-mbtouc.c: Likewise.
42053         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42054         * lib/unistr/u16-uctomb.c: Likewise.
42055         * lib/unistr/u32-mbtouc.c: Likewise.
42056         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42057         * lib/unistr/u32-uctomb.c: Likewise.
42058
42059 2009-04-10  Bruno Haible  <bruno@clisp.org>
42060
42061         Mark 'utime' obsolete.
42062         * modules/utime (Status, Notice): New sections.
42063         Suggested by Jim Meyering.
42064
42065         Fix cross-compile guess for utime test.
42066         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42067         autoconf.
42068         * doc/posix-functions/utime.texi: Give more precisions.
42069         Reported by Jan <ipif@ymail.com>.
42070
42071 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42072
42073         filevercmp: correct today's change
42074         * lib/filevercmp.c: Also handle coreutils' test inputs.
42075         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42076
42077         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42078         for reporting it.
42079         * lib/filevercmp.c: Special handle for "", "." and "..".
42080         * tests/test-filevercmp.c: Enlarge the set suite.
42081
42082 2009-04-07  Jim Meyering  <meyering@redhat.com>
42083
42084         useless-if-before-free: show how to remove braced useless free, too
42085         * build-aux/useless-if-before-free: still only in a comment, though.
42086
42087 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42088
42089         maint.mk: import changes to syntax-check macros from coreutils
42090         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42091         Use them in the relevant macros.
42092
42093 2009-04-06  Bruno Haible  <bruno@clisp.org>
42094
42095         Fix unportable use of bit-fields.
42096         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42097         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42098         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42099
42100 2009-04-06  Bruno Haible  <bruno@clisp.org>
42101
42102         Avoid test failures on AIX and OSF/1.
42103         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42104         that malloc(0) = NULL.
42105         * tests/unicase/test-u8-tolower.c (check): Likewise.
42106         * tests/unicase/test-u8-totitle.c (check): Likewise.
42107         * tests/unicase/test-u8-toupper.c (check): Likewise.
42108         * tests/unicase/test-u16-casefold.c (check): Likewise.
42109         * tests/unicase/test-u16-tolower.c (check): Likewise.
42110         * tests/unicase/test-u16-totitle.c (check): Likewise.
42111         * tests/unicase/test-u16-toupper.c (check): Likewise.
42112         * tests/unicase/test-u32-casefold.c (check): Likewise.
42113         * tests/unicase/test-u32-tolower.c (check): Likewise.
42114         * tests/unicase/test-u32-totitle.c (check): Likewise.
42115         * tests/unicase/test-u32-toupper.c (check): Likewise.
42116         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42117         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42118         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42119         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42120         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42121         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42122         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42123         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42124         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42125         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42126         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42127         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42128
42129 2009-04-05  Bruno Haible  <bruno@clisp.org>
42130
42131         Work around an autoconf limitation.
42132         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42133         comment line if it would be longer than 3 KB.
42134
42135 2009-04-05  Bruno Haible  <bruno@clisp.org>
42136
42137         Avoid test failure with libiconv-1.13.
42138         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42139         of the expected test results.
42140
42141 2009-04-05  Bruno Haible  <bruno@clisp.org>
42142
42143         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42144         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42145         that it should be installed.
42146
42147 2009-04-05  Bruno Haible  <bruno@clisp.org>
42148
42149         * gnulib-tool: New option --copy-file.
42150         (func_usage): Document it.
42151         (func_dest_tmpfilename): Moved out of func_import.
42152         (func_add_file, func_update_file): New functions, extracted from
42153         func_import.
42154         (func_import): Update.
42155
42156 2009-04-05  Karl Berry  <karl@gnu.org>
42157
42158         * README: prominently mention gnulib-tool.
42159         Rearrange sections so getting the code is near the top.
42160
42161 2009-04-05  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/unicase.h: Mention u*_cmp2.
42164         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42165         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42166         * lib/unicase/ulc-casecmp.c: Likewise.
42167         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42168         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42169         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42170         unistr/u8-cmp.
42171         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42172         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42173         unistr/u16-cmp.
42174         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42175         unistr/u32-cmp.
42176
42177         * lib/uninorm.h: Mention u*_cmp2.
42178         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42179         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42180         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42181         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42182         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42183         unistr/u8-cmp.
42184         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42185         unistr/u16-cmp.
42186         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42187         unistr/u32-cmp.
42188
42189         New module 'unistr/u32-cmp2'.
42190         * lib/unistr/u32-cmp2.c: New file.
42191         * modules/unistr/u32-cmp2: New file.
42192
42193         New module 'unistr/u16-cmp2'.
42194         * lib/unistr/u16-cmp2.c: New file.
42195         * modules/unistr/u16-cmp2: New file.
42196
42197         New module 'unistr/u8-cmp2'.
42198         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42199         * lib/unistr/u8-cmp2.c: New file.
42200         * lib/unistr/u-cmp2.h: New file.
42201         * modules/unistr/u8-cmp2: New file.
42202
42203 2009-04-05  Bruno Haible  <bruno@clisp.org>
42204
42205         * lib/unictype.h (uc_property_is_valid): New macro.
42206         * tests/unictype/test-pr_byname.c (main): Use it.
42207
42208         * lib/unistr.h: Doc fixes.
42209         * lib/uniconv.h: Doc fixes.
42210         * lib/unictype.h: Doc fixes.
42211
42212 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42213
42214         Port coreutils 7.2 to Solaris 8.
42215
42216         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42217         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42218         for Solaris 8.  This is a bit of a hack, as it means it's the
42219         caller's responsibility to add -lnsl if needed, but most likely it
42220         won't be needed since only getaddrinfo uses this and getaddrinfo
42221         isn't needed on Solaris 8.
42222
42223         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42224         problem to Solaris 8 encountered with coreutils 7.2, which
42225         resulted in a message "fnmatch.c:292: warning: passing argument 4
42226         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42227         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42228
42229 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42230
42231         * m4/ld-version-script.m4: Add FIXME comment.
42232
42233 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42234
42235         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42236         SOVERSION variable.
42237
42238 2009-04-02  Bruno Haible  <bruno@clisp.org>
42239
42240         * Makefile (info, html, dvi, pdf): Combine the rules.
42241         Suggested by Jim Meyering.
42242
42243 2009-04-01  Bruno Haible  <bruno@clisp.org>
42244
42245         * Makefile (info, html, dvi, pdf): New targets.
42246         Reported by Reuben Thomas <rrt@sc3d.org>.
42247
42248 2009-04-01  Bruno Haible  <bruno@clisp.org>
42249
42250         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42251         can be put into PATH.
42252         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42253
42254 2009-04-01  Bruno Haible  <bruno@clisp.org>
42255
42256         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42257
42258 2009-04-01  Bruno Haible  <bruno@clisp.org>
42259
42260         Rename module 'visibility'.
42261         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42262         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42263         * doc/gnulib.texi: Update.
42264         * MODULES.html.sh (Misc): Update.
42265         * NEWS: Mention the change.
42266
42267 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42268
42269         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42270         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42271         Eric Blake <ebb9@byu.net> for review.
42272         * MODULES.html.sh: Add lib-msvc-compat.
42273         * doc/gnulib.texi: Link to new section.
42274         * m4/ld-output-def.m4: New file.
42275         * doc/ld-output-def.texi: New file.
42276
42277 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42278
42279         Rename ld-version-script to lib-symbol-versions.  Suggested by
42280         Bruno Haible <bruno@clisp.org>.
42281         * modules/ld-version-script: Renamed to lib-symbol-versions.
42282         * doc/ld-version-script.texi: Fix module name.
42283         * MODULES.html.sh: Add lib-symbol-versions.
42284
42285 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42286
42287         * modules/u64-tests: New file.
42288         * tests/test-u64.c: New file.
42289
42290 2009-03-04  Simon Josefsson  <simon@josefsson.org>
42291
42292         * MODULES.html.sh: Mention u64.
42293         * modules/u64: New module.
42294         * modules/crypto/sha512: Depend on u64 module instead of providing
42295         u64.h.
42296
42297 2009-03-27  Eric Blake  <ebb9@byu.net>
42298
42299         test-strerror: make debugging EAI_SYSTEM easier
42300         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42301         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42302         failure was EAI_SYSTEM.
42303
42304 2009-03-25  Bruno Haible  <bruno@clisp.org>
42305
42306         Fix a problem with --enable-relocatable on Solaris 7.
42307         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42308         since 2008-02-24.
42309
42310 2009-03-25  Eric Blake  <ebb9@byu.net>
42311
42312         test-sockets: avoid gcc warning
42313         * tests/test-sockets.c (main): Silence compiler warning.
42314
42315 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42316
42317         New modules nproc, pthread, contributed by Glen Lenker.
42318
42319         * MODULES.html.sh: Add pthread, nproc.
42320         * lib/nproc.c: New file.
42321         * lib/nproc.h: New file.
42322         * lib/pthread.in.h: New file.
42323         * m4/pthread.m4: New file.
42324         * modules/nproc: New file.
42325         * modules/pthread: New file.
42326
42327 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42328
42329         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42330         New variable.
42331
42332 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42333
42334         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42335         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42336         * tests/test-filevercmp.c: Add tests for backup suffixes.
42337
42338 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42339
42340         * modules/stdlib (Depends-on): Add stdint, needed when defining
42341         struct random_data on, for example, HP-UX 10.20.  Reported by
42342         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42343
42344 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42345
42346         * lib/readline.c (readline): Call fflush on stdout after printing
42347         prompt.
42348
42349 2009-03-20  Bruno Haible  <bruno@clisp.org>
42350
42351         Remove dependency from 'close' module to -lws2_32 on native Windows.
42352         * lib/close-hook.h: New file.
42353         * lib/close-hook.c: New file.
42354         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42355         w32sock.h.
42356         (_gl_close_fd_maybe_socket): Remove function.
42357         (rpl_close): Invoke execute_all_close_hooks instead of
42358         _gl_close_fd_maybe_socket.
42359         * lib/sockets.c: Include close-hook.h, w32sock.h.
42360         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42361         (close_sockets_hook): New variable.
42362         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42363         (gl_sockets_cleanup): Unregister it.
42364         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42365         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42366         * modules/close-hook: New file.
42367         * modules/close (Files): Remove lib/w32sock.h.
42368         (Depends-on): Add close-hook.
42369         (Link): Remove section.
42370         * modules/sockets (Files): Add lib/w32sock.h.
42371         (Depends-on): Add close-hook.
42372         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42373         invocation.
42374         * NEWS: Mention that LIB_CLOSE is gone.
42375
42376 2009-03-23  Eric Blake  <ebb9@byu.net>
42377
42378         signal-tests: test previous patch
42379         * tests/test-signal.c: New file.
42380         * modules/signal-tests: Likewise.
42381
42382         signal.h: always support 'volatile sig_atomic_t'
42383         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42384         (gl_SIGNAL_H_DEFAULTS): Add a default.
42385         * modules/signal (Makefile.am): Substitute if needed.
42386         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42387         users can blindly add volatile.
42388         * doc/posix-headers/signal.texi (signal.h): Document it.
42389         Reported by Matthew Woehlke.
42390
42391 2009-03-23  Jim Meyering  <meyering@redhat.com>
42392
42393         pathmax: PATH_MAX: use pathconf only when available
42394         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42395         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42396         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42397         This avoids a link failure in a PSP cross-compilation environment
42398         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42399
42400         * lib/vasnprintf.c (divide): Fix typo in comment.
42401
42402 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42403
42404         * gnulib-tool (func_filter_filelist): Fix comment.
42405
42406 2009-03-20  Bruno Haible  <bruno@clisp.org>
42407
42408         Make sockets.h self-contained.
42409         * lib/sockets.c: Include sockets.h first.
42410         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42411
42412 2009-03-19  Eric Blake  <ebb9@byu.net>
42413
42414         doc: mention more functions added in cygwin 1.7.0
42415         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42416         addition.
42417         * doc/posix-functions/log2f.texi: Likewise.
42418
42419 2009-03-19  Jim Meyering  <meyering@redhat.com>
42420
42421         fsusage: avoid syntax error due to statement-before-declaration
42422         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42423         after all declarations.  Reported by Matthew Woehlke in
42424         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42425
42426 2009-03-18  Eric Blake  <ebb9@byu.net>
42427
42428         build-aux/compile: sync from automake
42429         * build-aux/compile: New file, from automake.
42430         * config/srclist.txt: Mention build-aux/compile.
42431
42432 2009-03-17  Bruno Haible  <bruno@clisp.org>
42433
42434         * lib/git-merge-changelog.c: Fix typo in comment.
42435         Reported by Reuben Thomas <rrt@sc3d.org>.
42436
42437 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42438
42439         * m4/regex.m4: update and improve help for
42440         --without-included-regex.
42441
42442 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42443
42444         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42445         failure on missing include files.
42446
42447 2009-03-17  Eric Blake  <ebb9@byu.net>
42448
42449         doc: mention more functions added in cygwin 1.7.0
42450         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42451         addition.
42452         * doc/posix-functions/fwscanf.texi: Likewise.
42453         * doc/posix-functions/swprintf.texi: Likewise.
42454         * doc/posix-functions/swscanf.texi: Likewise.
42455         * doc/posix-functions/vfwprintf.texi: Likewise.
42456         * doc/posix-functions/vfwscanf.texi: Likewise.
42457         * doc/posix-functions/vswprintf.texi: Likewise.
42458         * doc/posix-functions/vswscanf.texi: Likewise.
42459         * doc/posix-functions/vwprintf.texi: Likewise.
42460         * doc/posix-functions/vwscanf.texi: Likewise.
42461         * doc/posix-functions/wcscasecmp.texi: Likewise.
42462         * doc/posix-functions/wcsdup.texi: Likewise.
42463         * doc/posix-functions/wcsftime.texi: Likewise.
42464         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42465         * doc/posix-functions/wprintf.texi: Likewise.
42466         * doc/posix-functions/wscanf.texi: Likewise.
42467         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42468
42469 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42470
42471         maint.mk: really add $(AM_MAKEFLAGS)
42472         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42473         was inadvertently omitted in the last commit.
42474         Spotted by Bruno Haible.
42475
42476         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42477         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42478         $(AM_MAKEFLAGS)' rather than plain `make'.
42479
42480         gnulib-tool: execute $MAKE not make
42481         * gnulib-tool: Default $MAKE to 'make'.
42482         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42483         than make.  Initialize $MAKE in the do-autobuild script.
42484
42485         gnulib-tool: use $MAKE not make in generated files
42486         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42487         make, in generated files.  Initialize $MAKE in the do-autobuild
42488         script.
42489
42490         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42491
42492         GNUmakefile: disable parallelism only for multiple, recursive targets
42493         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42494         additions in the Makefile.
42495         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42496         by Automake.
42497         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42498         are listed on the command line and at least one of them is
42499         listed in $(ALL_RECURSIVE_TARGETS).
42500
42501 2009-03-14  Bruno Haible  <bruno@clisp.org>
42502
42503         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42504         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42505         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42506         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42507         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42508         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42509         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42510         unistr/u8-uctomb.
42511         * modules/unistr/u8-strchr (Depends-on): Likewise.
42512         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42513         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42514         unistr/u16-uctomb.
42515         * modules/unistr/u16-strchr (Depends-on): Likewise.
42516         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42517
42518 2009-03-12  Bruno Haible  <bruno@clisp.org>
42519
42520         Work around select() bug on Interix 3.5.
42521         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42522         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42523         * m4/select.m4: New file.
42524         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42525         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42526         * modules/select (Files): Add m4/select.m4.
42527         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42528         * modules/nanosleep (Depends-on): Add select.
42529         * modules/poll (Depends-on): Likewise.
42530         * doc/posix-functions/select.texi: Mention the Interix bug.
42531         Reported by Markus Duft <mduft@gentoo.org>.
42532
42533         * lib/select.c: Renamed from lib/winsock-select.c.
42534         * modules/select (Files): Add lib/select.c, remove
42535         lib/winsock-select.c.
42536         (configure.ac): Update.
42537
42538 2009-03-12  Jim Meyering  <meyering@redhat.com>
42539
42540         avoid gcc warnings about unused macro definitions
42541         * lib/readtokens.c (STREQ): Remove unused definition.
42542         * lib/xmalloc.c (SIZE_MAX): Likewise.
42543         * lib/openat-die.c (N_): Likewise.
42544         * lib/mountlist.c (SIZE_MAX): Remove definition.
42545         Instead, include <stdint.h>.
42546         * lib/readutmp.c: Likewise.
42547         * modules/readutmp (Depends-on): Add stdint.
42548         * modules/mountlist (Depends-on): Add stdint.
42549         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42550
42551 2009-03-10  Bruno Haible  <bruno@clisp.org>
42552
42553         Tests for module 'mbmemcasecoll'.
42554         * modules/mbmemcasecoll-tests: New file.
42555         * tests/test-mbmemcasecoll1.sh: New file.
42556         * tests/test-mbmemcasecoll2.sh: New file.
42557         * tests/test-mbmemcasecoll3.sh: New file.
42558         * tests/test-mbmemcasecoll.c: New file.
42559
42560         New module 'mbmemcasecoll'.
42561         * lib/mbmemcasecoll.h: New file.
42562         * lib/mbmemcasecoll.c: New file.
42563         * modules/mbmemcasecoll: New file.
42564
42565         * tests/test-mbmemcasecmp.h: New file, extracted from
42566         tests/test-mbmemcasecmp.c.
42567         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42568         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42569         (main): Update.
42570         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42571
42572 2009-03-09  Bruno Haible  <bruno@clisp.org>
42573
42574         Tests for module 'mbmemcasecmp'.
42575         * modules/mbmemcasecmp-tests: New file.
42576         * tests/test-mbmemcasecmp1.sh: New file.
42577         * tests/test-mbmemcasecmp2.sh: New file.
42578         * tests/test-mbmemcasecmp3.sh: New file.
42579         * tests/test-mbmemcasecmp.c: New file.
42580
42581         New module 'mbmemcasecmp'.
42582         * lib/mbmemcasecmp.h: New file.
42583         * lib/mbmemcasecmp.c: New file.
42584         * modules/mbmemcasecmp: New file.
42585
42586 2009-03-09  Bruno Haible  <bruno@clisp.org>
42587
42588         Tests for module 'unicase/ulc-casecoll'.
42589         * modules/unicase/ulc-casecoll-tests: New file.
42590         * tests/unicase/test-ulc-casecoll1.sh: New file.
42591         * tests/unicase/test-ulc-casecoll2.sh: New file.
42592         * tests/unicase/test-ulc-casecoll.c: New file.
42593
42594         New module 'unicase/ulc-casecoll'.
42595         * lib/unicase.h (ulc_casecoll): New declaration.
42596         * lib/unicase/ulc-casecoll.c: New file.
42597         * modules/unicase/ulc-casecoll: New file.
42598
42599         New module 'unicase/ulc-casexfrm'.
42600         * lib/unicase.h (ulc_casexfrm): New declaration.
42601         * lib/unicase/ulc-casexfrm.c: New file.
42602         * modules/unicase/ulc-casexfrm: New file.
42603
42604 2009-03-09  Bruno Haible  <bruno@clisp.org>
42605
42606         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42607         invocations.
42608
42609         * m4/mbscasecmp.m4: Remove file.
42610         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42611         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42612
42613         * m4/mbscasestr.m4: Remove file.
42614         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42615         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42616
42617         * m4/mbschr.m4: Remove file.
42618         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42619         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42620
42621         * m4/mbscspn.m4: Remove file.
42622         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42623         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42624
42625         * m4/mbslen.m4: Remove file.
42626         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42627         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42628
42629         * m4/mbsncasecmp.m4: Remove file.
42630         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42631         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42632
42633         * m4/mbsnlen.m4: Remove file.
42634         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42635         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42636
42637         * m4/mbspbrk.m4: Remove file.
42638         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42639         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42640
42641         * m4/mbspcasecmp.m4: Remove file.
42642         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42643         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42644
42645         * m4/mbsrchr.m4: Remove file.
42646         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42647         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42648
42649         * m4/mbssep.m4: Remove file.
42650         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42651         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42652
42653         * m4/mbsspn.m4: Remove file.
42654         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42655         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42656
42657         * m4/mbsstr.m4: Remove file.
42658         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42659         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42660
42661         * m4/mbstok_r.m4: Remove file.
42662         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42663         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42664
42665         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42666
42667         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42668         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42669
42670         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42671
42672 2009-03-08  Bruno Haible  <bruno@clisp.org>
42673
42674         Tests for module 'unicase/ulc-casecmp'.
42675         * modules/unicase/ulc-casecmp-tests: New file.
42676         * tests/unicase/test-ulc-casecmp1.sh: New file.
42677         * tests/unicase/test-ulc-casecmp2.sh: New file.
42678         * tests/unicase/test-ulc-casecmp.c: New file.
42679
42680         New module 'unicase/ulc-casecmp'.
42681         * lib/unicase.h (ulc_casecmp): New declaration.
42682         * lib/unicase/ulc-casecmp.c: New file.
42683         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42684         'const SRC_UNIT *'.
42685         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42686         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42687         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42688         * modules/unicase/ulc-casecmp: New file.
42689
42690         Tests for module 'unicase/u32-is-cased'.
42691         * modules/unicase/u32-is-cased-tests: New file.
42692         * tests/unicase/test-u32-is-cased.c: New file.
42693
42694         Tests for module 'unicase/u16-is-cased'.
42695         * modules/unicase/u16-is-cased-tests: New file.
42696         * tests/unicase/test-u16-is-cased.c: New file.
42697
42698         Tests for module 'unicase/u8-is-cased'.
42699         * modules/unicase/u8-is-cased-tests: New file.
42700         * tests/unicase/test-u8-is-cased.c: New file.
42701         * tests/unicase/test-is-cased.h: New file.
42702
42703         New module 'unicase/u32-is-cased'.
42704         * lib/unicase/u32-is-cased.c: New file.
42705         * modules/unicase/u32-is-cased: New file.
42706
42707         New module 'unicase/u16-is-cased'.
42708         * lib/unicase/u16-is-cased.c: New file.
42709         * modules/unicase/u16-is-cased: New file.
42710
42711         New module 'unicase/u8-is-cased'.
42712         * lib/unicase/u8-is-cased.c: New file.
42713         * lib/unicase/u-is-cased.h: New file.
42714         * modules/unicase/u8-is-cased: New file.
42715
42716         Tests for module 'unicase/u32-is-casefolded'.
42717         * modules/unicase/u32-is-casefolded-tests: New file.
42718         * tests/unicase/test-u32-is-casefolded.c: New file.
42719
42720         Tests for module 'unicase/u16-is-casefolded'.
42721         * modules/unicase/u16-is-casefolded-tests: New file.
42722         * tests/unicase/test-u16-is-casefolded.c: New file.
42723
42724         Tests for module 'unicase/u8-is-casefolded'.
42725         * modules/unicase/u8-is-casefolded-tests: New file.
42726         * tests/unicase/test-u8-is-casefolded.c: New file.
42727         * tests/unicase/test-is-casefolded.h: New file.
42728
42729         New module 'unicase/u32-is-casefolded'.
42730         * lib/unicase/u32-is-casefolded.c: New file.
42731         * modules/unicase/u32-is-casefolded: New file.
42732
42733         New module 'unicase/u16-is-casefolded'.
42734         * lib/unicase/u16-is-casefolded.c: New file.
42735         * modules/unicase/u16-is-casefolded: New file.
42736
42737         New module 'unicase/u8-is-casefolded'.
42738         * lib/unicase/u8-is-casefolded.c: New file.
42739         * modules/unicase/u8-is-casefolded: New file.
42740
42741         Tests for module 'unicase/u32-is-titlecase'.
42742         * modules/unicase/u32-is-titlecase-tests: New file.
42743         * tests/unicase/test-u32-is-titlecase.c: New file.
42744
42745         Tests for module 'unicase/u16-is-titlecase'.
42746         * modules/unicase/u16-is-titlecase-tests: New file.
42747         * tests/unicase/test-u16-is-titlecase.c: New file.
42748
42749         Tests for module 'unicase/u8-is-titlecase'.
42750         * modules/unicase/u8-is-titlecase-tests: New file.
42751         * tests/unicase/test-u8-is-titlecase.c: New file.
42752         * tests/unicase/test-is-titlecase.h: New file.
42753
42754         New module 'unicase/u32-is-titlecase'.
42755         * lib/unicase/u32-is-titlecase.c: New file.
42756         * modules/unicase/u32-is-titlecase: New file.
42757
42758         New module 'unicase/u16-is-titlecase'.
42759         * lib/unicase/u16-is-titlecase.c: New file.
42760         * modules/unicase/u16-is-titlecase: New file.
42761
42762         New module 'unicase/u8-is-titlecase'.
42763         * lib/unicase/u8-is-titlecase.c: New file.
42764         * modules/unicase/u8-is-titlecase: New file.
42765
42766         Tests for module 'unicase/u32-is-lowercase'.
42767         * modules/unicase/u32-is-lowercase-tests: New file.
42768         * tests/unicase/test-u32-is-lowercase.c: New file.
42769
42770         Tests for module 'unicase/u16-is-lowercase'.
42771         * modules/unicase/u16-is-lowercase-tests: New file.
42772         * tests/unicase/test-u16-is-lowercase.c: New file.
42773
42774         Tests for module 'unicase/u8-is-lowercase'.
42775         * modules/unicase/u8-is-lowercase-tests: New file.
42776         * tests/unicase/test-u8-is-lowercase.c: New file.
42777         * tests/unicase/test-is-lowercase.h: New file.
42778
42779         New module 'unicase/u32-is-lowercase'.
42780         * lib/unicase/u32-is-lowercase.c: New file.
42781         * modules/unicase/u32-is-lowercase: New file.
42782
42783         New module 'unicase/u16-is-lowercase'.
42784         * lib/unicase/u16-is-lowercase.c: New file.
42785         * modules/unicase/u16-is-lowercase: New file.
42786
42787         New module 'unicase/u8-is-lowercase'.
42788         * lib/unicase/u8-is-lowercase.c: New file.
42789         * modules/unicase/u8-is-lowercase: New file.
42790
42791         Tests for module 'unicase/u32-is-uppercase'.
42792         * modules/unicase/u32-is-uppercase-tests: New file.
42793         * tests/unicase/test-u32-is-uppercase.c: New file.
42794
42795         Tests for module 'unicase/u16-is-uppercase'.
42796         * modules/unicase/u16-is-uppercase-tests: New file.
42797         * tests/unicase/test-u16-is-uppercase.c: New file.
42798
42799         Tests for module 'unicase/u8-is-uppercase'.
42800         * modules/unicase/u8-is-uppercase-tests: New file.
42801         * tests/unicase/test-u8-is-uppercase.c: New file.
42802         * tests/unicase/test-is-uppercase.h: New file.
42803
42804         New module 'unicase/u32-is-uppercase'.
42805         * lib/unicase/u32-is-uppercase.c: New file.
42806         * modules/unicase/u32-is-uppercase: New file.
42807
42808         New module 'unicase/u16-is-uppercase'.
42809         * lib/unicase/u16-is-uppercase.c: New file.
42810         * modules/unicase/u16-is-uppercase: New file.
42811
42812         New module 'unicase/u8-is-uppercase'.
42813         * lib/unicase/u8-is-uppercase.c: New file.
42814         * modules/unicase/u8-is-uppercase: New file.
42815
42816         New module 'unicase/u32-is-invariant'.
42817         * lib/unicase/u32-is-invariant.c: New file.
42818         * modules/unicase/u32-is-invariant: New file.
42819
42820         New module 'unicase/u16-is-invariant'.
42821         * lib/unicase/u16-is-invariant.c: New file.
42822         * modules/unicase/u16-is-invariant: New file.
42823
42824         New module 'unicase/u8-is-invariant'.
42825         * lib/unicase/u8-is-invariant.c: New file.
42826         * lib/unicase/invariant.h: New file.
42827         * lib/unicase/u-is-invariant.h: New file.
42828         * modules/unicase/u8-is-invariant: New file.
42829
42830         Tests for module 'unicase/u32-casecoll'.
42831         * modules/unicase/u32-casecoll-tests: New file.
42832         * tests/unicase/test-u32-casecoll.c: New file.
42833
42834         Tests for module 'unicase/u16-casecoll'.
42835         * modules/unicase/u16-casecoll-tests: New file.
42836         * tests/unicase/test-u16-casecoll.c: New file.
42837
42838         Tests for module 'unicase/u8-casecoll'.
42839         * modules/unicase/u8-casecoll-tests: New file.
42840         * tests/unicase/test-u8-casecoll.c: New file.
42841
42842         New module 'unicase/u32-casecoll'.
42843         * lib/unicase/u32-casecoll.c: New file.
42844         * modules/unicase/u32-casecoll: New file.
42845
42846         New module 'unicase/u16-casecoll'.
42847         * lib/unicase/u16-casecoll.c: New file.
42848         * modules/unicase/u16-casecoll: New file.
42849
42850         New module 'unicase/u8-casecoll'.
42851         * lib/unicase/u8-casecoll.c: New file.
42852         * lib/unicase/u-casecoll.h: New file.
42853         * modules/unicase/u8-casecoll: New file.
42854
42855         New module 'unicase/u32-casexfrm'.
42856         * lib/unicase/u32-casexfrm.c: New file.
42857         * modules/unicase/u32-casexfrm: New file.
42858
42859         New module 'unicase/u16-casexfrm'.
42860         * lib/unicase/u16-casexfrm.c: New file.
42861         * modules/unicase/u16-casexfrm: New file.
42862
42863         New module 'unicase/u8-casexfrm'.
42864         * lib/unicase/u8-casexfrm.c: New file.
42865         * lib/unicase/u-casexfrm.h: New file.
42866         * modules/unicase/u8-casexfrm: New file.
42867
42868         Tests for module 'unicase/u32-casecmp'.
42869         * modules/unicase/u32-casecmp-tests: New file.
42870         * tests/unicase/test-u32-casecmp.c: New file.
42871
42872         Tests for module 'unicase/u16-casecmp'.
42873         * modules/unicase/u16-casecmp-tests: New file.
42874         * tests/unicase/test-u16-casecmp.c: New file.
42875
42876         Tests for module 'unicase/u8-casecmp'.
42877         * modules/unicase/u8-casecmp-tests: New file.
42878         * tests/unicase/test-u8-casecmp.c: New file.
42879         * tests/unicase/test-casecmp.h: New file.
42880
42881         New module 'unicase/u32-casecmp'.
42882         * lib/unicase/u32-casecmp.c: New file.
42883         * modules/unicase/u32-casecmp: New file.
42884
42885         New module 'unicase/u16-casecmp'.
42886         * lib/unicase/u16-casecmp.c: New file.
42887         * modules/unicase/u16-casecmp: New file.
42888
42889         New module 'unicase/u8-casecmp'.
42890         * lib/unicase/u8-casecmp.c: New file.
42891         * lib/unicase/u-casecmp.h: New file.
42892         * modules/unicase/u8-casecmp: New file.
42893
42894         Tests for module 'unicase/u32-casefold'.
42895         * modules/unicase/u32-casefold-tests: New file.
42896         * tests/unicase/test-u32-casefold.c: New file.
42897
42898         Tests for module 'unicase/u16-casefold'.
42899         * modules/unicase/u16-casefold-tests: New file.
42900         * tests/unicase/test-u16-casefold.c: New file.
42901
42902         Tests for module 'unicase/u8-casefold'.
42903         * modules/unicase/u8-casefold-tests: New file.
42904         * tests/unicase/test-u8-casefold.c: New file.
42905
42906         New module 'unicase/u32-casefold'.
42907         * lib/unicase/u32-casefold.c: New file.
42908         * modules/unicase/u32-casefold: New file.
42909
42910         New module 'unicase/u16-casefold'.
42911         * lib/unicase/u16-casefold.c: New file.
42912         * modules/unicase/u16-casefold: New file.
42913
42914         New module 'unicase/u8-casefold'.
42915         * lib/unicase/u8-casefold.c: New file.
42916         * lib/unicase/u-casefold.h: New file.
42917         * modules/unicase/u8-casefold: New file.
42918
42919         New module 'unicase/tocasefold'.
42920         * lib/unicase/casefold.h: New file.
42921         * lib/unicase/tocasefold.c: New file.
42922         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42923         * modules/unicase/tocasefold: New file.
42924
42925         Tests for module 'unicase/u32-totitle'.
42926         * modules/unicase/u32-totitle-tests: New file.
42927         * tests/unicase/test-u32-totitle.c: New file.
42928
42929         Tests for module 'unicase/u16-totitle'.
42930         * modules/unicase/u16-totitle-tests: New file.
42931         * tests/unicase/test-u16-totitle.c: New file.
42932
42933         Tests for module 'unicase/u8-totitle'.
42934         * modules/unicase/u8-totitle-tests: New file.
42935         * tests/unicase/test-u8-totitle.c: New file.
42936
42937         New module 'unicase/u32-totitle'.
42938         * lib/unicase/u32-totitle.c: New file.
42939         * modules/unicase/u32-totitle: New file.
42940
42941         New module 'unicase/u16-totitle'.
42942         * lib/unicase/u16-totitle.c: New file.
42943         * modules/unicase/u16-totitle: New file.
42944
42945         New module 'unicase/u8-totitle'.
42946         * lib/unicase/u8-totitle.c: New file.
42947         * lib/unicase/u-totitle.h: New file.
42948         * modules/unicase/u8-totitle: New file.
42949
42950         Tests for module 'unicase/u32-tolower'.
42951         * modules/unicase/u32-tolower-tests: New file.
42952         * tests/unicase/test-u32-tolower.c: New file.
42953
42954         Tests for module 'unicase/u16-tolower'.
42955         * modules/unicase/u16-tolower-tests: New file.
42956         * tests/unicase/test-u16-tolower.c: New file.
42957
42958         Tests for module 'unicase/u8-tolower'.
42959         * modules/unicase/u8-tolower-tests: New file.
42960         * tests/unicase/test-u8-tolower.c: New file.
42961
42962         New module 'unicase/u32-tolower'.
42963         * lib/unicase/u32-tolower.c: New file.
42964         * modules/unicase/u32-tolower: New file.
42965
42966         New module 'unicase/u16-tolower'.
42967         * lib/unicase/u16-tolower.c: New file.
42968         * modules/unicase/u16-tolower: New file.
42969
42970         New module 'unicase/u8-tolower'.
42971         * lib/unicase/u8-tolower.c: New file.
42972         * modules/unicase/u8-tolower: New file.
42973
42974         Tests for module 'unicase/u32-toupper'.
42975         * modules/unicase/u32-toupper-tests: New file.
42976         * tests/unicase/test-u32-toupper.c: New file.
42977
42978         Tests for module 'unicase/u16-toupper'.
42979         * modules/unicase/u16-toupper-tests: New file.
42980         * tests/unicase/test-u16-toupper.c: New file.
42981
42982         Tests for module 'unicase/u8-toupper'.
42983         * modules/unicase/u8-toupper-tests: New file.
42984         * tests/unicase/test-u8-toupper.c: New file.
42985
42986         New module 'unicase/u32-toupper'.
42987         * lib/unicase/u32-toupper.c: New file.
42988         * modules/unicase/u32-toupper: New file.
42989
42990         New module 'unicase/u16-toupper'.
42991         * lib/unicase/u16-toupper.c: New file.
42992         * modules/unicase/u16-toupper: New file.
42993
42994         New module 'unicase/u8-toupper'.
42995         * lib/unicase/u8-toupper.c: New file.
42996         * modules/unicase/u8-toupper: New file.
42997
42998         New module 'unicase/u32-casemap'.
42999         * lib/unicase/u32-casemap.c: New file.
43000         * modules/unicase/u32-casemap: New file.
43001
43002         New module 'unicase/u16-casemap'.
43003         * lib/unicase/u16-casemap.c: New file.
43004         * modules/unicase/u16-casemap: New file.
43005
43006         New module 'unicase/u8-casemap'.
43007         * lib/unicase/unicasemap.h: New file.
43008         * lib/unicase/u8-casemap.c: New file.
43009         * lib/unicase/u-casemap.h: New file.
43010         * modules/unicase/u8-casemap: New file.
43011
43012         New module 'unicase/special-casing'.
43013         * lib/unicase/special-casing.h: New file.
43014         * lib/unicase/special-casing.c: New file.
43015         * lib/unicase/special-casing-table.gperf: New file, generated by
43016         gen-uni-tables.c.
43017         * modules/unicase/special-casing: New file.
43018
43019         Tests for module 'unicase/locale-language'.
43020         * modules/unicase/locale-language-tests: New file.
43021         * tests/unicase/test-locale-language.sh: New file.
43022         * tests/unicase/test-locale-language.c: New file.
43023
43024         New module 'unicase/locale-language'.
43025         * lib/unicase/locale-language.c: New file.
43026         * lib/unicase/locale-languages.gperf: New file.
43027         * modules/unicase/locale-language: New file.
43028
43029         Generate more tables for case conversion and case folding.
43030         * lib/gen-uni-tables.c (SCC_*): New enum items.
43031         (struct special_casing_rule): New type.
43032         (casing_rules, num_casing_rules, allocated_casing_rules): New
43033         variables.
43034         (add_casing_rule, fill_casing_rules): New functions.
43035         (struct casefold_rule): New type.
43036         (casefolding_rules, num_casefolding_rules,
43037         allocated_casefolding_rules): New variables.
43038         (fill_casefolding_rules): New function.
43039         (unicode_casefold): New variable.
43040         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43041         sort_casing_rules, output_casing_rules): New functions.
43042         (main): Accept to more arguments: SpecialCasing.txt and
43043         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43044         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43045         Output mapping for casefolding.
43046
43047         * lib/unicase.h: Include stdbool.h, uninorm.h.
43048         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43049         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43050         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43051         arguments.
43052         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43053         resultp arguments.
43054         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43055         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43056         resultp arguments.
43057         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43058         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43059         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43060         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43061         declarations.
43062         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43063
43064 2009-03-08  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43067         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43068         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43069         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43070
43071 2009-03-07  Bruno Haible  <bruno@clisp.org>
43072
43073         Adjust u*_normcmp, u*_normcoll API.
43074         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43075         u16_normcoll, u32_normcoll): Change failure conventions.
43076         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43077         errno and return -1.
43078         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43079
43080 2009-03-07  Bruno Haible  <bruno@clisp.org>
43081
43082         Tests for module 'uninorm/u32-normcoll'.
43083         * modules/uninorm/u32-normcoll-tests: New file.
43084         * tests/uninorm/test-u32-normcoll.c: New file.
43085
43086         Tests for module 'uninorm/u16-normcoll'.
43087         * modules/uninorm/u16-normcoll-tests: New file.
43088         * tests/uninorm/test-u16-normcoll.c: New file.
43089
43090         Tests for module 'uninorm/u8-normcoll'.
43091         * modules/uninorm/u8-normcoll-tests: New file.
43092         * tests/uninorm/test-u8-normcoll.c: New file.
43093
43094 2009-03-07  Bruno Haible  <bruno@clisp.org>
43095
43096         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43097         tests/uninorm/test-u32-normcmp.c.
43098         * tests/uninorm/test-u32-normcmp.c: Include it.
43099         (test_nonascii): New function, extracted from main. Add some more
43100         tests.
43101         (main): Invoke test_ascii and test_nonascii.
43102         * modules/uninorm/u32-normcmp-tests (Files): Add
43103         tests/uninorm/test-u32-normcmp.h.
43104         (Depends-on): Remove uninorm/u32-normcmp.
43105
43106         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43107         tests/uninorm/test-u16-normcmp.c.
43108         * tests/uninorm/test-u16-normcmp.c: Include it.
43109         (test_nonascii): New function, extracted from main. Add some more
43110         tests.
43111         (main): Invoke test_ascii and test_nonascii.
43112         * modules/uninorm/u16-normcmp-tests (Files): Add
43113         tests/uninorm/test-u16-normcmp.h.
43114         (Depends-on): Remove uninorm/u16-normcmp.
43115
43116         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43117         tests/uninorm/test-u8-normcmp.c.
43118         * tests/uninorm/test-u8-normcmp.c: Include it.
43119         (test_nonascii): New function, extracted from main. Add some more
43120         tests.
43121         (main): Invoke test_ascii and test_nonascii.
43122         * modules/uninorm/u8-normcmp-tests (Files): Add
43123         tests/uninorm/test-u8-normcmp.h.
43124         (Depends-on): Remove uninorm/u8-normcmp.
43125
43126 2009-03-07  Bruno Haible  <bruno@clisp.org>
43127
43128         New module 'uninorm/u32-normcoll'.
43129         * lib/uninorm/u32-normcoll.c: New file.
43130         * modules/uninorm/u32-normcoll: New file.
43131
43132         New module 'uninorm/u16-normcoll'.
43133         * lib/uninorm/u16-normcoll.c: New file.
43134         * modules/uninorm/u16-normcoll: New file.
43135
43136         New module 'uninorm/u8-normcoll'.
43137         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43138         declarations.
43139         * lib/uninorm/u8-normcoll.c: New file.
43140         * lib/uninorm/u-normcoll.h: New file.
43141         * modules/uninorm/u8-normcoll: New file.
43142
43143         New module 'uninorm/u32-normxfrm'.
43144         * lib/uninorm/u32-normxfrm.c: New file.
43145         * modules/uninorm/u32-normxfrm: New file.
43146
43147         New module 'uninorm/u16-normxfrm'.
43148         * lib/uninorm/u16-normxfrm.c: New file.
43149         * modules/uninorm/u16-normxfrm: New file.
43150
43151         New module 'uninorm/u8-normxfrm'.
43152         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43153         declarations.
43154         * lib/uninorm/u8-normxfrm.c: New file.
43155         * lib/uninorm/u-normxfrm.h: New file.
43156         * modules/uninorm/u8-normxfrm: New file.
43157
43158 2009-03-07  Bruno Haible  <bruno@clisp.org>
43159
43160         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43161         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43162         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43163
43164 2009-03-07  Bruno Haible  <bruno@clisp.org>
43165
43166         New module 'memxfrm'.
43167         * lib/memxfrm.h: New file.
43168         * lib/memxfrm.c: New file.
43169         * modules/memxfrm: New file.
43170
43171 2009-03-07  Bruno Haible  <bruno@clisp.org>
43172
43173         New module 'memcmp2'.
43174         * lib/memcmp2.h: New file.
43175         * lib/memcmp2.c: New file.
43176         * modules/memcmp2: New file.
43177
43178 2009-03-07  Bruno Haible  <bruno@clisp.org>
43179
43180         Tests for module 'uninorm/decomposing-form'.
43181         * modules/uninorm/decomposing-form-tests: New file.
43182         * tests/uninorm/test-decomposing-form.c: New file.
43183
43184         New module 'uninorm/decomposing-form'.
43185         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43186         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43187         Add 'decomposing_variant' field.
43188         * lib/uninorm/decomposing-form.c: New file.
43189         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43190         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43191         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43192         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43193         * modules/uninorm/decomposing-form: New file.
43194         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43195         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43196
43197 2009-03-07  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43200         strings.
43201
43202 2009-03-06  Bruno Haible  <bruno@clisp.org>
43203
43204         Tests for module 'uninorm/u32-normcmp'.
43205         * tests/uninorm/test-u32-normcmp.c: New file.
43206         * modules/uninorm/u32-normcmp-tests: New file.
43207
43208         Tests for module 'uninorm/u16-normcmp'.
43209         * tests/uninorm/test-u16-normcmp.c: New file.
43210         * modules/uninorm/u16-normcmp-tests: New file.
43211
43212         Tests for module 'uninorm/u8-normcmp'.
43213         * tests/uninorm/test-u8-normcmp.c: New file.
43214         * modules/uninorm/u8-normcmp-tests: New file.
43215
43216         New module 'uninorm/u32-normcmp'.
43217         * lib/uninorm/u32-normcmp.c: New file.
43218         * modules/uninorm/u32-normcmp: New file.
43219
43220         New module 'uninorm/u16-normcmp'.
43221         * lib/uninorm/u16-normcmp.c: New file.
43222         * modules/uninorm/u16-normcmp: New file.
43223
43224         New module 'uninorm/u8-normcmp'.
43225         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43226         declarations.
43227         * lib/uninorm/u8-normcmp.c: New file.
43228         * lib/uninorm/u-normcmp.h: New file.
43229         * modules/uninorm/u8-normcmp: New file.
43230
43231 2009-03-06  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43234         Reported by Eric Blake.
43235
43236 2009-03-06  Eric Blake  <ebb9@byu.net>
43237             Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43240         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43241         condition.
43242         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43243         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43244         condition.
43245         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43246
43247 2009-03-06  Eric Blake  <ebb9@byu.net>
43248
43249         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43250         to avoid compiler warnings.
43251         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43252
43253 2009-03-05  Bruno Haible  <bruno@clisp.org>
43254
43255         * tests/test-ftell.c (main): Disable test beyond end of file on
43256         FreeMiNT.
43257         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43258
43259 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43260
43261         * lib/filevercmp.c: Move hidden files up in ordering.
43262         * tests/test-filevercmp.c: Add tests for hidden files.
43263
43264 2009-03-04  Bruno Haible  <bruno@clisp.org>
43265
43266         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43267         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43268         AM_CFLAGS.
43269         Reported by Simon Josefsson.
43270
43271 2009-03-03  Bruno Haible  <bruno@clisp.org>
43272
43273         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43274         Reported by Simon Josefsson.
43275
43276         * doc/ld-version-script.texi: Update node reference.
43277
43278 2009-03-03  Bruno Haible  <bruno@clisp.org>
43279
43280         * modules/visibility (License): Change to 'unlimited'.
43281         Suggested by Simon Josefsson.
43282
43283 2009-03-03  Jim Meyering  <meyering@redhat.com>
43284
43285         unlinkdir: cannot_unlink_dir may modify process state
43286         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43287         it's neither thread-safe nor appropriate for use in a library.
43288
43289 2009-03-03  Eric Blake  <ebb9@byu.net>
43290
43291         test-closein: silence test under Darwin
43292         * tests/test-closein.sh: Ignore stderr from cat, since we don't
43293         care if it dies from EPIPE or EBADF.
43294
43295 2009-03-03  Bruno Haible  <bruno@clisp.org>
43296
43297         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43298         earlier.
43299         * doc/visibility.texi: Fix @node and @section.
43300
43301 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43302
43303         * doc/gnulib.texi: Link to sections for ld version script and
43304         visibility.
43305         * doc/visibility.texi: Add @node and @section.
43306         * modules/ld-version-script: New module.
43307         * m4/ld-version-script.m4: New file.
43308         * doc/ld-version-script.texi: New file.
43309
43310 2009-03-02  David Lutterkort  <lutter@redhat.com>
43311
43312         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43314
43315 2009-03-02  Bruno Haible  <bruno@clisp.org>
43316
43317         * doc/visibility.texi: Mention libtool's -export-symbols option.
43318
43319 2009-03-02  Jim Meyering  <meyering@redhat.com>
43320
43321         announce-gen: new option: --no-print-checksums
43322         * build-aux/announce-gen (usage): Describe it.
43323         (print_checksums): Print a newline here, not in the [*] footnote.
43324         (main): Honor it.
43325
43326 2009-03-01  Bruno Haible  <bruno@clisp.org>
43327
43328         Use socklen_t in the native Windows replacements prototypes.
43329         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43330         instead of 'int'.
43331         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43332         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43333         * modules/getsockopt (Depends-on): Add socklen.
43334         * modules/setsockopt (Depends-on): Add socklen.
43335
43336 2009-03-01  Bruno Haible  <bruno@clisp.org>
43337
43338         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43339         least 4.2.
43340
43341 2009-03-01  Eric Blake  <ebb9@byu.net>
43342             Bruno Haible  <bruno@clisp.org>
43343
43344         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43345         error messages.
43346         * lib/wait-process.c (wait_subprocess): Omit error message about
43347         deadly signal sent to the child of termsigp != NULL.
43348
43349 2009-03-01  Eric Blake  <ebb9@byu.net>
43350
43351         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43352
43353 2009-03-01  Bruno Haible  <bruno@clisp.org>
43354
43355         Avoid a gcc warning.
43356         * tests/test-sched.c (b): Make global.
43357         Reported by Eric Blake.
43358
43359 2009-01-19  Martin Lambers  <marlam@marlam.de>
43360
43361         Provide POSIX semantics for socket timeout options on W32.
43362         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43363         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43364         * modules/setsockopt: Depend on sys_time module for struct timeval.
43365         * modules/getsockopt: Depend on sys_time module for struct timeval.
43366
43367 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43368
43369         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43370         __USE_GNU, for consistency with netdb.in.h.
43371         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43372
43373 2009-03-01  Bruno Haible  <bruno@clisp.org>
43374
43375         More support for FreeMiNT.
43376         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43377         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43378
43379 2009-03-01  Bruno Haible  <bruno@clisp.org>
43380
43381         More support for FreeMiNT.
43382         * lib/fpurge.c (fpurge): Correct last commit.
43383         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43384
43385 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43386
43387         Fix unportable awk script in vc-list-files.
43388         * build-aux/vc-list-files: In the replacement awk script, use
43389         substr with a second argument of 1, not zero.
43390         Report by Simon Josefsson.
43391
43392 2009-02-28  Bruno Haible  <bruno@clisp.org>
43393
43394         More support for FreeMiNT.
43395         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43396         to FreeMiNT today.
43397         * lib/fwriting.c (fwriting): Likewise.
43398         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43399
43400 2009-02-28  Bruno Haible  <bruno@clisp.org>
43401
43402         * tests/test-freadseek.c (main): Disable test beyond end of file on
43403         FreeMiNT.
43404         * tests/test-ftello.c (main): Likewise.
43405         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43406
43407 2009-02-28  Bruno Haible  <bruno@clisp.org>
43408
43409         Add tentative support for FreeMiNT.
43410         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43411         * lib/fpurge.c (fpurge): Likewise.
43412         * lib/freadable.c (freadable): Likewise.
43413         * lib/freading.c (freading): Likewise.
43414         * lib/freadptr.c (freadptr): Likewise.
43415         * lib/freadseek.c (freadptrinc): Likewise.
43416         * lib/fseeko.c (rpl_fseeko): Likewise.
43417         * lib/fseterr.c (fseterr): Likewise.
43418         * lib/fwritable.c (fwritable): Likewise.
43419         * lib/fwriting.c (fwriting): Likewise.
43420         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43421         Hourihane.
43422         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43423
43424 2009-02-28  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43427         SIGCHLD.
43428         Reported by Jim Meyering.
43429
43430 2009-02-28  Bruno Haible  <bruno@clisp.org>
43431
43432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43433         Mention the results of these tests on various platforms.
43434         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43435         order.
43436         * doc/posix-functions/printf.texi: Likewise.
43437         * doc/posix-functions/snprintf.texi: Likewise.
43438         * doc/posix-functions/sprintf.texi: Likewise.
43439         * doc/posix-functions/vfprintf.texi: Likewise.
43440         * doc/posix-functions/vprintf.texi: Likewise.
43441         * doc/posix-functions/vsnprintf.texi: Likewise.
43442         * doc/posix-functions/vsprintf.texi: Likewise.
43443         * doc/glibc-functions/obstack_printf.texi: Likewise.
43444         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43445
43446 2009-02-28  Bruno Haible  <bruno@clisp.org>
43447
43448         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43449         Reported by Loïc Minier <lool@dooz.org>.
43450
43451 2009-02-27  Bruno Haible  <bruno@clisp.org>
43452
43453         * gnulib-tool (func_import): Make the sed expression used to create the
43454         sed script for updating the .gitignore file POSIX compliant.
43455         Reported by Eric Blake.
43456
43457 2009-02-27  Bruno Haible  <bruno@clisp.org>
43458
43459         * gnulib-tool (sed): Don't alias as "sed --posix".
43460         Reported by Eric Blake.
43461
43462 2009-02-27  Bruno Haible  <bruno@clisp.org>
43463
43464         Avoid test link errors.
43465         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43466         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43467         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43468         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43469         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43470
43471 2009-02-27  Bruno Haible  <bruno@clisp.org>
43472
43473         Avoid spurious "(cached)" in configure output.
43474         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43475         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43476         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43477         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43478         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43479         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43480         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43481         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43482         Reported by Eric Blake.
43483
43484 2009-02-27  Eric Blake  <ebb9@byu.net>
43485
43486         printf: fix regression in previous patch
43487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43488
43489 2009-02-27  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43492         value.
43493         * lib/stdint.in.h: Likewise.
43494         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43495
43496 2009-02-27  Eric Blake  <ebb9@byu.net>
43497
43498         doc: mention more functions added in cygwin 1.7.0
43499         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43500         addition.
43501         * doc/posix-functions/open_wmemstream.texi: Likewise.
43502         * doc/posix-functions/wcsnlen.texi: Likewise.
43503         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43504         * doc/posix-functions/wcstod.texi: Likewise.
43505         * doc/posix-functions/wcstof.texi: Likewise.
43506         * doc/posix-functions/wcstoimax.texi: Likewise.
43507         * doc/posix-functions/wcstok.texi: Likewise.
43508         * doc/posix-functions/wcstoumax.texi: Likewise.
43509
43510         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43512         * doc/posix-functions/fprintf.texi: Update.
43513         * doc/posix-functions/printf.texi: Update.
43514         * doc/posix-functions/snprintf.texi: Update.
43515         * doc/posix-functions/sprintf.texi: Update.
43516         * doc/posix-functions/vfprintf.texi: Update.
43517         * doc/posix-functions/vprintf.texi: Update.
43518         * doc/posix-functions/vsnprintf.texi: Update.
43519         * doc/posix-functions/vsprintf.texi: Update.
43520         * doc/glibc-functions/obstack_printf.texi: Update.
43521         * doc/glibc-functions/obstack_vprintf.texi: Update.
43522
43523 2009-02-26  Eric Blake  <ebb9@byu.net>
43524
43525         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43526         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43527         compilation bug by using runtime conversion.
43528         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43529         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43530         * modules/ceill-tests (Files): Use nan.h.
43531         * modules/floorl-tests (Files): Likewise.
43532         * modules/frexpl-tests (Files): Likewise.
43533         * modules/isnanl-tests (Files): Likewise.
43534         * modules/ldexpl-tests (Files): Likewise.
43535         * modules/roundl-tests (Files): Likewise.
43536         * modules/truncl-tests (Files): Likewise.
43537         * tests/test-ceill.c (main): Use a working NaN.
43538         * tests/test-floorl.c (main): Likewise.
43539         * tests/test-frexpl.c (main): Likewise.
43540         * tests/test-isnan.c (test_long_double): Likewise.
43541         * tests/test-isnanl.h (main): Likewise.
43542         * tests/test-ldexpl.h (main): Likewise.
43543         * tests/test-roundl.h (main): Likewise.
43544         * tests/test-truncl.h (main): Likewise.
43545         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43546
43547 2009-02-26  Eric Blake  <ebb9@byu.net>
43548             Bruno Haible  <bruno@clisp.org>
43549
43550         Work around a *printf bug with %ls on Solaris.
43551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43552         precision is specified, sprintf stops converting the wide string
43553         argument when the number of bytes that have been produced by this
43554         conversion equals or exceeds the precision.
43555         * doc/posix-functions/fprintf.texi: Update.
43556         * doc/posix-functions/printf.texi: Update.
43557         * doc/posix-functions/snprintf.texi: Update.
43558         * doc/posix-functions/sprintf.texi: Update.
43559         * doc/posix-functions/vfprintf.texi: Update.
43560         * doc/posix-functions/vprintf.texi: Update.
43561         * doc/posix-functions/vsnprintf.texi: Update.
43562         * doc/posix-functions/vsprintf.texi: Update.
43563         * doc/glibc-functions/obstack_printf.texi: Update.
43564         * doc/glibc-functions/obstack_vprintf.texi: Update.
43565
43566 2009-02-26  Eric Blake  <ebb9@byu.net>
43567
43568         stdlib: favor compiler check of random.h
43569         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43570         to avoid an ObjC random.h installed by Swarm.
43571
43572 2009-02-26  Bruno Haible  <bruno@clisp.org>
43573
43574         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43575         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43576         Reported by Gary V. Vaughan <gary@gnu.org>.
43577
43578 2009-02-26  Bruno Haible  <bruno@clisp.org>
43579
43580         Fix *printf behaviour regarding the %ls directive.
43581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43582         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43583         NEED_PRINTF_DIRECTIVE_LS.
43584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43585         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43587         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43588         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43589         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43590         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43591         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43595         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43599         * doc/posix-functions/fprintf.texi: Update.
43600         * doc/posix-functions/printf.texi: Update.
43601         * doc/posix-functions/snprintf.texi: Update.
43602         * doc/posix-functions/sprintf.texi: Update.
43603         * doc/posix-functions/vfprintf.texi: Update.
43604         * doc/posix-functions/vprintf.texi: Update.
43605         * doc/posix-functions/vsnprintf.texi: Update.
43606         * doc/posix-functions/vsprintf.texi: Update.
43607         * doc/glibc-functions/obstack_printf.texi: Update.
43608         * doc/glibc-functions/obstack_vprintf.texi: Update.
43609         Reported by Eric Blake.
43610
43611 2009-02-25  Bruno Haible  <bruno@clisp.org>
43612
43613         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43614         with known value.
43615         Reported by Gary V. Vaughan <gary@gnu.org>.
43616
43617 2009-02-25  Bruno Haible  <bruno@clisp.org>
43618
43619         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43620         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43621         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43622         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43623         Reported by Gary V. Vaughan <gary@gnu.org>.
43624
43625 2009-02-25  Bruno Haible  <bruno@clisp.org>
43626
43627         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43628         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43629         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43630         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43631         Reported by Gary V. Vaughan <gary@gnu.org>.
43632
43633 2009-02-25  Eric Blake  <ebb9@byu.net>
43634
43635         tests: skip fseek/ftell tests if ungetc is broken
43636         * m4/ungetc.m4: New file.
43637         * modules/fseek-tests: Split test, so ungetc dependency is
43638         separate from rest of test.
43639         * modules/fseeko-tests: Likewise.
43640         * modules/ftell-tests: Likewise.
43641         * modules/ftello-tests: Likewise.
43642         * tests/test-fseek.c (main): Isolate ungetc dependency.
43643         * tests/test-fseeko.c (main): Likewise.
43644         * tests/test-ftell.c (main): Likewise.
43645         * tests/test-ftello.c (main): Likewise.
43646         * tests/test-fseek2.sh: New file.
43647         * tests/test-fseeko2.sh: Likewise.
43648         * tests/test-ftell2.sh: Likewise.
43649         * tests/test-ftello2.sh: Likewise.
43650
43651 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43652
43653         test-getaddrinfo: fix usage of skip return code 77
43654         * tests/test-gettaddrinfo.c: Return skip code 77 only
43655         for first occurance of skip (4x77 is not 77)
43656
43657 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43658
43659         strtod: avoid C99 decl-after-statement
43660         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43661
43662 2009-02-24  Eric Blake  <ebb9@byu.net>
43663
43664         strtod: detect HP-UX 11.31 bug
43665         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43666         Reported by Gary V. Vaughan.
43667
43668 2009-02-23  Bruno Haible  <bruno@clisp.org>
43669
43670         Fix invalid read past end of memory block.
43671         * lib/vasnprintf.c (DCHAR_SET): Define.
43672         (local_wcslen): Define only when needed.
43673         (local_strnlen, local_wcsnlen): New functions.
43674         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43675         directives that involve a conversion ourselves.
43676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43677         wcsnlen, mbrtowc, wcrtomb.
43678         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43679         * tests/test-vasprintf-posix.c (test_function): Likewise.
43680         * tests/test-snprintf-posix.h (test_function): Likewise.
43681         * tests/test-sprintf-posix.h (test_function): Likewise.
43682         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43683
43684 2009-02-22  Bruno Haible  <bruno@clisp.org>
43685
43686         Implement new clarified decomposition of Hangul syllables.
43687         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43688         of type LTV, return only a pairwise decomposition.
43689         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43690         Likewise.
43691         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43692         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43693         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43694
43695 2009-02-22  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43698         zero-length results and shrink excess allocated memory.
43699         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43700         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43701         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43702         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43703         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43704         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43705         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43706         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43707         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43708         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43709         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43710         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43711
43712 2009-02-21  Bruno Haible  <bruno@clisp.org>
43713
43714         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43715         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43716         spaces after a period. Put a space between a macro name and its
43717         argument list. Trivial rewordings.
43718         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43719         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43720         (main): Return 0 explicitly.
43721
43722 2009-02-21  Bruno Haible  <bruno@clisp.org>
43723
43724         Tests for module 'uninorm/filter'.
43725         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43726         * modules/uninorm/filter-tests: New file.
43727
43728         New module 'uninorm/filter'.
43729         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43730         uninorm_filter_flush, uninorm_filter_free): New declarations.
43731         * lib/uninorm/uninorm-filter.c: New file.
43732         * modules/uninorm/filter: New file.
43733
43734 2009-02-21  Bruno Haible  <bruno@clisp.org>
43735
43736         Tests for module 'uninorm/nfkc'.
43737         * tests/uninorm/test-nfkc.c: New file.
43738         * tests/uninorm/test-u8-nfkc.c: New file.
43739         * tests/uninorm/test-u16-nfkc.c: New file.
43740         * tests/uninorm/test-u32-nfkc.c: New file.
43741         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43742         * tests/uninorm/test-u32-nfkc-big.c: New file.
43743         * modules/uninorm/nfkc-tests: New file.
43744
43745         New module 'uninorm/nfkc'.
43746         * lib/uninorm/nfkc.c: New file.
43747         * modules/uninorm/nfkc: New file.
43748
43749         Tests for module 'uninorm/nfkd'.
43750         * tests/uninorm/test-nfkd.c: New file.
43751         * tests/uninorm/test-u8-nfkd.c: New file.
43752         * tests/uninorm/test-u16-nfkd.c: New file.
43753         * tests/uninorm/test-u32-nfkd.c: New file.
43754         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43755         * tests/uninorm/test-u32-nfkd-big.c: New file.
43756         * modules/uninorm/nfkd-tests: New file.
43757
43758         New module 'uninorm/nfkd'.
43759         * lib/uninorm/nfkd.c: New file.
43760         * modules/uninorm/nfkd: New file.
43761
43762         Tests for module 'uninorm/nfc'.
43763         * tests/uninorm/test-nfc.c: New file.
43764         * tests/uninorm/test-u8-nfc.c: New file.
43765         * tests/uninorm/test-u16-nfc.c: New file.
43766         * tests/uninorm/test-u32-nfc.c: New file.
43767         * tests/uninorm/test-u32-nfc-big.sh: New file.
43768         * tests/uninorm/test-u32-nfc-big.c: New file.
43769         * modules/uninorm/nfc-tests: New file.
43770
43771         New module 'uninorm/nfc'.
43772         * lib/uninorm/nfc.c: New file.
43773         * modules/uninorm/nfc: New file.
43774
43775         Tests for module 'uninorm/nfd'.
43776         * tests/uninorm/test-nfd.c: New file.
43777         * tests/uninorm/test-u8-nfd.c: New file.
43778         * tests/uninorm/test-u16-nfd.c: New file.
43779         * tests/uninorm/test-u32-nfd.c: New file.
43780         * tests/uninorm/test-u32-nfd-big.sh: New file.
43781         * tests/uninorm/test-u32-nfd-big.c: New file.
43782         * tests/uninorm/test-u32-normalize-big.h: New file.
43783         * tests/uninorm/test-u32-normalize-big.c: New file.
43784         * tests/uninorm/NormalizationTest.txt: New file, created from
43785         Unicode 5.1.0 NormalizationTest.txt.
43786         * modules/uninorm/nfd-tests: New file.
43787
43788         New module 'uninorm/nfd'.
43789         * lib/uninorm/nfd.c: New file.
43790         * modules/uninorm/nfd: New file.
43791
43792         New module 'uninorm/u32-normalize'.
43793         * lib/uninorm/u32-normalize.c: New file.
43794         * modules/uninorm/u32-normalize: New file.
43795
43796         New module 'uninorm/u16-normalize'.
43797         * lib/uninorm/u16-normalize.c: New file.
43798         * modules/uninorm/u16-normalize: New file.
43799
43800         New module 'uninorm/u8-normalize'.
43801         * lib/uninorm/u8-normalize.c: New file.
43802         * lib/uninorm/normalize-internal.h: New file.
43803         * lib/uninorm/u-normalize-internal.h: New file.
43804         * modules/uninorm/u8-normalize: New file.
43805
43806         New module 'uninorm/decompose-internal'.
43807         * lib/uninorm/decompose-internal.c: New file.
43808         * modules/uninorm/decompose-internal: New file.
43809
43810         Tests for module 'uninorm/composition'.
43811         * tests/uninorm/test-composition.c: New file.
43812         * modules/uninorm/composition-tests: New file.
43813
43814         New module 'uninorm/composition'.
43815         * lib/uninorm/composition.c: New file.
43816         * lib/uninorm/composition-table.gperf: New file, generated by
43817         gen-uni-tables.
43818         * modules/uninorm/composition: New file.
43819
43820         Tests for module 'uninorm/compat-decomposition'.
43821         * tests/uninorm/test-compat-decomposition.c: New file.
43822         * modules/uninorm/compat-decomposition-tests: New file.
43823
43824         New module 'uninorm/compat-decomposition'.
43825         * lib/uninorm/decompose-internal.h: New file.
43826         * lib/uninorm/compat-decomposition.c: New file.
43827         * modules/uninorm/compat-decomposition: New file.
43828
43829         Tests for module 'uninorm/canonical-decomposition'.
43830         * tests/uninorm/test-canonical-decomposition.c: New file.
43831         * modules/uninorm/canonical-decomposition-tests: New file.
43832
43833         New module 'uninorm/canonical-decomposition'.
43834         * lib/uninorm/canonical-decomposition.c: New file.
43835         * modules/uninorm/canonical-decomposition: New file.
43836
43837         Tests for module 'uninorm/decomposition'.
43838         * tests/uninorm/test-decomposition.c: New file.
43839         * modules/uninorm/decomposition-tests: New file.
43840
43841         New module 'uninorm/decomposition'.
43842         * lib/uninorm/decomposition.c: New file.
43843         * modules/uninorm/decomposition: New file.
43844
43845         New module 'uninorm/decomposition-table'.
43846         * lib/uninorm/decomposition-table.h: New file.
43847         * lib/uninorm/decomposition-table.c: New file.
43848         * lib/uninorm/decomposition-table1.h: New file, generated by
43849         gen-uni-tables.
43850         * lib/uninorm/decomposition-table2.h: New file, generated by
43851         gen-uni-tables.
43852         * modules/uninorm/decomposition-table: New file.
43853
43854         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43855         (UC_DECOMP_*): New enumeration items.
43856         (get_decomposition): New function.
43857         (struct decomp_table): New type.
43858         (output_decomposition, output_decomposition_tables): New functions.
43859         (unicode_composition_exclusions): New variable.
43860         (fill_composition_exclusions, debug_output_composition_tables): New
43861         functions.
43862         (main): Accept one more argument. Invoke fill_composition_exclusions.
43863         Output decomposition and composition tables.
43864
43865         New module 'uninorm/base'.
43866         * lib/uninorm.h: New file.
43867         * lib/unictype.h: Update comment.
43868         * modules/uninorm/base: New file.
43869
43870 2009-02-21  David Lutterkort  <lutter@redhat.com>
43871
43872         Tests for module 'safe-alloc'.
43873         * tests/test-safe-alloc.c: New file.
43874         * modules/safe-alloc-tests: New file.
43875
43876         New module 'safe-alloc'.
43877         * lib/safe-alloc.h: New file.
43878         * lib/safe-alloc.c: New file.
43879         * m4/safe-alloc.m4: New file.
43880         * modules/safe-alloc: New file.
43881         * doc/safe-alloc.texi: New file.
43882         * doc/gnulib.texi: Include it.
43883         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43884         safe-alloc.
43885
43886 2009-02-18  Bruno Haible  <bruno@clisp.org>
43887
43888         Fix link error on non-glibc systems.
43889         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43890         variable.
43891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43892
43893 2009-02-18  Jim Meyering  <meyering@redhat.com>
43894
43895         fts: avoid used-uninitialized error due to recent change
43896         * lib/fts.c (fts_read): Guard uses of the new member,
43897         parent->fts_n_dirs_remaining, since it's not relevant for
43898         the parent of a directory specified on the command-line.
43899
43900 2009-02-17  James Youngman  <jay@gnu.org>
43901             Bruno Haible  <bruno@clisp.org>
43902
43903         * m4/include_next.m4: Reformulate comment.
43904
43905 2009-02-16  Jim Meyering  <meyering@redhat.com>
43906
43907         fts: add #if guards so that the fts_lgpl module still builds
43908         * lib/fts.c: Guard just-added hash-table-using parts with
43909         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43910         Reported by Simon Josefsson.
43911
43912 2009-02-15  Bruno Haible  <bruno@clisp.org>
43913
43914         * modules/array-mergesort-tests: New file.
43915         * tests/test-array-mergesort.c: New file.
43916
43917         New module 'array-mergesort'.
43918         * modules/array-mergesort: New file.
43919         * lib/array-mergesort.h: New file.
43920
43921 2009-02-15  Bruno Haible  <bruno@clisp.org>
43922
43923         Fix 2009-02-07 commit.
43924         * lib/gen-uni-tables.c (output_predicate, output_category,
43925         output_combclass, output_bidi_category, output_decimal_digit,
43926         output_digit, output_numeric, output_mirror, output_scripts,
43927         output_ident_category, output_simple_mapping): Fix format directives.
43928         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43929
43930 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43931
43932         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43933         fixes are available from IBM.
43934
43935 2009-02-13  Jim Meyering  <meyering@redhat.com>
43936
43937         fts: arrange not to stat non-directories in more cases
43938         This makes GNU find (when it doesn't need to stat each file)
43939         *much* more efficient at traversing reiserfs file systems.
43940         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43941         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43942         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43943         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43944         (leaf_optimization_applies): New function.
43945         (LCO_hash, LCO_compare): New helper functions.
43946         (link_count_optimize_ok): New function.
43947         (fts_stat): Initialize new member (if dir).
43948         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43949         we've just stat'ed a directory.  Skip the stat call when possible.
43950         ---
43951         Note this AFS-related exchange:
43952         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43953         and note find's pioctl call in find/fstype.c.
43954         But that is necessary only if you want to enable the
43955         optimization for AFS, and for now, I don't.
43956
43957         fts: move a function definition "up" (no semantic change)
43958         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43959         "up" to precede upcoming use of a related function.
43960
43961 2009-02-11  Jim Meyering  <meyering@redhat.com>
43962
43963         fts: correct internal computation of nlinks (optimization-related)
43964         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43965         whether the current entry is a directory, so don't test it.
43966
43967 2009-02-10  Bruno Haible  <bruno@clisp.org>
43968
43969         Tests for module 'uniwbrk/ulc-wordbreaks'.
43970         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43971         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43972         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43973
43974         Tests for module 'uniwbrk/u32-wordbreaks'.
43975         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43976         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43977
43978         Tests for module 'uniwbrk/u16-wordbreaks'.
43979         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43980         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43981
43982         Tests for module 'uniwbrk/u8-wordbreaks'.
43983         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43984         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43985
43986 2009-02-10  Bruno Haible  <bruno@clisp.org>
43987
43988         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43989         property.
43990         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43991         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43992         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43993
43994 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43995
43996         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43997         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43998
43999 2009-02-10  Bruno Haible  <bruno@clisp.org>
44000
44001         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
44002         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
44003         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
44004         * lib/unilbrk/u8-possible-linebreaks.c: Update.
44005         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
44006         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
44007
44008 2009-02-09  Simon Josefsson  <simon@josefsson.org>
44009
44010         * lib/sockets.h (gl_fd_to_handle): New function.
44011
44012         * tests/test-sockets.c: Call gl_fd_to_handle.
44013
44014 2009-02-09  Bruno Haible  <bruno@clisp.org>
44015
44016         * doc/havelib.texi: Document the conventions on bi-arch systems.
44017
44018 2009-02-08  Bruno Haible  <bruno@clisp.org>
44019
44020         Document the AC_LIB_LINKFLAGS macro.
44021         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44022         * doc/gnulib.texi: Include it.
44023
44024 2009-02-08  Bruno Haible  <bruno@clisp.org>
44025
44026         Fix wrong order of sections, compared to TOC.
44027         * doc/gnulib.texi: Include relocatable-maint.texi after the
44028         "Regular expressions" node, not before.
44029
44030 2009-02-08  Bruno Haible  <bruno@clisp.org>
44031
44032         Tests for module 'unicase/totitle'.
44033         * modules/unicase/totitle-tests: New file.
44034
44035         Tests for module 'unicase/tolower'.
44036         * modules/unicase/tolower-tests: New file.
44037
44038         Tests for module 'unicase/toupper'.
44039         * modules/unicase/toupper-tests: New file.
44040         * tests/unicase/test-mapping-part1.h: New file.
44041         * tests/unicase/test-mapping-part2.h: New file.
44042
44043         New module 'unicase/totitle'.
44044         * modules/unicase/totitle: New file.
44045         * lib/unicase/totitle.c: New file.
44046
44047         New module 'unicase/tolower'.
44048         * modules/unicase/tolower: New file.
44049         * lib/unicase/tolower.c: New file.
44050
44051         New module 'unicase/toupper'.
44052         * modules/unicase/toupper: New file.
44053         * lib/unicase/toupper.c: New file.
44054         * lib/unicase/simple-mapping.h: New file.
44055
44056         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44057         (mapping_table): New structure.
44058         (output_simple_mapping): New function.
44059         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44060         * modules/gen-uni-tables (Description): Update.
44061         * lib/unicase/toupper.h: New file, automatically generated by
44062         gen-uni-tables.
44063         * lib/unicase/tolower.h: New file, automatically generated by
44064         gen-uni-tables.
44065         * lib/unicase/totitle.h: New file, automatically generated by
44066         gen-uni-tables.
44067         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44068         gen-uni-tables.
44069         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44070         gen-uni-tables.
44071         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44072         gen-uni-tables.
44073
44074         New module 'unicase/base'.
44075         * modules/unicase/base: New file.
44076         * lib/unicase.h: New file.
44077
44078 2009-02-08  Bruno Haible  <bruno@clisp.org>
44079
44080         New module 'uniwbrk/ulc-wordbreaks'.
44081         * modules/uniwbrk/ulc-wordbreaks: New file.
44082         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44083
44084         New module 'uniwbrk/u32-wordbreaks'.
44085         * modules/uniwbrk/u32-wordbreaks: New file.
44086         * lib/uniwbrk/u32-wordbreaks.c: New file.
44087
44088         New module 'uniwbrk/u16-wordbreaks'.
44089         * modules/uniwbrk/u16-wordbreaks: New file.
44090         * lib/uniwbrk/u16-wordbreaks.c: New file.
44091
44092         New module 'uniwbrk/u8-wordbreaks'.
44093         * modules/uniwbrk/u8-wordbreaks: New file.
44094         * lib/uniwbrk/u8-wordbreaks.c: New file.
44095         * lib/uniwbrk/u-wordbreaks.h: New file.
44096
44097         New module 'uniwbrk/table'.
44098         * modules/uniwbrk/table: New file.
44099         * lib/uniwbrk/wbrktable.h: New file.
44100         * lib/uniwbrk/wbrktable.c: New file.
44101
44102         New module 'uniwbrk/wordbreak-property'.
44103         * modules/uniwbrk/wordbreak-property: New file.
44104         * lib/uniwbrk/wordbreak-property.c: New file.
44105
44106         * lib/gen-uni-tables.c (WBP_*): New enum items.
44107         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44108         (unicode_org_wbp): New variable.
44109         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44110         New functions.
44111         (wbp_table): New structure.
44112         (output_wbp, output_wbrk_tables): New functions.
44113         (main): Accept additional argument. Invoke fill_org_wbp,
44114         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44115         output_wbrk_tables.
44116         * modules/gen-uni-tables (Description): Update.
44117         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44118         gen-uni-tables.
44119
44120         New module 'uniwbrk/base'.
44121         * modules/uniwbrk/base: New file.
44122         * lib/uniwbrk.h: New file.
44123
44124 2009-02-08  Bruno Haible  <bruno@clisp.org>
44125
44126         Update to Unicode 5.1.0.
44127         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44128         U+2185..U+2188.
44129         (is_property_default_ignorable_code_point): Don't include characters
44130         of category Cc or Cs and not-a-characters.
44131         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44132         U+0D79, U+109E, U+109F, U+A60C.
44133         * lib/unictype/bidi_of.h: Regenerated.
44134         * lib/unictype/blocks.h: Regenerated.
44135         * lib/unictype/categ_C.h: Regenerated.
44136         * lib/unictype/categ_Cf.h: Regenerated.
44137         * lib/unictype/categ_Cn.h: Regenerated.
44138         * lib/unictype/categ_L.h: Regenerated.
44139         * lib/unictype/categ_Ll.h: Regenerated.
44140         * lib/unictype/categ_Lm.h: Regenerated.
44141         * lib/unictype/categ_Lo.h: Regenerated.
44142         * lib/unictype/categ_Lu.h: Regenerated.
44143         * lib/unictype/categ_M.h: Regenerated.
44144         * lib/unictype/categ_Mc.h: Regenerated.
44145         * lib/unictype/categ_Me.h: Regenerated.
44146         * lib/unictype/categ_Mn.h: Regenerated.
44147         * lib/unictype/categ_N.h: Regenerated.
44148         * lib/unictype/categ_Nd.h: Regenerated.
44149         * lib/unictype/categ_Nl.h: Regenerated.
44150         * lib/unictype/categ_No.h: Regenerated.
44151         * lib/unictype/categ_P.h: Regenerated.
44152         * lib/unictype/categ_Pd.h: Regenerated.
44153         * lib/unictype/categ_Pe.h: Regenerated.
44154         * lib/unictype/categ_Pf.h: Regenerated.
44155         * lib/unictype/categ_Pi.h: Regenerated.
44156         * lib/unictype/categ_Po.h: Regenerated.
44157         * lib/unictype/categ_Ps.h: Regenerated.
44158         * lib/unictype/categ_S.h: Regenerated.
44159         * lib/unictype/categ_Sk.h: Regenerated.
44160         * lib/unictype/categ_Sm.h: Regenerated.
44161         * lib/unictype/categ_So.h: Regenerated.
44162         * lib/unictype/categ_of.h: Regenerated.
44163         * lib/unictype/combining.h: Regenerated.
44164         * lib/unictype/ctype_alnum.h: Regenerated.
44165         * lib/unictype/ctype_alpha.h: Regenerated.
44166         * lib/unictype/ctype_graph.h: Regenerated.
44167         * lib/unictype/ctype_lower.h: Regenerated.
44168         * lib/unictype/ctype_print.h: Regenerated.
44169         * lib/unictype/ctype_punct.h: Regenerated.
44170         * lib/unictype/ctype_upper.h: Regenerated.
44171         * lib/unictype/decdigit.h: Regenerated.
44172         * lib/unictype/digit.h: Regenerated.
44173         * lib/unictype/mirror.h: Regenerated.
44174         * lib/unictype/numeric.h: Regenerated.
44175         * lib/unictype/pr_alphabetic.h: Regenerated.
44176         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44177         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44178         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44179         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44180         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44181         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44182         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44183         * lib/unictype/pr_combining.h: Regenerated.
44184         * lib/unictype/pr_dash.h: Regenerated.
44185         * lib/unictype/pr_decimal_digit.h: Regenerated.
44186         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44187         * lib/unictype/pr_deprecated.h: Regenerated.
44188         * lib/unictype/pr_diacritic.h: Regenerated.
44189         * lib/unictype/pr_extender.h: Regenerated.
44190         * lib/unictype/pr_format_control.h: Regenerated.
44191         * lib/unictype/pr_grapheme_base.h: Regenerated.
44192         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44193         * lib/unictype/pr_grapheme_link.h: Regenerated.
44194         * lib/unictype/pr_id_continue.h: Regenerated.
44195         * lib/unictype/pr_id_start.h: Regenerated.
44196         * lib/unictype/pr_ideographic.h: Regenerated.
44197         * lib/unictype/pr_ignorable_control.h: Regenerated.
44198         * lib/unictype/pr_lowercase.h: Regenerated.
44199         * lib/unictype/pr_math.h: Regenerated.
44200         * lib/unictype/pr_numeric.h: Regenerated.
44201         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44202         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44203         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44204         * lib/unictype/pr_other_id_continue.h: Regenerated.
44205         * lib/unictype/pr_other_lowercase.h: Regenerated.
44206         * lib/unictype/pr_other_math.h: Regenerated.
44207         * lib/unictype/pr_punctuation.h: Regenerated.
44208         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44209         * lib/unictype/pr_soft_dotted.h: Regenerated.
44210         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44211         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44212         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44213         * lib/unictype/pr_uppercase.h: Regenerated.
44214         * lib/unictype/pr_xid_continue.h: Regenerated.
44215         * lib/unictype/pr_xid_start.h: Regenerated.
44216         * lib/unictype/pr_zero_width.h: Regenerated.
44217         * lib/unictype/scripts.h: Regenerated.
44218         * lib/unictype/scripts_byname.gperf: Regenerated.
44219         * lib/unictype/sy_java_ident.h: Regenerated.
44220         * lib/unilbrk/lbrkprop1.h: Regenerated.
44221         * lib/unilbrk/lbrkprop2.h: Regenerated.
44222         * tests/unictype/test-categ_C.c: Regenerated.
44223         * tests/unictype/test-categ_Cf.c: Regenerated.
44224         * tests/unictype/test-categ_Cn.c: Regenerated.
44225         * tests/unictype/test-categ_L.c: Regenerated.
44226         * tests/unictype/test-categ_Ll.c: Regenerated.
44227         * tests/unictype/test-categ_Lm.c: Regenerated.
44228         * tests/unictype/test-categ_Lo.c: Regenerated.
44229         * tests/unictype/test-categ_Lu.c: Regenerated.
44230         * tests/unictype/test-categ_M.c: Regenerated.
44231         * tests/unictype/test-categ_Mc.c: Regenerated.
44232         * tests/unictype/test-categ_Me.c: Regenerated.
44233         * tests/unictype/test-categ_Mn.c: Regenerated.
44234         * tests/unictype/test-categ_N.c: Regenerated.
44235         * tests/unictype/test-categ_Nd.c: Regenerated.
44236         * tests/unictype/test-categ_Nl.c: Regenerated.
44237         * tests/unictype/test-categ_No.c: Regenerated.
44238         * tests/unictype/test-categ_P.c: Regenerated.
44239         * tests/unictype/test-categ_Pd.c: Regenerated.
44240         * tests/unictype/test-categ_Pe.c: Regenerated.
44241         * tests/unictype/test-categ_Pf.c: Regenerated.
44242         * tests/unictype/test-categ_Pi.c: Regenerated.
44243         * tests/unictype/test-categ_Po.c: Regenerated.
44244         * tests/unictype/test-categ_Ps.c: Regenerated.
44245         * tests/unictype/test-categ_S.c: Regenerated.
44246         * tests/unictype/test-categ_Sk.c: Regenerated.
44247         * tests/unictype/test-categ_Sm.c: Regenerated.
44248         * tests/unictype/test-categ_So.c: Regenerated.
44249         * tests/unictype/test-ctype_alnum.c: Regenerated.
44250         * tests/unictype/test-ctype_alpha.c: Regenerated.
44251         * tests/unictype/test-ctype_graph.c: Regenerated.
44252         * tests/unictype/test-ctype_lower.c: Regenerated.
44253         * tests/unictype/test-ctype_print.c: Regenerated.
44254         * tests/unictype/test-ctype_punct.c: Regenerated.
44255         * tests/unictype/test-ctype_upper.c: Regenerated.
44256         * tests/unictype/test-decdigit.h: Regenerated.
44257         * tests/unictype/test-digit.h: Regenerated.
44258         * tests/unictype/test-numeric.h: Regenerated.
44259         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44260         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44261         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44262         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44263         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44264         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44265         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44266         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44267         * tests/unictype/test-pr_combining.c: Regenerated.
44268         * tests/unictype/test-pr_dash.c: Regenerated.
44269         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44270         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44271         * tests/unictype/test-pr_deprecated.c: Regenerated.
44272         * tests/unictype/test-pr_diacritic.c: Regenerated.
44273         * tests/unictype/test-pr_extender.c: Regenerated.
44274         * tests/unictype/test-pr_format_control.c: Regenerated.
44275         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44276         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44277         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44278         * tests/unictype/test-pr_id_continue.c: Regenerated.
44279         * tests/unictype/test-pr_id_start.c: Regenerated.
44280         * tests/unictype/test-pr_ideographic.c: Regenerated.
44281         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44282         * tests/unictype/test-pr_lowercase.c: Regenerated.
44283         * tests/unictype/test-pr_math.c: Regenerated.
44284         * tests/unictype/test-pr_numeric.c: Regenerated.
44285         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44286         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44287         Regenerated.
44288         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
44289         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
44290         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
44291         * tests/unictype/test-pr_other_math.c: Regenerated.
44292         * tests/unictype/test-pr_punctuation.c: Regenerated.
44293         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
44294         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
44295         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44296         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44297         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44298         * tests/unictype/test-pr_uppercase.c: Regenerated.
44299         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44300         * tests/unictype/test-pr_xid_start.c: Regenerated.
44301         * tests/unictype/test-pr_zero_width.c: Regenerated.
44302
44303         Update to Unicode 5.1.0.
44304         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44305         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44306         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44307         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44308         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44309         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44310         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44311         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44312         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44313         (nonspacing_table_ind): Update.
44314         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44315
44316         Update to Unicode 5.1.0.
44317         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44318         code transform.
44319         * lib/uniname/uniname.c (unicode_character_name,
44320         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44321         * lib/uniname/uninames.h: Regenerated.
44322         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44323
44324 2009-02-07  Bruno Haible  <bruno@clisp.org>
44325
44326         Merge gen-ctype and gen-lbrk into a single program.
44327         * lib/gen-uni-tables.c: New file, incorporating
44328         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44329         Add directory prefixes to the names of the generated files.
44330         * lib/unictype/gen-ctype.c: Remove file.
44331         * lib/unilbrk/gen-lbrk.c: Remove file.
44332         * modules/gen-uni-tables: New file.
44333         * modules/unictype/gen-ctype: Remove file.
44334         * modules/unilbrk/gen-lbrk: Remove file.
44335
44336 2009-02-07  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44339
44340         New module 'unistr/u32-strcoll'.
44341         * modules/unistr/u32-strcoll: New file.
44342         * lib/unistr/u32-strcoll.c: New file.
44343
44344         New module 'unistr/u16-strcoll'.
44345         * modules/unistr/u16-strcoll: New file.
44346         * lib/unistr/u16-strcoll.c: New file.
44347
44348         New module 'unistr/u8-strcoll'.
44349         * modules/unistr/u8-strcoll: New file.
44350         * lib/unistr/u8-strcoll.c: New file.
44351         * lib/unistr/u-strcoll.h: New file.
44352
44353 2009-02-07  Bruno Haible  <bruno@clisp.org>
44354
44355         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44356         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44357         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44358         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44359         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44360         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44361
44362 2009-02-07  Bruno Haible  <bruno@clisp.org>
44363
44364         Make 64-bit clean.
44365         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44366         output_combclass, output_bidi_category, output_decimal_digit,
44367         output_digit, output_numeric, output_mirror, output_scripts,
44368         output_ident_category): Use proper width specifier in format strings.
44369
44370 2009-02-07  Bruno Haible  <bruno@clisp.org>
44371
44372         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44373         failure behaviour.
44374
44375 2009-02-07  Jim Meyering  <meyering@redhat.com>
44376
44377         regex: avoid compilation failure with upcoming gcc-4.4
44378         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44379         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44380         "... error: integer overflow in preprocessor expression".
44381
44382 2009-02-05  Ben Pfaff  <blp@gnu.org>
44383
44384         Fix link errors on Windows when close module is used.
44385         * modules/close: Add $(LIB_CLOSE) to Link section.
44386         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44387         $(LIB_CLOSE) on Windows.
44388
44389 2009-02-05  Jim Meyering  <meyering@redhat.com>
44390
44391         still avoid unused-parameter warnings, but do it cleanly
44392         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44393         (get_fs_usage): Cast to void instead.
44394         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44395         (dev_from_mount_options, read_file_system_list): Cast to void.
44396         Prompted by Bruno Haible.
44397
44398 2009-02-04  Jim Meyering  <meyering@redhat.com>
44399
44400         fsusage.c: correct copyright year
44401         * lib/fsusage.c: Reflect year in which the change is pushed into
44402
44403         avoid misc. warnings
44404         * lib/fsusage.c (UNUSED_PARAM): Define.
44405         (get_fs_usage): Mark parameter "disk" as unused.
44406         * lib/getugroups.c (getgrent): Use "void" in prototype.
44407         * lib/mountlist.c: Mark unused parameters.
44408         (read_file_system_list): Declare a local with "const".
44409         * lib/nanosleep.c (getnow): Declare static.
44410         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44411
44412         dirfd: set errno upon failure
44413         * lib/dirfd.c: Include <errno.h>.
44414         Set errno to ENOTSUP when returning -1.
44415         * modules/dirfd (Depends-on): Add errno.
44416         Suggested by John Kodis <kodis@comcast.net>.
44417
44418 2009-02-01  Bruno Haible  <bruno@clisp.org>
44419
44420         Don't assume sizeof (long) >= sizeof (void *).
44421         * lib/memcmp.c: Include stdint.h.
44422         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44423         srcp2 to 'const byte *'.
44424         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44425         types to uintptr_t.
44426         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44427         * modules/memcmp (Depends-on): Add stdint.
44428         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44429
44430 2009-01-30  Eric Blake  <ebb9@byu.net>
44431
44432         fix more require-before-expand issues
44433         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44434         expand, AC_PROG_AWK.
44435         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44436
44437 2009-01-28  Eric Blake  <ebb9@byu.net>
44438
44439         version-etc: use consistent URL formatting
44440         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44441         Improve formatting.  Use fputs for string without %.
44442
44443 2009-01-28  Jim Meyering  <meyering@redhat.com>
44444
44445         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44446         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44447         "underquoted definition of NAME" from autoconf-2.59.
44448
44449 2009-01-28  Bruno Haible  <bruno@clisp.org>
44450
44451         * doc/gnulib.texi: Add "Obsolete modules" to index.
44452
44453 2009-01-28  Jim Meyering  <meyering@redhat.com>
44454
44455         useless-if-before-free: recognize more variants
44456         * build-aux/useless-if-before-free: Also recognize e.g.,
44457         if (NULL != p) free (p);
44458
44459 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44460
44461         test-getaddrinfo: skip (don't fail) this test when there's no network
44462         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44463         on the presumption that it means you lack network access.
44464
44465 2009-01-26  Jim Meyering  <meyering@redhat.com>
44466
44467         fflush: avoid warnings on modern systems
44468         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44469         pos and result, into scopes where they're used.
44470
44471 2009-01-26  Eric Blake  <ebb9@byu.net>
44472
44473         Silence warning reintroduced by recent extensions patch.
44474         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44475         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44476         autoconf.
44477
44478         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44479         * m4/00gnulib.m4: New file.
44480         * gnulib-tool (func_get_filelist): Always use it.
44481         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44482         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44483
44484 2009-01-25  Bruno Haible  <bruno@clisp.org>
44485
44486         Make test-quotearg work on MacOS X and AIX.
44487         * tests/test-quotearg.sh: New file.
44488         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44489         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44490         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44491         include <libintl.h>.
44492         (fake_locale): Remove variable.
44493         (gettext, dgettext, dcgettext): Remove functions.
44494         (main): Instead of setting a fake locale, set a real locale. Call
44495         textdomain and bindtextdomain.
44496         * modules/quotearg-tests (Files): Add the new files.
44497         (Depends-on): Add gettext, setenv, unsetenv.
44498         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44499         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44500         Augment TESTS_ENVIRONMENT.
44501
44502 2009-01-25  Bruno Haible  <bruno@clisp.org>
44503
44504         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44505         fr_FR.ISO8859-1 locale on MacOS X.
44506         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44507         ja_JP.eucJP locale on MacOS X.
44508         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44509         zh_CN.GB18030 locale on MacOS X.
44510
44511 2009-01-25  Bruno Haible  <bruno@clisp.org>
44512
44513         Avoid link errors on MacOS X 10.3.
44514         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44515         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44516
44517 2009-01-25  Bruno Haible  <bruno@clisp.org>
44518
44519         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44520         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44521         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44522         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44523         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44524         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44525         posix_spawnattr_init, posix_spawnattr_setsigmask,
44526         posix_spawnattr_setflags, posix_spawnattr_destroy.
44527
44528         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44529         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44530         * modules/execute (Files): Remove m4/posix_spawn.m4.
44531         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44532         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44533         posix_spawnattr_init, posix_spawnattr_setsigmask,
44534         posix_spawnattr_setflags, posix_spawnattr_destroy.
44535
44536 2009-01-25  Bruno Haible  <bruno@clisp.org>
44537
44538         * lib/glthread/threadlib.c: Include <stdlib.h>.
44539
44540 2009-01-25  Bruno Haible  <bruno@clisp.org>
44541
44542         * lib/glthread/threadlib.c (dummy): New declaration.
44543
44544 2009-01-25  Bruno Haible  <bruno@clisp.org>
44545
44546         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44547         multibyte characters also for the GB18030 encoding. Don't crash when
44548         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44549
44550 2009-01-25  Bruno Haible  <bruno@clisp.org>
44551
44552         Avoid redefining 'struct random_data' on OSF/1 5.1.
44553         * lib/stdlib.in.h: Include <random.h> if it exists.
44554         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44555         HAVE_RANDOM_H. Include <random.h> when testing whether
44556         'struct random_data' exists.
44557         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44558
44559 2009-01-25  Bruno Haible  <bruno@clisp.org>
44560
44561         Don't install charset.alias on MacOS X >= 10.3.
44562         * lib/localcharset.c (DARWIN7): New macro.
44563         (get_charset_aliases): Hardcode the result for Darwin7.
44564         * modules/localcharset (install-exec-local): Don't install
44565         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44566
44567 2009-01-25  Bruno Haible  <bruno@clisp.org>
44568
44569         Don't install charset.alias on mingw and Cygwin.
44570         * modules/localcharset (install-exec-local): Don't install
44571         charset.alias on mingw and Cygwin, if the file does not yet exist.
44572         The result for these platforms is hardcoded in localcharset.c.
44573
44574 2009-01-25  Bruno Haible  <bruno@clisp.org>
44575
44576         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44578         before requiring AC_USE_SYSTEM_EXTENSIONS.
44579
44580 2009-01-25  Jim Meyering  <meyering@redhat.com>
44581
44582         c-strtod: avoid warnings
44583         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44584         "assignment discards qualifiers from pointer target type" warnings.
44585
44586 2009-01-24  Bruno Haible  <bruno@clisp.org>
44587
44588         Add support for non-UTF-8 locales on MacOS X.
44589         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44590         canonical encodings. For Darwin 7 and newer, don't map traditional
44591         encodings to UTF-8.
44592         Reported by Vincent Lefevre <vincent@vinc17.org>
44593         at <http://savannah.gnu.org/bugs/?25235>.
44594
44595 2009-01-24  Bruno Haible  <bruno@clisp.org>
44596
44597         * doc/gnulib.texi (Obsolete modules): New section.
44598         Reported by Mike Frysinger <vapier@gentoo.org>.
44599
44600 2009-01-24  Bruno Haible  <bruno@clisp.org>
44601
44602         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44603         (%.dvi): New rule.
44604
44605 2009-01-24  Bruno Haible  <bruno@clisp.org>
44606
44607         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44608         Reported by Eric Blake.
44609
44610 2009-01-24  Bruno Haible  <bruno@clisp.org>
44611
44612         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44613         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44614         Reported by Gary V. Vaughan <gary@gnu.org>.
44615
44616 2009-01-24  Bruno Haible  <bruno@clisp.org>
44617
44618         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44619
44620 2009-01-23  Bruno Haible  <bruno@clisp.org>
44621
44622         Make c-strtod, c-strtold usable in libraries.
44623         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44624         (C_STRTOD): Call strdup instead of xstrdup.
44625         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44626         * modules/c-strtold (Depends-on): Likewise.
44627         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44628         * NEWS: Mention the change.
44629         Reported by Michael Gold <mgold@ncf.ca>.
44630
44631 2009-01-23  Jim Meyering  <meyering@redhat.com>
44632
44633         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44634         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44635         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44636
44637 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44638
44639         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44640         GNU CoreUtils.
44641         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44642         * modules/version-etc (Description): Update.
44643
44644 2009-01-22  Bruno Haible  <bruno@clisp.org>
44645
44646         Cache the C locale object.
44647         * lib/c-strtod.c (c_locale_cache): New variable.
44648         (c_locale): New function.
44649         (C_STRTOD): Use it, and don't call freelocale.
44650         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44651         Suggested by Paolo Bonzini.
44652
44653 2009-01-21  Bruno Haible  <bruno@clisp.org>
44654
44655         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44656         conditions other than overflow.
44657
44658 2009-01-21  Bruno Haible  <bruno@clisp.org>
44659
44660         * lib/c-strtod.c: Include errno.h.
44661         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44662         value from STRTOD_L and STRTOD.
44663
44664 2009-01-21  Bruno Haible  <bruno@clisp.org>
44665         and Jim Meyering  <meyering@redhat.com>
44666
44667         nanosleep: skip configure test (fail it) for apple universal builds
44668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44669         universal builds, assume that nanosleep does not work.
44670         * modules/nanosleep (Depends-on): Add multiarch.
44671
44672         mktime: skip configure test (fail it) for apple universal builds
44673         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44674         universal builds, assume that mktime does not work.
44675         * modules/mktime (Depends-on): Add multiarch.
44676
44677 2009-01-21  Eric Blake  <ebb9@byu.net>
44678
44679         multiarch: avoid expand-before-require warning
44680         * modules/multiarch (configure.ac): Require, rather than expand,
44681         gl_MULTIARCH.
44682         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44683         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44684         enforce that all clients require it.  Partial reversion of
44685         2008-12-29 patch.
44686
44687         error: avoid expand-before-require warning
44688         * modules/errno (configure.ac): Require, rather than expand,
44689         gl_HEADER_ERRNO_H.
44690         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44691         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44692         enforce that all clients require it.
44693
44694         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44695         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44696         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44697         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44698
44699 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44700
44701         Revert:
44702         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44703
44704         regex: do not depend on obsolete modules.
44705         * modules/regex: Remove memcmp and memmove.
44706
44707 2009-01-20  Bruno Haible  <bruno@clisp.org>
44708
44709         Make the 'link' module link on Windows NT 4.
44710         * lib/link.c (_WIN32_WINNT): Don't define.
44711         (CreateHardLinkFuncType): New type.
44712         (CreateHardLinkFunc, initialized): New variables.
44713         (initialize): New function.
44714         (link): Invoke CreateHardLink indirectly through the function pointer.
44715
44716 2009-01-20  Bruno Haible  <bruno@clisp.org>
44717
44718         Fix compilation failure on mingw.
44719         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44720
44721 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44722
44723         * doc/c-strtod.texi: Mention a couple of restrictions.
44724
44725 2009-01-20  Jim Meyering  <meyering@redhat.com>
44726
44727         gettimeofday: move more declarations out of functions
44728         * lib/gettimeofday.c: Move extern declarations of tzset and
44729         gmtime out of containing functions.  Prompted by Bruno Haible.
44730
44731 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44732
44733         regex: do not depend on obsolete modules.
44734         * modules/regex: Remove memcmp and memmove.
44735
44736 2009-01-19  Bruno Haible  <bruno@clisp.org>
44737
44738         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44739         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44740         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44741         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44742         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44743
44744 2009-01-19  Bruno Haible  <bruno@clisp.org>
44745
44746         * tests/test-link.c: Include <errno.h>.
44747         (main): Exit with code 77 when a hard link cannot be created due to
44748         the file system.
44749         * tests/test-link.sh: Skip test when a hard link cannot be created due
44750         to the file system.
44751         Suggested by Eric Blake.
44752
44753 2009-01-19  Martin Lambers  <marlam@marlam.de>
44754
44755         * modules/link-tests: New file.
44756         * tests/test-link.sh: New file.
44757         * tests/test-link.c: New file.
44758
44759 2009-01-19  Eric Blake  <ebb9@byu.net>
44760
44761         doc: mention another function added in cygwin 1.7.0
44762         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44763         Another new function in cygwin 1.7.
44764
44765 2009-01-19  Bruno Haible  <bruno@clisp.org>
44766
44767         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44768         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44769         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44770         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44771         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44772         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44773         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44774         * m4/md4.m4 (gl_MD4): Likewise.
44775         * m4/md5.m4 (gl_MD5): Likewise.
44776         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44777         * m4/sha1.m4 (gl_SHA1): Likewise.
44778         * m4/sha256.m4 (gl_SHA256): Likewise.
44779         * m4/sha512.m4 (gl_SHA512): Likewise.
44780
44781 2009-01-19  Bruno Haible  <bruno@clisp.org>
44782
44783         * modules/uniname/uniname-tests (Depends-on): Add progname.
44784         * tests/uniname/test-uninames.c: Include progname.h.
44785         (main): Call set_program_name.
44786
44787         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44788         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44789         (main): Call set_program_name.
44790
44791         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44792         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44793         (main): Call set_program_name.
44794
44795         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44796         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44797         (main): Call set_program_name.
44798
44799         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44800         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44801         (main): Call set_program_name.
44802
44803         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44804         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44805         (main): Call set_program_name.
44806
44807         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44808         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44809         (main): Call set_program_name.
44810
44811         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44812         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44813         (main): Call set_program_name.
44814
44815         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44816         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44817         (main): Call set_program_name.
44818
44819 2009-01-19  Eric Blake  <ebb9@byu.net>
44820
44821         test-unistd: test previous patch
44822         * tests/test-unistd.c: Test *_FILENO macros.
44823
44824         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44825         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44826         Guarantee a definition.
44827         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44828         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44829         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44830         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44831         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44832         Likewise.
44833         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44834         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44835         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44836         Likewise.
44837         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44838         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44839         (STDERR_FILENO): Likewise.
44840         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44841         (STDERR_FILENO): Likewise.
44842         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44843         (STDERR_FILENO): Likewise.
44844         Reported by Elbert Pol.
44845
44846 2009-01-19  Eric Blake  <ebb9@byu.net>
44847
44848         doc: mention more functions added in cygwin 1.7.0
44849         * doc/posix-functions/abort.texi (abort): Update wording related
44850         to cygwin.
44851         * doc/posix-functions/daylight.texi (daylight): Likewise.
44852         * doc/posix-functions/optarg.texi (optarg): Likewise.
44853         * doc/posix-functions/optarg.texi (opterr): Likewise.
44854         * doc/posix-functions/optarg.texi (optind): Likewise.
44855         * doc/posix-functions/optarg.texi (optopt): Likewise.
44856         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44857         worked in 1.5.x, and was withdrawn in 1.7.
44858         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44859         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44860         cygwin versions.
44861         * doc/posix-functions/perror.texi (perror): Likewise.
44862         * doc/posix-functions/printf.texi (printf): Likewise.
44863         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44864         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44865         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44866         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44867         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44868         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44869         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44870         Likewise.
44871         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44872         Likewise.
44873         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44874         this function.
44875         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44876         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44877         Likewise.
44878         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44879         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44880         * doc/posix-functions/confstr.texi (confstr): Likewise.
44881         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44882         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44883         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44884         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44885         * doc/posix-functions/fputws.texi (fputws): Likewise.
44886         * doc/posix-functions/fwide.texi (fwide): Likewise.
44887         * doc/posix-functions/getwc.texi (getwc): Likewise.
44888         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44889         * doc/posix-functions/putwc.texi (putwc): Likewise.
44890         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44891         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44892         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44893         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44894         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44895         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44896         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44897         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44898         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44899         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44900         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44901
44902 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44903
44904         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44905         * lib/ioctl.c: Include <sys/ioctl.h>.
44906
44907 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44908
44909         * modules/getdate-tests (Depends-on): Add progname.
44910         * tests/test-getdate.c: Use progname module, to avoid link errors
44911         on non-glibc systems.
44912
44913 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44914
44915         * modules/filenamecat-tests (Depends-on): Add progname.
44916         * modules/fstrcmp-tests (Depends-on): Likewise.
44917
44918         * tests/test-filenamecat.c: Use progname module, to avoid link
44919         errors on non-glibc systems.
44920         * tests/test-fstrcmp.c: Likewise.
44921
44922 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44923
44924         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44925         * lib/gettimeofday.c: Move extern declaration out of function.
44926
44927 2009-01-18  Bruno Haible  <bruno@clisp.org>
44928
44929         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44930         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44931         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44932
44933 2009-01-18  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/strftime.c (MEMPCPY): Remove unused macro.
44936         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44937
44938 2009-01-18  Martin Lambers  <marlam@marlam.de>
44939
44940         New module 'link'.
44941         * lib/unistd.in.h (link): New declaration.
44942         * lib/link.c: New file.
44943         * m4/link.m4: New file.
44944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44945         HAVE_LINK.
44946         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44947         * modules/link: New file.
44948         * doc/posix-functions/link.texi: Mention the new module.
44949
44950 2009-01-18  Bruno Haible  <bruno@clisp.org>
44951
44952         * tests/test-avltree_list.c (main): Call set_program_name.
44953         * tests/test-avltree_oset.c (main): Likewise.
44954         * tests/test-obstack-printf.c: Include progname.h.
44955         (main): Call set_program_name.
44956         * tests/test-quotearg.c: Include progname.h.
44957         (main): Call set_program_name.
44958         * tests/test-xmemdup0.c: Include progname.h.
44959         (main): Call set_program_name.
44960
44961 2009-01-18  Bruno Haible  <bruno@clisp.org>
44962
44963         New module 'alphasort'.
44964         * lib/dirent.in.h (alphasort): New declaration.
44965         * lib/alphasort.c: New file, from glibc with modifications.
44966         * m4/alphasort.m4: New file.
44967         * modules/alphasort: New file.
44968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44969         HAVE_ALPHASORT.
44970         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44971         HAVE_ALPHASORT.
44972         * doc/posix-functions/alphasort.texi: Mention the new module and the
44973         portability problems.
44974
44975 2009-01-18  Bruno Haible  <bruno@clisp.org>
44976
44977         New module 'scandir'.
44978         * lib/dirent.in.h (scandir): New declaration.
44979         * lib/scandir.c: New file, from glibc with modifications.
44980         * m4/scandir.m4: New file.
44981         * modules/scandir: New file.
44982         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44983         HAVE_SCANDIR.
44984         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44985         HAVE_SCANDIR.
44986         * doc/posix-functions/scandir.texi: Mention the new module and the
44987         portability problems.
44988
44989 2009-01-17  Bruno Haible  <bruno@clisp.org>
44990
44991         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44992         Update documentation.
44993         (func_remove_suffix): Escape all dots in the suffix. Update
44994         documentation.
44995         (func_filter_filelist): Update documentation.
44996         Reported by Ralf Wildenhues.
44997
44998 2009-01-17  Bruno Haible  <bruno@clisp.org>
44999
45000         * modules/dprintf-posix-tests: New file.
45001         * tests/test-dprintf-posix.sh: New file.
45002         * tests/test-dprintf-posix.c: New file.
45003
45004         New modules 'dprintf', 'dprintf-posix'.
45005         * lib/stdio.in.h (dprintf): New declaration.
45006         * lib/dprintf.c: New file.
45007         * m4/dprintf.m4: New file.
45008         * m4/dprintf-posix.m4: New file.
45009         * modules/dprintf: New file.
45010         * modules/dprintf-posix: New file.
45011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45012         HAVE_DPRINTF, REPLACE_DPRINTF.
45013         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45014         HAVE_DPRINTF, REPLACE_DPRINTF.
45015         * doc/posix-functions/dprintf.texi: Mention the new modules.
45016
45017 2009-01-17  Bruno Haible  <bruno@clisp.org>
45018
45019         * modules/vdprintf-posix-tests: New file.
45020         * tests/test-vdprintf-posix.sh: New file.
45021         * tests/test-vdprintf-posix.c: New file.
45022
45023         New modules 'vdprintf', 'vdprintf-posix'.
45024         * lib/stdio.in.h (vdprintf): New declaration.
45025         * lib/vdprintf.c: New file.
45026         * m4/vdprintf.m4: New file.
45027         * m4/vdprintf-posix.m4: New file.
45028         * modules/vdprintf: New file.
45029         * modules/vdprintf-posix: New file.
45030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45031         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45032         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45033         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45034         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45035
45036 2009-01-17  Bruno Haible  <bruno@clisp.org>
45037
45038         Fix replacement of fopen on mingw.
45039         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45040         mingw.
45041
45042 2009-01-17  Bruno Haible  <bruno@clisp.org>
45043
45044         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45045         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45046
45047 2009-01-17  Bruno Haible  <bruno@clisp.org>
45048
45049         Avoid test-fflush2.sh failure on mingw.
45050         * tests/test-fflush2.c: Include binary-io.h.
45051         (main): Put standard input into binary mode.
45052         * modules/fflush-tests (Depends-on): Add binary-io.
45053
45054 2009-01-17  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/wchar.in.h: In another particular situation, include only the
45057         system's <wchar.h> file.
45058         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45059         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45060         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45061
45062 2009-01-17  Bruno Haible  <bruno@clisp.org>
45063
45064         Support for stripping executables in --enable-relocatable.
45065         * build-aux/install-reloc: Expect one more argument, or an environment
45066         variable RELOC_STRIP_PROG. If set, strip the destination program and
45067         its wrapper.
45068         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45069         RELOC_STRIP_PROG.
45070         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45071         to set RELOCATABLE_STRIP.
45072         * NEWS: Mention the new Makefile requirement.
45073
45074 2009-01-17  Bruno Haible  <bruno@clisp.org>
45075
45076         * build-aux/install-reloc: Remove debugging information left over by
45077         C compiler on MacOS X.
45078
45079 2009-01-17  Bruno Haible  <bruno@clisp.org>
45080
45081         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45082         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45083         _NSGetExecutablePath.
45084
45085 2009-01-16  Jim Meyering  <meyering@redhat.com>
45086
45087         strerror: avoid warnings about discarding "const"
45088         * lib/strerror.c (rpl_strerror): Instead of returning a const
45089         string from each and every "case", use a variable, and add a single
45090         cast after the switch.
45091
45092 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45093
45094         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45095
45096 2009-01-16  Bruno Haible  <bruno@clisp.org>
45097
45098         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45099         array initializer syntax that also works in C++ mode.
45100         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45101
45102 2009-01-16  Jim Meyering  <meyering@redhat.com>
45103
45104         poll: suppress a warning
45105         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45106         to ignore "...unsigned expression < 0 is always false" warnings.
45107
45108 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45109
45110         poll: remove declarations of unused variables
45111         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45112         sockbuf and optlen.
45113
45114 2009-01-15  Bruno Haible  <bruno@clisp.org>
45115
45116         Make fflush-after-ungetc POSIX compliant on BSD systems.
45117         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45118         (clear_ungetc_buffer): Implement also for other systems.
45119         (rpl_fflush): On glibc systems, invoke
45120         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45121         clear_ungetc_buffer after fetching the stream's position, not before.
45122
45123 2009-01-15  Bruno Haible  <bruno@clisp.org>
45124
45125         Make fflush-after-ungetc POSIX compliant on glibc systems.
45126         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45127         after ungetc.
45128         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45129         (rpl_fflush): On glibc systems, simply call the system's fflush
45130         function after clearing the ungetc buffer.
45131         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45132         Instead, lseek only to the end of file, then use the system's fseeko
45133         for the rest. On glibc systems, reset the EOF indicator bit.
45134
45135 2009-01-15  Jim Meyering  <meyering@redhat.com>
45136
45137         openmp.m4: revert quote-adding change, for portability to older autoconf
45138         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45139         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45140         Simon Josefsson noticed the problem when using autoconf-2.61.
45141
45142 2009-01-15  Bruno Haible  <bruno@clisp.org>
45143
45144         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45145         * tests/test-fflush2.c (ASSERT): Always fail.
45146         (main): Add two tests for fflush() after ungetc(), taking into account
45147         the Austin Group's clarification.
45148         Suggested by Eric Blake.
45149
45150 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45151
45152         mktime.m4: remove K&R-style function prototypes
45153         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45154         for the Sun C++ compiler.
45155
45156 2009-01-14  Bruno Haible  <bruno@clisp.org>
45157
45158         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45159         while including <wchar.h>.
45160         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45161         the system's <wchar.h> file.
45162         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45163
45164 2009-01-14  Bruno Haible  <bruno@clisp.org>
45165
45166         * m4/csharp.m4: Don't mention gettext on the serial number line.
45167         * m4/csharpexec.m4: Likewise.
45168         * m4/eaccess.m4: Likewise.
45169         * m4/javaexec.m4: Likewise.
45170         * m4/sig_atomic_t.m4: Likewise.
45171         * m4/tmpdir.m4: Likewise.
45172         * m4/intldir.m4: Bump gettext version.
45173         * m4/lib-ld.m4: Likewise.
45174
45175 2009-01-14  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/progname.c (set_program_name): Add more comments.
45178         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45179
45180 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45181
45182         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45183         were sys/stat.h does not define it.
45184
45185 2009-01-14  Jim Meyering  <meyering@redhat.com>
45186
45187         many *.m4 files: improve m4 quoting
45188         99% of this change was performed by running the following commands:
45189         git ls-files | grep '\.m4$' | xargs perl -pi \
45190           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45191           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45192           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45193           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45194         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45195         The remainder were to add Copyright dates, increment serial numbers,
45196         undo some changes in comments, exclude m4/intl.m4, and add quotes
45197         around the "1" in ",1" where the unusual spacing prohibited the
45198         above regexps from doing the job.  For more details, see
45199         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45200         * m4/acl.m4: Modified.
45201         * m4/afs.m4: Likewise.
45202         * m4/alloca.m4: Likewise.
45203         * m4/argp.m4: Likewise.
45204         * m4/argz.m4: Likewise.
45205         * m4/atexit.m4: Likewise.
45206         * m4/bison-i18n.m4: Likewise.
45207         * m4/bison.m4: Likewise.
45208         * m4/byteswap.m4: Likewise.
45209         * m4/c-stack.m4: Likewise.
45210         * m4/c-strtod.m4: Likewise.
45211         * m4/calloc.m4: Likewise.
45212         * m4/canonicalize-lgpl.m4: Likewise.
45213         * m4/chown.m4: Likewise.
45214         * m4/clock_time.m4: Likewise.
45215         * m4/codeset.m4: Likewise.
45216         * m4/copy-file.m4: Likewise.
45217         * m4/csharp.m4: Likewise.
45218         * m4/csharpcomp.m4: Likewise.
45219         * m4/csharpexec.m4: Likewise.
45220         * m4/d-ino.m4: Likewise.
45221         * m4/d-type.m4: Likewise.
45222         * m4/dirfd.m4: Likewise.
45223         * m4/double-slash-root.m4: Likewise.
45224         * m4/eaccess.m4: Likewise.
45225         * m4/eealloc.m4: Likewise.
45226         * m4/environ.m4: Likewise.
45227         * m4/errno_h.m4: Likewise.
45228         * m4/euidaccess.m4: Likewise.
45229         * m4/execute.m4: Likewise.
45230         * m4/fatal-signal.m4: Likewise.
45231         * m4/fchdir.m4: Likewise.
45232         * m4/fcntl_h.m4: Likewise.
45233         * m4/fileblocks.m4: Likewise.
45234         * m4/filenamecat.m4: Likewise.
45235         * m4/findprog.m4: Likewise.
45236         * m4/flexmember.m4: Likewise.
45237         * m4/fnmatch.m4: Likewise.
45238         * m4/fopen.m4: Likewise.
45239         * m4/fpending.m4: Likewise.
45240         * m4/fprintf-posix.m4: Likewise.
45241         * m4/free.m4: Likewise.
45242         * m4/frexp.m4: Likewise.
45243         * m4/frexpl.m4: Likewise.
45244         * m4/fsusage.m4: Likewise.
45245         * m4/ftruncate.m4: Likewise.
45246         * m4/gc-camellia.m4: Likewise.
45247         * m4/gc-random.m4: Likewise.
45248         * m4/gc.m4: Likewise.
45249         * m4/getaddrinfo.m4: Likewise.
45250         * m4/getcwd-abort-bug.m4: Likewise.
45251         * m4/getcwd-path-max.m4: Likewise.
45252         * m4/getdate.m4: Likewise.
45253         * m4/getdomainname.m4: Likewise.
45254         * m4/getgroups.m4: Likewise.
45255         * m4/gethostname.m4: Likewise.
45256         * m4/gethrxtime.m4: Likewise.
45257         * m4/getline.m4: Likewise.
45258         * m4/getloadavg.m4: Likewise.
45259         * m4/getndelim2.m4: Likewise.
45260         * m4/getpass.m4: Likewise.
45261         * m4/gettext.m4: Likewise.
45262         * m4/gettime.m4: Likewise.
45263         * m4/gettimeofday.m4: Likewise.
45264         * m4/gnulib-common.m4: Likewise.
45265         * m4/group-member.m4: Likewise.
45266         * m4/host-os.m4: Likewise.
45267         * m4/iconv.m4: Likewise.
45268         * m4/iconv_open.m4: Likewise.
45269         * m4/inet_ntop.m4: Likewise.
45270         * m4/inet_pton.m4: Likewise.
45271         * m4/inline.m4: Likewise.
45272         * m4/intldir.m4: Likewise.
45273         * m4/intlmacosx.m4: Likewise.
45274         * m4/intmax.m4: Likewise.
45275         * m4/intmax_t.m4: Likewise.
45276         * m4/inttypes.m4: Likewise.
45277         * m4/inttypes_h.m4: Likewise.
45278         * m4/inttypes-pri.m4: Likewise.
45279         * m4/isapipe.m4: Likewise.
45280         * m4/isnand.m4: Likewise.
45281         * m4/isnanf.m4: Likewise.
45282         * m4/isnanl.m4: Likewise.
45283         * m4/javacomp.m4: Likewise.
45284         * m4/javaexec.m4: Likewise.
45285         * m4/jm-winsz1.m4: Likewise.
45286         * m4/jm-winsz2.m4: Likewise.
45287         * m4/lchown.m4: Likewise.
45288         * m4/lcmessage.m4: Likewise.
45289         * m4/ldexpl.m4: Likewise.
45290         * m4/lib-ld.m4: Likewise.
45291         * m4/lib-link.m4: Likewise.
45292         * m4/libsigsegv.m4: Likewise.
45293         * m4/link-follow.m4: Likewise.
45294         * m4/localcharset.m4: Likewise.
45295         * m4/locale-fr.m4: Likewise.
45296         * m4/locale-ja.m4: Likewise.
45297         * m4/locale-tr.m4: Likewise.
45298         * m4/locale-zh.m4: Likewise.
45299         * m4/lock.m4: Likewise.
45300         * m4/longlong.m4: Likewise.
45301         * m4/ls-mntd-fs.m4: Likewise.
45302         * m4/lstat.m4: Likewise.
45303         * m4/malloc.m4: Likewise.
45304         * m4/mathl.m4: Likewise.
45305         * m4/mbrtowc.m4: Likewise.
45306         * m4/mbstate_t.m4: Likewise.
45307         * m4/mbswidth.m4: Likewise.
45308         * m4/memchr.m4: Likewise.
45309         * m4/memcmp.m4: Likewise.
45310         * m4/memcpy.m4: Likewise.
45311         * m4/memmem.m4: Likewise.
45312         * m4/memmove.m4: Likewise.
45313         * m4/mempcpy.m4: Likewise.
45314         * m4/memrchr.m4: Likewise.
45315         * m4/memset.m4: Likewise.
45316         * m4/minmax.m4: Likewise.
45317         * m4/mkdir-slash.m4: Likewise.
45318         * m4/mkdtemp.m4: Likewise.
45319         * m4/mktime.m4: Likewise.
45320         * m4/mmap-anon.m4: Likewise.
45321         * m4/mountlist.m4: Likewise.
45322         * m4/nanosleep.m4: Likewise.
45323         * m4/nls.m4: Likewise.
45324         * m4/nocrash.m4: Likewise.
45325         * m4/open.m4: Likewise.
45326         * m4/openat.m4: Likewise.
45327         * m4/openmp.m4: Likewise.
45328         * m4/pathmax.m4: Likewise.
45329         * m4/perl.m4: Likewise.
45330         * m4/physmem.m4: Likewise.
45331         * m4/pipe.m4: Likewise.
45332         * m4/po.m4: Likewise.
45333         * m4/poll.m4: Likewise.
45334         * m4/posixtm.m4: Likewise.
45335         * m4/posixver.m4: Likewise.
45336         * m4/printf-frexp.m4: Likewise.
45337         * m4/printf-frexpl.m4: Likewise.
45338         * m4/printf-posix.m4: Likewise.
45339         * m4/printf-posix-rpl.m4: Likewise.
45340         * m4/printf.m4: Likewise.
45341         * m4/progtest.m4: Likewise.
45342         * m4/putenv.m4: Likewise.
45343         * m4/readline.m4: Likewise.
45344         * m4/readlink.m4: Likewise.
45345         * m4/readutmp.m4: Likewise.
45346         * m4/realloc.m4: Likewise.
45347         * m4/regex.m4: Likewise.
45348         * m4/relocatable.m4: Likewise.
45349         * m4/relocatable-lib.m4: Likewise.
45350         * m4/rename-dest-slash.m4: Likewise.
45351         * m4/rename.m4: Likewise.
45352         * m4/rmdir-errno.m4: Likewise.
45353         * m4/rmdir.m4: Likewise.
45354         * m4/roundf.m4: Likewise.
45355         * m4/roundl.m4: Likewise.
45356         * m4/rpmatch.m4: Likewise.
45357         * m4/save-cwd.m4: Likewise.
45358         * m4/selinux-selinux-h.m4: Likewise.
45359         * m4/setenv.m4: Likewise.
45360         * m4/settime.m4: Likewise.
45361         * m4/sig2str.m4: Likewise.
45362         * m4/sig_atomic_t.m4: Likewise.
45363         * m4/signalblocking.m4: Likewise.
45364         * m4/signbit.m4: Likewise.
45365         * m4/sigpipe.m4: Likewise.
45366         * m4/sockets.m4: Likewise.
45367         * m4/sockpfaf.m4: Likewise.
45368         * m4/st_dm_mode.m4: Likewise.
45369         * m4/stat-time.m4: Likewise.
45370         * m4/stdbool.m4: Likewise.
45371         * m4/stdint.m4: Likewise.
45372         * m4/stdint_h.m4: Likewise.
45373         * m4/stpcpy.m4: Likewise.
45374         * m4/stpncpy.m4: Likewise.
45375         * m4/strcase.m4: Likewise.
45376         * m4/strchrnul.m4: Likewise.
45377         * m4/strcspn.m4: Likewise.
45378         * m4/strdup.m4: Likewise.
45379         * m4/strftime.m4: Likewise.
45380         * m4/strndup.m4: Likewise.
45381         * m4/strnlen.m4: Likewise.
45382         * m4/strpbrk.m4: Likewise.
45383         * m4/strptime.m4: Likewise.
45384         * m4/strsep.m4: Likewise.
45385         * m4/strtod.m4: Likewise.
45386         * m4/strtoimax.m4: Likewise.
45387         * m4/strtok_r.m4: Likewise.
45388         * m4/strtol.m4: Likewise.
45389         * m4/strtoll.m4: Likewise.
45390         * m4/strtoul.m4: Likewise.
45391         * m4/strtoull.m4: Likewise.
45392         * m4/strtoumax.m4: Likewise.
45393         * m4/strverscmp.m4: Likewise.
45394         * m4/threadlib.m4: Likewise.
45395         * m4/timegm.m4: Likewise.
45396         * m4/tm_gmtoff.m4: Likewise.
45397         * m4/tmpdir.m4: Likewise.
45398         * m4/tmpfile.m4: Likewise.
45399         * m4/tzset.m4: Likewise.
45400         * m4/uintmax_t.m4: Likewise.
45401         * m4/unlinkdir.m4: Likewise.
45402         * m4/unlocked-io.m4: Likewise.
45403         * m4/uptime.m4: Likewise.
45404         * m4/userspec.m4: Likewise.
45405         * m4/utimbuf.m4: Likewise.
45406         * m4/utime.m4: Likewise.
45407         * m4/utimes-null.m4: Likewise.
45408         * m4/utimes.m4: Likewise.
45409         * m4/vararrays.m4: Likewise.
45410         * m4/vasnprintf.m4: Likewise.
45411         * m4/vfprintf-posix.m4: Likewise.
45412         * m4/vprintf-posix.m4: Likewise.
45413         * m4/wait-process.m4: Likewise.
45414         * m4/wchar_t.m4: Likewise.
45415         * m4/wint_t.m4: Likewise.
45416         * m4/write-any-file.m4: Likewise.
45417         * m4/yield.m4: Likewise.
45418
45419 2009-01-13  Bruno Haible  <bruno@clisp.org>
45420
45421         Avoid test-copy-file.sh failures when ACL support insufficient.
45422         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45423         TESTS_ENVIRONMENT.
45424         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45425         Reported by Jim Meyering.
45426
45427 2009-01-13  Bruno Haible  <bruno@clisp.org>
45428
45429         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45430         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45431         * modules/unistdio/u8-printf-parse (Files): Likewise.
45432         * modules/unistdio/u32-printf-parse (Files): Likewise.
45433         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45434
45435 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45436
45437         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45438         and m4/inttypes_h.m4 too.
45439
45440 2009-01-12  Eric Blake  <ebb9@byu.net>
45441
45442         tests: IRIX 6.2 cc can't compile -0.0 into .data
45443         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45444         rather than at compile-time.
45445         * tests/test-floorl.c (minus_zero): Likewise.
45446         * tests/test-frexpl.c (minus_zero): Likewise.
45447         * tests/test-isnan.c (minus_zerol): Likewise.
45448         * tests/test-isnanl.h (minus_zero): Likewise.
45449         * tests/test-ldexpl.c (minus_zero): Likewise.
45450         * tests/test-roundl.c (minus_zero): Likewise.
45451         * tests/test-signbit.c (minus_zerol): Likewise.
45452         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45453         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45454         * tests/test-truncl.c (minus_zero): Likewise.
45455         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45456         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45457         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45458
45459 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45460
45461         regex: fix glibc bug 9697
45462         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45463         handling.
45464
45465 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45466
45467         regex: fix glibc bug 697
45468         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45469         being NULL also if there are no backreferences.
45470
45471 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45472
45473         regex: merge glibc changes
45474         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45475         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45476         re_string_skip_chars, re_string_reconstruct): Likewise.
45477         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45478
45479 2009-01-07  Jim Meyering  <meyering@redhat.com>
45480
45481         poll: filter through cppi
45482         * lib/poll.c: Indent cpp directives to reflect nesting.
45483
45484 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45485
45486         poll: don't return uninitialized
45487         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45488
45489 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45490
45491         avoid compile failure on AIX 6.1
45492         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45493         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45494
45495 2009-01-04  Jim Meyering  <meyering@redhat.com>
45496
45497         remove duplicate inclusion of <stdio.h>
45498         * tests/test-fprintf-posix.c: Likewise.
45499         * tests/test-printf-posix.c: Likewise.
45500         * tests/test-snprintf-posix.c: Likewise.
45501         * tests/test-sprintf-posix.c: Likewise.
45502         * tests/test-vasprintf-posix.c: Likewise.
45503         * tests/test-vfprintf-posix.c: Likewise.
45504         * tests/test-vprintf-posix.c: Likewise.
45505         * tests/test-vsnprintf-posix.c: Likewise.
45506         * tests/test-vsprintf-posix.c: Likewise.
45507
45508 2009-01-03  Jim Meyering  <meyering@redhat.com>
45509
45510         gnulib-tool: fix sed-based filtering
45511         * gnulib-tool (func_filter_filelist): Remove extra backslash
45512         in sed_fff_filter definition.
45513
45514 2009-01-02  Jim Meyering  <meyering@redhat.com>
45515
45516         strftime: avoid compilation failure on Solaris 2.6
45517         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45518         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45519         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45520         be available.  Reported by Tom G. Christensen.  Details in
45521         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45522
45523 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45524             Bruno Haible  <bruno@clisp.org>
45525
45526         Speed up gnulib-tool by doing more string processing through shell
45527         built-ins.
45528         * gnulib-tool (fast_func_append): New variable.
45529         (func_remove_prefix, func_remove_suffix): New functions.
45530         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45531         (func_filter_filelist): New function.
45532         (func_get_dependencies): Use func_remove_suffix instead of sed.
45533         (func_get_automake_snippet): Use func_filter_filelist instead of a
45534         subshell and sed invocation.
45535
45536 2009-01-01  Bruno Haible  <bruno@clisp.org>
45537
45538         Fix a security bug.
45539         * gnulib-tool (func_import, import, update): Don't allow the characters
45540         '"', '$', '`', '\' in macro arguments that become part of commands that
45541         are evaluated.
45542
45543 2009-01-01  Bruno Haible  <bruno@clisp.org>
45544
45545         * gnulib-tool (func_reset_sigpipe): Add more comments.
45546
45547 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45548
45549         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45550         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45551         already know the answer.
45552
45553 2009-01-01  Jim Meyering  <meyering@redhat.com>
45554
45555         * lib/version-etc.c (version_etc_va): Update copyright year.
45556
45557 2008-12-30  Bruno Haible  <bruno@clisp.org>
45558
45559         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45560         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45561         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45562
45563 2008-12-29  Eric Blake  <ebb9@byu.net>
45564
45565         multiarch: avoid autoconf AC_REQUIRE bug
45566         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45567         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45568         2.63 and older.
45569         Reported by Bruno Haible, and analyzed in
45570         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45571
45572 2008-12-29  Bruno Haible  <bruno@clisp.org>
45573
45574         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45575         files in subdirectories correctly.
45576         Reported by Ralf Wildenhues.
45577
45578 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45579
45580         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45581         rather than 'join FILE -', for Solaris join.
45582
45583 2008-12-29  Bruno Haible  <bruno@clisp.org>
45584
45585         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45586         quoting.
45587         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45588         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45589         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45590         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45591         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45592         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45593         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45594         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45595         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45596         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45597         * m4/nls.m4 (AM_NLS): Likewise.
45598         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45599         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45600         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45601         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45602         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45603         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45604         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45605         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45606         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45607         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45608         * m4/xsize.m4 (gl_XSIZE): Likewise.
45609         Suggested by Jim Meyering.
45610
45611 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45612
45613         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45614         * lib/parse-duration.c: use a switch instead of cascading if's.
45615
45616 2008-12-29  Eric Blake  <ebb9@byu.net>
45617
45618         wchar.h: supply WEOF on Irix 5.3
45619         * lib/wchar.in.h (wint_t): Also supply WEOF.
45620         * lib/wctype.in.h (wint_t): Likewise.
45621         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45622         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45623         Reported by Tom G. Christensen.
45624
45625 2008-12-26  Bruno Haible  <bruno@clisp.org>
45626
45627         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45628         i486, i586, i686.
45629
45630 2008-12-26  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45633
45634 2008-12-26  Bruno Haible  <bruno@clisp.org>
45635
45636         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45637         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45638         not __STDC_CONSTANT_MACROS.
45639         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45640
45641 2008-12-25  Bruno Haible  <bruno@clisp.org>
45642
45643         Add support for universal builds to vasnprintf.
45644         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45645         universal builds, guess no.
45646         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45647         * modules/vasprintf-posix (Depends-on): Likewise.
45648         * modules/fprintf-posix (Depends-on): Likewise.
45649         * modules/vfprintf-posix (Depends-on): Likewise.
45650         * modules/snprintf-posix (Depends-on): Likewise.
45651         * modules/vsnprintf-posix (Depends-on): Likewise.
45652         * modules/sprintf-posix (Depends-on): Likewise.
45653         * modules/vsprintf-posix (Depends-on): Likewise.
45654         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45655         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45656         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45657         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45658         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45659         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45660         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45661
45662         Add support for universal builds to <inttypes.h>.
45663         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45664         _SCNu64_PREFIX): In Apple
45665         universal builds, define directly, using _LP64.
45666         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45667         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45668         * modules/inttypes (Depends-on): Add multiarch.
45669         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45670
45671         Add support for universal builds to <stdint.h>.
45672         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45673         universal builds, define directly, using _LP64.
45674         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45675         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45676         and size_t.
45677         * modules/stdint (Depends-on): Add multiarch.
45678         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45679
45680         New module 'multiarch'.
45681         * modules/multiarch: New file.
45682         * m4/multiarch.m4: New file.
45683
45684 2008-12-25  Bruno Haible  <bruno@clisp.org>
45685
45686         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45687
45688 2008-12-25  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/btowc (License): Relicense under LGPLv2+.
45691         * modules/mbsinit (License): Likewise.
45692         * modules/mbrtowc (License): Likewise.
45693         * modules/wcrtomb (License): Likewise.
45694         * modules/streq (License): Likewise.
45695         Reported by David Lutterkort <lutter@redhat.com>.
45696
45697 2008-12-23  Bruno Haible  <bruno@clisp.org>
45698
45699         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45700
45701 2008-12-23  Bruno Haible  <bruno@clisp.org>
45702
45703         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45704         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45705         GETADDRINFO_LIB, not in LIBS.
45706         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45707         * modules/canon-host (Link): Likewise.
45708         * NEWS: Mention the change.
45709         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45710         GETADDRINFO_LIB.
45711
45712 2008-12-22  Bruno Haible  <bruno@clisp.org>
45713
45714         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45715         * doc/posix-functions/iswalpha_l.texi: Likewise.
45716         * doc/posix-functions/iswblank_l.texi: Likewise.
45717         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45718         * doc/posix-functions/iswctype_l.texi: Likewise.
45719         * doc/posix-functions/iswdigit_l.texi: Likewise.
45720         * doc/posix-functions/iswgraph_l.texi: Likewise.
45721         * doc/posix-functions/iswlower_l.texi: Likewise.
45722         * doc/posix-functions/iswprint_l.texi: Likewise.
45723         * doc/posix-functions/iswpunct_l.texi: Likewise.
45724         * doc/posix-functions/iswspace_l.texi: Likewise.
45725         * doc/posix-functions/iswupper_l.texi: Likewise.
45726         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45727         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45728         * doc/posix-functions/open_wmemstream.texi: Likewise.
45729         * doc/posix-functions/swscanf.texi: Likewise.
45730         * doc/posix-functions/towctrans_l.texi: Likewise.
45731         * doc/posix-functions/towlower.texi: Likewise.
45732         * doc/posix-functions/towlower_l.texi: Likewise.
45733         * doc/posix-functions/towupper.texi: Likewise.
45734         * doc/posix-functions/towupper_l.texi: Likewise.
45735         * doc/posix-functions/vfwprintf.texi: Likewise.
45736         * doc/posix-functions/vfwscanf.texi: Likewise.
45737         * doc/posix-functions/vswscanf.texi: Likewise.
45738         * doc/posix-functions/vwprintf.texi: Likewise.
45739         * doc/posix-functions/vwscanf.texi: Likewise.
45740         * doc/posix-functions/wcpcpy.texi: Likewise.
45741         * doc/posix-functions/wcpncpy.texi: Likewise.
45742         * doc/posix-functions/wcscasecmp.texi: Likewise.
45743         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45744         * doc/posix-functions/wcscoll_l.texi: Likewise.
45745         * doc/posix-functions/wcsdup.texi: Likewise.
45746         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45747         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45748         * doc/posix-functions/wcsnlen.texi: Likewise.
45749         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45750         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45751         * doc/posix-functions/wctrans_l.texi: Likewise.
45752         * doc/posix-functions/wctype_l.texi: Likewise.
45753         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45754         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45755         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45756         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45757         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45758         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45759         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45760         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45761         * doc/glibc-functions/wcschrnul.texi: Likewise.
45762         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45763         * doc/glibc-functions/wcstod_l.texi: Likewise.
45764         * doc/glibc-functions/wcstof_l.texi: Likewise.
45765         * doc/glibc-functions/wcstol_l.texi: Likewise.
45766         * doc/glibc-functions/wcstold_l.texi: Likewise.
45767         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45768         * doc/glibc-functions/wcstoq.texi: Likewise.
45769         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45770         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45771         * doc/glibc-functions/wcstouq.texi: Likewise.
45772         * doc/glibc-functions/wmempcpy.texi: Likewise.
45773
45774 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45775             Eric Blake  <ebb9@byu.net>
45776             Paolo Bonzini  <bonzini@gnu.org>
45777             Bruno Haible  <bruno@clisp.org>
45778
45779         Make c-stack work on Haiku.
45780         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45781         (c_stack_action): Use SA_ONSTACK flag.
45782
45783 2008-12-22  Bruno Haible  <bruno@clisp.org>
45784
45785         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45786
45787 2008-12-22  Bruno Haible  <bruno@clisp.org>
45788
45789         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45790         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45791         being overridden.
45792         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45793         New macros.
45794         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45795         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45796         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45797         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45798
45799 2008-12-22  Bruno Haible  <bruno@clisp.org>
45800
45801         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45802         from test code.
45803
45804 2008-12-22  Eric Blake  <ebb9@byu.net>
45805
45806         Avoid gcc warnings on cygwin.
45807         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45808         Avoid unused variable.
45809         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45810         Likewise.
45811
45812 2008-12-22  Bruno Haible  <bruno@clisp.org>
45813
45814         Remove HAVE_MBRTOWC conditionals.
45815         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45816         (mbscasecmp): Assume mbrtowc function.
45817         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45818         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45819         * lib/mbschr.c: Include mbuiter.h unconditionally.
45820         (mbschr): Assume mbrtowc function.
45821         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45822         (mbscspn): Assume mbrtowc function.
45823         * lib/mbslen.c: Include mbuiter.h unconditionally.
45824         (mbslen): Assume mbrtowc function.
45825         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45826         (mbsncasecmp): Assume mbrtowc function.
45827         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45828         (mbsnlen): Assume mbrtowc function.
45829         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45830         (mbspbrk): Assume mbrtowc function.
45831         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45832         (mbspcasecmp): Assume mbrtowc function.
45833         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45834         (mbsrchr): Assume mbrtowc function.
45835         * lib/mbssep.c: Include mbuiter.h unconditionally.
45836         (mbssep): Assume mbrtowc function.
45837         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45838         (mbsspn): Assume mbrtowc function.
45839         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45840         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45841         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45842         (mbstok_r): Assume mbrtowc function.
45843         * lib/propername.c: Include mbuiter.h unconditionally.
45844         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45845         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45846         (trim2): Assume mbrtowc function.
45847         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45848         (mbsnwidth): Assume mbrtowc function.
45849         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45850         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45851         fallback definitions.
45852         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45853
45854 2008-12-22  Bruno Haible  <bruno@clisp.org>
45855
45856         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45857
45858 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45859
45860         * modules/regex: Request emulations for the mb*/wc* functions we need.
45861         * m4/regex.m4: Don't look for those functions here.
45862         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45863
45864 2008-12-22  Bruno Haible  <bruno@clisp.org>
45865
45866         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45867
45868 2008-12-21  Bruno Haible  <bruno@clisp.org>
45869
45870         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45871         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45872         (Include): Remove conditionalization.
45873         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45874         (Include): Remove conditionalization.
45875         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45876         (Include): Remove conditionalization.
45877         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45878         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45879         * NEWS: Mention the change.
45880         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45881         via Sergey Poznyakoff <gray@gnu.org.ua>.
45882
45883 2008-12-21  Bruno Haible  <bruno@clisp.org>
45884
45885         * MODULES.html.sh (Extended multibyte and wide character utilities
45886         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45887         wcrtomb, wcsrtombs.
45888         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45889         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45890         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45891         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45892
45893 2008-12-21  Bruno Haible  <bruno@clisp.org>
45894
45895         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45896
45897 2008-12-21  Bruno Haible  <bruno@clisp.org>
45898
45899         * modules/wcsnrtombs-tests: New file.
45900         * tests/test-wcsnrtombs1.sh: New file.
45901         * tests/test-wcsnrtombs2.sh: New file.
45902         * tests/test-wcsnrtombs3.sh: New file.
45903         * tests/test-wcsnrtombs4.sh: New file.
45904         * tests/test-wcsnrtombs.c: New file.
45905
45906         New module 'wcsnrtombs'.
45907         * lib/wchar.in.h (wcsnrtombs): New declaration.
45908         * lib/wcsnrtombs.c: New file.
45909         * lib/wcsrtombs-state.c: New file.
45910         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45911         (internal_state): Remove variable.
45912         * m4/wcsnrtombs.m4: New file.
45913         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45914         compilation units.
45915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45916         HAVE_WCSNRTOMBS.
45917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45918         HAVE_WCSNRTOMBS.
45919         * modules/wcsnrtombs: New file.
45920         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45921         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45922
45923 2008-12-21  Bruno Haible  <bruno@clisp.org>
45924
45925         * modules/wcsrtombs-tests: New file.
45926         * tests/test-wcsrtombs1.sh: New file.
45927         * tests/test-wcsrtombs2.sh: New file.
45928         * tests/test-wcsrtombs3.sh: New file.
45929         * tests/test-wcsrtombs4.sh: New file.
45930         * tests/test-wcsrtombs.c: New file.
45931
45932         New module 'wcsrtombs'.
45933         * lib/wchar.in.h (wcsrtombs): New declaration.
45934         * lib/wcsrtombs.c: New file.
45935         * m4/wcsrtombs.m4: New file.
45936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45937         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45939         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45940         * modules/wcsrtombs: New file.
45941         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45942         bugs.
45943
45944 2008-12-21  Bruno Haible  <bruno@clisp.org>
45945
45946         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45947         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45948         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45949         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45950         if not correct.
45951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45952         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45953         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45954         m4/locale-zh.m4, m4/codeset.m4.
45955         * doc/posix-functions/wcrtomb.texi: Document the bug.
45956
45957 2008-12-21  Bruno Haible  <bruno@clisp.org>
45958
45959         Work around a btowc() bug on IRIX 6.5.
45960         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45961         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45962         REPLACE_WTOBC if not.
45963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45964         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45965         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45966
45967 2008-12-21  Bruno Haible  <bruno@clisp.org>
45968
45969         * modules/wcrtomb-tests: New file.
45970         * tests/test-wcrtomb.sh: New file.
45971         * tests/test-wcrtomb.c: New file.
45972
45973         New module 'wcrtomb'.
45974         * lib/wchar.in.h (wcrtomb): New declaration.
45975         * lib/wcrtomb.c: New file.
45976         * m4/wcrtomb.m4: New file.
45977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45978         HAVE_WCRTOMB.
45979         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45980         HAVE_WCRTOMB.
45981         * modules/wcrtomb: New file.
45982         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45983
45984 2008-12-21  Bruno Haible  <bruno@clisp.org>
45985
45986         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45987         * modules/mbsrtowcs (Files): Likewise.
45988         * modules/wctob (Files): Likewise.
45989         * modules/c-strcase-tests (Files): Likewise.
45990         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45991         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45992         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45993         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45994         * modules/vasnprintf-posix-tests (Files): Likewise.
45995
45996 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45997
45998         gitlog-to-changelog: pass all command-line arguments to git-log
45999         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
46000         it is sometimes convenient to filter the commits in various ways.
46001         gitlog-to-changelog only allows --since to specify a start date,
46002         but git-log itself supports many other filtering mechanisms.
46003         At the moment, I want to filter by branch name.  Rather than
46004         adding a --branch option to gitlog-to-changelog, it seems more
46005         flexible to simply pass all options directly to git-log and let
46006         git do the work.  Notice that this effectively makes --since a
46007         redundant option for gitlog-to-changelog, but removing it would
46008         require current usage to change since calls would then require
46009         an additional '--'.
46010
46011 2008-12-21  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/mbsnrtowcs-tests: New file.
46014         * tests/test-mbsnrtowcs1.sh: New file.
46015         * tests/test-mbsnrtowcs2.sh: New file.
46016         * tests/test-mbsnrtowcs3.sh: New file.
46017         * tests/test-mbsnrtowcs4.sh: New file.
46018         * tests/test-mbsnrtowcs.c: New file.
46019
46020         New module 'mbsnrtowcs'.
46021         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46022         * lib/mbsnrtowcs.c: New file.
46023         * lib/mbsrtowcs-state.c: New file.
46024         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46025         (internal_state): Remove variable.
46026         * m4/mbsnrtowcs.m4: New file.
46027         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46028         compilation units.
46029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46030         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46031         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46032         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46033         * modules/mbsnrtowcs: New file.
46034         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46035         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46036         portability problem.
46037
46038 2008-12-21  Bruno Haible  <bruno@clisp.org>
46039
46040         Work around mbsrtowcs bug.
46041         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46042         (gl_FUNC_MBSRTOWCS): Invoke it.
46043         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46044         m4/locale-zh.m4.
46045         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46046
46047 2008-12-21  Bruno Haible  <bruno@clisp.org>
46048
46049         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46050
46051 2008-12-21  Bruno Haible  <bruno@clisp.org>
46052
46053         Update doc for AIX.
46054         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46055         16-bit wchar_t type.
46056         * doc/posix-functions/btowc.texi: Likewise.
46057         * doc/posix-functions/fgetwc.texi: Likewise.
46058         * doc/posix-functions/fgetws.texi: Likewise.
46059         * doc/posix-functions/fputwc.texi: Likewise.
46060         * doc/posix-functions/fputws.texi: Likewise.
46061         * doc/posix-functions/fwide.texi: Likewise.
46062         * doc/posix-functions/fwprintf.texi: Likewise.
46063         * doc/posix-functions/fwscanf.texi: Likewise.
46064         * doc/posix-functions/getwchar.texi: Likewise.
46065         * doc/posix-functions/getwc.texi: Likewise.
46066         * doc/posix-functions/iswalnum.texi: Likewise.
46067         * doc/posix-functions/iswalpha.texi: Likewise.
46068         * doc/posix-functions/iswblank.texi: Likewise.
46069         * doc/posix-functions/iswcntrl.texi: Likewise.
46070         * doc/posix-functions/iswctype.texi: Likewise.
46071         * doc/posix-functions/iswdigit.texi: Likewise.
46072         * doc/posix-functions/iswgraph.texi: Likewise.
46073         * doc/posix-functions/iswlower.texi: Likewise.
46074         * doc/posix-functions/iswprint.texi: Likewise.
46075         * doc/posix-functions/iswpunct.texi: Likewise.
46076         * doc/posix-functions/iswspace.texi: Likewise.
46077         * doc/posix-functions/iswupper.texi: Likewise.
46078         * doc/posix-functions/iswxdigit.texi: Likewise.
46079         * doc/posix-functions/mbrtowc.texi: Likewise.
46080         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46081         * doc/posix-functions/mbstowcs.texi: Likewise.
46082         * doc/posix-functions/mbtowc.texi: Likewise.
46083         * doc/posix-functions/putwchar.texi: Likewise.
46084         * doc/posix-functions/putwc.texi: Likewise.
46085         * doc/posix-functions/swprintf.texi: Likewise.
46086         * doc/posix-functions/tolower.texi: Likewise.
46087         * doc/posix-functions/toupper.texi: Likewise.
46088         * doc/posix-functions/towctrans.texi: Likewise.
46089         * doc/posix-functions/ungetwc.texi: Likewise.
46090         * doc/posix-functions/vswprintf.texi: Likewise.
46091         * doc/posix-functions/wcrtomb.texi: Likewise.
46092         * doc/posix-functions/wcscat.texi: Likewise.
46093         * doc/posix-functions/wcschr.texi: Likewise.
46094         * doc/posix-functions/wcscmp.texi: Likewise.
46095         * doc/posix-functions/wcscoll.texi: Likewise.
46096         * doc/posix-functions/wcscpy.texi: Likewise.
46097         * doc/posix-functions/wcscspn.texi: Likewise.
46098         * doc/posix-functions/wcsftime.texi: Likewise.
46099         * doc/posix-functions/wcslen.texi: Likewise.
46100         * doc/posix-functions/wcsncat.texi: Likewise.
46101         * doc/posix-functions/wcsncmp.texi: Likewise.
46102         * doc/posix-functions/wcsncpy.texi: Likewise.
46103         * doc/posix-functions/wcspbrk.texi: Likewise.
46104         * doc/posix-functions/wcsrchr.texi: Likewise.
46105         * doc/posix-functions/wcsrtombs.texi: Likewise.
46106         * doc/posix-functions/wcsspn.texi: Likewise.
46107         * doc/posix-functions/wcsstr.texi: Likewise.
46108         * doc/posix-functions/wcstod.texi: Likewise.
46109         * doc/posix-functions/wcstof.texi: Likewise.
46110         * doc/posix-functions/wcstoimax.texi: Likewise.
46111         * doc/posix-functions/wcstok.texi: Likewise.
46112         * doc/posix-functions/wcstold.texi: Likewise.
46113         * doc/posix-functions/wcstoll.texi: Likewise.
46114         * doc/posix-functions/wcstol.texi: Likewise.
46115         * doc/posix-functions/wcstombs.texi: Likewise.
46116         * doc/posix-functions/wcstoull.texi: Likewise.
46117         * doc/posix-functions/wcstoul.texi: Likewise.
46118         * doc/posix-functions/wcstoumax.texi: Likewise.
46119         * doc/posix-functions/wcswidth.texi: Likewise.
46120         * doc/posix-functions/wcsxfrm.texi: Likewise.
46121         * doc/posix-functions/wctob.texi: Likewise.
46122         * doc/posix-functions/wctomb.texi: Likewise.
46123         * doc/posix-functions/wctrans.texi: Likewise.
46124         * doc/posix-functions/wctype.texi: Likewise.
46125         * doc/posix-functions/wcwidth.texi: Likewise.
46126         * doc/posix-functions/wmemchr.texi: Likewise.
46127         * doc/posix-functions/wmemcmp.texi: Likewise.
46128         * doc/posix-functions/wmemcpy.texi: Likewise.
46129         * doc/posix-functions/wmemmove.texi: Likewise.
46130         * doc/posix-functions/wmemset.texi: Likewise.
46131         * doc/posix-functions/wprintf.texi: Likewise.
46132         * doc/posix-functions/wscanf.texi: Likewise.
46133
46134 2008-12-21  Bruno Haible  <bruno@clisp.org>
46135
46136         Update doc for HP-UX 11.11.
46137         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46138         in HP-UX version 11.00, not in all versions of HP-UX 11.
46139         * doc/posix-functions/fwide.texi: Likewise.
46140         * doc/posix-functions/fwprintf.texi: Likewise.
46141         * doc/posix-functions/fwscanf.texi: Likewise.
46142         * doc/posix-functions/inet_ntop.texi: Likewise.
46143         * doc/posix-functions/inet_pton.texi: Likewise.
46144         * doc/posix-functions/mbrlen.texi: Likewise.
46145         * doc/posix-functions/mbrtowc.texi: Likewise.
46146         * doc/posix-functions/mbsinit.texi: Likewise.
46147         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46148         * doc/posix-functions/swprintf.texi: Likewise.
46149         * doc/posix-functions/swscanf.texi: Likewise.
46150         * doc/posix-functions/towctrans.texi: Likewise.
46151         * doc/posix-functions/vfwprintf.texi: Likewise.
46152         * doc/posix-functions/vswprintf.texi: Likewise.
46153         * doc/posix-functions/vwprintf.texi: Likewise.
46154         * doc/posix-functions/wcrtomb.texi: Likewise.
46155         * doc/posix-functions/wcsrtombs.texi: Likewise.
46156         * doc/posix-functions/wcsstr.texi: Likewise.
46157         * doc/posix-functions/wctob.texi: Likewise.
46158         * doc/posix-functions/wctrans.texi: Likewise.
46159         * doc/posix-functions/wmemchr.texi: Likewise.
46160         * doc/posix-functions/wmemcmp.texi: Likewise.
46161         * doc/posix-functions/wmemcpy.texi: Likewise.
46162         * doc/posix-functions/wmemmove.texi: Likewise.
46163         * doc/posix-functions/wmemset.texi: Likewise.
46164         * doc/posix-functions/wprintf.texi: Likewise.
46165         * doc/posix-functions/wscanf.texi: Likewise.
46166
46167 2008-12-21  Bruno Haible  <bruno@clisp.org>
46168
46169         Work around a portability problem.
46170         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46171         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46172
46173 2008-12-20  Bruno Haible  <bruno@clisp.org>
46174
46175         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46176         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46177         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46179         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46180
46181         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46182         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46183         set.
46184         (GNULIB_defined_mbstate_t): New macro.
46185         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46186         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46187         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46188         reuses the system's mbrtowc function but works around the bugs.
46189         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46190         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46191         macros.
46192         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46193         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46194         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46195         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46196         REPLACE_MBSINIT if mbsinit needs to be overridden.
46197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46198         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46199         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46200         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46201         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46202         m4/locale-zh.m4.
46203         (Depends): Add mbsinit.
46204         * modules/mbsinit (Depends): Add mbrtowc.
46205         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46206
46207 2008-12-20  Bruno Haible  <bruno@clisp.org>
46208
46209         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46210         so that there are no conversion errors on AIX.
46211         * tests/test-mbsrtowcs.c (main): LIkewise.
46212
46213 2008-12-20  Bruno Haible  <bruno@clisp.org>
46214
46215         Work around wctob bug on Solaris <= 9.
46216         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46217         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46219         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46220         * modules/wctob (Files): Add m4/locale-fr.m4.
46221         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46222
46223 2008-12-20  Bruno Haible  <bruno@clisp.org>
46224
46225         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46226         /dev/null.
46227         * tests/test-select-in.sh: Likewise.
46228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46229
46230 2008-12-20  Bruno Haible  <bruno@clisp.org>
46231
46232         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46233         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46234         Cygwin 1.5.x.
46235
46236 2008-12-20  Bruno Haible  <bruno@clisp.org>
46237
46238         Ensure mbstate_t is defined on HP-UX 11.11.
46239         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46240         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46241         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46242         AC_USE_SYSTEM_EXTENSIONS.
46243         * modules/fnmatch (Depends-on): Add extensions.
46244         * modules/mbrlen (Depends-on): Likewise.
46245         * modules/mbrtowc (Depends-on): Likewise.
46246         * modules/mbsinit (Depends-on): Likewise.
46247         * modules/mbsrtowcs (Depends-on): Likewise.
46248         * modules/mbswidth (Depends-on): Likewise.
46249         * modules/quotearg (Depends-on): Likewise.
46250         * modules/strftime (Depends-on): Likewise.
46251
46252 2008-12-20  Bruno Haible  <bruno@clisp.org>
46253
46254         Ensure wctob is declared on IRIX 6.5.
46255         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46256         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46257         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46259         of HAVE_WCTOB.
46260         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46261         HAVE_WCTOB.
46262         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46263
46264 2008-12-19  Bruno Haible  <bruno@clisp.org>
46265
46266         * modules/mbsrtowcs-tests: New file.
46267         * tests/test-mbsrtowcs1.sh: New file.
46268         * tests/test-mbsrtowcs2.sh: New file.
46269         * tests/test-mbsrtowcs3.sh: New file.
46270         * tests/test-mbsrtowcs4.sh: New file.
46271         * tests/test-mbsrtowcs.c: New file.
46272
46273         New module 'mbsrtowcs'.
46274         * lib/wchar.in.h (mbsrtowcs): New declaration.
46275         * lib/mbsrtowcs.c: New file.
46276         * m4/mbsrtowcs.m4: New file.
46277         * modules/mbsrtowcs: New file.
46278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46279         HAVE_MBSRTOWCS.
46280         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46281         HAVE_MBSRTOWCS.
46282         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46283
46284 2008-12-19  Bruno Haible  <bruno@clisp.org>
46285
46286         New module 'mbrlen'.
46287         * lib/wchar.in.h (mbrlen): New declaration.
46288         * lib/mbrlen.c: New file.
46289         * m4/mbrlen.m4: New file.
46290         * modules/mbrlen: New file.
46291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
46292         HAVE_MBRLEN.
46293         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
46294         HAVE_MBRLEN.
46295         * doc/posix-functions/mbrlen.texi: Document the new module.
46296
46297 2008-12-19  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46300         * modules/mbrtowc (Depends-on): Add verify.
46301         Suggested by Paul Eggert.
46302
46303 2008-12-18  Bruno Haible  <bruno@clisp.org>
46304
46305         * modules/mbsinit-tests: New file.
46306         * tests/test-mbsinit.sh: New file.
46307         * tests/test-mbsinit.c: New file.
46308
46309 2008-12-18  Bruno Haible  <bruno@clisp.org>
46310
46311         * modules/mbrtowc-tests: New file.
46312         * tests/test-mbrtowc1.sh: New file.
46313         * tests/test-mbrtowc2.sh: New file.
46314         * tests/test-mbrtowc3.sh: New file.
46315         * tests/test-mbrtowc4.sh: New file.
46316         * tests/test-mbrtowc.c: New file.
46317
46318         New module 'mbrtowc'.
46319         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46320         mbsinit and mbrtowc.
46321         (mbrtowc): New declaration.
46322         * lib/mbrtowc.c: New file.
46323         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46324         * modules/mbrtowc: New file.
46325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46326         HAVE_MBRTOWC.
46327         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46328         HAVE_MBRTOWC.
46329         * doc/posix-functions/mbrtowc.texi: Document the new module.
46330
46331 2008-12-18  Bruno Haible  <bruno@clisp.org>
46332
46333         New module 'wctob'.
46334         * lib/wchar.in.h (wctob): New declaration.
46335         * lib/wctob.c: New file.
46336         * m4/wctob.m4: New file.
46337         * modules/wctob: New file.
46338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46339         HAVE_WCTOB.
46340         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46341         * doc/posix-functions/wctob.texi: Document the new module.
46342
46343 2008-12-18  Bruno Haible  <bruno@clisp.org>
46344
46345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46346         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46347
46348 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46349
46350         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46351         G. Christensen" <tgc@jupiterrise.com>.
46352
46353         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46354         G. Christensen" <tgc@jupiterrise.com>.
46355
46356         * lib/flock.c: Need to include string.h.  Reported by "Tom
46357         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46358         <ebb9@byu.net>.
46359
46360 2008-12-18  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/locale-ja.m4: New file, from GNU gettext.
46363
46364 2008-12-17  Bruno Haible  <bruno@clisp.org>
46365
46366         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46367         Suggested by Eric Blake.
46368
46369 2008-12-17  Bruno Haible  <bruno@clisp.org>
46370
46371         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46372
46373 2008-12-17  Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46376         * modules/mbsinit (Depends-on): Add verify.
46377         Suggested by Paul Eggert.
46378
46379 2008-12-17  Bruno Haible  <bruno@clisp.org>
46380
46381         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46382         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46383         gl_FUNC_MBRTOWC.
46384         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46385         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46386         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46387         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46388         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46389         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46390         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46391         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46392         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46393         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46394         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46395         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46396         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46397         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46398         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46399         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46400         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46401         * modules/trim (configure.ac): Likewise.
46402
46403 2008-12-17  Bruno Haible  <bruno@clisp.org>
46404
46405         * modules/btowc-tests: New file.
46406         * tests/test-btowc1.sh: New file.
46407         * tests/test-btowc2.sh: New file.
46408         * tests/test-btowc.c: New file.
46409
46410         New module 'btowc'.
46411         * lib/wchar.in.h (btowc): New declaration.
46412         * lib/btowc.c: New file.
46413         * m4/btowc.m4: New file.
46414         * modules/btowc: New file.
46415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46416         HAVE_BTOWC.
46417         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46418         * doc/posix-functions/btowc.texi: Document the new module.
46419
46420 2008-12-17  Bruno Haible  <bruno@clisp.org>
46421
46422         New module 'mbsinit'.
46423         * lib/wchar.in.h (mbsinit): New declaration.
46424         * lib/mbsinit.c: New file.
46425         * m4/mbsinit.m4: New file.
46426         * modules/mbsinit: New file.
46427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46428         HAVE_MBSINIT.
46429         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46430         HAVE_MBSINIT.
46431         * doc/posix-functions/mbsinit.texi: Document the new module.
46432
46433 2008-12-16  Bruno Haible  <bruno@clisp.org>
46434
46435         * lib/unistd.in.h: Add comment.
46436         * tests/test-environ.c: Don't include <stdlib.h>.
46437
46438 2008-12-16  Bruno Haible  <bruno@clisp.org>
46439
46440         * lib/parse-duration.h (parse_duration): Document return value
46441         convention.
46442         * lib/parse-duration.c: Include specification header first. Add
46443         comments.
46444         (_): Remove macro.
46445         (parse_year_month_day, parse_hour_minute_second): Move side effects
46446         outside of strchr call.
46447         (parse_non_iso8601): Move side effects outside of isspace call.
46448         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46449         call.
46450
46451 2008-12-16  Bruno Haible  <bruno@clisp.org>
46452
46453         * tests/test-parse-duration.sh: Produce no output when the test
46454         succeeds.
46455
46456 2008-12-16  Bruno Haible  <bruno@clisp.org>
46457
46458         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46459         expressions.
46460
46461 2008-12-15  Bruno Haible  <bruno@clisp.org>
46462
46463         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46464         * doc/glibc-functions/flistxattr.texi: Likewise.
46465         * doc/glibc-functions/fopencookie.texi: Likewise.
46466         * doc/glibc-functions/fremovexattr.texi: Likewise.
46467         * doc/glibc-functions/fsetxattr.texi: Likewise.
46468         * doc/glibc-functions/getxattr.texi: Likewise.
46469         * doc/glibc-functions/lgetxattr.texi: Likewise.
46470         * doc/glibc-functions/listxattr.texi: Likewise.
46471         * doc/glibc-functions/llistxattr.texi: Likewise.
46472         * doc/glibc-functions/lremovexattr.texi: Likewise.
46473         * doc/glibc-functions/lsetxattr.texi: Likewise.
46474         * doc/glibc-functions/removexattr.texi: Likewise.
46475         * doc/glibc-functions/setxattr.texi: Likewise.
46476         * doc/posix-functions/open_memstream.texi: Likewise.
46477
46478 2008-12-15  Eric Blake  <ebb9@byu.net>
46479
46480         Update doc for cygwin 1.7.
46481         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46482         functions.
46483         * doc/posix-functions/fchmodat.texi: Likewise.
46484         * doc/posix-functions/fchownat.texi: Likewise.
46485         * doc/posix-functions/fdopendir.texi: Likewise.
46486         * doc/posix-functions/fmemopen.texi: Likewise.
46487         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46488         * doc/posix-functions/fstatat.texi: Likewise.
46489         * doc/posix-functions/futimens.texi: Likewise.
46490         * doc/posix-functions/gai_strerror.texi: Likewise.
46491         * doc/posix-functions/getaddrinfo.texi: Likewise.
46492         * doc/posix-functions/getnameinfo.texi: Likewise.
46493         * doc/posix-functions/if_freenameindex.texi: Likewise.
46494         * doc/posix-functions/if_indextoname.texi: Likewise.
46495         * doc/posix-functions/if_nameindex.texi: Likewise.
46496         * doc/posix-functions/if_nametoindex.texi: Likewise.
46497         * doc/posix-functions/insque.texi: Likewise.
46498         * doc/posix-functions/linkat.texi: Likewise.
46499         * doc/posix-functions/llrint.texi: Likewise.
46500         * doc/posix-functions/llrintf.texi: Likewise.
46501         * doc/posix-functions/llrintl.texi: Likewise.
46502         * doc/posix-functions/lockf.texi: Likewise.
46503         * doc/posix-functions/lrintl.texi: Likewise.
46504         * doc/posix-functions/mkdirat.texi: Likewise.
46505         * doc/posix-functions/mkfifoat.texi: Likewise.
46506         * doc/posix-functions/mknodat.texi: Likewise.
46507         * doc/posix-functions/mq_close.texi: Likewise.
46508         * doc/posix-functions/mq_getattr.texi: Likewise.
46509         * doc/posix-functions/mq_notify.texi: Likewise.
46510         * doc/posix-functions/mq_open.texi: Likewise.
46511         * doc/posix-functions/mq_receive.texi: Likewise.
46512         * doc/posix-functions/mq_send.texi: Likewise.
46513         * doc/posix-functions/mq_setattr.texi: Likewise.
46514         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46515         * doc/posix-functions/mq_timedsend.texi: Likewise.
46516         * doc/posix-functions/mq_unlink.texi: Likewise.
46517         * doc/posix-functions/open_memstream.texi: Likewise.
46518         * doc/posix-functions/openat.texi: Likewise.
46519         * doc/posix-functions/posix_fadvise.texi: Likewise.
46520         * doc/posix-functions/posix_fallocate.texi: Likewise.
46521         * doc/posix-functions/posix_madvise.texi: Likewise.
46522         * doc/posix-functions/posix_memalign.texi: Likewise.
46523         * doc/posix-functions/posix_openpt.texi: Likewise.
46524         * doc/posix-functions/readlinkat.texi: Likewise.
46525         * doc/posix-functions/remque.texi: Likewise.
46526         * doc/posix-functions/renameat.texi: Likewise.
46527         * doc/posix-functions/rintl.texi: Likewise.
46528         * doc/posix-functions/sem_unlink.texi: Likewise.
46529         * doc/posix-functions/shm_open.texi: Likewise.
46530         * doc/posix-functions/shm_unlink.texi: Likewise.
46531         * doc/posix-functions/signgam.texi: Likewise.
46532         * doc/posix-functions/sigset.texi: Likewise.
46533         * doc/posix-functions/stpcpy.texi: Likewise.
46534         * doc/posix-functions/stpncpy.texi: Likewise.
46535         * doc/posix-functions/strerror.texi: Likewise.
46536         * doc/posix-functions/strtod.texi: Likewise.
46537         * doc/posix-functions/symlinkat.texi: Likewise.
46538         * doc/posix-functions/unlinkat.texi: Likewise.
46539         * doc/posix-functions/utimensat.texi: Likewise.
46540         * doc/glibc-functions/bindresvport.texi: Likewise.
46541         * doc/glibc-functions/dn_expand.texi: Likewise.
46542         * doc/glibc-functions/exp10.texi: Likewise.
46543         * doc/glibc-functions/exp10f.texi: Likewise.
46544         * doc/glibc-functions/fgetxattr.texi: Likewise.
46545         * doc/glibc-functions/flistxattr.texi: Likewise.
46546         * doc/glibc-functions/fopencookie.texi: Likewise.
46547         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46548         * doc/glibc-functions/fremovexattr.texi: Likewise.
46549         * doc/glibc-functions/fsetxattr.texi: Likewise.
46550         * doc/glibc-functions/getifaddrs.texi: Likewise.
46551         * doc/glibc-functions/getxattr.texi: Likewise.
46552         * doc/glibc-functions/lgetxattr.texi: Likewise.
46553         * doc/glibc-functions/listxattr.texi: Likewise.
46554         * doc/glibc-functions/llistxattr.texi: Likewise.
46555         * doc/glibc-functions/lremovexattr.texi: Likewise.
46556         * doc/glibc-functions/lsetxattr.texi: Likewise.
46557         * doc/glibc-functions/pow10.texi: Likewise.
46558         * doc/glibc-functions/pow10f.texi: Likewise.
46559         * doc/glibc-functions/rcmd_af.texi: Likewise.
46560         * doc/glibc-functions/removexattr.texi: Likewise.
46561         * doc/glibc-functions/res_init.texi: Likewise.
46562         * doc/glibc-functions/res_mkquery.texi: Likewise.
46563         * doc/glibc-functions/res_query.texi: Likewise.
46564         * doc/glibc-functions/res_querydomain.texi: Likewise.
46565         * doc/glibc-functions/res_send.texi: Likewise.
46566         * doc/glibc-functions/rresvport_af.texi: Likewise.
46567         * doc/glibc-functions/setxattr.texi: Likewise.
46568         * doc/glibc-functions/strcasestr.texi: Likewise.
46569
46570 2008-12-15  Bruno Haible  <bruno@clisp.org>
46571
46572         Fix compilation error on OSF/1 4.0.
46573         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46574         <sys/time.h>, simply delegate to the system header.
46575         Reported by Daniel Richard G. <oss@teragram.com>.
46576
46577 2008-12-15  Bruno Haible  <bruno@clisp.org>
46578
46579         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46580         * doc/posix-functions/fchmodat.texi: Likewise.
46581         * doc/posix-functions/fchownat.texi: Likewise.
46582         * doc/posix-functions/fdopendir.texi: Likewise.
46583         * doc/posix-functions/fstatat.texi: Likewise.
46584         * doc/posix-functions/mkdirat.texi: Likewise.
46585         * doc/posix-functions/unlinkat.texi: Likewise.
46586
46587 2008-12-14  Bruno Haible  <bruno@clisp.org>
46588
46589         Update doc for POSIX:2008.
46590         * doc/posix-functions/faccessat.texi: New file.
46591         * doc/posix-functions/fchmodat.texi: New file.
46592         * doc/posix-functions/fchownat.texi: New file.
46593         * doc/posix-functions/fdopendir.texi: New file.
46594         * doc/posix-functions/fstatat.texi: New file.
46595         * doc/posix-functions/futimens.texi: New file.
46596         * doc/posix-functions/linkat.texi: New file.
46597         * doc/posix-functions/mkdirat.texi: New file.
46598         * doc/posix-functions/mkfifoat.texi: New file.
46599         * doc/posix-functions/mknodat.texi: New file.
46600         * doc/posix-functions/open_wmemstream.texi: New file.
46601         * doc/posix-functions/openat.texi: New file.
46602         * doc/posix-functions/psiginfo.texi: New file.
46603         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46604         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46605         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46606         * doc/posix-functions/readlinkat.texi: New file.
46607         * doc/posix-functions/renameat.texi: New file.
46608         * doc/posix-functions/strerror_l.texi: New file.
46609         * doc/posix-functions/symlinkat.texi: New file.
46610         * doc/posix-functions/unlinkat.texi: New file.
46611         * doc/posix-functions/utimensat.texi: New file.
46612         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46613
46614 2008-12-14  Bruno Haible  <bruno@clisp.org>
46615
46616         Update doc for POSIX:2008.
46617         * doc/posix-functions/alphasort.texi: Renamed from
46618         doc/glibc-functions/alphasort.texi.
46619         * doc/posix-functions/dirfd.texi: Renamed from
46620         doc/glibc-functions/dirfd.texi.
46621         * doc/posix-functions/dprintf.texi: Renamed from
46622         doc/glibc-functions/dprintf.texi.
46623         * doc/posix-functions/duplocale.texi: Renamed from
46624         doc/glibc-functions/duplocale.texi.
46625         * doc/posix-functions/fexecve.texi: Renamed from
46626         doc/glibc-functions/fexecve.texi.
46627         * doc/posix-functions/fmemopen.texi: Renamed from
46628         doc/glibc-functions/fmemopen.texi.
46629         * doc/posix-functions/freelocale.texi: Renamed from
46630         doc/glibc-functions/freelocale.texi.
46631         * doc/posix-functions/getdate_err.texi: Renamed from
46632         doc/glibc-functions/getdate_err.texi.
46633         * doc/posix-functions/isalnum_l.texi: Renamed from
46634         doc/glibc-functions/isalnum_l.texi.
46635         * doc/posix-functions/isalpha_l.texi: Renamed from
46636         doc/glibc-functions/isalpha_l.texi.
46637         * doc/posix-functions/isblank_l.texi: Renamed from
46638         doc/glibc-functions/isblank_l.texi.
46639         * doc/posix-functions/iscntrl_l.texi: Renamed from
46640         doc/glibc-functions/iscntrl_l.texi.
46641         * doc/posix-functions/isdigit_l.texi: Renamed from
46642         doc/glibc-functions/isdigit_l.texi.
46643         * doc/posix-functions/isgraph_l.texi: Renamed from
46644         doc/glibc-functions/isgraph_l.texi.
46645         * doc/posix-functions/islower_l.texi: Renamed from
46646         doc/glibc-functions/islower_l.texi.
46647         * doc/posix-functions/isprint_l.texi: Renamed from
46648         doc/glibc-functions/isprint_l.texi.
46649         * doc/posix-functions/ispunct_l.texi: Renamed from
46650         doc/glibc-functions/ispunct_l.texi.
46651         * doc/posix-functions/isspace_l.texi: Renamed from
46652         doc/glibc-functions/isspace_l.texi.
46653         * doc/posix-functions/isupper_l.texi: Renamed from
46654         doc/glibc-functions/isupper_l.texi.
46655         * doc/posix-functions/iswalnum_l.texi: Renamed from
46656         doc/glibc-functions/iswalnum_l.texi.
46657         * doc/posix-functions/iswalpha_l.texi: Renamed from
46658         doc/glibc-functions/iswalpha_l.texi.
46659         * doc/posix-functions/iswblank_l.texi: Renamed from
46660         doc/glibc-functions/iswblank_l.texi.
46661         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46662         doc/glibc-functions/iswcntrl_l.texi.
46663         * doc/posix-functions/iswctype_l.texi: Renamed from
46664         doc/glibc-functions/iswctype_l.texi.
46665         * doc/posix-functions/iswdigit_l.texi: Renamed from
46666         doc/glibc-functions/iswdigit_l.texi.
46667         * doc/posix-functions/iswgraph_l.texi: Renamed from
46668         doc/glibc-functions/iswgraph_l.texi.
46669         * doc/posix-functions/iswlower_l.texi: Renamed from
46670         doc/glibc-functions/iswlower_l.texi.
46671         * doc/posix-functions/iswprint_l.texi: Renamed from
46672         doc/glibc-functions/iswprint_l.texi.
46673         * doc/posix-functions/iswpunct_l.texi: Renamed from
46674         doc/glibc-functions/iswpunct_l.texi.
46675         * doc/posix-functions/iswspace_l.texi: Renamed from
46676         doc/glibc-functions/iswspace_l.texi.
46677         * doc/posix-functions/iswupper_l.texi: Renamed from
46678         doc/glibc-functions/iswupper_l.texi.
46679         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46680         doc/glibc-functions/iswxdigit_l.texi.
46681         * doc/posix-functions/isxdigit_l.texi: Renamed from
46682         doc/glibc-functions/isxdigit_l.texi.
46683         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46684         doc/glibc-functions/mbsnrtowcs.texi.
46685         * doc/posix-functions/mkdtemp.texi: Renamed from
46686         doc/glibc-functions/mkdtemp.texi.
46687         * doc/posix-functions/newlocale.texi: Renamed from
46688         doc/glibc-functions/newlocale.texi.
46689         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46690         doc/glibc-functions/nl_langinfo_l.texi.
46691         * doc/posix-functions/open_memstream.texi: Renamed from
46692         doc/glibc-functions/open_memstream.texi.
46693         * doc/posix-functions/opterr.texi: Renamed from
46694         doc/glibc-functions/opterr.texi.
46695         * doc/posix-functions/optind.texi: Renamed from
46696         doc/glibc-functions/optind.texi.
46697         * doc/posix-functions/optopt.texi: Renamed from
46698         doc/glibc-functions/optopt.texi.
46699         * doc/posix-functions/psignal.texi: Renamed from
46700         doc/glibc-functions/psignal.texi.
46701         * doc/posix-functions/scandir.texi: Renamed from
46702         doc/glibc-functions/scandir.texi.
46703         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46704         doc/glibc-functions/sched_get_priority_min.texi.
46705         * doc/posix-functions/signgam.texi: Renamed from
46706         doc/glibc-functions/signgam.texi.
46707         * doc/posix-functions/stpcpy.texi: Renamed from
46708         doc/glibc-functions/stpcpy.texi.
46709         * doc/posix-functions/stpncpy.texi: Renamed from
46710         doc/glibc-functions/stpncpy.texi.
46711         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46712         doc/glibc-functions/strcasecmp_l.texi.
46713         * doc/posix-functions/strcoll_l.texi: Renamed from
46714         doc/glibc-functions/strcoll_l.texi.
46715         * doc/posix-functions/strfmon_l.texi: Renamed from
46716         doc/glibc-functions/strfmon_l.texi.
46717         * doc/posix-functions/strftime_l.texi: Renamed from
46718         doc/glibc-functions/strftime_l.texi.
46719         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46720         doc/glibc-functions/strncasecmp_l.texi.
46721         * doc/posix-functions/strndup.texi: Renamed from
46722         doc/glibc-functions/strndup.texi.
46723         * doc/posix-functions/strnlen.texi: Renamed from
46724         doc/glibc-functions/strnlen.texi.
46725         * doc/posix-functions/strsignal.texi: Renamed from
46726         doc/glibc-functions/strsignal.texi.
46727         * doc/posix-functions/strxfrm_l.texi: Renamed from
46728         doc/glibc-functions/strxfrm_l.texi.
46729         * doc/posix-functions/timer_gettime.texi: Renamed from
46730         doc/glibc-functions/timer_gettime.texi.
46731         * doc/posix-functions/tolower_l.texi: Renamed from
46732         doc/glibc-functions/tolower_l.texi.
46733         * doc/posix-functions/toupper_l.texi: Renamed from
46734         doc/glibc-functions/toupper_l.texi.
46735         * doc/posix-functions/towctrans_l.texi: Renamed from
46736         doc/glibc-functions/towctrans_l.texi.
46737         * doc/posix-functions/towlower_l.texi: Renamed from
46738         doc/glibc-functions/towlower_l.texi.
46739         * doc/posix-functions/towupper_l.texi: Renamed from
46740         doc/glibc-functions/towupper_l.texi.
46741         * doc/posix-functions/uselocale.texi: Renamed from
46742         doc/glibc-functions/uselocale.texi.
46743         * doc/posix-functions/vdprintf.texi: Renamed from
46744         doc/glibc-functions/vdprintf.texi.
46745         * doc/posix-functions/wcpcpy.texi:
46746         Renamed from doc/glibc-functions/wcpcpy.texi.
46747         * doc/posix-functions/wcpncpy.texi: Renamed from
46748         doc/glibc-functions/wcpncpy.texi.
46749         * doc/posix-functions/wcscasecmp.texi: Renamed from
46750         doc/glibc-functions/wcscasecmp.texi.
46751         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46752         doc/glibc-functions/wcscasecmp_l.texi.
46753         * doc/posix-functions/wcscoll_l.texi: Renamed from
46754         doc/glibc-functions/wcscoll_l.texi.
46755         * doc/posix-functions/wcsdup.texi: Renamed from
46756         doc/glibc-functions/wcsdup.texi.
46757         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46758         doc/glibc-functions/wcsncasecmp.texi.
46759         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46760         doc/glibc-functions/wcsncasecmp_l.texi.
46761         * doc/posix-functions/wcsnlen.texi: Renamed from
46762         doc/glibc-functions/wcsnlen.texi.
46763         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46764         doc/glibc-functions/wcsnrtombs.texi.
46765         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46766         doc/glibc-functions/wcsxfrm_l.texi.
46767         * doc/posix-functions/wctrans_l.texi: Renamed from
46768         doc/glibc-functions/wctrans_l.texi.
46769         * doc/posix-functions/wctype_l.texi: Renamed from
46770         doc/glibc-functions/wctype_l.texi.
46771         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46772         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46773         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46774         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46775         these subsections.
46776         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46777         Remove sections.
46778
46779 2008-12-14  Bruno Haible  <bruno@clisp.org>
46780
46781         Update doc for POSIX:2008.
46782         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46783
46784 2008-12-14  Bruno Haible  <bruno@clisp.org>
46785
46786         Update doc for POSIX:2008.
46787         * doc/pastposix-functions/bcmp.texi: Renamed from
46788         doc/posix-functions/bcmp.texi.
46789         * doc/pastposix-functions/bcopy.texi: Renamed from
46790         doc/posix-functions/bcopy.texi.
46791         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46792         doc/posix-functions/bsd_signal.texi.
46793         * doc/pastposix-functions/bzero.texi: Renamed from
46794         doc/posix-functions/bzero.texi.
46795         * doc/pastposix-functions/ecvt.texi: Renamed from
46796         doc/posix-functions/ecvt.texi.
46797         * doc/pastposix-functions/fcvt.texi: Renamed from
46798         doc/posix-functions/fcvt.texi.
46799         * doc/pastposix-functions/ftime.texi: Renamed from
46800         doc/posix-functions/ftime.texi.
46801         * doc/pastposix-functions/gcvt.texi: Renamed from
46802         doc/posix-functions/gcvt.texi.
46803         * doc/pastposix-functions/getcontext.texi: Renamed from
46804         doc/posix-functions/getcontext.texi.
46805         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46806         doc/posix-functions/gethostbyaddr.texi.
46807         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46808         doc/posix-functions/gethostbyname.texi.
46809         * doc/pastposix-functions/getwd.texi: Renamed from
46810         doc/posix-functions/getwd.texi.
46811         * doc/pastposix-functions/h_errno.texi: Renamed from
46812         doc/posix-functions/h_errno.texi.
46813         * doc/pastposix-functions/index.texi: Renamed from
46814         doc/posix-functions/index.texi.
46815         * doc/pastposix-functions/makecontext.texi: Renamed from
46816         doc/posix-functions/makecontext.texi.
46817         * doc/pastposix-functions/mktemp.texi: Renamed from
46818         doc/posix-functions/mktemp.texi.
46819         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46820         doc/posix-functions/pthread_attr_getstackaddr.texi.
46821         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46822         doc/posix-functions/pthread_attr_setstackaddr.texi.
46823         * doc/pastposix-functions/rindex.texi: Renamed from
46824         doc/posix-functions/rindex.texi.
46825         * doc/pastposix-functions/scalb.texi: Renamed from
46826         doc/posix-functions/scalb.texi.
46827         * doc/pastposix-functions/setcontext.texi: Renamed from
46828         doc/posix-functions/setcontext.texi.
46829         * doc/pastposix-functions/swapcontext.texi: Renamed from
46830         doc/posix-functions/swapcontext.texi.
46831         * doc/pastposix-functions/ualarm.texi: Renamed from
46832         doc/posix-functions/ualarm.texi.
46833         * doc/pastposix-functions/usleep.texi: Renamed from
46834         doc/posix-functions/usleep.texi.
46835         * doc/pastposix-functions/vfork.texi: Renamed from
46836         doc/posix-functions/vfork.texi.
46837         * doc/pastposix-functions/wcswcs.texi: Renamed from
46838         doc/posix-functions/wcswcs.texi.
46839         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46840         (Function Substitutes): Update.
46841
46842 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46843
46844         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46845         m4/strerror.m4.
46846
46847 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46848             Bruno Haible  <bruno@clisp.org>
46849
46850         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46851
46852 2008-12-13  Bruno Haible  <bruno@clisp.org>
46853
46854         * modules/strtoull (Depends-on): Remove unistd.
46855
46856 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46857
46858         * modules/strtoull (Depends-on): Add stdlib.
46859
46860 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46861
46862         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46863
46864 2008-12-10  Jim Meyering  <meyering@redhat.com>
46865
46866         gl_ASSERT: don't say assertions are disabled when they're not
46867         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46868         "checking whether to enable assertions... no", when they are in
46869         fact enabled.  This is solely a bug in the output of configure.
46870         In spite of saying "no", NDEBUG was not defined in that case.
46871         Also, as noted by Eric Blake, leave assertions enabled upon
46872         --enable-assert=INVALID.
46873
46874 2008-12-10  Bruno Haible  <bruno@clisp.org>
46875
46876         Change MODULES.html to refer to POSIX:2008 where possible.
46877         * MODULES.html.sh (POSIX2008_URL): New variable.
46878         (posix_headers): Remove sys/timeb, ucontext.
46879         (posix2001_headers): New variable.
46880         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46881         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46882         index, makecontext, mktemp, pthread_attr_getstackaddr,
46883         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46884         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46885         (posix2001_functions): New variable.
46886         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46887         otherwise.
46888
46889 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890
46891         add missing include to parse-duration.c
46892         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46893         * modules/parse-duration (Depends-on): Add xalloc.
46894
46895         fix sed script reading maint.mk
46896         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46897         (syntax-check-rules): Use it.
46898
46899 2008-12-09  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46902         MacOS X 10.4/PowerPC.
46903         Reported by Simon Josefsson.
46904
46905 2008-12-08  Jim Meyering  <meyering@redhat.com>
46906
46907         work around mingw's lack of some S_IF definitions
46908         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46909         Reported by Simon Josefsson.
46910
46911 2008-12-08  Bruno Haible  <bruno@clisp.org>
46912
46913         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46914         applied to variables. Needed on MacOS X 10.4/PowerPC.
46915         Reported by Simon Josefsson.
46916
46917 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46918         and Eric Blake  <ebb9@byu.net>
46919
46920         assert: honor --enable-assert
46921         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46922         order to honor --enable-assert, rather than treating it as a
46923         synonym for --disable-assert.
46924
46925 2008-12-08  Jim Meyering  <meyering@redhat.com>
46926
46927         * lib/posixtm.c: Remove now-useless declaration of mktime.
46928
46929         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46930
46931 2008-12-07  Bruno Haible  <bruno@clisp.org>
46932
46933         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46934         test_once): Mark functions as static.
46935         * tests/test-tls.c (test_tls): Likewise.
46936
46937 2008-12-07  Bruno Haible  <bruno@clisp.org>
46938
46939         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46940         iconv_register_autodetect.
46941
46942 2008-12-07  Jim Meyering  <meyering@redhat.com>
46943
46944         posixtm.c: avoid a warning
46945         * lib/posixtm.c (posixtime): Don't initialize tm0.
46946         It's no longer needed to placate gcc4's -Wuninitialized,
46947         and the attempt to placate would elicit a new warning.
46948
46949         unicodeio.c: mark unused parameters
46950         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46951         (fallback_failure_callback): Likewise.
46952
46953 2008-12-07  Bruno Haible  <bruno@clisp.org>
46954
46955         * gnulib-tool (func_create_testdir): When building the tests
46956         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46957         Reported by Simon Josefsson.
46958
46959 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46960
46961         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46962
46963 2008-12-06  Bruno Haible  <bruno@clisp.org>
46964
46965         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46966         Suggested by Eric Blake.
46967
46968 2008-12-06  Bruno Haible  <bruno@clisp.org>
46969
46970         Fix a c-stack test failure on MacOS X.
46971         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46972         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46973         handler for SIGBUS as well.
46974         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46975         install a signal handler for SIGBUS as well.
46976         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46977
46978 2008-12-06  Bruno Haible  <bruno@clisp.org>
46979
46980         Advocacy documentation.
46981         * doc/gnulib-intro.texi (Benefits): New section.
46982         * doc/gnulib.texi: Update.
46983
46984 2008-12-06  Bruno Haible  <bruno@clisp.org>
46985
46986         Document the 'manywarnings' module.
46987         * doc/manywarnings.texi: New file.
46988         * doc/gnulib.texi: Include it.
46989
46990 2008-12-05  Eric Blake  <ebb9@byu.net>
46991
46992         tests: silence some gcc warnings
46993         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46994         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46995         type mismatches.
46996
46997 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46998             Bruno Haible  <bruno@clisp.org>
46999
47000         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
47001
47002 2008-11-29  Jim Meyering  <meyering@redhat.com>
47003
47004         unicodeio.c: mark unused parameters
47005         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47006         (fallback_failure_callback): Likewise.
47007
47008         fts: fix a thinko
47009         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
47010         (set_stat_type): Return S_IF*-valued "type" directly.
47011         Prompted by James Youngman's spotting a related bug.
47012         Confirmed by further testing through find.
47013
47014         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47015         * lib/fts.c (D_TYPE): Define.
47016         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47017         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47018         (s_ifmt_shift_bits): New function.
47019         (set_stat_type): New function.
47020         (fts_build): When not calling fts_stat, call set_stat_type
47021         to propagate dirent.d_type info to fts_read caller.
47022         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47023         fts_statp->st_mode type information may be valid.
47024
47025 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47026
47027         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47028         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47029         <sds@gnu.org>.
47030
47031 2008-11-20  Bruno Haible  <bruno@clisp.org>
47032
47033         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47034         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47035         INCLUDE_NEXT.
47036         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47037         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47038         * modules/math (Makefile.am): Substitute
47039         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47040         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47041
47042 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47043             Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/stdint.in.h: Define all type macros so that their expansion is
47046         a single typedef'ed token. Fixes a compilation failure in Boost which
47047         does "using ::int8_t;".
47048
47049 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47050
47051         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47052         gl_MANYWARN_ALL_GCC.
47053         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47054         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47055         * modules/manywarnings: New file.
47056         * MODULES.html.sh: Mention manywarnings module.
47057
47058 2008-11-18  Bruno Haible  <bruno@clisp.org>
47059
47060         * doc/gnulib-tool.texi (Unit tests): New section.
47061
47062 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47063
47064         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47065         paths like 'lib/po/foo.po'.
47066
47067 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47068
47069         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47070         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47071
47072 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47073
47074         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47075         parameter works.
47076
47077 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47078
47079         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47080
47081 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47082
47083         * modules/parse-duration-tests: New file.
47084         * tests/test-parse-duration.sh: New file.
47085         * tests/test-parse-duration.c: New file.
47086
47087         New module 'parse-duration'.
47088         * lib/parse-duration.h: New file.
47089         * lib/parse-duration.c: New file.
47090         * modules/parse-duration: New file.
47091
47092 2008-11-17  Bruno Haible  <bruno@clisp.org>
47093
47094         * tests/test-select-out.sh: Comment out the first pipe test.
47095         Reported by Simon Josefsson.
47096
47097 2008-11-17  Bruno Haible  <bruno@clisp.org>
47098
47099         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47101         gl_HOSTENT.
47102
47103 2008-11-17  Bruno Haible  <bruno@clisp.org>
47104
47105         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47106         -lnetwork and -lnet. Needed for Haiku and BeOS.
47107
47108 2008-11-16  Bruno Haible  <bruno@clisp.org>
47109
47110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47111
47112 2008-11-16  Bruno Haible  <bruno@clisp.org>
47113
47114         Avoid test failure on Haiku.
47115         * tests/test-fsync.c: Include <errno.h>.
47116         (main): Don't require that fsync (0) fails.
47117
47118 2008-11-15  Bruno Haible  <bruno@clisp.org>
47119
47120         New module 'hostent'.
47121         * modules/hostent: New file.
47122         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47123
47124 2008-11-15  Bruno Haible  <bruno@clisp.org>
47125
47126         New module 'servent'.
47127         * modules/servent: New file.
47128         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47129
47130 2008-11-15  Bruno Haible  <bruno@clisp.org>
47131
47132         Avoid generating same test program with two different rules.
47133         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47134         test-frexp to test-frexp-nolibm.
47135         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47136         test-frexpl to test-frexpl-nolibm.
47137
47138 2008-11-15  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47141         $(FREXPL_LIBM).
47142
47143 2008-11-15  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/netdb.in.h: Activate the definitions also when the system's
47146         <netdb.h> has 'struct addrinfo'.
47147         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47148         EAI_OVERFLOW or AI_NUMERICSERV.
47149         * doc/posix-headers/netdb.texi: Document the problem.
47150
47151 2008-11-15  Bruno Haible  <bruno@clisp.org>
47152
47153         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47154
47155         Make the 'sched' module work on platforms where <sched.h> exists but
47156         is incomplete (such as Haiku).
47157         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47158         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47159         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47160         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47161         HAVE_STRUCT_SCHED_PARAM.
47162         * modules/sched (Depends-on): Add include_next.
47163         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47164         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47165         * doc/posix-headers/sched.texi: Document the issue.
47166
47167 2008-11-13  Jim Meyering  <meyering@redhat.com>
47168
47169         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47170         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47171         test would fail due to the difference in the Report bugs to ...
47172         line.  The expected address is empty, "<>", while the actual
47173         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47174
47175 2008-11-12  Bruno Haible  <bruno@clisp.org>
47176
47177         lstat: don't compile lstat.c on systems lacking lstat
47178         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47179         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47180         Reported by Daniel P. Berrange via Jim Meyering.
47181
47182 2008-11-12  Jim Meyering  <meyering@redhat.com>
47183
47184         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47185
47186 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47187
47188         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47189         instead.
47190
47191 2008-11-12  Bruno Haible  <bruno@clisp.org>
47192
47193         * lib/unicodeio.c: Include unistr.h.
47194         (utf8_wctomb): Remove function.
47195         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47196
47197 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47198
47199         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47200         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47201         <bruno@clisp.org>.
47202         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47203
47204 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47205
47206         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47207         * doc/gnulib.texi: Add section for warnings.
47208
47209 2008-11-11  Bruno Haible  <bruno@clisp.org>
47210
47211         * lib/sockets.h: Add a comment.
47212
47213 2008-11-11  Karl Berry  <karl@gnu.org>
47214
47215         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47216
47217 2008-11-11  Eric Blake  <ebb9@byu.net>
47218
47219         fdl.texi: avoid git symlinks
47220         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47221
47222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47223
47224         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47225
47226 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47227
47228         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47229         (gl_WARN_ADD): Substitute $2 if literal.
47230
47231 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47232
47233         * m4/warning.m4: Remove.
47234
47235 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47236
47237         * m4/warnings.m4: Almost complete rewrite. :-)
47238
47239 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47240
47241         * modules/warnings: New module.
47242         * m4/warnings.m4: New file.
47243         * MODULES.html.sh: Mention warnings module.
47244         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47245         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47246
47247 2008-11-10  Eric Blake  <ebb9@byu.net>
47248
47249         fdl.texi: make a symlink to the latest version
47250         * doc/standards.texi: Revert today's earlier change.
47251         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47252         * doc/fdl.texi: ...and replace this with a symlink to the newer
47253         fdl-1.3.texi.
47254
47255 2008-11-10  Bruno Haible  <bruno@clisp.org>
47256
47257         * tests/test-select-fd.c (main): Accept the result file name as fourth
47258         argument.
47259         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47260         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47261
47262 2008-11-10  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47265         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47266         as autoconf-substituted macros.
47267         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47268         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47269         gl_NETDB_H_DEFAULTS. Set these variables.
47270         * modules/netdb (Makefile.am): Substitute these variables.
47271
47272 2008-11-10  Eric Blake  <ebb9@byu.net>
47273
47274         standards.texi: include correct file for FDL 1.3
47275         * doc/standards.texi (GNU Free Documentation License): Change
47276         include file to pull in FDL 1.3, not 1.2.
47277
47278         fdl.texi: revert accidental change to license
47279         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47280
47281 2008-11-10  Bruno Haible  <bruno@clisp.org>
47282
47283         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47284         cross-compiling guesses also when the native compile gives no result.
47285
47286 2008-11-10  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/spawni.c (__spawni): Force variable into the stack.
47289
47290 2008-11-10  Bruno Haible  <bruno@clisp.org>
47291
47292         Add support for Haiku.
47293         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
47294         glibc and BeOS, but also on Haiku.
47295         * lib/fpurge.c (fpurge): Likewise.
47296         * lib/freadable.c (freadable): Likewise.
47297         * lib/freadahead.c (freadahead): Likewise.
47298         * lib/freading.c (freading): Likewise.
47299         * lib/freadptr.c (freadptr): Likewise.
47300         * lib/freadseek.c (freadptrinc): Likewise.
47301         * lib/fseeko.c (rpl_fseeko): Likewise.
47302         * lib/fseterr.c (fseterr): Likewise.
47303         * lib/fwritable.c (fwritable): Likewise.
47304         * lib/fwriting.c (fwriting): Likewise.
47305         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47306
47307 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47308
47309         * lib/config.charset: Treat Haiku like BeOS.
47310
47311 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47312
47313         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47314         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47315
47316 2008-11-08  Bruno Haible  <bruno@clisp.org>
47317
47318         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47319         AC_CACHE_CHECK.
47320
47321 2008-11-08  Bruno Haible  <bruno@clisp.org>
47322
47323         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47324
47325 2008-11-08  Bruno Haible  <bruno@clisp.org>
47326
47327         * tests/test-select-fd.c: New file.
47328         * tests/test-select-in.sh: New file.
47329         * tests/test-select-out.sh: New file.
47330         * tests/test-select-stdin.c: New file.
47331         * modules/select-tests (Files): Add the new files.
47332         (Depends-on): Add gettimeofday.
47333         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47334         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47335         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47336
47337 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47338             Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47341
47342 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47343
47344         * build-aux/pmccabe2html: Added support for C++ source files.
47345
47346 2008-11-05  Ben Pfaff  <blp@gnu.org>
47347
47348         Fix lib/close.c build on Windows.
47349         * modules/close (Files): Add lib/w32sock.h.
47350
47351 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47352
47353         Accept Bison's NEWS format.
47354         * build-aux/announce-gen (print_news_deltas): Tweak
47355         $re_prefix.
47356
47357 2008-11-04  Bruno Haible  <bruno@clisp.org>
47358
47359         * modules/random_r (Maintainer): Add glibc.
47360
47361 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47362
47363         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47364         by karl@freefriends.org (Karl Berry).
47365         * doc/alloca.texi: Likewise.
47366         * doc/c-ctype.texi: Likewise.
47367         * doc/c-strcase.texi: Likewise.
47368         * doc/c-strcaseeq.texi: Likewise.
47369         * doc/c-strcasestr.texi: Likewise.
47370         * doc/c-strstr.texi: Likewise.
47371         * doc/c-strtod.texi: Likewise.
47372         * doc/c-strtold.texi: Likewise.
47373         * doc/ctime.texi: Likewise.
47374         * doc/error.texi: Likewise.
47375         * doc/fdl.texi: Likewise.
47376         * doc/gcd.texi: Likewise.
47377         * doc/getdate.texi: Likewise.
47378         * doc/gnulib-intro.texi: Likewise.
47379         * doc/gnulib-tool.texi: Likewise.
47380         * doc/gnulib.texi: Likewise.
47381         * doc/inet_ntoa.texi: Likewise.
47382         * doc/maintain.texi: Likewise.
47383         * doc/make-stds.texi: Likewise.
47384         * doc/quote.texi: Likewise.
47385         * doc/regexprops-generic.texi: Likewise.
47386         * doc/standards.texi: Likewise.
47387         * doc/verify.texi: Likewise.
47388         * doc/visibility.texi: Likewise.
47389         * doc/gnulib.texi (GNU Free Documentation License): Include
47390         fdl-1.3.texi instead of fdl.texi.
47391
47392 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47393
47394         * doc/fdl-1.3.texi: New file, from
47395         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47396         * modules/fdl-1.3: Add.
47397         * MODULES.html.sh: Add fdl-1.3.
47398
47399 2008-11-03  Bruno Haible  <bruno@clisp.org>
47400
47401         Make determination of absolute name of header file work with AIX xlc.
47402         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47403         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47404         preprocessing.
47405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47406         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47407
47408 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47409
47410         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47411         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47412         <ludo@gnu.org>.
47413
47414 2008-11-02  Bruno Haible  <bruno@clisp.org>
47415
47416         Mark 'strpbrk' obsolete.
47417         * modules/strpbrk (Status, Notice): New sections.
47418         * modules/strtok_r (Depends-on): Add strpbrk.
47419
47420 2008-11-02  Bruno Haible  <bruno@clisp.org>
47421
47422         Mark 'strdup' obsolete.
47423         * modules/strdup (Status, Notice): New sections.
47424         * modules/findprog (Depends-on): Add strdup.
47425         * modules/getaddrinfo (Depends-on): Likewise.
47426         * modules/localename (Depends-on): Likewise.
47427         * modules/relocatable-lib (Depends-on): Likewise.
47428         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47429         * modules/relocatable-prog (Depends-on): Likewise.
47430         * modules/trim (Depends-on): Likewise.
47431         * modules/unictype/gen-ctype (Depends-on): Likewise.
47432         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47433
47434 2008-11-02  Bruno Haible  <bruno@clisp.org>
47435
47436         Mark 'strcspn' obsolete.
47437         * modules/strcspn (Status, Notice): New sections.
47438
47439 2008-11-02  Bruno Haible  <bruno@clisp.org>
47440
47441         Mark 'rmdir' obsolete.
47442         * modules/rmdir (Status, Notice): New sections.
47443         * modules/clean-temp (Depends-on): Add rmdir.
47444         * modules/openat (Depends-on): Likewise.
47445
47446 2008-11-02  Bruno Haible  <bruno@clisp.org>
47447
47448         Mark 'raise' obsolete.
47449         * modules/raise (Status, Notice): New sections.
47450         (Include): Specify <signal.h>.
47451         * modules/stdio (Depends-on): Add raise.
47452         * modules/write (Depends-on): Likewise.
47453
47454 2008-11-02  Bruno Haible  <bruno@clisp.org>
47455
47456         Mark 'memset' obsolete.
47457         * modules/memset (Status, Notice): New sections.
47458
47459 2008-11-02  Bruno Haible  <bruno@clisp.org>
47460
47461         Mark 'memmove' obsolete.
47462         * modules/memmove (Status, Notice): New sections.
47463         * modules/argp (Depends-on): Add memmove.
47464         * modules/argz (Depends-on): Likewise.
47465         * modules/canonicalize (Depends-on): Likewise.
47466         * modules/canonicalize-lgpl (Depends-on): Likewise.
47467         * modules/fts (Depends-on): Likewise.
47468         * modules/getcwd (Depends-on): Likewise.
47469         * modules/human (Depends-on): Likewise.
47470         * modules/regex (Depends-on): Likewise.
47471         * modules/striconveh (Depends-on): Likewise.
47472         * modules/trim (Depends-on): Likewise.
47473         * modules/unistr/u8-move (Depends-on): Likewise.
47474         * modules/unistr/u16-move (Depends-on): Likewise.
47475         * modules/unistr/u32-move (Depends-on): Likewise.
47476
47477 2008-11-02  Bruno Haible  <bruno@clisp.org>
47478
47479         Mark 'memcpy' obsolete.
47480         * modules/memcpy (Status, Notice): New sections.
47481
47482 2008-11-02  Bruno Haible  <bruno@clisp.org>
47483
47484         Mark 'memcmp' obsolete.
47485         * modules/memcmp (Status, Notice): New sections.
47486         * modules/argmatch (Depends-on): Add memchr.
47487         * modules/backupfile (Depends-on): Likewise.
47488         * modules/c-strcasestr (Depends-on): Likewise.
47489         * modules/crypto/des (Depends-on): Likewise.
47490         * modules/csharpcomp (Depends-on): Likewise.
47491         * modules/fnmatch (Depends-on): Likewise.
47492         * modules/git-merge-changelog (Depends-on): Likewise.
47493         * modules/isnand (Depends-on): Likewise.
47494         * modules/isnand-nolibm (Depends-on): Likewise.
47495         * modules/isnanf (Depends-on): Likewise.
47496         * modules/isnanf-nolibm (Depends-on): Likewise.
47497         * modules/isnanl (Depends-on): Likewise.
47498         * modules/isnanl-nolibm (Depends-on): Likewise.
47499         * modules/mbchar (Depends-on): Likewise.
47500         * modules/memcoll (Depends-on): Likewise.
47501         * modules/quotearg (Depends-on): Likewise.
47502         * modules/regex (Depends-on): Likewise.
47503         * modules/relocatable-prog (Depends-on): Likewise.
47504         * modules/same (Depends-on): Likewise.
47505         * modules/signbit (Depends-on): Likewise.
47506         * modules/strcasestr-simple (Depends-on): Likewise.
47507         * modules/unictype/gen-ctype (Depends-on): Likewise.
47508         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47509         * modules/uniname/uniname (Depends-on): Likewise.
47510         * modules/unistr/u8-cmp (Depends-on): Likewise.
47511
47512 2008-11-02  Bruno Haible  <bruno@clisp.org>
47513
47514         Mark 'memchr' obsolete.
47515         * modules/memchr (Status, Notice): New sections.
47516         * modules/argp (Depends-on): Add memchr.
47517         * modules/base64 (Depends-on): Likewise.
47518         * modules/c-strcasestr (Depends-on): Likewise.
47519         * modules/chdir-long (Depends-on): Likewise.
47520         * modules/fnmatch (Depends-on): Likewise.
47521         * modules/getsubopt (Depends-on): Likewise.
47522         * modules/git-merge-changelog (Depends-on): Likewise.
47523         * modules/glob (Depends-on): Likewise.
47524         * modules/strcasestr-simple (Depends-on): Likewise.
47525         * modules/strnlen (Depends-on): Likewise.
47526
47527 2008-11-02  Bruno Haible  <bruno@clisp.org>
47528
47529         Mark 'atexit' obsolete.
47530         * modules/atexit (Status, Notice): New sections.
47531         * modules/chdir-long (Depends-on): Add atexit.
47532         * modules/wait-process (Depends-on): Likewise.
47533
47534 2008-11-02  Bruno Haible  <bruno@clisp.org>
47535
47536         * gnulib-tool: New option --with-obsolete.
47537         (func_usage): Document it.
47538         (func_modules_transitive_closure): Drop obsolete dependencies if
47539         incobsolete is not true.
47540         (func_import): Read and save the incobsolete variable to the cache.
47541
47542 2008-11-02  Bruno Haible  <bruno@clisp.org>
47543
47544         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47545         * gnulib-tool: New option --extract-status.
47546         (func_usage): Document it.
47547         (sed_extract_prog): Recognize it.
47548         (func_get_status): New function.
47549
47550 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47551
47552         * modules/sockets (License): Change from LGPL to LGPLv2+.
47553
47554 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47555
47556         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47557
47558 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47559
47560         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47561         Mention times and sys_times.
47562         * modules/sys_times, modules/sys_times-tests: New modules.
47563         * modules/times, modules/times-tests: Likewise
47564         * m4/sys_times_h.m4: New file.
47565         * lib/sys_times.in.h: Likewise
47566         * lib/times.c: Likewise.
47567         * tests/test-sys_times.c: Likewise.
47568         * tests/test-times.c: Likewise.
47569         * doc/posix-headers/sys_times.texi: Update.
47570         * doc/posix-functions/times.texi: Update.
47571
47572 2008-10-28  Jim Meyering  <meyering@redhat.com>
47573
47574         * modules/tempname (Depends-on): Add lstat.
47575
47576         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47577
47578 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47579
47580         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47581         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47582         using idiom used elsewhere in gnulib.
47583
47584 2008-10-27  Jim Meyering  <meyering@redhat.com>
47585
47586         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47587
47588 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47589
47590         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47591         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47592         programs.
47593         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47594
47595 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47596
47597         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47598
47599 2008-10-27  Bruno Haible  <bruno@clisp.org>
47600
47601         * tests/test-lstat.c: Include <stdio.h>.
47602
47603 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47604
47605         * modules/lstat-tests: New module.
47606         * tests/test-lstat.c: New file.
47607
47608 2008-10-26  Jim Meyering  <meyering@redhat.com>
47609
47610         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47611
47612 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47613             Bruno Haible  <bruno@clisp.org>
47614
47615         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47616         * modules/configmake (Include): Add a note that the include must come
47617         after all system headers.
47618         * lib/javaversion.c: Include configmake.h after all other includes.
47619
47620 2008-10-26  Bruno Haible  <bruno@clisp.org>
47621
47622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47623         HAVE_STRUCT_RANDOM_DATA to 1.
47624         (gl_STDLIB_H): Simplify.
47625
47626 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47627
47628         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47629         substitute HAVE_STRUCT_RANDOM_DATA.
47630         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47631         random_data.
47632         * modules/stdlib (Makefile.am): Substitute
47633         HAVE_STRUCT_RANDOM_DATA.
47634
47635 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47636
47637         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47638         * doc/gnulib-intro.texi (Copyright): Likewise.
47639
47640 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47641
47642         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47643         findings.
47644
47645 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47646             Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/unistd.in.h: Include <winsock2.h>.
47649         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47650         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47651         Provide dummy declarations.
47652         (gethostname): Override.
47653         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47654         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47655         gl_PREREQ_SYS_H_WINSOCK2.
47656         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47657         * doc/posix-functions/gethostname.texi: More details.
47658
47659 2008-10-25  Bruno Haible  <bruno@clisp.org>
47660
47661         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47662         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47663         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47664
47665         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47666         here ...
47667         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47668         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47669         gl_UNISTD_H_DEFAULTS.
47670
47671 2008-10-25  Eric Blake  <ebb9@byu.net>
47672
47673         signbit: avoid spurious compiler failure
47674         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47675         declarations inside function.
47676
47677 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47678             Bruno Haible  <bruno@clisp.org>
47679
47680         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47681         * modules/random_r (Depends-on): Add stdint.
47682
47683 2008-10-24  Bruno Haible  <bruno@clisp.org>
47684
47685         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47686         Eggert.
47687         * modules/strerror (License): Likewise.
47688
47689 2008-10-24  Jim Meyering  <meyering@redhat.com>
47690
47691         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47692         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47693
47694 2008-10-24  Eric Blake  <ebb9@byu.net>
47695
47696         getgroups: fix compilation when getgroups is available
47697         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47698         but with <config.h> override of getgroups disabled.
47699
47700 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47701
47702         * doc/gnulib.texi (Header files): Add note about C++ problems.
47703         Explained by Bruno Haible <bruno@clisp.org>.
47704
47705 2008-10-23  Bruno Haible  <bruno@clisp.org>
47706
47707         Define a dummy SA_NODEFER macro on Interix.
47708         * lib/signal.in.h (SA_NODEFER): Define fallback.
47709         Reported by Aleksey Cheusov <cheusov@tut.by> via
47710         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47711
47712 2008-10-23  Bruno Haible  <bruno@clisp.org>
47713
47714         * modules/freadahead (License): Change to LGPLv2+.
47715         Suggested by Simon Josefsson.
47716
47717 2008-10-23  Jim Meyering  <meyering@redhat.com>
47718
47719         random_r: new module
47720         * modules/random_r: New file.
47721         * m4/random_r.m4: New file.
47722         * lib/random_r.c: New file, from glibc.
47723         * modules/random_r-tests: New file.
47724         * tests/test-random_r.c: New file.
47725         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47726          Declare.
47727         (RAND_MAX): Define.
47728         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47729         * modules/stdlib: Substitute them, too.
47730         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47731         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47732         * doc/glibc-functions/random_r.texi: Likewise.
47733         * doc/glibc-functions/setstate_r.texi: Likewise.
47734         * doc/glibc-functions/srandom_r.texi: Likewise.
47735         * config/srclist.txt: Mention it.
47736
47737 2008-10-23  David Lutterkort  <lutter@redhat.com>
47738
47739         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47740         link requirement
47741
47742 2008-10-23  Jim Meyering  <meyering@redhat.com>
47743
47744         selinux-h: mark parameters of stub functions as intentionally unused
47745         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47746         * lib/se-context.in.h: Likewise.
47747
47748 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47749
47750         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47751
47752 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47753
47754         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47755
47756 2008-10-22  Eric Blake  <ebb9@byu.net>
47757
47758         glthread/thread: avoid compiler warning
47759         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47760         Add unreachable abort to silence compiler.
47761
47762 2008-10-22  Eric Blake  <ebb9@byu.net>
47763
47764         netdb: also supply struct addrinfo for cygwin 1.5.x
47765         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47766         older cygwin.
47767         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47768         cygwin.
47769         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47770
47771 2008-10-22  Bruno Haible  <bruno@clisp.org>
47772
47773         * users.txt: Update entry about pspp.
47774
47775 2008-10-21  Bruno Haible  <bruno@clisp.org>
47776
47777         Simplification.
47778         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47779         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47780
47781         Simplification.
47782         * lib/ioctl.c (ioctl): Don't undefine.
47783         * lib/socket.c (socket): Don't undefine.
47784
47785         Remove unused module indicator macros.
47786         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47787         GNULIB_$1 as a C macro.
47788
47789         * doc/posix-functions/close.texi: Undo last change.
47790         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47791         Windows platforms.
47792
47793 2008-10-21  Bruno Haible  <bruno@clisp.org>
47794
47795         Add gethostname() declaration to <unistd.h>.
47796         * lib/unistd.in.h (gethostname): New declaration.
47797         * lib/gethostname.c: Include <unistd.h>.
47798         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47799         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47801         and HAVE_GETHOSTNAME.
47802         * modules/gethostname (Depends-on): Add unistd.
47803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47804         (Include): Specify <unistd.h>.
47805         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47806         HAVE_GETHOSTNAME.
47807         * tests/test-gethostname.c: Include <unistd.h> first.
47808
47809 2008-10-21  Bruno Haible  <bruno@clisp.org>
47810
47811         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47812         * modules/select-tests (Depends-on): Likewise.
47813         Reported by Simon Josefsson.
47814
47815 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47816
47817         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47818         * lib/accept.c: New file, based on winsock.c.
47819         * lib/bind.c: New file, based on winsock.c.
47820         * lib/connect.c: New file, based on winsock.c.
47821         * lib/getpeername.c: New file, based on winsock.c.
47822         * lib/getsockname.c: New file, based on winsock.c.
47823         * lib/getsockopt.c: New file, based on winsock.c.
47824         * lib/ioctl.c: New file, based on winsock.c.
47825         * lib/listen.c: New file, based on winsock.c.
47826         * lib/recv.c: New file, based on winsock.c.
47827         * lib/recvfrom.c: New file, based on winsock.c.
47828         * lib/send.c: New file, based on winsock.c.
47829         * lib/sendto.c: New file, based on winsock.c.
47830         * lib/setsockopt.c: New file, based on winsock.c.
47831         * lib/shutdown.c: New file, based on winsock.c.
47832         * lib/socket.c: New file, based on winsock.c.
47833         * lib/w32sock.h: New file, based on winsock.c.
47834         * lib/winsock.c: Remove file.
47835         * modules/accept: Likewise.
47836         * modules/bind: Likewise.
47837         * modules/connect: Likewise.
47838         * modules/getpeername: Likewise.
47839         * modules/getsockname: Likewise.
47840         * modules/getsockopt: Likewise.
47841         * modules/ioctl: Likewise.
47842         * modules/listen: Likewise.
47843         * modules/recv: Likewise.
47844         * modules/recvfrom: Likewise.
47845         * modules/send: Likewise.
47846         * modules/sendto: Likewise.
47847         * modules/setsockopt: Likewise.
47848         * modules/shutdown: Likewise.
47849         * modules/socket: Use socket.c instead of winsock.c.
47850         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47851         * doc/posix-functions/accept.texi: Doc fix.
47852         * doc/posix-functions/bind.texi: Doc fix.
47853         * doc/posix-functions/close.texi: Doc fix.
47854         * doc/posix-functions/connect.texi: Doc fix.
47855         * doc/posix-functions/getpeername.texi: Doc fix.
47856         * doc/posix-functions/getsockname.texi: Doc fix.
47857         * doc/posix-functions/getsockopt.texi: Doc fix.
47858         * doc/posix-functions/ioctl.texi: Doc fix.
47859         * doc/posix-functions/listen.texi: Doc fix.
47860         * doc/posix-functions/recv.texi: Doc fix.
47861         * doc/posix-functions/recvfrom.texi: Doc fix.
47862         * doc/posix-functions/send.texi: Doc fix.
47863         * doc/posix-functions/sendto.texi: Doc fix.
47864         * doc/posix-functions/setsockopt.texi: Doc fix.
47865         * doc/posix-functions/shutdown.texi: Doc fix.
47866         * doc/posix-functions/socket.texi: Doc fix.
47867
47868 2008-10-20  Bruno Haible  <bruno@clisp.org>
47869
47870         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47871         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47872         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47873         as an alias for SIGABRT.
47874         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47875         (sigaction): Map it to SIGABRT.
47876         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47877
47878 2008-10-20  Bruno Haible  <bruno@clisp.org>
47879
47880         * lib/fts.c: Don't include lstat.h.
47881         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47882
47883         Move the lstat() declaration to <sys/stat.h>.
47884         * lib/lstat.h: Remove file.
47885         * lib/sys_stat.in.h: Add special invocation convention.
47886         (lstat): New declaration.
47887         * lib/lstat.c (orig_lstat): New function.
47888         (rpl_lstat): Use orig_lstat instead of lstat.
47889         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47890         AC_C_INLINE. Set REPLACE_LSTAT.
47891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47892         and REPLACE_LSTAT.
47893         * modules/lstat (Files): Remove lib/lstat.h.
47894         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47895         (Include): Specify <sys/stat.h> instead of lstat.h.
47896         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47897         REPLACE_LSTAT.
47898         * NEWS: Mention the change.
47899
47900 2008-10-20  Bruno Haible  <bruno@clisp.org>
47901
47902         * modules/posix_spawn-tests: New file.
47903         * tests/test-posix_spawn3.c: New file.
47904
47905 2008-10-20  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47908         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47909         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47910         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47911         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47912
47913 2008-10-20  Bruno Haible  <bruno@clisp.org>
47914
47915         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47916         of posix_spawn on AIX 5.3.
47917
47918 2008-10-20  Bruno Haible  <bruno@clisp.org>
47919
47920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47921
47922 2008-10-20  Bruno Haible  <bruno@clisp.org>
47923
47924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47925         of AC_LANG_PROGRAM.
47926
47927 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47928
47929         * lib/netdb.in.h: Don't define GNU specific constants until they
47930         are supported or needed.  Reported by Bruno Haible
47931         <bruno@clisp.org>.
47932
47933 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47934
47935         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47936
47937 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47938
47939         * lib/getaddrinfo.h: Remove file.
47940         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47941         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47942         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47943         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47944         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47945         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47946         * tests/test-getaddrinfo.c: Likewise.
47947         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47948         * NEWS: Mention change.
47949
47950 2008-10-19  Bruno Haible  <bruno@clisp.org>
47951
47952         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47953
47954 2008-10-19  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/wait-process.c: Include simply <sys/wait.h>.
47957         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47958         WIFSTOPPED): Remove fallback definitions.
47959         * modules/wait-process (Depends-on): Add sys_wait.
47960
47961         New module 'sys_wait'.
47962         * modules/sys_wait: New file.
47963         * lib/sys_wait.in.h: New file, partially copied from
47964         lib/wait-process.c.
47965         * m4/sys_wait_h.m4: New file.
47966         * doc/posix-headers/sys_wait.texi: Mention the new module.
47967
47968 2008-10-19  Bruno Haible  <bruno@clisp.org>
47969
47970         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47971
47972 2008-10-19  Bruno Haible  <bruno@clisp.org>
47973
47974         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47975         * lib/wait-process.c (WAIT_T): Remove type.
47976         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47977         (wait_subprocess): Update.
47978
47979 2008-10-19  Bruno Haible  <bruno@clisp.org>
47980
47981         New module 'atoll'.
47982         * modules/atoll: New file.
47983         * lib/stdlib.in.h (atoll): New declaration.
47984         * lib/atoll.c: New file, from glibc with modifications.
47985         * m4/atoll.m4: New file.
47986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47987         HAVE_ATOLL.
47988         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47989         * doc/posix-functions/atoll.texi: Mention the new module.
47990
47991 2008-10-19  Bruno Haible  <bruno@clisp.org>
47992
47993         Add strtoull() declaration to <stdlib.h>.
47994         * lib/stdlib.in.h (strtoull): New declaration.
47995         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47996         Set HAVE_STRTOULL.
47997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47998         HAVE_STRTOULL.
47999         * modules/strtoull (Depends-on): Add stdlib.
48000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48001         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
48002         HAVE_STRTOULL.
48003
48004 2008-10-19  Bruno Haible  <bruno@clisp.org>
48005
48006         Add strtoll() declaration to <stdlib.h>.
48007         * lib/stdlib.in.h (strtoll): New declaration.
48008         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48009         Set HAVE_STRTOLL.
48010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48011         HAVE_STRTOLL.
48012         * modules/strtoll (Depends-on): Add stdlib.
48013         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48014         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48015
48016 2008-10-19  Bruno Haible  <bruno@clisp.org>
48017
48018         * modules/bcopy (Depends-on): Add strings.
48019         (Include): Specify <strings.h>.
48020
48021 2008-10-19  Bruno Haible  <bruno@clisp.org>
48022
48023         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48024
48025 2008-10-19  Bruno Haible  <bruno@clisp.org>
48026
48027         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48028         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48029         mingw.
48030
48031 2008-10-19  Bruno Haible  <bruno@clisp.org>
48032
48033         * lib/atanl.c: Don't include isnanl.h.
48034         * lib/cosl.c: Likewise.
48035         * lib/ldexpl.c: Likewise.
48036         * lib/logl.c: Likewise.
48037         * lib/sinl.c: Likewise.
48038         * lib/sqrtl.c: Likewise.
48039         * lib/tanl.c: Likewise.
48040
48041         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48042         * lib/isnanf.h: Remove file.
48043         * lib/isnand.h: Remove file.
48044         * lib/isnanl.h: Remove file.
48045         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48046         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48047         macros.
48048         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48049         HAVE_ISNANF, don't define it as a C macro.
48050         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48051         HAVE_ISNAND, don't define it as a C macro.
48052         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48053         HAVE_ISNANL, don't define it as a C macro.
48054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48055         HAVE_ISNAN[FDL].
48056         * modules/isnanf (Files): Remove lib/isnanf.h.
48057         (Depends-on): Add math.
48058         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48059         (Include): Specify <math.h> instead of isnanf.h.
48060         * modules/isnand (Files): Remove lib/isnand.h.
48061         (Depends-on): Add math.
48062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48063         (Include): Specify <math.h> instead of isnand.h.
48064         * modules/isnanl (Files): Remove lib/isnanl.h.
48065         (Depends-on): Add math.
48066         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48067         (Include): Specify <math.h> instead of isnanl.h.
48068         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48069         HAVE_ISNAN[FDL].
48070         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48071         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48072         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48073         * NEWS: Mention the change.
48074
48075 2008-10-18  Bruno Haible  <bruno@clisp.org>
48076
48077         Add getusershell(), setusershell(), endusershell() declarations to
48078         <unistd.h>.
48079         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48080         declarations.
48081         * lib/getusershell.c: Include unistd.h.
48082         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48083         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48084         HAVE_GETUSERSHELL.
48085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48086         and HAVE_GETUSERSHELL.
48087         * modules/getusershell (Depends-on): Add unistd, extensions.
48088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48089         (Include): Specify <unistd.h>.
48090         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48091         HAVE_GETUSERSHELL.
48092
48093 2008-10-18  Bruno Haible  <bruno@clisp.org>
48094
48095         Add a getloadavg() declaration to <stdlib.h>.
48096         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48097         getloadavg declaration.
48098         (getloadavg): New declaration.
48099         * lib/getloadavg.c: Include <stdlib.h> first.
48100         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48101         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48102         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48104         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48105         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48106         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48107         (Include): Specify <stdlib.h>.
48108         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48109         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48110
48111 2008-10-18  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/dirchownmod.c: Don't include lchmod.h.
48114
48115         Move the lchmod() declaration to <sys/stat.h>.
48116         * lib/lchmod.h: Remove file.
48117         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48118         (lchmod): New declaration, moved here from lib/lchown.h.
48119         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48120         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48122         and HAVE_LCHMOD.
48123         * modules/lchmod (Files): Remove lib/lchmod.h.
48124         (Depends-on): Add sys_stat, extensions.
48125         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48126         (Include): Specify <sys/stat.h> instead of lchmod.h.
48127         * modules/sys_stat (Depends-on): Add link-warning.
48128         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48129         definition of GL_LINK_WARNING.
48130         * NEWS: Mention the change.
48131
48132 2008-10-18  Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/fchdir.c: Don't include dirfd.h.
48135         * lib/fts.c: Likewise.
48136         * lib/getcwd.c: Likewise.
48137         * lib/glob.c: Likewise.
48138
48139         Move the dirfd() declaration to <dirent.h>.
48140         * lib/dirfd.h: Remove file.
48141         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48142         (dirfd): New declaration.
48143         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48144         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48145         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48146         HAVE_DECL_DIRFD.
48147         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48148         HAVE_DECL_DIRFD.
48149         * modules/dirfd (Files): Remove lib/dirfd.h.
48150         (Depends-on): Add dirent, extensions.
48151         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48152         (Include): Specify <dirent.h> instead of dirfd.h.
48153         * modules/dirent (Depends-on): Add link-warning.
48154         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48155         definition of GL_LINK_WARNING.
48156         * NEWS: Mention the change.
48157
48158 2008-10-18  Bruno Haible  <bruno@clisp.org>
48159
48160         Move the euidaccess() declaration to <unistd.h>.
48161         * lib/euidaccess.h: Remove file.
48162         * lib/unistd.in.h (euidaccess): New declaration.
48163         * lib/euidaccess.c: Don't include euidaccess.h.
48164         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48165         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48167         and HAVE_EUIDACCESS.
48168         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48169         (Depends-on): Add unistd.
48170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48171         (Include): Specify <unistd.h> instead of euidaccess.h.
48172         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48173         HAVE_EUIDACCESS.
48174         * NEWS: Mention the change.
48175
48176 2008-10-18  Bruno Haible  <bruno@clisp.org>
48177
48178         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48179
48180         Move the getdomainname() declaration to <unistd.h>.
48181         * lib/getdomainname.h: Remove file.
48182         * lib/unistd.in.h (getdomainname): New declaration.
48183         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48184         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48185         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48186         HAVE_GETDOMAINNAME.
48187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48188         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48189         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48190         (Depends-on): Add unistd, extensions.
48191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48192         (Includes): Specify <unistd.h> instead of getdomainname.h.
48193         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48194         HAVE_GETDOMAINNAME.
48195         * NEWS: Mention the change.
48196
48197 2008-10-18  Bruno Haible  <bruno@clisp.org>
48198
48199         * modules/dirent: New file.
48200         * m4/dirent_h.m4: New file.
48201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48202         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48203         * modules/fchdir (Files): Remove lib/dirent.in.h.
48204         (Depends-on): Add dirent.
48205         (Makefile.am): Move rules to modules/dirent.
48206         * doc/posix-headers/dirent.texi: Mention the new module.
48207
48208 2008-10-18  Bruno Haible  <bruno@clisp.org>
48209
48210         Avoid -Wunused-parameter warnings in public gnulib header files.
48211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48212         macro.
48213         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48214
48215 2008-10-18  Bruno Haible  <bruno@clisp.org>
48216
48217         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48218         * doc/glibc-functions/error.texi: Mention the module 'error'.
48219         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48220         * doc/glibc-functions/getdomainname.texi: Mention the module
48221         'getdomainname'.
48222         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48223         * doc/glibc-functions/getpagesize.texi: Mention the module
48224         'getpagesize'.
48225         * doc/glibc-functions/getusershell.texi: Mention the module
48226         'getusershell'.
48227         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48228         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48229         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48230         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48231         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48232         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48233         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48234         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48235         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48236         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48237         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48238         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48239         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48240         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48241
48242 2008-10-17  Bruno Haible  <bruno@clisp.org>
48243
48244         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48245         HP-UX and IRIX, use -0.0L.
48246         * tests/test-ceill.c (minus_zero): Likewise.
48247         * tests/test-floorl.c (minus_zero): Likewise.
48248         * tests/test-frexpl.c (minus_zero): Likewise.
48249         * tests/test-isnan.c (minus_zerol): Likewise.
48250         * tests/test-isnanl.h (minus_zero): Likewise.
48251         * tests/test-ldexpl.c (minus_zero): Likewise.
48252         * tests/test-roundl.c (minus_zero): Likewise.
48253         * tests/test-signbit.c (minus_zerol): Likewise.
48254         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48255         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48256         * tests/test-truncl.c (minus_zero): Likewise.
48257         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48258         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48259         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48260         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48261
48262 2008-10-17  Bruno Haible  <bruno@clisp.org>
48263
48264         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48265         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48266         that it gets activated only for gcc >= 3.0.
48267         * lib/dirent.in.h: Likewise.
48268         * lib/errno.in.h: Likewise.
48269         * lib/fcntl.in.h: Likewise.
48270         * lib/float.in.h: Likewise.
48271         * lib/iconv.in.h: Likewise.
48272         * lib/inttypes.in.h: Likewise.
48273         * lib/locale.in.h: Likewise.
48274         * lib/math.in.h: Likewise.
48275         * lib/netdb.in.h: Likewise.
48276         * lib/netinet_in.in.h: Likewise.
48277         * lib/search.in.h: Likewise.
48278         * lib/signal.in.h: Likewise.
48279         * lib/spawn.in.h: Likewise.
48280         * lib/stdarg.in.h: Likewise.
48281         * lib/stdint.in.h: Likewise.
48282         * lib/stdio.in.h: Likewise.
48283         * lib/stdlib.in.h: Likewise.
48284         * lib/string.in.h: Likewise.
48285         * lib/strings.in.h: Likewise.
48286         * lib/sys_file.in.h: Likewise.
48287         * lib/sys_ioctl.in.h: Likewise.
48288         * lib/sys_select.in.h: Likewise.
48289         * lib/sys_socket.in.h: Likewise.
48290         * lib/sys_stat.in.h: Likewise.
48291         * lib/sys_time.in.h: Likewise.
48292         * lib/sysexits.in.h: Likewise.
48293         * lib/time.in.h: Likewise.
48294         * lib/unistd.in.h: Likewise.
48295         * lib/wchar.in.h: Likewise.
48296         * lib/wctype.in.h: Likewise.
48297         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48298
48299 2008-10-17  Jim Meyering  <meyering@redhat.com>
48300
48301         ignore-value: don't depend on inline module
48302         * modules/ignore-value (Depends-on): Remove 'inline'.
48303         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48304         Suggestion from Bruno Haible.
48305
48306 2008-10-17  Bruno Haible  <bruno@clisp.org>
48307
48308         New implementation of condition variables for Win32.
48309         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48310         (gl_linked_waitqueue_t): New type.
48311         (gl_cond_t): Use it.
48312         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48313         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48314         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48315         (glthread_cond_init_func, glthread_cond_wait_func,
48316         glthread_cond_timedwait_func, glthread_cond_signal_func,
48317         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48318         Reimplemented on the basis of gl_linked_waitqueue_t.
48319         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48320         gl_waitqueue_t.
48321         (gl_rwlock_t): Update.
48322         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48323
48324 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48325
48326         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48327         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48328
48329 2008-10-17  Jim Meyering  <meyering@redhat.com>
48330
48331         ignore-value: new module
48332         * modules/ignore-value: New file.
48333         * lib/ignore-value.h: New file.
48334         * MODULES.html.sh (Compiler warning management): New section,
48335         just for this module.  More to come.
48336
48337 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48338
48339         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48340         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48341         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48342
48343 2008-10-16  Jim Meyering  <meyering@redhat.com>
48344
48345         openat-die.c: avoid 'no previous prototype' warning
48346         * lib/openat-die.c: Include "openat.h".
48347         Reported by Reuben Thomas <rrt@sc3d.org>.
48348
48349 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48350
48351         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48352         * lib/netdb.in.h: Fix typo.
48353         Reported by Bruno Haible  <bruno@clisp.org>
48354
48355         * lib/netdb.in.h: Include sys/socket.h for platforms without
48356         netdb.h, to get structures like hostent on MinGW.
48357         * modules/netdb (Depends-on): Add sys_socket.
48358
48359 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48360
48361         * modules/netdb, modules/netdb-tests: New file.
48362         * m4/netdb_h.m4: New file.
48363         * lib/netdb.in.h: Add, currently just an empty file pending
48364         definitions.
48365         * tests/test-netdb.c: New file.
48366         * doc/posix-headers/netdb.texi: Mention that we replace it if
48367         needed.
48368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48369         netdb.
48370
48371 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48372
48373         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48374         with code.
48375
48376 2008-10-13  Bruno Haible  <bruno@clisp.org>
48377
48378         * lib/glthread/cond.c (glthread_cond_wait_func,
48379         glthread_cond_timedwait_func): Add a comment.
48380
48381 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48382
48383         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48384         * tests/test-select.c: Likewise,
48385
48386 2008-10-13  Bruno Haible  <bruno@clisp.org>
48387
48388         * lib/glthread/cond.c (glthread_cond_wait_func,
48389         glthread_cond_timedwait_func): Fix variable name.
48390         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48391
48392 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48393
48394         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48396         struct sockaddr.sa_len.
48397         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48398
48399 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48400
48401         * build-aux/pmccabe2html: Add css and css_url parameters.
48402
48403 2008-10-12  Bruno Haible  <bruno@clisp.org>
48404
48405         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48406         calling aclx_get.
48407         Reported by Rainer Tammer <tammer@tammer.net>.
48408
48409 2008-10-12  Bruno Haible  <bruno@clisp.org>
48410
48411         Use msvcrt aware primitives for creation/termination of Win32 threads.
48412         * lib/glthread/thread.c: Include <process.h>.
48413         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48414         (wrapper_func): Update signature.
48415         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48416
48417 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48418             Bruno Haible  <bruno@clisp.org>
48419
48420         Provide a Win32 implementation of the 'cond' module.
48421         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48422         * lib/glthread/cond.c (glthread_cond_init_func,
48423         glthread_cond_wait_func, glthread_cond_timedwait_func,
48424         glthread_cond_signal_func, glthread_cond_broadcast_func,
48425         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48426         * modules/cond (Dependencies): Add gettimeofday.
48427
48428 2008-10-11  Bruno Haible  <bruno@clisp.org>
48429
48430         Make sleep work on older versions of mingw.
48431         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48432         only whether it exists.
48433         * doc/posix-functions/sleep.texi: Mention the problem with older
48434         versions of mingw.
48435
48436 2008-10-11  Bruno Haible  <bruno@clisp.org>
48437
48438         New module 'shutdown'.
48439         * modules/shutdown: New file.
48440         * lib/sys_socket.in.h (shutdown): New declaration.
48441         * lib/winsock.c (shutdown): New function.
48442         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48443         GNULIB_SHUTDOWN.
48444         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48445         * doc/posix-functions/shutdown.texi: Document the new module.
48446
48447 2008-10-11  Jim Meyering  <meyering@redhat.com>
48448
48449         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48450
48451 2008-10-11  Bruno Haible  <bruno@clisp.org>
48452
48453         New module 'fclose'.
48454         * modules/fclose: New file.
48455         * lib/stdio.in.h (fclose): New declaration.
48456         * lib/fclose.c: New file.
48457         * m4/fclose.m4: New file.
48458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48459         REPLACE_FCLOSE.
48460         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48461         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48462         REPLACE_FCLOSE.
48463         * modules/close (Depends-on): fclose.
48464         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48465
48466 2008-10-11  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48469         set errno and don't call _close.
48470
48471 2008-10-10  Bruno Haible  <bruno@clisp.org>
48472
48473         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48474         ACL, not afterwards. Fixes test failure on Cygwin.
48475
48476 2008-10-09  Ben Pfaff  <blp@gnu.org>
48477
48478         * build-aux/announce-gen: Fix gnulib version related part of usage
48479         message.  Die with a useful error message if no tarballs are
48480         found.
48481
48482 2008-10-10  Jim Meyering  <meyering@redhat.com>
48483
48484         bootstrap: use git's --depth=N option only if it's supported
48485         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48486         recognize the --depth option.  Reported by Pádraig Brady.
48487
48488 2008-10-09  Bruno Haible  <bruno@clisp.org>
48489
48490         New module 'ioctl'.
48491         * modules/ioctl: New file.
48492         * lib/sys_socket.in.h (ioctl): Remove declaration.
48493         * lib/winsock.c: Include <sys/ioctl.h>.
48494         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48495         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48496         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48497         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48498         * doc/posix-functions/ioctl.texi: Mention the new module.
48499
48500 2008-10-09  Bruno Haible  <bruno@clisp.org>
48501
48502         New module 'sys_ioctl'.
48503         * lib/sys_ioctl.in.h: New file.
48504         * m4/sys_ioctl_h.m4: New file.
48505         * modules/sys_ioctl: New file.
48506         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48507
48508 2008-10-09  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48511         * lib/winsock.c: Include <stdarg.h>.
48512         (rpl_ioctl): Change to second argument 'int' and then varargs.
48513
48514 2008-10-09  Bruno Haible  <bruno@clisp.org>
48515
48516         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48517         when the sys_socket module is present and the system has <winsock2.h>.
48518
48519 2008-10-09  Bruno Haible  <bruno@clisp.org>
48520
48521         * doc/posix-functions/close.texi: Mention module 'close' instead of
48522         module 'sys_socket'.
48523
48524 2008-10-09  Bruno Haible  <bruno@clisp.org>
48525
48526         * doc/glibc-headers/sys_ioctl.texi: New file.
48527         * doc/gnulib.texi: Include it.
48528
48529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48530             Bruno Haible  <bruno@clisp.org>
48531
48532         Combine the two replacements of 'close'.
48533         * lib/sys_socket.in.h (close): Define to a reminder to include
48534         <unistd.h>.
48535         (_gl_close_fd_maybe_socket): New declaration.
48536         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48537         * lib/winsock.c (close): Remove undefinition.
48538         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48539         needed for the gnulib module 'close'.
48540         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48541         define to an error symbol or to a warning, if suitable.
48542         * lib/close.c: Include <sys/socket.h>.
48543         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48544         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48545         UNISTD_H_HAVE_WINSOCK2_H.
48546         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48548         UNISTD_H_HAVE_WINSOCK2_H.
48549         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48550         (configure.ac): Set a module indicator.
48551         (Makefile.am): Substitute GNULIB_CLOSE.
48552         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48553         * modules/poll-tests (Depends-on): Add close.
48554         * modules/select-tests (Depends-on): Likewise.
48555
48556 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48557             Bruno Haible  <bruno@clisp.org>
48558
48559         New module 'close'.
48560         * modules/close: New file.
48561         * lib/unistd.in.h (close): Move declaration out of the
48562         FCHDIR_REPLACEMENT scope.
48563         (_gl_unregister_fd): New declaration.
48564         * lib/close.c: New file.
48565         * lib/fchdir.c (rpl_close): Remove function.
48566         * m4/close.m4: New file.
48567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48568         close.
48569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48570         REPLACE_CLOSE.
48571         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48572         REPLACE_CLOSE.
48573         * modules/fchdir (Depends-on): Add close.
48574
48575 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48576             Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/fcntl.in.h (open): Simplify conditionals.
48579         (_gl_register_fd): New declaration.
48580         * lib/fchdir.c (rpl_open): Remove function.
48581         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48582         also.
48583         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48585         open.
48586
48587 2008-10-09  Jim Meyering  <meyering@redhat.com>
48588
48589         GNUmakefile: use the more name-space-friendly "_version"
48590         * top/GNUmakefile (_dummy): Update.
48591         (_version): Rename from "version".
48592
48593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48594             Bruno Haible  <bruno@clisp.org>
48595
48596         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48597         rpl_close.
48598         (_gl_register_fd): New function, extracted from rpl_open.
48599         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48600         (rpl_open, rpl_opendir): Use _gl_register_fd.
48601
48602 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48603
48604         Fix organization of 'open' replacement.
48605         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48606         (gl_FUNC_OPEN): Use it.
48607         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48608
48609 2008-10-08  Bruno Haible  <bruno@clisp.org>
48610
48611         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48612
48613 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48614
48615         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48616         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48617         listen).
48618
48619 2008-10-08  Eric Blake  <ebb9@byu.net>
48620
48621         GNUmakefile: add 'make version' target
48622         * top/GNUmakefile (_curr-ver): Split version update rules...
48623         (version): ...into a target.
48624
48625 2008-10-07  Bruno Haible  <bruno@clisp.org>
48626
48627         Use a more portable replacement expression for -0.0L.
48628         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48629         instead of -0.0L. Fix m4 quotation.
48630
48631         * tests/test-signbit.c: Include <float.h>.
48632         (minus_zero): New variable.
48633         (test_signbitl): Use minus_zero instead of -zero.
48634         * modules/signbit-tests (Depends-on): Add float.
48635
48636         * tests/test-ceill.c: Include <float.h>.
48637         (zero): Remove variable.
48638         (minus_zero): New variable.
48639         (main): Use minus_zero instead of -zero.
48640         * modules/ceill-tests (Depends-on): Add float.
48641
48642         * tests/test-floorl.c: Include <float.h>.
48643         (zero): Remove variable.
48644         (minus_zero): New variable.
48645         (main): Use minus_zero instead of -zero.
48646         * modules/floorl-tests (Depends-on): Add float.
48647
48648         * tests/test-roundl.c: Include <float.h>.
48649         (zero): Remove variable.
48650         (minus_zero): New variable.
48651         (main): Use minus_zero instead of -zero.
48652         * modules/roundl-tests (Depends-on): Add float.
48653
48654         * tests/test-truncl.c: Include <float.h>.
48655         (zero): Remove variable.
48656         (minus_zero): New variable.
48657         (main): Use minus_zero instead of -zero.
48658         * modules/truncl-tests (Depends-on): Add float.
48659
48660         * tests/test-frexpl.c (zero): Remove variable.
48661         (minus_zero): New variable.
48662         (main): Use minus_zero instead of -zero.
48663         * modules/frexpl-tests (Depends-on): Add float.
48664
48665         * tests/test-isnan.c (zerol): Remove variable.
48666         (minus_zerol): New variable.
48667         (test_long_double): Use minus_zerol instead of -zerol.
48668         * modules/isnan-tests (Depends-on): Add float.
48669
48670         * tests/test-isnanl.h (zero): Remove variable.
48671         (minus_zero): New variable.
48672         (main): Use minus_zero instead of -zero.
48673         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48674         * modules/isnanl-tests (Depends-on): Add float.
48675
48676         * tests/test-ldexpl.c (zero): Remove variable.
48677         (minus_zero): New variable.
48678         (main): Use minus_zero instead of -zero.
48679         * modules/ldexpl-tests (Depends-on): Add float.
48680
48681         * tests/test-snprintf-posix.h (zerol): Remove variable.
48682         (minus_zerol): New variable.
48683         (test_function): Use minus_zerol instead of -zerol.
48684         * modules/snprintf-posix-tests (Depends-on): Add float.
48685         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48686
48687         * tests/test-sprintf-posix.h (zerol): Remove variable.
48688         (minus_zerol): New variable.
48689         (test_function): Use minus_zerol instead of -zerol.
48690         * modules/sprintf-posix-tests (Depends-on): Add float.
48691         * modules/vsprintf-posix-tests (Depends-on): Add float.
48692
48693         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48694         (minus_zerol): New variable.
48695         (test_function): Use minus_zerol instead of -zerol.
48696         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48697
48698         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48699         (minus_zerol): New variable.
48700         (test_function): Use minus_zerol instead of -zerol.
48701         * modules/vasprintf-posix-tests (Depends-on): Add float.
48702
48703 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48704
48705         * MODULES.html.sh (Support for building documentation): Mention
48706         pmccabe2html.  Sort entries.
48707
48708         Add pmccabe2html module, from gnupdf.
48709         * build-aux/pmccabe.css: New file.
48710         * build-aux/pmccabe2html: New file.
48711         * m4/pmccabe2html.m4: New file.
48712         * modules/pmccabe2html: New file.
48713
48714 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48715
48716         flock: new module
48717         * MODULES.html.sh: Add to list of modules.
48718         * lib/flock.c: flock implementation for Windows and Unix systems
48719         which have fcntl.
48720         * doc/glibc-functions/flock.texi: Update documentation.
48721         * lib/sys_file.in.h: <sys/file.h> header file.
48722         * m4/flock.m4: M4 macros.
48723         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48724         * modules/flock: flock module.
48725         * modules/flock-tests: flock tests module.
48726         * modules/sys_file: sys/file.h module.
48727         * tests/test-flock.c: test suite for flock.
48728
48729 2008-10-06  Jim Meyering  <meyering@redhat.com>
48730
48731         bootstrap: check for LT_INIT more portably still ;-)
48732         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48733         Spotted by Bruno Haible.
48734
48735 2008-10-06  Eric Blake  <ebb9@byu.net>
48736
48737         test-signbit: avoid tripping Irix cc bug on -0.0L
48738         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48739         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48740         entire testsuite consistent and avoids an Irix 6.2 bug.
48741
48742 2008-10-05  Bruno Haible  <bruno@clisp.org>
48743             Jim Meyering  <jim@meyering.net>
48744
48745         Add an option for ignoring EPIPE during close_stdout.
48746         * lib/closeout.h: Include <stdbool.h>.
48747         (close_stdout_set_ignore_EPIPE): New declaration.
48748         * lib/closeout.c: Include <stdbool.h>.
48749         (ignore_EPIPE): New variable.
48750         (close_stdout_set_ignore_EPIPE): New function.
48751         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48752         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48753         failure.
48754         * modules/closeout (Depends-on): Add stdbool.
48755
48756 2008-10-05  Bruno Haible  <bruno@clisp.org>
48757
48758         * modules/accept: New file.
48759         * modules/bind: New file.
48760         * modules/connect: New file.
48761         * modules/getpeername: New file.
48762         * modules/getsockname: New file.
48763         * modules/getsockopt: New file.
48764         * modules/listen: New file.
48765         * modules/recv: New file.
48766         * modules/recvfrom: New file.
48767         * modules/send: New file.
48768         * modules/sendto: New file.
48769         * modules/setsockopt: New file.
48770         * modules/socket: New file.
48771         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48772         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48773         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48774         the particular module is requested. Add a link warning when the
48775         particular module is not requested.
48776         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48777         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48778         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48779         the particular module is requested.
48780         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48781         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48782         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48783         * modules/sys_socket (Depends-on): Add link-warning.
48784         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48785         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48786         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48787         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48788         GL_LINK_WARNING.
48789         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48790         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48791         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48792         * doc/posix-functions/getpeername.texi: Mention the new module
48793         'getpeername'.
48794         * doc/posix-functions/getsockname.texi: Mention the new module
48795         'getsockname'.
48796         * doc/posix-functions/getsockopt.texi: Mention the new module
48797         'getsockopt'.
48798         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48799         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48800         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48801         * doc/posix-functions/send.texi: Mention the new module 'send'.
48802         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48803         * doc/posix-functions/setsockopt.texi: Mention the new module
48804         'setsockopt'.
48805         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48806         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48807         listen, connect, accept.
48808         * modules/select-tests (Depends-on): Likewise.
48809
48810 2008-10-05  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/winsock.c (strerror): Remove unused #undef.
48813         (rpl_close): Remove unused local variable.
48814
48815         * modules/sys_socket (Depends-on); Add errno.
48816
48817 2008-10-05  Bruno Haible  <bruno@clisp.org>
48818
48819         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48820         (select): Add a link warning when the 'select' module is not used.
48821         * modules/sys_select (Depends-on): Add link-warning.
48822         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48823         Suggested by Paolo Bonzini.
48824
48825 2008-10-05  Jim Meyering  <meyering@redhat.com>
48826
48827         bootstrap: check for LT_INIT more portably
48828         * build-aux/bootstrap: Avoid using grep -E, since it's not
48829         portable enough.  Suggestion from Bruno Haible.
48830
48831 2008-10-05  Bruno Haible  <bruno@clisp.org>
48832
48833         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48834         as being fixed by gnulib.
48835
48836 2008-10-05  Bruno Haible  <bruno@clisp.org>
48837
48838         * modules/select-tests: New file, mostly copied from
48839         modules/sys_select-tests.
48840         * tests/test-select.c: New file, mostly copied from
48841         tests/test-sys_select.c.
48842         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48843         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48844         (Makefile.am): Remove test_sys_select_LDADD.
48845
48846         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48847         to an undefined symbol, for an error message.
48848         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48849         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48850         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48851         winsock-select.c here.
48852         * modules/sys_select (Files): Remove lib/winsock-select.c.
48853         (Depends-on): Remove alloca.
48854         (Makefile.am): Substitute GNULIB_SELECT.
48855         * modules/select: New file.
48856         * doc/posix-functions/select.texi: Update.
48857
48858 2008-10-05  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48861         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48862         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48863         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48864         getdtablesize.
48865         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48866         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48867
48868 2008-10-05  Bruno Haible  <bruno@clisp.org>
48869
48870         * modules/getdtablesize-tests: New file.
48871         * tests/test-getdtablesize.c: New file.
48872
48873         New module 'getdtablesize'.
48874         * lib/unistd.in.h (getdtablesize): New declaration.
48875         * lib/getdtablesize.c: New file.
48876         * m4/getdtablesize.m4: New file.
48877         * modules/getdtablesize: New file.
48878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48879         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48880         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48881         HAVE_GETDTABLESIZE.
48882         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48883
48884 2008-10-05  Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/sched (Makefile.am): Fix typo.
48887         Reported by Simon Josefsson.
48888
48889 2008-10-05  Jim Meyering  <meyering@redhat.com>
48890
48891         bootstrap: check for LT_INIT, too
48892         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48893         are deprecated.  Suggestion from Ralf Wildenhues.
48894
48895 2008-10-05  Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48898         overriding them by ours.
48899         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48900
48901 2008-10-05  Jim Meyering  <meyering@redhat.com>
48902
48903         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48904         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48905         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48906
48907 2008-10-04  Bruno Haible  <bruno@clisp.org>
48908
48909         * modules/dup2 (License): Change to LGPLv2+.
48910         * modules/sleep (License): Likewise.
48911         * modules/perror (License): Likewise.
48912         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48913         Blake.
48914         * modules/signal (License): Likewise.
48915         * modules/sigprocmask (License): Likewise.
48916         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48917         Meyering.
48918
48919 2008-10-04  Bruno Haible  <bruno@clisp.org>
48920
48921         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48922         Reported by Rainer Tammer <tammer@tammer.net>.
48923
48924 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48925             Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48928         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48929         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48930
48931 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48932
48933         filevercmp: new module
48934         * lib/filevercmp.h: New function filevercmp comparing version strings.
48935         * lib/filevercmp.c: Implementation of filevercmp function.
48936         * modules/filevercmp: Module metadata.
48937         * tests/test-filevercmp.c: Unit test for new module.
48938         * modules/filevercmp-tests: Unit test metadata.
48939         * MODULES.html.sh: Add filevercmp module.
48940
48941 2008-10-03  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/c-ctype.h: Add comment.
48944         Reported by Jim Meyering.
48945
48946 2008-10-02  Bruno Haible  <bruno@clisp.org>
48947
48948         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48949
48950 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48951
48952         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48953         name of bootstrap.conf accordingly.
48954
48955 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48956
48957         * build-aux/bootstrap: Install git-merge-changelog configuration
48958         items into .gitconfig if needed.
48959
48960 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48961
48962         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48963         git repository, and initialize/update it accordingly.
48964
48965 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48966
48967         * modules/fsync-tests: New file.
48968         * tests/test-fsync.c: New file.
48969
48970         New module 'fsync'.
48971         * lib/fsync.c: New file.
48972         * m4/fsync.m4: New file.
48973         * modules/fsync: New file.
48974         * lib/unistd.in.h (fsync): New declaration.
48975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48976         GNULIB_FSYNC and HAVE_FSYNC.
48977         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48978         * MODULES.html.sh (posix_functions): Add fsync.
48979         * doc/posix-functions/fsync.texi: Mention the new module.
48980
48981 2008-10-02  Jim Meyering  <meyering@redhat.com>
48982
48983         fts.c: sync with similar code from coreutils' remove.c
48984         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48985         Guard also with "#if defined __linux__", since for now at least,
48986         this code is Linux-kernel-specific.
48987
48988 2008-10-02  Jim Meyering  <meyering@redhat.com>
48989
48990         fts: bug fixes
48991         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48992         Include <sys/vfs.h>, not <sys/statfs.h>.
48993
48994         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48995         Include <sys/vfs.h>, not <sys/statfs.h>.
48996
48997 2008-10-01  Bruno Haible  <bruno@clisp.org>
48998
48999         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
49000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
49001         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
49002         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
49003         * doc/posix-functions/posix_spawnp.texi: Likewise.
49004         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
49005         whether posix_spawn actually works.
49006         * m4/pipe.m4 (gl_PIPE): Likewise.
49007         * modules/execute (Files): Add m4/posix_spawn.m4.
49008         * modules/pipe (Files): Add m4/posix_spawn.m4.
49009         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
49010
49011 2008-10-01  Jim Meyering  <meyering@redhat.com>
49012
49013         remove trailing spaces
49014         * NEWS: Likewise.
49015         * lib/poll.c (poll): Likewise.
49016         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49017         * lib/winsock.c (rpl_close): Likewise.
49018         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49019         * modules/yield: Likewise.
49020         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49021         * tests/test-sys_select.c (connect_to_socket): Likewise.
49022
49023         fts.c: adjust a new interface to be more generally useful
49024         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49025         (fts_build): Adjust caller.
49026
49027 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49028
49029         * modules/cond-tests: New file.
49030         * tests/test-cond.c: New file.
49031
49032 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49033             Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/cond (Dependencies): Add errno, time.
49036         * lib/glthread/cond.h: Include <time.h>.
49037         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49038         across platforms.
49039
49040 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49041             Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49044
49045 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49046             Bruno Haible  <bruno@clisp.org>
49047
49048         * modules/tls-tests (Depends-on): Add thread, yield.
49049         (configure.ac): Remove all checks.
49050         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49051         * tests/test-tls.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_tls): Pass an additional NULL argument to gl_thread_join.
49055
49056 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49057             Bruno Haible  <bruno@clisp.org>
49058
49059         * modules/lock-tests (Depends-on): Add thread, yield.
49060         (configure.ac): Remove all checks.
49061         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49062         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49063         gl_thread_self): Remove definitions. Include glthread/thread.h and
49064         glthread/yield.h instead.
49065         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49066         additional NULL argument to gl_thread_join.
49067
49068 2008-09-30  Bruno Haible  <bruno@clisp.org>
49069
49070         Fix the Win32 implementation of the 'thread' module.
49071         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49072         pointer type.
49073         (gl_thread_self): Invoke gl_thread_self_func.
49074         (gl_thread_self_func): New declaration.
49075         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49076         (do_init_self_key, init_self_key): New functions.
49077         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49078         Remove some fields.
49079         (running_threads, running_lock): Remove variables.
49080         (get_current_thread_handle): New function.
49081         (gl_thread_self_func, wrapper_func, glthread_create_func,
49082         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49083         simplified.
49084
49085 2008-09-30  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49088         files.
49089
49090 2008-09-30  Jim Meyering  <meyering@redhat.com>
49091
49092         fts.m4: correct the test for statfs.f_type
49093         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49094         when checking for statfs.f_type.
49095
49096 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49097
49098         tests: avoid some compiler warnings
49099         * tests/test-memchr.c (main): Pass NULL indirectly.
49100         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49101
49102 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49103
49104         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49105         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49106         exactly specified dayshifts.
49107         (dayshift): New rule.
49108         (rel): Add dayshift.
49109         (relative_time_table) [tomorrow, yesterday, today, now]:
49110         Use tDAY_SHIFT in place of tDAY_UNIT.
49111         * tests/test-getdate.c: Add tests for now-disallowed countable
49112         dayshifts, e.g., "4 yesterday ago".
49113
49114 2008-09-29  Bruno Haible  <bruno@clisp.org>
49115
49116         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49117         * tests/test-posix_spawn1.in.sh: Renamed from
49118         tests/test-posix_spawn.in.sh.
49119         * tests/test-posix_spawn2.c: New file.
49120         * tests/test-posix_spawn2.in.sh: New file.
49121         * modules/posix_spawnp-tests (Files): Update.
49122         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49123
49124 2008-09-29  Bruno Haible  <bruno@clisp.org>
49125
49126         Propagate effects of putenv/setenv/unsetenv to child processes.
49127         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49128         * lib/pipe.c (create_pipe): Likewise.
49129
49130 2008-09-29  Bruno Haible  <bruno@clisp.org>
49131
49132         Enable use of shell scripts as executables in mingw.
49133         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49134         run the program as a shell script.
49135         * lib/pipe.c (create_pipe): Likewise.
49136         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49137         resulting array.
49138
49139 2008-09-29  Eric Blake  <ebb9@byu.net>
49140
49141         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49142
49143 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49144
49145         * doc/posix-functions/accept.texi: Update mingw problems.
49146         * doc/posix-functions/bind.texi: Update mingw problems.
49147         * doc/posix-functions/close.texi: Update mingw problems.
49148         * doc/posix-functions/connect.texi: Update mingw problems.
49149         * doc/posix-functions/getpeername.texi: Update mingw problems.
49150         * doc/posix-functions/getsockname.texi: Update mingw problems.
49151         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49152         * doc/posix-functions/ioctl.texi: Update mingw problems.
49153         * doc/posix-functions/listen.texi: Update mingw problems.
49154         * doc/posix-functions/recv.texi: Update mingw problems.
49155         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49156         * doc/posix-functions/select.texi: Update mingw problems.
49157         * doc/posix-functions/send.texi: Update mingw problems.
49158         * doc/posix-functions/sendto.texi: Update mingw problems.
49159         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49160         * doc/posix-functions/socket.texi: Update mingw problems.
49161
49162 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49163             Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/sys_select.in.h: Include sys/time.h.
49166         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49167         * modules/sys_select: Depend on sys_time.
49168         * tests/test-sys_select.c: Test that sys/select.h defines struct
49169         timeval fully.
49170
49171 2008-09-29  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49174         * lib/sys_select.in.h: Likewise.
49175
49176 2008-09-29  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49179
49180 2008-09-29  Bruno Haible  <bruno@clisp.org>
49181
49182         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49183         Set LIBSOCKET instead of augmenting LIBS.
49184         * modules/sockets (Link): New section.
49185         * modules/sockets-tests (test_sockets_LDADD): New variable.
49186         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49187         * modules/poll-tests (test_poll_LDADD): New variable.
49188         * NEWS: Document the change.
49189
49190 2008-09-29  Bruno Haible  <bruno@clisp.org>
49191
49192         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49193         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49194         ARPA_INET_H directly.
49195         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49196
49197 2008-09-28  Bruno Haible  <bruno@clisp.org>
49198
49199         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49200         from gl_HEADER_SYS_SOCKET.
49201         (gl_HEADER_SYS_SOCKET): Invoke it.
49202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49203
49204 2008-09-28  Bruno Haible  <bruno@clisp.org>
49205
49206         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49207         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49208         Needed on OSF/1 4.0.
49209
49210 2008-09-28  Bruno Haible  <bruno@clisp.org>
49211
49212         Override open more carefully.
49213         * lib/open.c (orig_open): New function.
49214         (rpl_open): Use orig_open instead of open.
49215         * lib/fcntl.in.h: Add special invocation convention.
49216         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49217         (gl_FUNC_OPEN): Invoke it.
49218
49219         Override freopen more carefully.
49220         * lib/freopen.c (orig_freopen): New function.
49221         (rpl_freopen): Use orig_freopen instead of freopen.
49222         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49223         (gl_FUNC_FREOPEN): Invoke it.
49224
49225         Override fopen more carefully.
49226         * lib/fopen.c (orig_fopen): New function.
49227         (rpl_fopen): Use orig_fopen instead of fopen.
49228         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49229         (gl_FUNC_FOPEN): Invoke it.
49230         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49231
49232 2008-09-28  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49235         SIGPIPE.
49236
49237 2008-09-28  Bruno Haible  <bruno@clisp.org>
49238
49239         * tests/test-sigaction.c (handler, main): Disable the check whether
49240         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49241         glibc systems with LinuxThreads.
49242
49243 2008-09-28  Bruno Haible  <bruno@clisp.org>
49244
49245         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49246
49247         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49248         with AIX xlc.
49249         * lib/fcntl.in.h (open): Likewise.
49250         Reported by Rainer Tammer <tammer@tammer.net>.
49251
49252 2008-09-28  Bruno Haible  <bruno@clisp.org>
49253
49254         * modules/posix_spawnp-tests: New file.
49255         * tests/test-posix_spawn.c: New file.
49256         * tests/test-posix_spawn.in.sh: New file.
49257
49258         New module 'posix_spawnp'.
49259         * modules/posix_spawnp: New file.
49260         * lib/spawnp.c: New file, from GNU libc with modifications.
49261         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49262
49263         New module 'posix_spawn'.
49264         * modules/posix_spawn: New file.
49265         * lib/spawn.c: New file, from GNU libc with modifications.
49266         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49267
49268         New module 'posix_spawnattr_destroy'.
49269         * modules/posix_spawnattr_destroy: New file.
49270         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49271         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49272         module.
49273
49274         New module 'posix_spawnattr_setsigmask'.
49275         * modules/posix_spawnattr_setsigmask: New file.
49276         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49277         modifications.
49278         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49279         new module.
49280
49281         New module 'posix_spawnattr_getsigmask'.
49282         * modules/posix_spawnattr_getsigmask: New file.
49283         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49284         modifications.
49285         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49286         new module.
49287
49288         New module 'posix_spawnattr_setsigdefault'.
49289         * modules/posix_spawnattr_setsigdefault: New file.
49290         * lib/spawnattr_setdefault.c: New file, from GNU libc with
49291         modifications.
49292         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
49293         new module.
49294
49295         New module 'posix_spawnattr_getsigdefault'.
49296         * modules/posix_spawnattr_getsigdefault: New file.
49297         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49298         modifications.
49299         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49300         new module.
49301
49302         New module 'posix_spawnattr_setschedpolicy'.
49303         * modules/posix_spawnattr_setschedpolicy: New file.
49304         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49305         modifications.
49306         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49307         new module.
49308
49309         New module 'posix_spawnattr_getschedpolicy'.
49310         * modules/posix_spawnattr_getschedpolicy: New file.
49311         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49312         modifications.
49313         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49314         new module.
49315
49316         New module 'posix_spawnattr_setschedparam'.
49317         * modules/posix_spawnattr_setschedparam: New file.
49318         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49319         modifications.
49320         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49321         new module.
49322
49323         New module 'posix_spawnattr_getschedparam'.
49324         * modules/posix_spawnattr_getschedparam: New file.
49325         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49326         modifications.
49327         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49328         new module.
49329
49330         New module 'posix_spawnattr_setpgroup'.
49331         * modules/posix_spawnattr_setpgroup: New file.
49332         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49333         modifications.
49334         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49335         module.
49336
49337         New module 'posix_spawnattr_getpgroup'.
49338         * modules/posix_spawnattr_getpgroup: New file.
49339         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49340         modifications.
49341         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49342         module.
49343
49344         New module 'posix_spawnattr_setflags'.
49345         * modules/posix_spawnattr_setflags: New file.
49346         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49347         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49348         module.
49349
49350         New module 'posix_spawnattr_getflags'.
49351         * modules/posix_spawnattr_getflags: New file.
49352         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49353         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49354         module.
49355
49356         New module 'posix_spawnattr_init'.
49357         * modules/posix_spawnattr_init: New file.
49358         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49359         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49360         module.
49361
49362         New module 'posix_spawn_file_actions_destroy'.
49363         * modules/posix_spawn_file_actions_destroy: New file.
49364         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49365         modifications.
49366         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49367         the new module.
49368
49369         New module 'posix_spawn_file_actions_addopen'.
49370         * modules/posix_spawn_file_actions_addopen: New file.
49371         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49372         modifications.
49373         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49374         the new module.
49375
49376         New module 'posix_spawn_file_actions_adddup2'.
49377         * modules/posix_spawn_file_actions_adddup2: New file.
49378         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49379         modifications.
49380         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49381         the new module.
49382
49383         New module 'posix_spawn_file_actions_addclose'.
49384         * modules/posix_spawn_file_actions_addclose: New file.
49385         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49386         modifications.
49387         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49388         the new module.
49389
49390         New module 'posix_spawn_file_actions_init'.
49391         * modules/posix_spawn_file_actions_init: New file.
49392         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49393         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49394         new module.
49395
49396         New module 'posix_spawn-internal'.
49397         * modules/posix_spawn-internal: New file.
49398         * lib/spawn_int.h: New file, from GNU libc with modifications.
49399         * lib/spawni.c: New file, from GNU libc with modifications.
49400         * m4/posix_spawn.m4: New file.
49401
49402         New module 'spawn'.
49403         * modules/spawn: New file.
49404         * lib/spawn.in.h: New file, from GNU libc with modifications.
49405         * m4/spawn_h.m4: New file.
49406         * doc/posix-headers/spawn.texi: Mention the new module.
49407
49408 2008-09-28  Bruno Haible  <bruno@clisp.org>
49409
49410         * modules/sched-tests: New file.
49411         * tests/test-sched.c: New file.
49412
49413         New module 'sched'.
49414         * modules/sched: New file.
49415         * lib/sched.in.h: New file.
49416         * m4/sched_h.m4: New file.
49417         * doc/posix-headers/sched.texi: Mention the new module.
49418
49419 2008-09-27  Eric Blake  <ebb9@byu.net>
49420
49421         Fix previous patch, and tweak references to $0.
49422         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49423         (func_version, func_gnulib_dir): Don't call this program
49424         gnulib-tool.
49425         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49426         with using $0 in function.
49427         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49428         (func_fatal_error): Reuse the name the user invoked us with.
49429
49430 2008-09-27  Bruno Haible  <bruno@clisp.org>
49431
49432         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49433         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49434         (gl_ICONV_H): Not here.
49435         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49436         instead of assigning ICONV_H directly.
49437
49438         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49440         WCHAR_H directly.
49441
49442 2008-09-27  Bruno Haible  <bruno@clisp.org>
49443
49444         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49445         * modules/arpa_inet (Depends-on): Add link-warning.
49446         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49447         * modules/unistd (Makefile.am): Likewise.
49448
49449 2008-09-26  Bruno Haible  <bruno@clisp.org>
49450
49451         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49452         variables.
49453         (func_version): Essentially copied from gnulib-tool.
49454         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49455         func_readlink): Copied from gnulib-tool.
49456
49457 2008-09-26  Bruno Haible  <bruno@clisp.org>
49458
49459         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49460         invoking git-version-gen.
49461
49462 2008-09-26  Bruno Haible  <bruno@clisp.org>
49463
49464         * posix-modules: Update to directory names changed on 2008-01-19.
49465         Remove commas in output before splitting into words. No more need to
49466         avoid 'ftruncate' since 2007-02-19.
49467
49468 2008-09-26  Bruno Haible  <bruno@clisp.org>
49469
49470         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49471
49472 2008-09-26  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49475         * modules/fwriteerror (Depends-on): Add errno.
49476
49477 2008-09-26  Bruno Haible  <bruno@clisp.org>
49478
49479         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49480         * tests/test-vc-list-files-cvs.sh: Likewise.
49481
49482 2008-09-26  Bruno Haible  <bruno@clisp.org>
49483
49484         * doc/posix-headers/sys_resource.texi: Reorder items.
49485
49486 2008-09-26  Jim Meyering  <meyering@redhat.com>
49487
49488         fts: tweak inode comparison function
49489         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49490         inode numbers, as documented.
49491
49492         fts: sort dirent entries on inode number before traversing
49493         This avoids a quadratic, seek-related performance penalty when
49494         operating on a directory containing many entries (measurable at 10k;
49495         3.5 hours at 2 million entries with a cold cache) on certain types
49496         of file systems, including ext3 and ext4, but not tmpfs.
49497         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49498         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49499         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49500         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49501         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49502         (fts_build): Set the stat.st_ino member from D_INO.
49503         If it is likely to be useful, sort dirent entries on inode number.
49504
49505         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49506         and the struct statfs.f_type member.
49507         * modules/fts (Depends-on): Add d-ino.
49508
49509 2008-09-26  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/sigpipe-die (Depends-on): Add sigpipe.
49512
49513         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49514         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49515         and GNULIB_STDIO_H_SIGPIPE are set.
49516         * lib/stdio-write.c: New file.
49517         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49518         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49519         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49520         REPLACE_STDIO_WRITE_FUNCS.
49521         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49522         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49523         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49524         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49525         * modules/stdio (Files): Add lib/stdio-write.c.
49526         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49527         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49528         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49529         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49530         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49531         REPLACE_FPRINTF_POSIX.
49532         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49533         REPLACE_PRINTF_POSIX.
49534         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49535         REPLACE_VFPRINTF_POSIX.
49536         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49537         REPLACE_VPRINTF_POSIX.
49538         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49539         SIGPIPE issue.
49540         * doc/posix-functions/fputc.texi: Likewise.
49541         * doc/posix-functions/fputs.texi: Likewise.
49542         * doc/posix-functions/fwrite.texi: Likewise.
49543         * doc/posix-functions/printf.texi: Likewise.
49544         * doc/posix-functions/putc.texi: Likewise.
49545         * doc/posix-functions/putchar.texi: Likewise.
49546         * doc/posix-functions/puts.texi: Likewise.
49547         * doc/posix-functions/vfprintf.texi: Likewise.
49548         * doc/posix-functions/vprintf.texi: Likewise.
49549
49550         * modules/safe-write (Depends-on): Add write.
49551
49552         * modules/sigpipe-tests: New file.
49553         * tests/test-sigpipe.c: New file.
49554         * tests/test-sigpipe.sh: New file.
49555
49556         * modules/write: New file.
49557         * lib/unistd.in.h: Include <sys/types.h>.
49558         (write): New declaration.
49559         * lib/write.c: New file.
49560         * m4/write.m4: New file.
49561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49562         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49563         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49564         GNULIB_WRITE, REPLACE_WRITE.
49565         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49566         and the SIGPIPE issue.
49567
49568         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49569         (raise): New declaration.
49570         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49571         (ext_signal): New function.
49572         (rpl_raise): New function.
49573         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49574         GNULIB_SIGNAL_H_SIGPIPE.
49575         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49576         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49577
49578         * modules/sigpipe: New file.
49579         * m4/sigpipe.m4: New file.
49580
49581 2008-09-25  Derek Price  <derek@ximbiot.com>
49582             Bruno Haible  <bruno@clisp.org>
49583
49584         * gnulib-tool (func_import): Report all license incompatibilities, not
49585         just the first one.
49586
49587 2008-09-25  Bruno Haible  <bruno@clisp.org>
49588
49589         * gnulib-tool (func_import): When computing the edits, consider not
49590         only the Makefile.ams that exist but also those that will be generated.
49591
49592 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49593
49594         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49595         fixes gnulib-tool --test warning about duplicate dependency.
49596
49597 2008-09-25  Bruno Haible  <bruno@clisp.org>
49598
49599         * gnulib-tool: Don't ask the user to perform edits in the generated
49600         Makefile.ams.
49601         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49602         apply to the Makefile.am being generated.
49603         (func_emit_tests_Makefile_am): Execute edits that apply to the
49604         Makefile.am being generated.
49605         (func_import): Setup list of Makefile.am edits before emitting the
49606         Makefile.ams, not at the end.
49607         (func_create_testdir): Update.
49608         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49609
49610 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49611
49612         * gnulib-tool (func_import): Store the --tests-base option in the
49613         comment in gnulib-cache.m4.
49614
49615 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49616
49617         * NEWS: Document increased portability that sys_select now provides.
49618
49619         * lib/sys_select.in.h: Install select wrapper.
49620         * lib/sys_socket.in.h: Use more descriptive name when there is no
49621         select wrapper.
49622         * lib/winsock-select.c: New.
49623         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49624         Require gl_HEADER_SYS_SOCKET.
49625         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49626         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49627         * tests/test-sys_select.c: Add functional tests.
49628
49629 2008-09-24  Eric Blake  <ebb9@byu.net>
49630
49631         open, fopen: close fd leak in last patch
49632         * lib/open.c (rpl_open): Close fd before returning error.
49633         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49634         * doc/posix-functions/open.texi (open): Document that Irix also
49635         has the bug.
49636         * doc/posix-functions/fopen.texi (fopen): Likewise.
49637         Reported by Paolo Bonzini.
49638
49639 2008-09-24  Bruno Haible  <bruno@clisp.org>
49640
49641         Ensure that a filename ending in a slash cannot be used to access a
49642         non-directory.
49643         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49644         to check whether it's really a directory.
49645         * lib/fopen.c: Include fcntl.h, unistd.h.
49646         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49647         and fdopen().
49648         * modules/fopen (Depends-on): Add unistd.
49649         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49650         * tests/test-fopen.c (main): Likewise.
49651         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49652         * doc/posix-functions/fopen.texi: Likewise.
49653         Reported by Eric Blake.
49654
49655 2008-09-23  Eric Blake  <ebb9@byu.net>
49656
49657         c-stack: avoid compiler optimizations when provoking overflow
49658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49659         recursion harder to optimize, to ensure a stack overflow occurs.
49660         * tests/test-c-stack.c (recurse): Likewise.
49661         Borrowed from libsigsegv.
49662
49663         c-stack: work around Irix sigaltstack bug
49664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49665         whether sigaltstack uses wrong end of stack_t (copied in part from
49666         libsigsegv).
49667         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49668         Irix bug, without requiring an over-allocation.
49669         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49670         bug.
49671
49672         fopen: document mingw bug on directories
49673         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49674         not allowing a stream visiting a directory, even though reading
49675         from such a stream is not portable.
49676
49677 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49678
49679         * lib/poll.c: Rewrite.
49680         * modules/poll: Depend on alloca.
49681
49682 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49683
49684         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49685         instead define prototypes for a full set of wrappers.  Ensure
49686         that Cygwin does not use the compatibility code, which is only
49687         for MinGW.
49688         * lib/winsock.c: New.
49689         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49690         * modules/sys_socket: Add lib/winsock.c.
49691
49692         * modules/poll-tests: Add errno and perror.
49693         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49694
49695 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49696
49697         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49698
49699 2008-09-23  Bruno Haible  <bruno@clisp.org>
49700
49701         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49702         * doc/glibc-functions/*: Likewise.
49703
49704 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49705
49706         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49707         success.
49708
49709 2008-09-22  Eric Blake  <ebb9@byu.net>
49710             Bruno Haible  <bruno@clisp.org>
49711
49712         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49713         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49714         supply %A but mishandle pseudo-NaN.
49715         Reported by Simon Josefsson.
49716
49717 2008-09-21  Bruno Haible  <bruno@clisp.org>
49718
49719         * tests/test-lock.c (main): Tweak skip message.
49720         * tests/test-tls.c (main): Likewise.
49721
49722 2008-09-21  Bruno Haible  <bruno@clisp.org>
49723
49724         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49725         whether 'struct sigaction' has sa_sigaction here...
49726         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49727         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49728
49729 2008-09-21  Bruno Haible  <bruno@clisp.org>
49730
49731         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49732         section.
49733         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49734         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49735         the new section.
49736         (Support for obsolete systems lacking POSIX:2001): New section.
49737         (String handling <string.h>): Move strdup to the new section.
49738         Suggested by Simon Josefsson and Paolo Bonzini.
49739
49740 2008-09-21  Bruno Haible  <bruno@clisp.org>
49741
49742         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49743         exponents in %e and %g results on 'long double'. Needed for mingw's
49744         improved *printf functions.
49745         * tests/test-vasprintf-posix.c (test_function): Likewise.
49746         * tests/test-snprintf-posix.h (test_function): Likewise.
49747         * tests/test-sprintf-posix.h (test_function): Likewise.
49748         Reported by Eric Blake.
49749
49750 2008-09-21  Bruno Haible  <bruno@clisp.org>
49751
49752         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49753         * tests/test-sprintf-posix.h (test_function): Likewise.
49754
49755 2008-09-21  Bruno Haible  <bruno@clisp.org>
49756
49757         * modules/getpass (Depends-on): Add strdup-posix.
49758
49759         New module 'strdup-posix'.
49760         * modules/strdup-posix: New file.
49761         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49762         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49764         REPLACE_STRDUP.
49765         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49766         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49768         strdup-posix.
49769
49770         * modules/strdup (Depends-on): Remove malloc-posix.
49771
49772 2008-09-20  Bruno Haible  <bruno@clisp.org>
49773
49774         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49775         Wildenhues.
49776
49777 2008-09-20  Bruno Haible  <bruno@clisp.org>
49778
49779         Ensure that wint_t gets defined on IRIX 5.3.
49780         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49781         * lib/wctype.in.h (wint_t): Likewise.
49782         (__wctype_wint_t): Remove type.
49783         (isw*): Use wint_t instead of __wctype_wint_t.
49784         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49785         * modules/wchar (Files): Add m4/wint_t.m4.
49786         (Makefile.am): Substitute HAVE_WINT_T.
49787         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49788         * tests/test-wctype.c: Check that wint_t is defined.
49789         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49790         * doc/posix-headers/wctype.texi: Likewise.
49791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49792
49793 2008-09-18  Bruno Haible  <bruno@clisp.org>
49794
49795         * gnulib-tool (func_exit): Update comment.
49796
49797 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49798
49799         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49800         assumes strdup exists and does not depend on strdup to return
49801         ENOMEM on out of memory conditions.
49802
49803 2008-09-18  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49806         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49807         digits for the exponent.
49808
49809 2008-09-18  Jim Meyering  <meyering@redhat.com>
49810             Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/vasnprintf.c (decimal_point_char): Define also if
49813         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49814
49815 2008-09-16  Bruno Haible  <bruno@clisp.org>
49816         and Eric Blake  <ebb9@byu.net>
49817
49818         vasnprintf: support Irix 5.3
49819         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49820         that mishandle long double infinity.
49821         Reported by Tom G. Christensen.
49822
49823 2008-09-16  Bruno Haible  <bruno@clisp.org>
49824
49825         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49826         Solaris 9.
49827         * doc/glibc-functions/alphasort.texi: Likewise.
49828         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49829
49830 2008-09-16  Jim Meyering  <meyering@redhat.com>
49831
49832         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49833         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49834         a umask modification leak out of a subshell.  Otherwise, the
49835         opensolaris /bin/sh would be accepted and thus cause unwarranted
49836         failures in the coreutils test suite.
49837
49838 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49839
49840         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49841         to succeed.
49842
49843 2008-09-16  Jim Meyering  <meyering@redhat.com>
49844
49845         avoid spurious test failure when library is built without ACL support
49846         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49847         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49848         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49849         * tests/test-copy-acl.sh: Likewise.
49850
49851 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49852
49853         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49854         based on character occurrence counts.
49855
49856 2008-09-15  Eric Blake  <ebb9@byu.net>
49857
49858         tests: avoid some compiler warnings
49859         * tests/test-memchr.c (main): Pass NULL indirectly.
49860         * tests/test-closein.c (main): Avoid unused variable.
49861
49862 2008-09-15  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49865         are missing on OpenBSD 4.0 individually.
49866         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49867
49868 2008-09-15  Bruno Haible  <bruno@clisp.org>
49869
49870         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49871         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49872         * doc/posix-functions/perror.texi: Likewise.
49873         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49874         is missing.
49875         Reported by Eric Blake.
49876
49877         * lib/errno.in.h: Use replacement values >= 2000.
49878         Reported by Eric Blake.
49879
49880 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49881
49882         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49883         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49884         limit.
49885         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49886         compareseq was aborted.
49887
49888 2008-09-14  Bruno Haible  <bruno@clisp.org>
49889
49890         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49891         yvec_edit_count.
49892         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49893         (fstrcmp_bounded): Simplify result computation accordingly.
49894
49895 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49896
49897         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49898         (fstrcmp): Define in terms of fstrcmp_bounded.
49899         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49900         lower_bound argument.
49901         Return quickly if the result is certainly < lower_bound.
49902         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49903
49904 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49905
49906         * lib/diffseq.h (EARLY_ABORT): New macro.
49907         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49908         evaluates to true.
49909
49910 2008-09-14  Bruno Haible  <bruno@clisp.org>
49911
49912         * modules/perror-tests: New file.
49913         * tests/test-perror.sh: New file.
49914         * tests/test-perror.c: New file.
49915
49916         New module 'perror'.
49917         * lib/stdio.in.h (perror): New declaration.
49918         * lib/perror.c: New file.
49919         * m4/perror.m4: New file.
49920         * modules/perror: New file.
49921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49922         * doc/posix-functions/perror.texi: Mention the perror module.
49923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49924         REPLACE_PERROR.
49925         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49926         REPLACE_PERROR.
49927
49928 2008-09-14  Bruno Haible  <bruno@clisp.org>
49929
49930         * modules/stdio (Makefile.am): Reorder to match the order in
49931         lib/stdio.in.h.
49932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49933
49934 2008-09-13  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49937
49938 2008-09-13  Bruno Haible  <bruno@clisp.org>
49939
49940         Extend strerror to cover the added errno values.
49941         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49942         (rpl_strerror): Provide error messages for the added errno values and
49943         for the WSA* values.
49944         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49945         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49946         strerror.
49947         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49948         * modules/strerror (Depends-on): Add errno.
49949         * doc/posix-functions/strerror.texi: Document the change.
49950         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49951         and EOVERFLOW.
49952
49953 2008-09-13  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/EOVERFLOW: Remove file.
49956         * m4/eoverflow.m4: Remove file.
49957         * modules/EOVERFLOW-tests: Remove file.
49958         * tests/test-EOVERFLOW.c: Remove file.
49959         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49960         * modules/ftell (Depends-on): Likewise.
49961         * modules/getdelim (Depends-on): Likewise.
49962         * modules/getugroups (Depends-on): Likewise.
49963         * modules/poll (Depends-on): Likewise.
49964         * modules/snprintf (Depends-on): Likewise.
49965         * modules/sprintf-posix (Depends-on): Likewise.
49966         * modules/vasnprintf (Depends-on): Likewise.
49967         * modules/vasprintf (Depends-on): Likewise.
49968         * modules/vfprintf-posix (Depends-on): Likewise.
49969         * modules/vsnprintf (Depends-on): Likewise.
49970         * modules/vsprintf-posix (Depends-on): Likewise.
49971         * modules/xvasprintf (Depends-on): Likewise.
49972         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49973         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49974         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49975         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49976         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49977         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49978         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49979         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49980         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49981         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49982         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49983         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49984         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49985         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49986         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49987         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49988         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49989         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49990         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49991         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49992         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49993         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49994         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49995         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49996         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49997         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49998         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49999         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
50000         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
50001         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
50002         * MODULES.html.sh: Remove EOVERFLOW.
50003         * NEWS: Mention the change.
50004
50005 2008-09-13  Bruno Haible  <bruno@clisp.org>
50006
50007         * modules/errno-tests: New file.
50008         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
50009
50010         * lib/errno.in.h: New file.
50011         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50012         * modules/errno: New file.
50013         * doc/posix-headers/errno.texi: Update documentation.
50014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50015
50016 2008-09-13  Bruno Haible  <bruno@clisp.org>
50017
50018         * tests/test-poll.c: Use #if for native Windows, rather than testing
50019         __MSVCRT__.
50020
50021 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50022             Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/glob.c: Don't include <pwd.h> on native Windows.
50025         (WINDOWS32): New macro.
50026         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50027
50028 2008-09-13  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50031         (ETIMEDOUT): Remove macro.
50032         (glthread_cond_timedwait_multithreaded): New declaration.
50033         (glthread_cond_timedwait): Use it.
50034         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50035         (glthread_cond_timedwait_multithreaded): New function.
50036
50037 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50038
50039         * modules/poll-tests: Do not check for io.h.
50040         * tests/test-poll.c: Check for __MSVCRT__ instead.
50041
50042 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50043
50044         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50045         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50046         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50047
50048 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50049
50050         * modules/poll-tests: New.
50051         * tests/test-poll.c: New.
50052
50053 2008-09-12  Eric Blake  <ebb9@byu.net>
50054
50055         frexp: test for NetBSD failure on -0.0
50056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50057         not all, bugs from NetBSD 3.0 have been fixed.
50058         * doc/posix-functions/frexp.texi (frexp): Document bug.
50059         Reported by Thomas Klausner.
50060
50061         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50062         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50063         literal -0.0.
50064         Reported by Jonathan C. Patschke <jp@centtech.com>.
50065
50066 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50067
50068         * lib/glthread/cond.h: Use dummy implementation also if
50069         USE_WIN32_THREADS.
50070
50071 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50072
50073         * modules/fnmatch-posix (License): Change to LGPLv2+.
50074         * modules/fnmatch-gnu (License): Likewise.
50075
50076 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50077
50078         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50079
50080 2008-09-11  Jim Meyering  <meyering@redhat.com>
50081
50082         * users.txt: Add gtk-vnc.
50083
50084 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50085
50086         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50087         rotate amounts.
50088
50089         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50090         required for 16-bit and 8-bit rotates.
50091         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50092         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50093         UINT8_MAX instead of hard-coded constants.
50094         Suggested by Paul Eggert.
50095
50096 2008-09-07  Bruno Haible  <bruno@clisp.org>
50097
50098         * tests/test-striconveh.c (main): Check behaviour when converting from
50099         UTF-7.
50100
50101         Make striconveh work better with stateful encodings.
50102         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50103         that iconv does not increment the inptr when returning -1/EINVAL.
50104
50105 2008-09-07  Bruno Haible  <bruno@clisp.org>
50106
50107         * build-aux/config.rpath: Update according to libtool-2.2.6.
50108         * build-aux/config.libpath: Likewise.
50109
50110 2008-09-06  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50113         * lib/freadptr.c (freadptr): Likewise.
50114         * lib/freadseek.c (freadptrinc): Likewise.
50115         Reported by Simon Josefsson.
50116
50117 2008-09-06  Bruno Haible  <bruno@clisp.org>
50118
50119         * modules/freadptr (License): Change to LGPLv2+.
50120         * modules/freadseek (License): Likewise.
50121         Suggested by Eric Blake.
50122
50123         * modules/memchr2 (License): Change to LGPLv2+.
50124         Approved by Eric Blake.
50125
50126 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50127             Bruno Haible  <bruno@clisp.org>
50128
50129         Make gnulib-tool work with native 'sed' on AIX.
50130         * gnulib-tool (sed_noop): New variable.
50131         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50132         func_add_or_update, func_create_testdir): Use it to initialize sed
50133         script variables.
50134         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50135
50136 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50137             Bruno Haible  <bruno@clisp.org>
50138
50139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50140         also works after #include directives.
50141
50142 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50143
50144         getdate.y: reject an out-of-range timezone value
50145         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50146         the range [-24...+24].  When specified with only one or two digits,
50147         * tests/test-getdate.c: Tests for the fix.
50148         * doc/getdate.texi: Document this change.
50149
50150 2008-09-03  Bruno Haible  <bruno@clisp.org>
50151
50152         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50153
50154 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50155
50156         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50157         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50158         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50159         Blake <ebb9@byu.net>.
50160
50161         * tests/test-bitrotate.c: Add more test vectors.
50162
50163 2008-09-02  Eric Blake  <ebb9@byu.net>
50164
50165         vasnprintf-posix: handle large precision via %.*d
50166         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50167         when handling it ourselves.
50168         * tests/test-vasnprintf-posix.c (test_function): Add test.
50169         * tests/test-snprintf-posix.h (test_function): Likewise.
50170         * tests/test-sprintf-posix.h (test_function): Likewise.
50171         * tests/test-vasprintf-posix.c (test_function): Likewise.
50172         Reported by Alain Guibert.
50173
50174 2008-09-01  Eric Blake  <ebb9@byu.net>
50175
50176         c-stack: make configure-time check more robust
50177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50178         successful sigaction call.
50179         Reported by Tom G. Christensen.
50180
50181 2008-09-01  Bruno Haible  <bruno@clisp.org>
50182
50183         New module 'findprog-lgpl'.
50184         * modules/findprog-lgpl: New file.
50185         * lib/findprog-lgpl.c: New file.
50186         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50187         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50188         to decide whether to use strdup or xstrdup, concatenated_filename or
50189         xconcatenated_filename.
50190
50191 2008-09-01  Bruno Haible  <bruno@clisp.org>
50192
50193         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50194         'xconcat-filename' (GPL).
50195         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50196         (License): Change to LGPLv2+.
50197         * modules/xconcat-filename: New file.
50198         * lib/concat-filename.h (concatenated_filename): Change specification.
50199         (xconcatenated_filename): New declaration.
50200         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50201         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50202         memory situations.
50203         * lib/xconcat-filename.c: New file.
50204         * NEWS: Mention the change.
50205         * lib/findprog.c: Include concat-filename.h, not filename.h.
50206         (find_in_path): Use xconcatenated_filename instead of
50207         concatenated_filename.
50208         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50209         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50210         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50211         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50212         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50213         instead of concatenated_filename.
50214         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50215         (execute_java_class): Use xconcatenated_filename instead of
50216         concatenated_filename.
50217         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50218         * modules/javacomp (Depends-on): Likewise.
50219         * modules/javaexec (Depends-on): Likewise.
50220
50221 2008-09-01  Bruno Haible  <bruno@clisp.org>
50222
50223         Split module 'filename' into 'filename' and 'concat-filename'.
50224         * modules/filename: Keep only lib/filename.h.
50225         (License): Change to LGPLv2+.
50226         * modules/concat-filename: New file, extracted from modules/filename.
50227         * lib/filename.h (concatenated_filename): Remove declaration.
50228         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50229         * lib/concat-filename.c: Include concat-filename.h.
50230         * NEWS: Mention the change.
50231
50232 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50233
50234         * lib/bitrotate.h (rotl8, rotr8): Add.
50235
50236         * modules/bitrotate (configure.ac): Need
50237         AC_REQUIRE([AC_C_INLINE]).
50238         (Description): Mention stdint.h.  Reported by Bruno Haible
50239         <bruno@clisp.org>.
50240
50241         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50242         Paolo Bonzini <bonzini@gnu.org>.
50243
50244 2008-08-31  Bruno Haible  <bruno@clisp.org>
50245
50246         Assume Solaris specific bi-arch conventions on Solaris systems.
50247         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50248         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50250         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50251         like acl_libdirstem.
50252         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50253         acl_libdirstem.
50254         * NEWS: Mention the change.
50255         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50256
50257 2008-08-31  Jim Meyering  <meyering@redhat.com>
50258
50259         * lib/strftime.h: Add comments describing the two added arguments.
50260
50261         remove duplicate #include directives
50262         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50263         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50264
50265 2008-08-31  Bruno Haible  <bruno@clisp.org>
50266
50267         New module 'sigpipe-die'.
50268         * modules/sigpipe-die: New file.
50269         * lib/sigpipe-die.h: New file.
50270         * lib/sigpipe-die.c: New file.
50271         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50272
50273 2008-08-31  Bruno Haible  <bruno@clisp.org>
50274
50275         Don't override previously installed signal handlers.
50276         * lib/fatal-signal.c (saved_sigactions): New variable.
50277         (uninstall_handlers): Reset the signal to the saved handler, not
50278         to SIG_DFL (except when ignored).
50279         (install_handlers): Save the previous handlers.
50280
50281 2008-08-30  Bruno Haible  <bruno@clisp.org>
50282
50283         * gnulib-tool (func_reset_sigpipe): New function.
50284         (func_get_automake_snippet, func_modules_transitive_closure,
50285         func_import): Invoke it before a join command that reads from stdin,
50286         to avoid "echo: write error: Broken pipe" error messages on stderr.
50287         Reported by Sam Steingold <sds@gnu.org>.
50288
50289 2008-08-30  Bruno Haible  <bruno@clisp.org>
50290
50291         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
50292         Code copied from m4/open.m4.
50293         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
50294         access and the filename ends in a slash. Code copied from lib/open.c.
50295         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50296         * tests/test-fopen.c (main): Check against bug with trailing slash.
50297
50298 2008-08-29  Bruno Haible  <bruno@clisp.org>
50299
50300         Avoid some "gcc -pedantic" warnings.
50301         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50302         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50303         * lib/dirent.in.h: Likewise.
50304         * lib/fcntl.in.h: Likewise.
50305         * lib/float.in.h: Likewise.
50306         * lib/iconv.in.h: Likewise.
50307         * lib/inttypes.in.h: Likewise.
50308         * lib/locale.in.h: Likewise.
50309         * lib/math.in.h: Likewise.
50310         * lib/netinet_in.in.h: Likewise.
50311         * lib/search.in.h: Likewise.
50312         * lib/signal.in.h: Likewise.
50313         * lib/stdarg.in.h: Likewise.
50314         * lib/stdint.in.h: Likewise.
50315         * lib/stdio.in.h: Likewise.
50316         * lib/stdlib.in.h: Likewise.
50317         * lib/string.in.h: Likewise.
50318         * lib/strings.in.h: Likewise.
50319         * lib/sys_select.in.h: Likewise.
50320         * lib/sys_socket.in.h: Likewise.
50321         * lib/sys_stat.in.h: Likewise.
50322         * lib/sys_time.in.h: Likewise.
50323         * lib/sysexits.in.h: Likewise.
50324         * lib/time.in.h: Likewise.
50325         * lib/unistd.in.h: Likewise.
50326         * lib/wchar.in.h: Likewise.
50327         * lib/wctype.in.h: Likewise.
50328         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50329         * modules/fchdir (Makefile.am): Likewise.
50330         * modules/fcntl (Makefile.am): Likewise.
50331         * modules/float (Makefile.am): Likewise.
50332         * modules/iconv_open (Makefile.am): Likewise.
50333         * modules/inttypes (Makefile.am): Likewise.
50334         * modules/locale (Makefile.am): Likewise.
50335         * modules/math (Makefile.am): Likewise.
50336         * modules/netinet_in (Makefile.am): Likewise.
50337         * modules/search (Makefile.am): Likewise.
50338         * modules/signal (Makefile.am): Likewise.
50339         * modules/stdarg (Makefile.am): Likewise.
50340         * modules/stdint (Makefile.am): Likewise.
50341         * modules/stdio (Makefile.am): Likewise.
50342         * modules/stdlib (Makefile.am): Likewise.
50343         * modules/string (Makefile.am): Likewise.
50344         * modules/strings (Makefile.am): Likewise.
50345         * modules/sys_select (Makefile.am): Likewise.
50346         * modules/sys_socket (Makefile.am): Likewise.
50347         * modules/sys_stat (Makefile.am): Likewise.
50348         * modules/sys_time (Makefile.am): Likewise.
50349         * modules/sysexits (Makefile.am): Likewise.
50350         * modules/time (Makefile.am): Likewise.
50351         * modules/unistd (Makefile.am): Likewise.
50352         * modules/wchar (Makefile.am): Likewise.
50353         * modules/wctype (Makefile.am): Likewise.
50354         Reported by Reuben Thomas <rrt@sc3d.org>.
50355
50356 2008-08-29  Bruno Haible  <bruno@clisp.org>
50357
50358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50359         any more.
50360
50361 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50362
50363         * MODULES.html.sh (Misc): Add bitrotate.
50364
50365         * modules/bitrotate: New file.
50366
50367         * lib/bitrotate.h: New file.
50368
50369         * modules/bitrotate-tests: New file.
50370
50371         * tests/test-bitrotate.c: New file.
50372
50373         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50374         on the bitrotate module.
50375
50376         * lib/arctwo.c: Use new bitrotate module.
50377
50378 2008-08-29  Jim Meyering  <meyering@redhat.com>
50379
50380         bootstrap: merge changes from coreutils
50381         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50382         of copied files.  Remove a kludge, now that this is fixed.
50383         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50384         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50385         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50386
50387 2008-08-29  Bruno Haible  <bruno@clisp.org>
50388
50389         * MODULES.html.sh: Remove --cvs-urls option.
50390
50391 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50392
50393         maint.mk: adjust to file name change
50394         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50395
50396 2008-08-28  Jim Meyering  <meyering@redhat.com>
50397
50398         * modules/getndelim2 (License): Relicense to LGPLv2+.
50399         Approved by Richard Stallman for the version of 1995, and by
50400         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50401
50402 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50403
50404         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50405         dummy if one is not available.  Do not touch them if
50406         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50407         (getc_maybe_unlocked): New.
50408         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50409
50410 2008-08-26  Eric Blake  <ebb9@byu.net>
50411
50412         doc/INSTALL: resync from autoconf
50413         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50414         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50415         moving...
50416         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50417         * INSTALL: Regenerate.
50418         * INSTALL.ISO: New file.
50419         * INSTALL.UTF-8: Likewise.
50420
50421 2008-08-26  Jim Meyering  <meyering@redhat.com>
50422
50423         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50424         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50425         these definitions conditional, so that they may be overridden, too.
50426
50427 2008-08-26  Bruno Haible  <bruno@clisp.org>
50428
50429         Generate INSTALL file variants with prettier quotes.
50430         * doc/Makefile (INSTALL_PRELUDE): New macro.
50431         (INSTALL): Use it.
50432         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50433
50434 2008-08-26  Bruno Haible  <bruno@clisp.org>
50435
50436         Run makeinfo in an English locale.
50437         * doc/Makefile (MAKEINFO): New variable.
50438
50439 2008-08-26  Bruno Haible  <bruno@clisp.org>
50440
50441         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50442         Suggested by Eric Blake.
50443
50444 2008-08-25  Bruno Haible  <bruno@clisp.org>
50445
50446         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50447
50448 2008-08-25  Eric Blake  <ebb9@byu.net>
50449
50450         c-stack: test that stack overflow can be caught
50451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50452         that platform allows handling stack overflow; at least OS/2 EMX
50453         has sigaltstack, but crashes before transferring control to
50454         handler on stack overflow.
50455         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50456         check for HAVE_STACK_OVERFLOW_HANDLING.
50457         Reported by Elbert Pol.
50458
50459 2008-08-25  Bruno Haible  <bruno@clisp.org>
50460
50461         * doc/posix-functions/strftime.texi: Fix description of strftime
50462         module.
50463
50464 2008-08-24  Bruno Haible  <bruno@clisp.org>
50465
50466         * tests/uniwidth/test-uc_width2.c: New file.
50467         * tests/uniwidth/test-uc_width2.sh: New file.
50468         * modules/uniwidth/width-tests (Files): Add the new files.
50469         (TESTS): Add uniwidth/test-uc_width2.sh.
50470         (TESTS_ENVIRONMENT): New variable.
50471         (check_PROGRAMS): Add test-uc_width2.
50472         (test_uc_width2_SOURCES): New variable.
50473
50474         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50475         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50476         not 0x00AB.
50477         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50478
50479 2008-08-22  Eric Blake  <ebb9@byu.net>
50480
50481         test-lock, test-tls: mention why a test is skipped
50482         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50483         skipped.
50484         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50485
50486         count-one-bits: relax license
50487         * modules/count-one-bits (License): Relicense to LGPLv2+.
50488         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50489
50490 2008-08-22  Andreas Schwab  <schwab@suse.de>
50491
50492         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50493         Remove spurious space in assignment.
50494
50495 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50496
50497         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50498         Paul Eggert <eggert@CS.UCLA.EDU>.
50499
50500 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50501
50502         * modules/gettext: Add m4/threadlib.m4.
50503
50504 2008-08-19  Eric Blake  <ebb9@byu.net>
50505
50506         test-c-stack: fix compilation failure on FreeBSD 5.0
50507         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50508         headers before <sys/resource.h>.
50509         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50510         the bug.
50511         Reported by Nelson H. F. Beebe.
50512
50513         strverscmp: migrate from "strverscmp.h" to <string.h>
50514         * modules/string (Makefile.am): Add new hooks.
50515         * modules/strverscmp (Files): Remove strverscmp.h.
50516         (Depends-on): Add string.
50517         (configure.ac): Add indicator.
50518         (Include): Mention new header.
50519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50520         defaults.
50521         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50522         results.
50523         * lib/strverscmp.h: Delete.
50524         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50525         * tests/test-strverscmp.c (includes): Adjust client.
50526         * lib/check-version.c (includes): Likewise.
50527         * NEWS: Document the change.
50528
50529         strverscmp: add unit test
50530         * modules/strverscmp-tests: New file.
50531         * tests/test-strverscmp.c: Likewise.
50532
50533 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50534
50535         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50536         regarding Windows crypto stuff, from Mono.
50537
50538 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50539
50540         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50541         if present, for intel RND.  Return error on failures.
50542
50543 2008-08-18  Ben Pfaff  <blp@gnu.org>
50544
50545         gitlog-to-changelog: give better diagnostic for failed pipe-open
50546         * build-aux/gitlog-to-changelog: Improve error message: suggest
50547         that the version of Git may be too old.
50548
50549 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50550
50551         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50552         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50553
50554 2008-08-18  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50557         pthread_in_use().
50558
50559 2008-08-18  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/glthread/threadlib.c: Include <pthread.h>.
50562
50563 2008-08-18  Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50566         glthread_recursive_lock_* macros.
50567         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50568         Fix syntax error.
50569
50570 2008-08-18  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/glthread/thread.c: Avoid forcing a context switch right after
50573         thread creation.
50574
50575 2008-08-17  Bruno Haible  <bruno@clisp.org>
50576
50577         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50578         * lib/glthread/thread.h: Provide Win32 specific implementation.
50579         * modules/thread (Files): Add lib/glthread/thread.c.
50580         (Depends-on): Add lock.
50581         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50582
50583 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50584
50585         New module 'yield'.
50586         * modules/yield: New file.
50587         * lib/glthread/yield.h: New file.
50588         * m4/yield.m4: New file.
50589         * MODULES.html.sh (Multithreading): Add yield.
50590
50591 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50592
50593         New module 'thread'.
50594         * modules/thread: New file.
50595         * lib/glthread/thread.h: New file.
50596         * m4/thread.m4: New file.
50597         * MODULES.html.sh (Multithreading): Add thread.
50598
50599 2008-08-17  Bruno Haible  <bruno@clisp.org>
50600
50601         * lib/glthread/lock.h: Include <stdlib.h> always.
50602         * lib/glthread/tls.h: Likewise.
50603         * lib/glthread/cond.h: Likewise.
50604
50605 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50606
50607         New module 'cond'.
50608         * modules/cond: New file.
50609         * lib/glthread/cond.h: New file.
50610         * lib/glthread/cond.c: New file.
50611         * m4/cond.m4: New file.
50612         * MODULES.html.sh (Multithreading): Add cond.
50613
50614 2008-08-16  Eric Blake  <ebb9@byu.net>
50615
50616         c-stack: fix regression on Irix 5.3 from 2008-06-21
50617         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50618         sa_sigaction...
50619         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50620         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50621         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50622         * modules/signal (Makefile.am): Use the value.
50623         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50624         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50625         * doc/posix-headers/signal.texi (signal.h): Document this
50626         portability issue.
50627         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50628         Reported by Tom G. Christensen.
50629
50630 2008-08-17  Bruno Haible  <bruno@clisp.org>
50631
50632         New module 'threadlib'.
50633         * modules/threadlib: New file.
50634         * lib/glthread/threadlib.c: New file, extracted from
50635         lib/glthread/lock.c.
50636         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50637         functions.
50638         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50639         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50640         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50641         macros.
50642         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50643         (gl_DISABLE_THREADS): Remove macro.
50644         * modules/lock (Files): Remove build-aux/config.rpath.
50645         (Depends-on): Remove havelib. Add threadlib.
50646         (configure.ac-early): Remove section.
50647         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50648         * modules/tls (Depends-on): Remove lock. Add threadlib.
50649         (Link): New section, copied from threadlib.
50650         * MODULES.html.sh (Multithreading): Add threadlib.
50651
50652 2008-08-14  Bruno Haible  <bruno@clisp.org>
50653
50654         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50655         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50656         glthread_rwlock_unlock, glthread_rwlock_destroy,
50657         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50658         glthread_recursive_lock_destroy): Define as macros always.
50659         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50660         glthread_lock_lock.
50661         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50662         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50663         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50664         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50665         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50666         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50667         (glthread_recursive_lock_lock_func): Renamed from
50668         glthread_recursive_lock_lock.
50669         (glthread_recursive_lock_unlock_func): Renamed from
50670         glthread_recursive_lock_unlock.
50671         (glthread_recursive_lock_destroy_func): Renamed from
50672         glthread_recursive_lock_destroy.
50673
50674 2008-08-14  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/glthread/lock.h: Renamed from lib/lock.h.
50677         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50678         * lib/glthread/tls.h: Renamed from lib/tls.h.
50679         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50680         * lib/fstrcmp.c: Update includes.
50681         * lib/strsignal.c: Update includes.
50682         * modules/lock (Files, Makefile.am): Update.
50683         (Include): Change to "glthread/lock.h".
50684         * modules/tls (Files, Makefile.am): Update.
50685         (Include): Change to "glthread/tls.h".
50686         * tests/test-lock.c: Update includes.
50687         * tests/test-tls.c: Update includes.
50688         * NEWS: Mention the renamed header files.
50689
50690 2008-08-11  Jim Meyering  <meyering@redhat.com>
50691
50692         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50693
50694 2008-08-11  Eric Blake  <ebb9@byu.net>
50695
50696         test-c-stack: avoid C99-ism
50697         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50698         before statement.
50699         Reported by Alain Guibert.
50700
50701 2008-08-10  Jim Meyering  <meyering@redhat.com>
50702
50703         ensure that return value of uinttostr et al are not ignored
50704         * lib/inttostr.h (__GNUC_PREREQ): Define.
50705         (__attribute_warn_unused_result__): Define.
50706         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50707
50708 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50709
50710         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50711         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50712
50713 2008-08-07  Jim Meyering  <meyering@redhat.com>
50714
50715         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50716
50717         * modules/mkstemp (License): Relicense under LGPLv2+.
50718         * modules/tempname (License): Likewise.
50719
50720 2008-08-06  Bruno Haible  <bruno@clisp.org>
50721
50722         * lib/poll.c (poll): Further micro-optimization.
50723
50724 2008-08-06  Jim Meyering  <meyering@redhat.com>
50725
50726         inet_pton.c: use locale-independent tolower
50727         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50728         (inet_pton6): Use c_tolower rather than tolower.
50729         * modules/inet_pton (Depends-on): Add c-ctype.
50730
50731 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50732
50733         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50734         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50735
50736 2008-08-06  Jim Meyering  <meyering@redhat.com>
50737
50738         * modules/inet_pton (License): Relicense under LGPLv2+.
50739
50740 2008-08-03  Bruno Haible  <bruno@clisp.org>
50741
50742         Additional non-aborting API for lock and tls.
50743         * lib/lock.h: Include <errno.h>.
50744         (glthread_lock_init): New macro/function.
50745         (gl_lock_init): Define as wrapper around glthread_lock_init.
50746         (glthread_lock_lock): New macro/function.
50747         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50748         (glthread_lock_unlock): New macro/function.
50749         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50750         (glthread_lock_destroy): New macro/function.
50751         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50752         (glthread_rwlock_init): New macro/function.
50753         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50754         (glthread_rwlock_rdlock): New macro/function.
50755         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50756         (glthread_rwlock_wrlock): New macro/function.
50757         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50758         (glthread_rwlock_unlock): New macro/function.
50759         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50760         (glthread_rwlock_destroy): New macro/function.
50761         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50762         (glthread_recursive_lock_init): New macro/function.
50763         (gl_recursive_lock_init): Define as wrapper around
50764         glthread_recursive_lock_init.
50765         (glthread_recursive_lock_lock): New macro/function.
50766         (gl_recursive_lock_lock): Define as wrapper around
50767         glthread_recursive_lock_lock.
50768         (glthread_recursive_lock_unlock): New macro/function.
50769         (gl_recursive_lock_unlock): Define as wrapper around
50770         glthread_recursive_lock_unlock.
50771         (glthread_recursive_lock_destroy): New macro/function.
50772         (gl_recursive_lock_destroy): Define as wrapper around
50773         glthread_recursive_lock_destroy.
50774         (glthread_once): New macro/function.
50775         (gl_once): Define as wrapper around glthread_once.
50776         Update function declarations.
50777         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50778         glthread_rwlock_init. Return error code.
50779         (glthread_rwlock_rdlock_multithreaded): Renamed from
50780         glthread_rwlock_rdlock. Return error code.
50781         (glthread_rwlock_wrlock_multithreaded): Renamed from
50782         glthread_rwlock_wrlock. Return error code.
50783         (glthread_rwlock_unlock_multithreaded): Renamed from
50784         glthread_rwlock_unlock. Return error code.
50785         (glthread_rwlock_destroy_multithreaded): Renamed from
50786         glthread_rwlock_destroy. Return error code.
50787         (glthread_recursive_lock_init_multithreaded): Renamed from
50788         glthread_recursive_lock_init. Return error code.
50789         (glthread_recursive_lock_lock_multithreaded): Renamed from
50790         glthread_recursive_lock_lock. Return error code.
50791         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50792         glthread_recursive_lock_unlock. Return error code.
50793         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50794         glthread_recursive_lock_destroy. Return error code.
50795         (glthread_once_call): Make static.
50796         (glthread_once_multithreaded): Renamed from glthread_once.
50797         * lib/tls.h: Include <errno.h>.
50798         (glthread_tls_key_init): New macro/function.
50799         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50800         (glthread_tls_set): New macro/function.
50801         (gl_tls_set): Define as wrapper around glthread_tls_set.
50802         (glthread_tls_key_destroy): New macro/function.
50803         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50804         Update function declarations.
50805         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50806         glthread_tls_get.
50807         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50808
50809 2008-08-04  Eric Blake  <ebb9@byu.net>
50810
50811         gnumakefile: use space, not TAB, outside of targets
50812         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50813
50814 2008-08-02  Jim Meyering  <meyering@redhat.com>
50815
50816         getdate.y: avoid locale-dependent date parsing failure
50817         In Turkish locales, getdate would fail to recognize keywords
50818         containing a lowercase "i".  The solution is not to rely on
50819         locale-sensitive case-conversion.
50820         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50821         (lookup_word): Use c_toupper in place of toupper.
50822         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50823         Reported by Vefa Bicakci <bicave@superonline.com> in
50824         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50825         * modules/getdate (Depends-on): Add c-ctype.
50826
50827 2008-08-02  Bruno Haible  <bruno@clisp.org>
50828
50829         * gnulib-tool (func_import): When updating or creating a .gitignore
50830         file, prepend each added line with a slash, and ignore leading slashes
50831         from the existing lines.
50832         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50833
50834 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50835
50836         Portability fix for GNU make 3.79.1.
50837         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50838         versions do not understand.
50839
50840 2008-08-01  Bruno Haible  <bruno@clisp.org>
50841
50842         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50843         * tests/test-isnanf.h (zero): New variable.
50844         (main): Avoid literal -0.0f.
50845         * tests/test-isnand.h (zero): New variable.
50846         (main): Avoid literal -0.0.
50847         * tests/test-isnanl.h (zero): New variable.
50848         (main): Avoid literal -0.0L.
50849         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50850         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50851         -0.0, -0.0L.
50852         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50853         (test_signbitd): Avoid literal -0.0.
50854         (test_signbitl): Avoid literal -0.0L.
50855         * tests/test-ceilf1.c (zero): New variable.
50856         (main): Avoid literal -0.0f.
50857         * tests/test-ceill.c (zero): New variable.
50858         (main): Avoid literal -0.0L.
50859         * tests/test-floorf1.c (zero): New variable.
50860         (main): Avoid literal -0.0f.
50861         * tests/test-floorl.c (zero): New variable.
50862         (main): Avoid literal -0.0L.
50863         * tests/test-roundf1.c (zero): New variable.
50864         (main): Avoid literal -0.0f.
50865         * tests/test-round1.c (zero): New variable.
50866         (main): Avoid literal -0.0.
50867         * tests/test-roundl.c (zero): New variable.
50868         (main): Avoid literal -0.0L.
50869         * tests/test-truncf1.c (zero): New variable.
50870         (main): Avoid literal -0.0f.
50871         * tests/test-trunc1.c (zero): New variable.
50872         (main): Avoid literal -0.0.
50873         * tests/test-truncl.c (zero): New variable.
50874         (main): Avoid literal -0.0L.
50875         * tests/test-frexp.c (zero): New variable.
50876         (main): Avoid literal -0.0.
50877         * tests/test-frexpl.c (zero): New variable.
50878         (main): Avoid literal -0.0L.
50879         * tests/test-ldexpl.c (zero): New variable.
50880         (main): Avoid literal -0.0L.
50881         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50882         (zerod, zerol): New variables.
50883         (test_function): Avoid literals -0.0, -0.0L.
50884         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50885         (zerod, zerol): New variables.
50886         (test_function): Avoid literals -0.0, -0.0L.
50887         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50888         (zerod, zerol): New variables.
50889         (test_function): Avoid literals -0.0, -0.0L.
50890         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50891         (zerod, zerol): New variables.
50892         (test_function): Avoid literals -0.0, -0.0L.
50893         * tests/test-strtod.c (zero): New variable.
50894         (main): Avoid literal -0.0.
50895         Reported by Jonathan C. Patschke <jp@centtech.com>.
50896
50897 2008-07-31  Jim Meyering  <meyering@redhat.com>
50898
50899         sha256.h: correct definition of SHA224_DIGEST_SIZE
50900         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50901         Reported by Paulie Pena IV <paulie4@gmail.com>.
50902         Define as 224 / 8, rather than as a literal.
50903         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50904         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50905         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50906
50907 2008-07-31  Bruno Haible  <bruno@clisp.org>
50908
50909         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50910         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50911         Reported by Jonathan Patschke <jp@centtech.com>.
50912
50913 2008-07-31  Bruno Haible  <bruno@clisp.org>
50914
50915         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50916         Reported by Paolo Bonzini <bonzini@gnu.org>.
50917
50918 2008-07-30  Eric Blake  <ebb9@byu.net>
50919
50920         test-strtod: allow compilation without -lm
50921         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50922         Reported by Dennis Clarke <blastwave@gmail.com>.
50923
50924 2008-07-28  Jim Meyering  <meyering@redhat.com>
50925
50926         bootstrap: work also when there are no .po files in po/
50927         * build-aux/bootstrap (update_po_files): Complete the change
50928         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50929
50930 2008-07-27  Jim Meyering  <meyering@redhat.com>
50931
50932         * users.txt: Add zile.
50933
50934 2008-07-26  Ben Pfaff  <blp@gnu.org>
50935
50936         Add missing dependencies on new m4/exponent[fdl].m4 files.
50937         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50938         * modules/isnand-nolibm: Add m4/exponentd.m4.
50939         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50940         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50941         m4/isnan[fdl].m4, because the macros actually used moved.
50942         Reported by Jim Meyering.
50943
50944 2008-07-14  Ben Pfaff  <blp@gnu.org>
50945
50946         Add isinf module.
50947         * lib/isinf.c: New file.
50948         * lib/math.in.h: Define isinf macro if we have decided to replace
50949         it.
50950         * m4/isinf.m4: New file.
50951         * m4/math_h.m4: Initialize and substitute variables for isinf
50952         module.
50953         * modules/isinf: New file.
50954         * modules/isinf-tests: New file.
50955         * modules/math: Add substitutions for new module.
50956         * tests/test-isinf.c: New file.
50957         * doc/posix-functions/isinf.texi: Mention new module.
50958         * MODULES.html.sh: Mention new module.
50959
50960 2008-07-14  Ben Pfaff  <blp@gnu.org>
50961
50962         Factor out some macros for use by additional modules.
50963         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50964         exponentf.m4.
50965         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50966         exponentd.m4.
50967         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50968         file exponentl.m4.
50969         * m4/exponentf.m4: New file.
50970         * m4/exponentd.m4: New file.
50971         * m4/exponentl.m4: New file.
50972         * modules/isnanf: Use new file m4/exponentf.m4.
50973         * modules/isnand: Use new file m4/exponentd.m4.
50974         * modules/isnanl: Use new file m4/exponentl.m4.
50975
50976 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50977
50978         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50979         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50980         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50981         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50982
50983         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50984         readlink on platforms without PATH_MAX.
50985
50986 2008-07-21  Eric Blake  <ebb9@byu.net>
50987
50988         Warn, not fail, on stale version.
50989         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50990
50991         Don't allow installation with stale devel version number.
50992         * top/GNUmakefile (_is-install-target): New macro.
50993         (_curr-ver): Forbid installation with stale version number.
50994
50995 2008-07-20  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50998         TESTS_ENVIRONMENT.
50999         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
51000
51001 2008-07-20  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/c-stack.h (c_stack_action): Add documentation.
51004         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
51005
51006 2008-07-20  Bruno Haible  <bruno@clisp.org>
51007
51008         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
51009         * modules/readlink (License): Likewise.
51010
51011 2008-07-17  Eric Blake  <ebb9@byu.net>
51012
51013         * modules/c-stack (Link): Fix typo.
51014
51015         Make c-stack use libsigsegv, when available.
51016         * modules/c-stack (Depends-on): Add libsigsegv.
51017         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51018         needed.
51019         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51020         (segv_handler, overflow_handler, c_stack_action)
51021         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51022         implementation when libsigsegv is available, but only when using
51023         the library is necessary.
51024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51025         comment, explaining why XSI check fails on Linux.
51026         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51027         * tests/test-c-stack2.sh: Tweak skip message.
51028         * NEWS: Document new link-time requirements.
51029
51030 2008-07-16  Eric Blake  <ebb9@byu.net>
51031
51032         c-stack: Expose false positives when not using libsigsegv.
51033         * modules/c-stack-tests (Files): Expand test.
51034         * tests/test-c-stack.c (main): Add means to conditionally trigger
51035         non-overflow SIGSEGV.
51036         * tests/test-c-stack2.sh: New file.
51037
51038 2008-07-14  Bruno Haible  <bruno@clisp.org>
51039
51040         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51041         Reported by Eric Blake.
51042
51043 2008-07-14  Sam Steingold  <sds@gnu.org>
51044             Bruno Haible  <bruno@clisp.org>
51045
51046         New module libsigsegv.
51047         * modules/libsigsegv: New file.
51048         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51049         modifications.
51050         * MODULES.html.sh (Signal handling): New section.
51051
51052 2008-07-14  Bruno Haible  <bruno@clisp.org>
51053
51054         * modules/unictype/ctype-* (Description): Add the word "function".
51055         Improves the resulting doc in MODULES.html.
51056
51057 2008-07-12  Ben Pfaff  <blp@gnu.org>
51058
51059         Add longlong module.
51060         * modules/longlong: New file.
51061
51062 2008-07-12  Bruno Haible  <bruno@clisp.org>
51063
51064         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51065         to empty.
51066
51067 2008-07-10  Ben Pfaff  <blp@gnu.org>
51068
51069         Add isnan module.
51070         * doc/posix-functions/isnan.texi: Mention new module.
51071         * lib/math.in.h: Define isnan macro if we have decided to replace
51072         it.
51073         * m4/isnan.m4: New file.
51074         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51075         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51076         also.
51077         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51078         redundancy.
51079         * m4/math_h.m4: Initialize and substitute variables for isnan
51080         module.
51081         * modules/isnan: New file.
51082         * modules/isnan-tests: New file.
51083         * modules/math: Add substitutions for new module.
51084         * tests/test-isnan.c: New file.
51085         * MODULES.html.sh: Mention new module.
51086
51087 2008-07-10  Ben Pfaff  <blp@gnu.org>
51088
51089         Add isnanf module.
51090         * lib/isnanf.m4: New file.
51091         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51092         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51093         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51094         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51095         * modules/isnanf: New file.
51096         * modules/isnanf-tests: New file.
51097         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51098         files.
51099         * tests/test-isnanf-nolibm.c: factored most of its contents into
51100         new file tests/test-isnanf.h.
51101         * tests/test-isnanf.h: New file.
51102         * tests/test-isnanf.c: New file.
51103         * MODULES.html.sh: Mention new module.
51104         * doc/glibc-functions/isnanf.texi: Mention new module.
51105
51106 2008-07-10  Ben Pfaff  <blp@gnu.org>
51107
51108         Add isnand module.
51109         * lib/isnand.h: New file.
51110         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51111         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51112         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51113         functionality also.
51114         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51115         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51116         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51117         * modules/isnand: New file.
51118         * modules/isnand-tests: New file.
51119         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51120         files.
51121         * tests/test-isnand-nolibm.c: factored most of its contents into
51122         new file tests/test-isnand.h.
51123         * tests/test-isnand.h: New file.
51124         * tests/test-isnand.c: New file.
51125         * MODULES.html.sh: Mention new module.
51126
51127 2008-07-10  Ben Pfaff  <blp@gnu.org>
51128
51129         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51130         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51131         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51132         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51133         * modules/isnanf-nolibm: Update references to renamed files.
51134         * modules/isnand-nolibm: Likewise.
51135         * modules/isnanf-nolibm-tests: Likewise.
51136         * modules/isnand-nolibm-tests: Likewise.
51137         * lib/frexp.c: Likewise.
51138         * lib/isfinite.c: Likewise.
51139         * lib/signbitd.c: Likewise.
51140         * lib/signbitf.c: Likewise.
51141         * lib/vasnprintf.c: Likewise.
51142         * tests/test-ceilf1.c: Likewise.
51143         * tests/test-ceilf2.c: Likewise.
51144         * tests/test-floorf1.c: Likewise.
51145         * tests/test-floorf2.c: Likewise.
51146         * tests/test-frexp.c: Likewise.
51147         * tests/test-round1.c: Likewise.
51148         * tests/test-round2.c: Likewise.
51149         * tests/test-roundf1.c: Likewise.
51150         * tests/test-strtod.c: Likewise.
51151         * tests/test-trunc1.c: Likewise.
51152         * tests/test-trunc2.c: Likewise.
51153         * tests/test-truncf1.c: Likewise.
51154         * tests/test-truncf2.c: Likewise.
51155         * NEWS: Mention the renamed header files.
51156
51157 2008-07-11  Jim Meyering  <meyering@redhat.com>
51158
51159         vc-list-files: make the last-resort awk code more portable
51160         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51161         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51162         does not support it.
51163
51164 2008-07-10  Eric Blake  <ebb9@byu.net>
51165
51166         Work with tar's bootstrap.
51167         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51168         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51169         an m4 comment.
51170
51171 2008-07-09  Jim Meyering  <meyering@redhat.com>
51172
51173         posix-shell.m4: fix typo that made this test malfunction
51174         * m4/posix-shell.m4: Remove capitalization in variable name.
51175
51176 2008-07-08  Bruno Haible  <bruno@clisp.org>
51177
51178         * m4/onceonly.m4: Update comments.
51179         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51180
51181 2008-07-04  Jim Meyering  <meyering@redhat.com>
51182
51183         * users.txt: Add vc-dwim.
51184         (bison, coreutils): Use the gitweb URL.
51185
51186 2008-07-03  Jim Meyering  <meyering@redhat.com>
51187
51188         * users.txt: Add libffcall.  From Sam Steingold.
51189
51190 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51191
51192         getdate.y: do not ignore TZ with relative day, month or year offset
51193         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51194         relative-date-handling, since otherwise, the latter would clobber the
51195         sole output (an updated Start value) of the tz-handling block.
51196         * tests/test-getdate.c: Tests for the fix
51197
51198 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51199
51200         Recognize 'foo_LIBRARIES += libgnu.a'.
51201         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51202         makefile snippet has already specified an installation location,
51203         also using '+='.
51204
51205 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51206
51207         getdate.y: factor out common actions
51208         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51209         Use them in place of open-coded actions.
51210
51211 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51212
51213         Add self-test for getdate module.
51214         * modules/getdate-tests: New file.
51215         * tests/test-getdate.c: New file.
51216
51217 2008-06-29  Bruno Haible  <bruno@clisp.org>
51218
51219         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51220         .gitignore.
51221         Reported by Sylvain Beucler <beuc@beuc.net>.
51222
51223 2008-06-29  Bruno Haible  <bruno@clisp.org>
51224
51225         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51226         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51227
51228 2008-06-29  Bruno Haible  <bruno@clisp.org>
51229
51230         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51231         EXTRA_DIST.
51232         Reported by Sylvain Beucler <beuc@beuc.net>.
51233
51234 2008-06-26  Jim Meyering  <meyering@redhat.com>
51235
51236         make several modules depend on the "open" module
51237         This provides slightly increased consistency when opening-for-write
51238         the name of a non-directory spelled with a trailing slash.
51239         * modules/chdir-safer: Likewise.
51240         * modules/chown: Likewise.
51241         * modules/clean-temp: Likewise.
51242         * modules/copy-file: Likewise.
51243         * modules/fchdir: Likewise.
51244         * modules/fcntl-safer: Likewise.
51245         * modules/pipe: Likewise.
51246         * modules/utime: Likewise.
51247         Prompted by Eric Blake and Bruno Haible.
51248
51249 2008-06-24  Andreas Schwab  <schwab@suse.de>
51250
51251         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51252         literals can be used as initializers for global variables.
51253
51254 2008-06-23  Eric Blake  <ebb9@byu.net>
51255
51256         Make gnulib-cache.m4 easier to diff.
51257         * gnulib-tool (func_import): Allow newlines when reading cached
51258         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51259
51260 2008-06-23  Bruno Haible  <bruno@clisp.org>
51261
51262         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51263         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51264         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51265         m4/signalblocking.m4.
51266         (gl_PREREQ_SIGACTION): Don't invoke it.
51267         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51268         gl_PREREQ_SIG_HANDLER_H.
51269         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51270         Don't check for sigaction here.
51271
51272 2008-06-23  Bruno Haible  <bruno@clisp.org>
51273
51274         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51275         (install_handlers): Don't set the SA_RESETHAND flag.
51276
51277 2008-06-23  Bruno Haible  <bruno@clisp.org>
51278
51279         * m4/sigaction.m4: Comment fixes.
51280         * lib/signal.in.h: Likewise.
51281
51282 2008-06-23  Eric Blake  <ebb9@byu.net>
51283
51284         Fix typo.
51285         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51286
51287         Avoid SA_ namespace.
51288         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
51289         Reported by Ralf Wildenhues.
51290
51291         Avoid test failure due to SA_RESTORER.
51292         * tests/test-sigaction.c (SA_MASK): New macro.
51293         (main): Avoid failing due to extension flags being set.
51294         Reported by Jim Meyering.
51295
51296         Revert use of sig-handler.h in sigprocmask.c.
51297         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51298         it requires the existence of struct sigaction.
51299         * lib/sigprocmask.c (handler_t): Restore typedef.
51300         (rpl_signal, old_handlers): Use local type.
51301
51302 2008-06-22  Bruno Haible  <bruno@clisp.org>
51303
51304         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51305         conditionally.
51306         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51307
51308 2008-06-22  Bruno Haible  <bruno@clisp.org>
51309
51310         * doc/posix-functions/siginterrupt.texi: Move note.
51311
51312         * lib/signal.in.h (SA_RESTART): New macro.
51313         * lib/sigaction.c: Update comment.
51314
51315         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51316
51317         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51318         (gl_PREREQ_SIGPROCMASK): Invoke it.
51319         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51320
51321         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51322
51323         * lib/sigprocmask.c: Update a comment.
51324
51325 2008-06-21  Eric Blake  <ebb9@byu.net>
51326
51327         Use sigaction module rather than signal().
51328         * modules/c-stack (Depends-on): Add sigaction.
51329         * modules/fatal-signal (Depends-on): Likewise.
51330         * modules/nanosleep (Depends-on): Likewise.
51331         * modules/sigprocmask (Files): Add sig-handler.h.
51332         * modules/sigaction (Files): Likewise.
51333         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51334         Eggert.
51335         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51336         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51337         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51338         (init_fatal_signals): Likewise.
51339         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51340         (siginterrupt): Delete fallback.
51341         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51342         instead.
51343         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51344         siginterrupt.
51345
51346         New module sigaction, for mingw.
51347         * modules/sigaction: New module...
51348         * modules/sigaction-tests: ...and its test.
51349         * m4/sigaction.m4: New file.
51350         * lib/sigaction.c: Likewise.
51351         * tests/test-sigaction.c: Likewise.
51352         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51353         * modules/signal (Makefile.am): Likewise.
51354         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51355         needed.
51356         * doc/posix-headers/signal.texi (signal.h): Mention provided
51357         types.
51358         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51359         that sigaction is preferable.
51360         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51361         module.
51362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51363         sigaction.
51364
51365         Improve robustness of sigprocmask by overriding signal.
51366         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51367         is in use.
51368         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51369         (SIGKILL, SIGSTOP): Provide fallbacks.
51370         (rpl_signal): Implement.
51371         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51372         signal can be called inside handlers.
51373
51374         Fix nanosleep module on mingw.
51375         * modules/nanosleep (Depends-on): Add sys_select.
51376         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51377
51378         Fix licensing of sigprocmask.
51379         * modules/raise (License): Relicense as LGPL.
51380
51381 2008-06-21  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51384         result if it contains question marks.
51385         Reported by Michael Geng <linux@michaelgeng.de>.
51386
51387 2008-06-19  Bruno Haible  <bruno@clisp.org>
51388
51389         Fix CVS-ism.
51390         * doc/gnulib.texi: Include updated-stamp.texi.
51391         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51392         (updated-stamp.texi): New rule.
51393         (gnulib.info): Depend on it.
51394         * doc/.gitignore: Add updated-stamp.texi.
51395         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51396
51397 2008-06-19  Bruno Haible  <bruno@clisp.org>
51398
51399         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51400         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51401
51402 2008-06-19  Eric Blake  <ebb9@byu.net>
51403
51404         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51405         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51406         Reported by Stepan Kasal.
51407
51408 2008-06-18  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51411         Reported by Eric Blake.
51412
51413 2008-06-18  Eric Blake  <ebb9@byu.net>
51414
51415         Work around cygwin 1.5.25 strsignal bug.
51416         * tests/test-strsignal.c: Allow for const char *.
51417         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51418
51419 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51420
51421         * users.txt: Update URL to article and add author/date
51422         information.
51423
51424 2008-06-17  Bruno Haible  <bruno@clisp.org>
51425
51426         New macro gl_DISABLE_THREADS.
51427         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51428         if the user did not pass --enable-threads or --disable-threads option.
51429         (gl_DISABLE_THREADS): New macro.
51430         Reported by Eric Blake <ebb9@byu.net>.
51431
51432 2008-06-17  Bruno Haible  <bruno@clisp.org>
51433
51434         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51435         when the macro ignores it.
51436         Based on a patch by Eric Blake <ebb9@byu.net>.
51437
51438 2008-06-17  Bruno Haible  <bruno@clisp.org>
51439
51440         * modules/tls (License): Change to LGPLv2+.
51441         Reported by Eric Blake.
51442
51443 2008-06-17  Eric Blake  <ebb9@byu.net>
51444
51445         Simplify c-stack prerequisites.
51446         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51448         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51449         check.
51450         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51451         <sys/resource.h>.
51452
51453         Move c-stack test into testsuite.
51454         * modules/c-stack-tests: New file.
51455         * lib/c-stack.c [DEBUG]: Move test program...
51456         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51457         fail test if sigaltstack is lacking.
51458         * tests/test-c-stack.sh: New driver file.
51459
51460 2008-06-16  Eric Blake  <ebb9@byu.net>
51461
51462         Use raise module consistently.
51463         * modules/fatal-signal (Depends-on): Add raise.
51464         * modules/sigprocmask (Depends-on): Likewise.
51465         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51466         * lib/sigprocmask.c (sigprocmask): Likewise.
51467         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51468         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51469
51470         Fix compliance bug in sigpending.
51471         * lib/sigprocmask.c (sigpending): Return pending array via
51472         parameter, not return value.
51473
51474 2008-06-14  Eric Blake  <ebb9@byu.net>
51475
51476         Improve obstack-printf test code.
51477         * tests/test-obstack-printf.c (test_function): Fix comment, and
51478         simplify usage of obstack_* in macros.  Add a test for coverage.
51479         Reported by Bruno Haible.
51480
51481 2008-06-14  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51484         array size as a constant, not as a const variable.
51485         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51486         AC_USE_SYSTEM_EXTENSIONS.
51487         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51488         Test whether the obstack_printf function actually exists.
51489         * modules/obstack-printf (Depends-on): Add extensions.
51490         (Include): Remove obstack.h.
51491         * modules/obstack-printf-posix (Depends-on): Add extensions.
51492         (Include): Remove obstack.h.
51493
51494 2008-06-13  Eric Blake  <ebb9@byu.net>
51495
51496         Add obstack-printf and obstack-printf-posix modules.
51497         * modules/obstack-printf: New file.
51498         * modules/obstack-printf-posix: Likewise.
51499         * MODULES.html.sh (Misc): Mention them.
51500         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51501         Likewise.
51502         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51503         Likewise.
51504         * modules/stdio (Makefile.am): Accomodate new modules.
51505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51506         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51507         Declare.
51508         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51509         functions.
51510         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51511         (gl_REPLACE_OBSTACK_PRINTF): New macros
51512         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51513         * tests/test-obstack-printf.c: New file.
51514         * modules/obstack-printf-tests: Likewise.
51515         * modules/obstack-printf-posix-tests: Likewise.
51516
51517 2008-06-11  Bruno Haible  <bruno@clisp.org>
51518
51519         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51520         * lib/open.c: Include errno.h.
51521         (open): Fail when attempting to write to a file that has a trailing
51522         slash.
51523         * tests/test-open.c (main): Test against trailing slash bug.
51524         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51525
51526 2008-06-10  Bruno Haible  <bruno@clisp.org>
51527
51528         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51529         for $? to work inside the trap command, with various /bin/sh-s.
51530         * tests/test-vc-list-files-cvs.sh: Likewise.
51531
51532 2008-06-10  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/acl-internal.h: Don't include gettext.h here.
51535         * lib/set-mode-acl.c: Include gettext.h here.
51536         * lib/copy-acl.c: Likewise.
51537
51538 2008-06-10  Bruno Haible  <bruno@clisp.org>
51539
51540         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51541         * lib/wait-process.c (wait_subprocess): Likewise.
51542         * lib/execute.h (execute): Add termsigp argument.
51543         * lib/execute.c (execute): Likewise.
51544         * lib/csharpcomp.c (compile_csharp_using_pnet,
51545         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51546         * lib/csharpexec.c (execute_csharp_using_pnet,
51547         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51548         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51549         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51550         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51551         is_jikes_present): Update.
51552         * lib/javaexec.c (execute_java_class): Update.
51553         * lib/javaversion.c (execute_and_read_line): Update.
51554         * NEWS: Document the changes.
51555         Reported by Eric Blake.
51556
51557 2008-06-10  Eric Blake  <ebb9@byu.net>
51558
51559         Add missing include.
51560         * tests/test-strstr.c (includes): Add <signal.h>.
51561         * tests/test-strcasestr.c (includes): Likewise.
51562         * tests/test-memmem.c (includes): Likewise.
51563
51564 2008-06-10  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/wait-process.c (wait_subprocess): Add an assertion.
51567
51568 2008-06-10  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51571
51572 2008-06-10  Bruno Haible  <bruno@clisp.org>
51573
51574         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51575         using alarm().
51576         * tests/test-strcasestr.c (main): Likewise.
51577         * tests/test-strstr.c (main): Likewise.
51578
51579 2008-06-09  Bruno Haible  <bruno@clisp.org>
51580
51581         Work around the Solaris 10 ACE ACLs ABI change.
51582         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51583         declare if ACL_NO_TRIVIAL is present.
51584         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51585         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51586         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51587         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51588         define if ACL_NO_TRIVIAL is present.
51589         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51590         and use the current ABI.
51591         (file_has_acl): Use same #if condition as elsewhere.
51592         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51593         in use, and use the current ABI.
51594         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51595         Reported by Jim Meyering.
51596
51597 2008-06-09  Eric Blake  <ebb9@byu.net>
51598
51599         Work around environments that (stupidly) ignore SIGALRM.
51600         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51601         before using alarm().
51602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51603         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51604         Reported by Ian Beckwith <ianb@erislabs.net>.
51605
51606         Produce autobuild blurb earlier in log.
51607         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51608
51609 2008-06-09  Jim Meyering  <meyering@redhat.com>
51610         and OndÅ™ej Vašík  <ovasik@redhat.com>
51611
51612         utimens.c: correct kernel bug work-around
51613         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51614         failure, not success, and the kernel bug we're trying to work
51615         around affects not just the utimensat call, but also the fallback
51616         futimens call.
51617         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51618         not success.
51619         [HAVE_FUTIMENS]: Use the same work-around, here.
51620
51621 2008-06-09  Jim Meyering  <meyering@redhat.com>
51622
51623         add more guards around definition of ACE_-related code
51624         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51625         ALLOW and ACE_OWNER are also defined.
51626
51627 2008-06-08  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/acl-internal.h: Add me as co-author.
51630         * lib/file-has-acl.c: Likewise.
51631         * lib/set-mode-acl.c: Likewise.
51632         * lib/copy-acl.c: Likewise.
51633
51634 2008-06-08  Bruno Haible  <bruno@clisp.org>
51635
51636         Add support for AIX ACLs.
51637         * lib/acl-internal.h (acl_nontrivial): New declaration.
51638         * lib/file-has-acl.c (acl_nontrivial): New function.
51639         (file_has_acl): Add implementation using AIX 4 ACL API.
51640         * lib/set-mode-acl.c (qset_acl): Likewise.
51641         * lib/copy-acl.c (qcopy_acl): Likewise.
51642
51643 2008-06-08  Bruno Haible  <bruno@clisp.org>
51644
51645         Add support for HP-UX ACLs.
51646         * lib/acl-internal.h (acl_nontrivial): New declaration.
51647         * lib/file-has-acl.c (acl_nontrivial): New function.
51648         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51649         * lib/set-mode-acl.c (qset_acl): Likewise.
51650         * lib/copy-acl.c (qcopy_acl): Likewise.
51651
51652 2008-06-08  Bruno Haible  <bruno@clisp.org>
51653
51654         Add support for Cygwin ACLs.
51655         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51656         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51657         the chmod_or_fchmod call.
51658         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51659
51660 2008-06-08  Bruno Haible  <bruno@clisp.org>
51661
51662         Fix bug with setuid modes in Solaris 10+ code.
51663         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51664         succeeded, when the mode contains some special bits.
51665
51666 2008-06-08  Bruno Haible  <bruno@clisp.org>
51667
51668         Add support for Solaris 7..10 ACLs.
51669         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51670         declarations.
51671         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51672         functions.
51673         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51674         * lib/set-mode-acl.c (qset_acl): Likewise.
51675         * lib/copy-acl.c (qcopy_acl): Likewise.
51676
51677 2008-06-08  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51680         declaration.
51681         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51682         (acl_access_nontrivial): Remove MacOS X case.
51683         (file_has_acl): Use acl_extended_nontrivial.
51684         * lib/copy-acl.c (qcopy_acl): Likewise.
51685
51686 2008-06-08  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51689
51690 2008-06-08  Jim Meyering  <meyering@redhat.com>
51691
51692         * modules/acl (Maintainer): Add Bruno Haible.
51693
51694 2008-06-07  Bruno Haible  <bruno@clisp.org>
51695
51696         Improve support for Tru64 ACLs.
51697         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51698         ACL on OSF/1.
51699
51700 2008-06-07  Bruno Haible  <bruno@clisp.org>
51701
51702         Add support for MacOS X ACLs.
51703         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51704         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51705         * lib/set-mode-acl.c (qset_acl): Likewise.
51706         * lib/copy-acl.c (qcopy_acl): Likewise.
51707
51708 2008-06-07  Bruno Haible  <bruno@clisp.org>
51709
51710         Fix memory leak introduced on 2008-05-22.
51711         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51712         use.
51713
51714 2008-06-07  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51717         to construct an empty ACL.
51718
51719 2008-06-07  Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51722         precisely.
51723         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51724
51725 2008-06-07  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51728         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51729
51730 2008-06-07  Bruno Haible  <bruno@clisp.org>
51731
51732         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51733         regardless of POSIX.
51734         * doc/posix-functions/_longjmp.texi: Likewise.
51735         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51736         SystemV platform in this case.
51737
51738 2008-06-06  Eric Blake  <ebb9@byu.net>
51739
51740         Document abort() bugs.
51741         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51742
51743         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51744         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51745         sigsetjmp.
51746         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51747         siglongjmp, but only as a macro.
51748         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51749         is obsolete.
51750         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51751
51752         Tweak documentation to cover cygwin argz bugs.
51753         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51754         argz bug fix; no code change needed since no cygwin releases
51755         occurred between the last fix and the bug being tested.
51756         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51757         module and recently fixed cygwin bugs.
51758         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51759         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51760         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51761         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51762         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51763         Likewise.
51764         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51765         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51766         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51767         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51768         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51769         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51770         Likewise.
51771
51772         Avoid gcc warning on cygwin.
51773         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51774         !ACL_NO_TRIVIAL]: Avoid unused variable.
51775
51776 2008-06-05  Eric Blake  <ebb9@byu.net>
51777
51778         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51779         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51780         git-version-gen fails to come up with a version.
51781         Reported by Simon Josefsson.
51782
51783 2008-06-05  Jim Meyering  <meyering@redhat.com>
51784             Paul Eggert  <eggert@cs.ucla.edu>
51785
51786         utimens.c: work around a probable Linux kernel bug
51787         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51788         appears to be a kernel bug that causes utimensat to return 280
51789         instead of 0, indicating success.
51790
51791 2008-06-04  Bruno Haible  <bruno@clisp.org>
51792
51793         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51794         2008-06-01 commit.
51795
51796 2008-06-04  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51799         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51800         (file_has_acl): Use it. Save errno afterwards.
51801         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51802
51803 2008-06-03  Bruno Haible  <bruno@clisp.org>
51804
51805         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51806         draft code. Simplify #ifs.
51807         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51808         Put Solaris code after POSIX-draft code. Fix comments regarding
51809         Solaris 10, HP-UX. Mention Cygwin.
51810         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51811
51812 2008-06-03  Eric Blake  <ebb9@byu.net>
51813
51814         Provide fallback for older kernels.
51815         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51816         Provide runtime fallback if kernel lacks support.
51817         Reported by Mike Frysinger.
51818
51819 2008-06-02  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51822         it exists.
51823
51824 2008-06-02  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51827         * lib/copy-acl.c (qcopy_acl): Update comment.
51828
51829 2008-06-02  Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51832         like ACL APIs.
51833
51834 2008-06-02  Bruno Haible  <bruno@clisp.org>
51835
51836         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51837         * tests/test-set-mode-acl.sh: Likewise.
51838         * tests/test-copy-acl.sh: Likewise.
51839         * tests/test-copy-file.sh: Likewise.
51840
51841 2008-06-02  Bruno Haible  <bruno@clisp.org>
51842
51843         * tests/test-file-has-acl.sh: Remove unused code.
51844
51845 2008-06-01  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51848         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51849         messages.
51850         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51851
51852 2008-06-01  Bruno Haible  <bruno@clisp.org>
51853
51854         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51855         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51856         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51857         APIs.
51858         * modules/acl-tests (configure.ac): Remove tests now contained in
51859         m4/acl.m4.
51860
51861 2008-06-02  Jim Meyering  <meyering@redhat.com>
51862
51863         announce-gen: use a better key-server host name
51864         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51865         it may be more consistently reliable.  Suggested by Werner Koch
51866         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51867
51868 2008-06-01  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51871         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51872
51873 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51874
51875         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51876
51877 2008-06-01  Bruno Haible  <bruno@clisp.org>
51878
51879         New ACL tests.
51880         * tests/test-file-has-acl.sh: New file.
51881         * tests/test-file-has-acl.c: New file.
51882         * tests/test-set-mode-acl.sh: New file.
51883         * tests/test-set-mode-acl.c: New file.
51884         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51885         * tests/test-copy-acl.c: New file.
51886         * modules/acl-tests: New file, based on modules/copy-file-tests.
51887         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51888         (Depends-on): Add acl-tests.
51889         (configure.ac): Remove checks.
51890         (Makefile.am): Don't create test-sameacls program here any more.
51891
51892 2008-06-01  Bruno Haible  <bruno@clisp.org>
51893
51894         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51895         * tests/test-sameacls.c: Include progname.h.
51896         (main): Invoke set_program_name. Portability fixes for MacOS X,
51897         Solaris, HP-UX.
51898
51899 2008-06-01  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51902         function.
51903         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51904
51905 2008-06-01  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/rpmatch (Depends-on): Add strdup.
51908
51909 2008-06-01  Bruno Haible  <bruno@clisp.org>
51910
51911         * lib/pipe.c: Include unistd-safer.h.
51912         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51913         * modules/pipe (Depends-on): Add unistd-safer.
51914
51915 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51916
51917         * modules/autobuild (configure.ac): Call AB_INIT.
51918
51919 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51920
51921         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51922         Suggested by Bruno Haible <bruno@clisp.org>.
51923
51924 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51925
51926         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51927         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51928         <bruno@clisp.org>.
51929
51930 2008-05-29  Eric Blake  <ebb9@byu.net>
51931
51932         Prefer new POSIX 200x interfaces over futimesat.
51933         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51934         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51935         when available.
51936         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51937
51938 2008-05-28  Bruno Haible  <bruno@clisp.org>
51939
51940         * modules/stpcpy (License): Change to LGPLv2+.
51941         Requested by David Lutterkort <dlutter@redhat.com>.
51942
51943 2008-05-27  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51946         current mingw.
51947         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51948
51949 2008-05-27  Bruno Haible  <bruno@clisp.org>
51950
51951         * modules/iconv_open (Link): New section, from module 'iconv'.
51952         * modules/striconv (Link): Likewise.
51953         * modules/striconveh (Link): Likewise.
51954         * modules/xstriconv (Link): Likewise.
51955         * modules/unicodeio (Link): Likewise.
51956         * modules/propername (Link): Likewise.
51957         Reported by Jim Meyering.
51958
51959 2008-05-26  Jim Meyering  <meyering@redhat.com>
51960
51961         sha256: do not artificially restrict buffer length to be < 2^32
51962         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51963         uint32_t to size_t.
51964         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51965         to match.
51966
51967         avoid unaligned access errors, e.g., on sparc
51968         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51969         direct access through a possibly-unaligned uint64* pointer.
51970         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51971         direct access through a possibly-unaligned uint32* pointer.
51972         Prompted by this patch from Tom "spot" Callaway:
51973         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51974
51975         sha512.c: fix typo in comment
51976         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51977
51978 2008-05-25  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51981         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51982         (Makefile.am): Update lib_SOURCES.
51983
51984 2008-05-25  Bruno Haible  <bruno@clisp.org>
51985
51986         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51987
51988 2008-05-25  Jim Meyering  <meyering@redhat.com>
51989
51990         useless-if-before-free: freed expr may have white-space differences
51991         * build-aux/useless-if-before-free: Recognize cases in which the
51992         freed expression differs from the tested one in embedded white
51993         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51994         $1 was used, so we can't make any regexp shy.  Improved tests now
51995         detect this.
51996
51997         useless-if-before-free: accept white space in the expression.
51998         * build-aux/useless-if-before-free: For now, any white space
51999         in the expression must be identical in the free argument.
52000
52001         useless-if-before-free: efficiency tweak
52002         * build-aux/useless-if-before-free: Make the expression-matching
52003         regexp "shy".
52004         Make the *outer* regexp shy, not the expr-matching one.
52005
52006         update code-in-comment to accept cast of free arg
52007         * build-aux/useless-if-before-free: Update regexp.
52008
52009 2008-05-25  Bruno Haible  <bruno@clisp.org>
52010
52011         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52012         * modules/copy-file-tests (Files, Makefile.am): Update.
52013         * tests/test-copy-file.c (func_test_copy): Update.
52014
52015 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52016
52017         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52018
52019 2008-05-23  Bruno Haible  <bruno@clisp.org>
52020
52021         Improve support for ACLs on OSF/1.
52022         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52023         Remove fallback for unknown flavors of ACLs.
52024
52025 2008-05-22  Bruno Haible  <bruno@clisp.org>
52026
52027         Add support for ACLs on OSF/1.
52028         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52029         replacements.
52030         (acl_free_text): New macro fallback.
52031         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52032         acl_free.
52033         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52034         acl_free_text function. Require AC_C_INLINE.
52035
52036 2008-05-22  Bruno Haible  <bruno@clisp.org>
52037
52038         Make copy_acl work on MacOS X 10.5.
52039         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52040         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52041         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52042         If MODE_INSIDE_ACL, don't assume that every system has the same text
52043         representation for ACLs as FreeBSD.
52044         * lib/copy-acl.c (copy_acl): Add support for platforms with
52045         !MODE_INSIDE_ACL.
52046         * lib/file-has-acl.c (file_has_acl): Likewise.
52047         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52048         FreeBSD, MacOS X, or IRIX, respectively.
52049
52050 2008-05-22  Bruno Haible  <bruno@clisp.org>
52051
52052         * lib/acl.h: Don't include <sys/acl.h>.
52053         (GETACLCNT): Move fallback to lib/acl-internal.h.
52054         * lib/acl-internal.h: Include <sys/acl.h> here.
52055         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52056
52057 2008-05-22  Bruno Haible  <bruno@clisp.org>
52058
52059         Split off copy_acl function to separate file.
52060         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52061         * lib/acl.c (copy_acl): Moved function to separate file.
52062         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52063         * modules/acl (Files): Add lib/copy-acl.c.
52064         (Makefiles.am): Augment lib_SOURCES.
52065
52066 2008-05-22  Bruno Haible  <bruno@clisp.org>
52067
52068         * modules/copy-file-tests: New file.
52069         * tests/test-copy-file.sh: New file.
52070         * tests/test-copy-file.c: New file.
52071         * tests/test-copy-file-sameacls.c: New file.
52072
52073 2008-05-22  Eric Blake  <ebb9@byu.net>
52074
52075         Avoid gcc warning.
52076         * tests/test-memcmp.c (main): Pass NULL indirectly.
52077
52078 2008-05-21  Bruno Haible  <bruno@clisp.org>
52079
52080         Add reference doc about ACLs.
52081         * doc/acl-resources.txt: New file.
52082         * doc/acl-cygwin.txt: New file.
52083
52084 2008-05-21  Bruno Haible  <bruno@clisp.org>
52085
52086         Avoid one more warning from gcc.
52087         * lib/vasnprintf.c (IF_LINT): Update comments.
52088         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52089
52090 2008-05-21  Jim Meyering  <meyering@redhat.com>
52091
52092         avoid a warning from gcc
52093         * lib/vasnprintf.c (IF_LINT): Define.
52094         (scale10_round_decimal_long_double):
52095         Use it to avoid a "may be used uninitialized" warning.
52096         (scale10_round_decimal_double): Likewise.
52097
52098 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52099
52100         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52101         declared.
52102
52103 2008-05-20  Bruno Haible  <bruno@clisp.org>
52104
52105         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52106         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52107
52108 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52109
52110         * modules/memcmp-tests: New file.
52111         * tests/test-memcmp.c: New file.
52112
52113 2008-05-19  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/propername (Notice, configure.ac): Put quoted "..." into
52116         --keyword option.
52117         * lib/propername.h: Update comments accordingly.
52118         Reported by Eric Blake.
52119
52120 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52121
52122         * modules/getpass-gnu (Depends-on): Add fseeko.
52123
52124 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52125
52126         * modules/base64-tests: New file.
52127
52128 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52129
52130         * lib/base64.c (base64_decode_ctx): If a decode context structure
52131         was passed in use it to ignore newlines.  If a context structure
52132         was _not_ passed in, continue to treat newlines as garbage (this
52133         is the historical behavior).  Formerly base64_decode.
52134         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52135         takes a decode context structure.
52136         * lib/base64.h (base64_decode): Macro for four-argument calls.
52137         (base64_decode_alloc): Likewise.
52138         * lib/base64.c (base64_decode_ctx): If a decode context structure
52139         was passed in use it to ignore newlines.  If a context structure
52140         was _not_ passed in, continue to treat newlines as garbage (this
52141         is the historical behavior).  Formerly base64_decode.
52142         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52143         takes a decode context structure.
52144         * lib/base64.h (base64_decode): Macro for four-argument calls.
52145         (base64_decode_alloc): Likewise.
52146
52147 2008-05-19  Jim Meyering  <meyering@redhat.com>
52148
52149         avoid a warning from gcc
52150         * lib/trim.c (IF_LINT): Define.
52151         (trim2): Use it to avoid a "may be used uninitialized" warning.
52152
52153         Fix doc typo.
52154         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52155
52156 2008-05-19  Bruno Haible  <bruno@clisp.org>
52157
52158         * doc/glibc-functions/getpass.texi: Document limits of other
52159         implementations.
52160
52161 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52162             Bruno Haible <bruno@clisp.org>
52163
52164         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52165
52166 2008-05-18  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/propername: New file, from GNU gettext.
52169         * lib/propername.h: New file, from GNU gettext.
52170         * lib/propername.c: New file, from GNU gettext.
52171         * MODULES.html.sh (Internationalization functions): Add propername.
52172
52173 2008-05-16  Jim Meyering  <meyering@redhat.com>
52174             Bruno Haible  <bruno@clisp.org>
52175
52176         Avoid some warnings from "gcc -Wshadow".
52177         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52178
52179 2008-05-15  Eric Blake  <ebb9@byu.net>
52180
52181         Extend previous patch to cygwin 1.7.0.
52182         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52183         fast implementation in cygwin >= 1.7.0.
52184         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52186
52187 2008-05-15  Bruno Haible  <bruno@clisp.org>
52188
52189         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52190         implementation in glibc >= 2.9.
52191         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52193
52194 2008-05-15  Bruno Haible  <bruno@clisp.org>
52195
52196         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52197         (Unicode string functions): Add unilbrk/*.
52198         Reported by Karl Berry.
52199
52200 2008-05-15  Eric Blake  <ebb9@byu.net>
52201
52202         Fix violation of <stdbool.h> replacement in regex.
52203         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52204         * lib/regexec.c (re_search_internal): Likewise.
52205         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52206
52207 2008-05-15  Jim Meyering  <meyering@redhat.com>
52208
52209         avoid distracting test output when git or cvs is not found
52210         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52211         * tests/test-vc-list-files-git.sh: Likewise.
52212
52213 2008-05-15  Eric Blake  <ebb9@byu.net>
52214
52215         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52216         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52217         glibc version.
52218         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52219         * doc/posix-functions/strstr.texi (strstr): Likewise.
52220         * lib/str-two-way.h (MAX): Sychronize with glibc.
52221
52222 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52223
52224         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52225         opr.ctx_type.
52226         (calc_first): Initialize constraint field.
52227         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52228         Fix grammar.
52229         (duplicate_node): Merge constraint field for all node types.
52230         (calc_eclosure_iter): Look at constraint field for all node types.
52231         * lib/regex_internal.c (create_cd_newstate): Don't look at
52232         opr.ctx_type.
52233
52234 2008-05-14  Bruno Haible  <bruno@clisp.org>
52235
52236         Help GCC to do better code generation.
52237         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52238         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52239         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52240         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52241         Declare with attribute 'malloc' if supported.
52242
52243 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52244
52245         use "echo STR|wc -c" rather than unportable "expr length STR"
52246         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52247         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52248
52249 2008-05-14  Jim Meyering  <meyering@redhat.com>
52250
52251         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52252         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52253         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52254         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52255         via Collin Lasse.
52256
52257 2008-05-14  Eric Blake  <ebb9@byu.net>
52258
52259         Avoid quadratic growth in gl_LIBSOURCES.
52260         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52261         Suggested by Bruno Haible.
52262
52263         Test xmemdup0.
52264         * modules/xmemdup0-tests: New file.
52265         * tests/test-xmemdup0.c: Likewise.
52266
52267 2008-05-13  Eric Blake  <ebb9@byu.net>
52268
52269         Split xmemdup0 into its own module.
52270         * modules/xmemdup0: New file.
52271         * lib/xmemdup0.h: Likewise.
52272         * lib/xmemdup0.c: Likewise.
52273         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52274         * lib/xalloc.h (xmemdup0): Remove.
52275         * lib/xmalloc.c (xmemdup0): Likewise.
52276
52277 2008-05-13  Eric Blake  <ebb9@byu.net>
52278             Bruno Haible  <bruno@clisp.org>
52279
52280         Reduce number of forks required during autoconf.
52281         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52282         and gl_LIBSOURCES_DIR.
52283         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52284         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52285         m4_syscmd per file.
52286         <m4_foreach_w>: Move...
52287         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52288
52289 2008-05-13  Eric Blake  <ebb9@byu.net>
52290
52291         * gnulib-tool: Fix various comment typos.
52292
52293 2008-05-12  Bruno Haible  <bruno@clisp.org>
52294
52295         Tailor the linebreaking algorithm.
52296         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52297
52298 2008-05-12  Bruno Haible  <bruno@clisp.org>
52299
52300         Update to Unicode 5.0.0.
52301         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52302         LBP_JV, LBP_JT. Redistribute values.
52303         (unilbrk_table): Change size.
52304         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52305         Unicode TR#14 rev. 22.
52306         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52307         LBP_JV, LBP_JT. Redistribute values.
52308         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52309         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52310         Update.
52311         * lib/unilbrk/lbrkprop1.h: Regenerated.
52312         * lib/unilbrk/lbrkprop2.h: Regenerated.
52313         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52314         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52315         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52316         Likewise.
52317         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52318         Likewise.
52319         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52320         result.
52321         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52322         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52323         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52324         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52325         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52326         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52327
52328 2008-05-11  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52331
52332 2008-05-11  Bruno Haible  <bruno@clisp.org>
52333
52334         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52335         * modules/unilbrk/gen-lbrk: New file.
52336
52337 2008-05-11  Bruno Haible  <bruno@clisp.org>
52338
52339         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52340         * m4/sha512.m4 (gl_SHA512): Likewise.
52341
52342 2008-05-11  Jim Meyering  <meyering@redhat.com>
52343
52344         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52345         * modules/crypto/sha256: New file.
52346         * modules/crypto/sha512: Likewise.
52347         * lib/sha256.c: Likewise.
52348         * lib/sha256.h: Likewise.
52349         * lib/sha512.c: Likewise.
52350         * lib/sha512.h: Likewise.
52351         * lib/u64.h: Likewise.
52352         * m4/sha256.m4: Likewise.
52353         * m4/sha512.m4: Likewise.
52354         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52355
52356 2008-05-10  Bruno Haible  <bruno@clisp.org>
52357
52358         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52359         (Input/Output <stdio.h>): Add xprintf.
52360         (Signal handling <signal.h>): Add strsignal.
52361         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52362         (Core language properties): Add func.
52363         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52364         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52365         strings.
52366         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52367         (Input/output): New section.
52368         (File system functions): Add openat-die, stat-macros.
52369         (Networking functions): Add sockets.
52370         (Unicode string functions): Add unictype/*.
52371         (Support for building libraries and executables): Add gperf.
52372         (Support for building documentation): Add agpl-3.0.
52373         (Misc): Add nocrash.
52374
52375 2008-05-10  Bruno Haible  <bruno@clisp.org>
52376
52377         * modules/unictype/gen-ctype: New file.
52378
52379 2008-05-10  Jim Meyering  <meyering@redhat.com>
52380
52381         Make chdir-safer.c more efficient on a system with no symlinks.
52382         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52383         also if ELOOP is zero.  Suggested by Bruno Haible.
52384
52385         Make chdir-safer.c slightly safer.
52386         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52387         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52388
52389         Avoid compile failure on systems without ELOOP (like mingw).
52390         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52391         Reported by Bruno Haible.
52392
52393 2008-05-10  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52396         (is_utf8_encoding): Use a case-insensitive comparison.
52397         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52398         streq.
52399
52400 2008-05-10  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52403         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52404         * lib/unilbrk/ulc-common.h (iconv_string_length,
52405         iconv_string_keeping_offsets): Remove declarations.
52406         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52407         Don't include <iconv.h>, streq.h, xsize.h.
52408         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52409         conversion.
52410         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52411         <iconv.h>, streq.h, xsize.h.
52412         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52413         conversion.
52414         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52415         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52416         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52417         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52418
52419 2008-05-10  Bruno Haible  <bruno@clisp.org>
52420
52421         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52422         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52423
52424         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52425         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52426
52427         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52428         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52429
52430         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52431         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52432
52433         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52434         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52435
52436         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52437         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52438
52439         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52440         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52441
52442         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52443         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52444
52445 2008-05-10  Bruno Haible  <bruno@clisp.org>
52446
52447         Split up 'linebreak' module.
52448         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52449         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52450         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52451         modifications.
52452         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52453         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52454         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52455         lib/linebreak.c.
52456         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52457         lib/linebreak.c.
52458         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52459         lib/linebreak.c.
52460         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52461         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52462         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52463         lib/linebreak.c.
52464         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52465         lib/linebreak.c.
52466         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52467         lib/linebreak.c.
52468         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52469         lib/linebreak.c.
52470         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52471         lib/linebreak.c.
52472         * modules/unilbrk/base: New file.
52473         * modules/unilbrk/tables: New file.
52474         * modules/unilbrk/u8-possible-linebreaks: New file.
52475         * modules/unilbrk/u16-possible-linebreaks: New file.
52476         * modules/unilbrk/u32-possible-linebreaks: New file.
52477         * modules/unilbrk/ulc-common: New file.
52478         * modules/unilbrk/ulc-possible-linebreaks: New file.
52479         * modules/unilbrk/u8-width-linebreaks: New file.
52480         * modules/unilbrk/u16-width-linebreaks: New file.
52481         * modules/unilbrk/u32-width-linebreaks: New file.
52482         * modules/unilbrk/ulc-width-linebreaks: New file.
52483         * lib/linebreak.h: Remove file.
52484         * lib/linebreak.c: Remove file.
52485         * m4/linebreak.m4: Remove file.
52486         * modules/linebreak: Remove file.
52487         * NEWS: Mention the changes.
52488
52489 2008-05-09  Eric Blake  <ebb9@byu.net>
52490
52491         Add xmemdup0.
52492         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52493         implementation.
52494         * lib/xmalloc.c (xmemdup0): New C implementation.
52495
52496 2008-05-08  Bruno Haible  <bruno@clisp.org>
52497
52498         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52499
52500 2008-05-07  Eric Blake  <ebb9@byu.net>
52501
52502         Support cross-compilation of <wctype.h>.
52503         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52504         AC_CACHE_CHECK.
52505
52506 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52507
52508         * build-aux/vc-list-files: Add support for bzr.
52509
52510 2008-05-03  Jim Meyering  <meyering@redhat.com>
52511
52512         avoid failed assertion with tight malloc
52513         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52514
52515 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52516
52517         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52518         are needed from arpa/inet.h.
52519         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52520         Reported by Bruno Haible.
52521
52522 2008-05-02  Jim Meyering  <meyering@redhat.com>
52523
52524         avoid compilation error on FreeBSD 6
52525         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52526
52527 2008-05-01  Jim Meyering  <meyering@redhat.com>
52528
52529         useless-if-before-free: correct --help's exit status description
52530         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52531         for one or more matches, etc.  Reported by Bruno Haible.
52532
52533         vc-list-files: make the stand-alone gnulib test work
52534         * modules/vc-list-files-tests (configure.ac):
52535         Define and AC_SUBST abs_aux_dir.
52536         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52537         $(abs_top_srcdir) to each script and having each of them
52538         duplicate the work of setting PATH, set PATH here, using
52539         the new variable, abs_aux_dir instead.
52540         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52541         * tests/test-vc-list-files-git.sh: Likewise.
52542         Reported by Bruno Haible.
52543
52544 2008-05-01  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52547         reallocation. Rename 'done' to 'found_delimiter'.
52548
52549 2008-05-01  Jim Meyering  <meyering@redhat.com>
52550
52551         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52552         * build-aux/vc-list-files: Use `...`, not $(...).
52553
52554 2008-04-30  Jim Meyering  <meyering@redhat.com>
52555
52556         add tests for vc-list-files
52557         * modules/vc-list-files-tests: New module.
52558         * tests/test-vc-list-files-cvs.sh: New file.
52559         * tests/test-vc-list-files-git.sh: New file.
52560
52561         avoid a warning from gcc
52562         * lib/getndelim2.c (IF_LINT): Define.
52563         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52564
52565         vc-list-files: work properly with build-aux/cvsu, too
52566         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52567         to all cvs-based clauses.
52568
52569         vc-list-files: work properly in the CVS+awk case, too
52570         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52571
52572         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52573         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52574         take more than one file argument, so .  Add quotes, just in case $dir
52575         ever contains a shell meta-character.  Prompted by Soren Hansen in
52576         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52577
52578 2008-04-29  Eric Blake  <ebb9@byu.net>
52579
52580         Optimize getndelim2 to use block operations when possible.
52581         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52582         freadseek, and memchr2.
52583         * lib/getndelim2.c (getndelim2): Use them for block reads.
52584
52585 2008-04-29  Bruno Haible  <bruno@clisp.org>
52586
52587         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52588         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52589         * modules/inet_ntop (Depends-on): Add extensions.
52590         * modules/inet_pton (Depends-on): Likewise.
52591         Reported by Simon Josefsson.
52592
52593 2008-04-29  Jim Meyering  <meyering@redhat.com>
52594
52595         When the is more than one match in a block, match all of them.
52596         * build-aux/useless-if-before-free: Iterate through each block
52597         until there are no more matches.
52598
52599         Fix broken useless-if-before-free script.
52600         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52601         the expression to match cast of argument to free-like function.
52602
52603 2008-04-29  Eric Blake  <ebb9@byu.net>
52604
52605         Use new header.
52606         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52607
52608 2008-04-29  Jim Meyering  <meyering@redhat.com>
52609
52610         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52611         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52612         by gnulib to exist and to declare e.g., inet_ntop.
52613         Don't include "inet_ntop.h", now removed.
52614
52615         * m4/arpa_inet_h.m4: Remove trailing blanks.
52616
52617 2008-04-29  Eric Blake  <ebb9@byu.net>
52618
52619         Silence valgrind on safe reads beyond potential array bounds.
52620         * lib/rawmemchr.valgrind: New file.
52621         * lib/strchrnul.valgrind: Likewise.
52622         * modules/rawmemchr (Files): Distribute new file.
52623         * modules/strchrnul (Files): Likewise.
52624         Suggested by Bruno Haible.
52625
52626 2008-04-29  Bruno Haible  <bruno@clisp.org>
52627
52628         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52629         (inet_ntop, inet_pton): Change portability warning's wording.
52630         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52631         Invoke gl_CHECK_NEXT_HEADERS.
52632         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52633         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52634         set ARPA_INET_H.
52635         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52636         * modules/arpa_inet (Description): No longer only for systems that
52637         lack it.
52638         (Depends-on): Add include_next.
52639         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52640         HAVE_ARPA_INET_H.
52641
52642 2008-04-29  Jim Meyering  <meyering@redhat.com>
52643
52644         * modules/mkdir (License): Re-license as LGPLv2+.
52645
52646 2008-04-29  Bruno Haible  <bruno@clisp.org>
52647
52648         * modules/rawmemchr (Maintainer): Set to Eric.
52649         * modules/strchrnul (Maintainer): Likewise.
52650
52651 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52652
52653         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52654         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52655
52656         * modules/arpa_inet (arpa/inet.h): Use them.
52657
52658 2008-04-28  Eric Blake  <ebb9@byu.net>
52659
52660         Test getndelim2.
52661         * modules/getndelim2-tests: New file.
52662         * tests/test-getndelim2.c: Likewise.
52663         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52664         stream.
52665         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52666
52667         * MODULES.html.sh: Document new module.
52668
52669 2008-04-20  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/c-stack.c (die): Use raise.
52672         * modules/c-stack (Depends-on): Add raise.
52673
52674 2008-04-28  Bruno Haible  <bruno@clisp.org>
52675
52676         Expect rpmatch to be declared.
52677         * lib/yesno.c (rpmatch): Remove declaration.
52678
52679         Declare rpmatch.
52680         * lib/stdlib.in.h (rpmatch): New declaration.
52681         * lib/rpmatch.c: Include <stdlib.h> first.
52682         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52683         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52685         HAVE_RPMATCH.
52686         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52688         (Include): Set to <stdlib.h>.
52689         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52690         HAVE_RPMATCH.
52691         * NEWS: Document the change.
52692
52693 2008-04-28  Bruno Haible  <bruno@clisp.org>
52694
52695         Change rpmatch to use nl_langinfo when appropriate.
52696         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52697         (N_): New macro.
52698         (localized_pattern): New function/macro.
52699         (try): Remove match, nomatch arguments. Copy the pattern into safe
52700         memory before caching it.
52701         (rpmatch): Use localized_pattern. Add translator comments.
52702         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52703         Suggested by Eric Blake.
52704         * modules/rpmatch (Depends-on): Add stdbool.
52705
52706 2008-04-28  Eric Blake  <ebb9@byu.net>
52707
52708         Add rawmemchr module, matching glibc.
52709         * modules/string (Makefile.am): New indicator.
52710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52711         * lib/string.in.h (rawmemchr): Declare when appropriate.
52712         * modules/rawmemchr: New file.
52713         * m4/rawmemchr.m4: Likewise.
52714         * lib/rawmemchr.c: Likewise.
52715         * modules/rawmemchr-tests: Likewise.
52716         * tests/test-rawmemchr.c: Likewise.
52717         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52718         module.
52719         * modules/strchrnul (Depends-on): Add rawmemchr.
52720         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52721
52722         Whitespace cleanup.
52723         * tests/test-strchrnul.c: Reindent.
52724         * lib/strchrnul.c: Likewise.
52725
52726         Optimize and test strchrnul.
52727         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52728         * modules/strchrnul-tests: New file.
52729         * tests/test-strchrnul.c: Likewise.
52730
52731         Remove intprops dependency.
52732         * modules/memchr (Depends-on): Remove intprops.
52733         * modules/memrchr (Depends-on): Likewise.
52734         * modules/memchr2 (Depends-on): Likewise.
52735         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52736         * lib/memrchr.c (__memrchr): Likewise.
52737         * lib/memrchr2.c (memchr2): Likewise.
52738         Reported by Simon Josefsson.
52739
52740 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52741
52742         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52743         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52744
52745 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52746
52747         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52748
52749         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52750
52751         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52752
52753         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52754         declarations.
52755         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52756
52757         * m4/inet_pton.m4: Don't check for header files.
52758
52759         * m4/inet_ntop.m4: Don't check for header files.
52760
52761 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52762
52763         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52764         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52765         trigger for cygwin).
52766         Reported by Bruno Haible  <bruno@clisp.org>.
52767
52768 2008-04-28  Bruno Haible  <bruno@clisp.org>
52769
52770         * doc/posix-functions/strdup.texi: Mention mingw problem.
52771
52772 2008-04-27  Bruno Haible  <bruno@clisp.org>
52773
52774         * modules/stat-time-tests (Depends-on): Add sleep.
52775         * tests/test-stat-time.c (force_unlink): New function.
52776         (cleanup): Use it.
52777         (test_mtime): Remove the ctime related tests.
52778         (test_ctime): New function, containing the ctime related tests.
52779         (main): Call test_ctime, except on native Windows platforms.
52780
52781 2008-04-27  Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/rpmatch.c (rpmatch): Add some comments.
52784         Reported by James Youngman <jay@gnu.org>.
52785
52786 2008-04-27  Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52789         quiet NaNs.
52790
52791 2008-04-27  Bruno Haible  <bruno@clisp.org>
52792
52793         Make test-yesno.sh work on mingw.
52794         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52795         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52796         (main): Set stdin to binary mode.
52797         * modules/yesno-tests (Depends-on): Add binary-io.
52798
52799 2008-04-27  Bruno Haible  <bruno@clisp.org>
52800
52801         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52802         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52803         argument that lie outside the IEEE 854 domain.
52804         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52805         (gl_ISFINITE): Use it.
52806         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52807
52808 2008-04-27  Bruno Haible  <bruno@clisp.org>
52809
52810         Allow local renaming in config.h.
52811         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52812
52813 2008-04-27  Bruno Haible  <bruno@clisp.org>
52814
52815         * lib/memchr.c (__memchr): Change type of 'i'.
52816         * lib/memchr2.c (memchr2): Likewise.
52817
52818 2008-04-26  Eric Blake  <ebb9@byu.net>
52819         and Bruno Haible  <bruno@clisp.org>
52820
52821         Optimize and test memrchr.
52822         * modules/memrchr (Depends-on): Add intprops.
52823         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52824         * modules/memrchr-tests: New file.
52825         * tests/test-memrchr.c: New file.
52826
52827 2008-04-26  Bruno Haible  <bruno@clisp.org>
52828
52829         Add tentative support for DragonFly BSD.
52830         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52831         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52832         fp.
52833         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52834         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52835         * lib/fpurge.c (fpurge): Likewise.
52836         * lib/freadable.c (freaadable): Likewise.
52837         * lib/freadahead.c (freadahead): Likewise.
52838         * lib/freading.c (freading): Likewise.
52839         * lib/freadptr.c (freadptr): Likewise.
52840         * lib/freadseek.c (freadptrinc): Likewise.
52841         * lib/fseeko.c (fseeko): Likewise.
52842         * lib/fseterr.c (fseterr): Likewise.
52843         * lib/fwritable.c (fwritable): Likewise.
52844         * lib/fwriting.c (fwriting): Likewise.
52845
52846 2008-04-26  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/stdio-impl.h: New file.
52849         * lib/fbufmode.c: Include stdio-impl.h.
52850         (fbufmode): Use fp_, remove redundant #defines.
52851         * lib/fflush.c: Include stdio-impl.h.
52852         (clear_ungetc_buffer): Remove redundant #defines.
52853         * lib/fpurge.c: Include stdio-impl.h.
52854         (fpurge): Remove redundant #defines.
52855         * lib/freadable.c: Include stdio-impl.h.
52856         (freadable): Remove redundant #defines.
52857         * lib/freadahead.c: Include stdio-impl.h.
52858         (freadahead): Remove redundant #defines.
52859         * lib/freading.c: Include stdio-impl.h.
52860         (freading): Remove redundant #defines.
52861         * lib/freadptr.c: Include stdio-impl.h.
52862         (freadptr): Remove redundant #defines.
52863         * lib/freadseek.c: Include stdio-impl.h.
52864         (freadptrinc): Remove redundant #defines.
52865         * lib/fseeko.c: Include stdio-impl.h.
52866         (rpl_fseeko): Remove redundant #defines.
52867         * lib/fseterr.c: Include stdio-impl.h.
52868         (fseterr): Remove redundant #defines.
52869         * lib/fwritable.c: Include stdio-impl.h.
52870         (fwritable: Remove redundant #defines.
52871         * lib/fwriting.c: Include stdio-impl.h.
52872         (fwriting): Remove redundant #defines.
52873         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52874         * modules/fflush (Files): Likewise.
52875         * modules/fpurge (Files): Likewise.
52876         * modules/freadable (Files): Likewise.
52877         * modules/freadahead (Files): Likewise.
52878         * modules/freading (Files): Likewise.
52879         * modules/freadptr (Files): Likewise.
52880         * modules/freadseek (Files): Likewise.
52881         * modules/fseeko (Files): Likewise.
52882         * modules/fseterr (Files): Likewise.
52883         * modules/fwritable (Files): Likewise.
52884         * modules/fwriting (Files): Likewise.
52885
52886 2008-04-26  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52889         restore_seek_optimization, update_fpos_cache): New functions, extracted
52890         from rpl_fflush.
52891         (rpl_fflush): Use them.
52892         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52893         (gl_REPLACE_FFLUSH): Use it.
52894
52895 2008-04-26  Bruno Haible  <bruno@clisp.org>
52896
52897         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52898         on Solaris.
52899         * tests/test-xstrtoimax.sh: Likewise.
52900         * tests/test-xstrtoumax.sh: Likewise.
52901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52902
52903 2008-04-26  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/memchr-tests: New file.
52906         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52907
52908 2008-04-26  Eric Blake  <ebb9@byu.net>
52909             Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/memchr.c: Include intprops.h.
52912         (__memchr): Optimize parallel detection of matching bytes. Rename local
52913         variables. Add explanatory comments.
52914
52915 2008-04-26  Bruno Haible  <bruno@clisp.org>
52916
52917         Fix module 'memchr', broken since 2000-10-28.
52918         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52919
52920 2008-04-26  Bruno Haible  <bruno@clisp.org>
52921
52922         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52923         comments.
52924
52925 2008-04-25  Eric Blake  <ebb9@byu.net>
52926
52927         Use native fstatat on cygwin 1.7.0.
52928         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52929         first.
52930
52931 2008-04-23  Eric Blake  <ebb9@byu.net>
52932
52933         Improve memchr2 performance.
52934         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52935         NUL bytes.
52936         * modules/memchr2 (Depends-on): Use intprops.h.
52937
52938 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52939
52940         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52941         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52942         <blp@cs.stanford.edu>.
52943
52944 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52945
52946         * lib/arpa_inet.in.h: New file.
52947
52948         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52949         (Makefile.am): Sed in substitute header file.
52950
52951         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52952         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52953
52954         * modules/inet_ntop (configure.ac): Use
52955         gl_ARPA_INET_MODULE_INDICATOR.
52956
52957         * modules/inet_pton (configure.ac): Use
52958         gl_ARPA_INET_MODULE_INDICATOR.
52959
52960 2008-04-22  Jim Meyering  <meyering@redhat.com>
52961
52962         * modules/verify (License): Re-license as LGPLv2+.
52963
52964 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52965
52966         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52967         parameter to void* as per POSIX standard (MinGW uses char*).
52968
52969 2008-04-21  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52972         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52973         Define to replacements if REPLACE_ISWCNTRL is 1.
52974         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52975         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52976         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52977         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52978         what it fixes.
52979         * doc/posix-functions/iswalpha.texi: Likewise.
52980         * doc/posix-functions/iswblank.texi: Likewise.
52981         * doc/posix-functions/iswcntrl.texi: Likewise.
52982         * doc/posix-functions/iswdigit.texi: Likewise.
52983         * doc/posix-functions/iswgraph.texi: Likewise.
52984         * doc/posix-functions/iswlower.texi: Likewise.
52985         * doc/posix-functions/iswprint.texi: Likewise.
52986         * doc/posix-functions/iswpunct.texi: Likewise.
52987         * doc/posix-functions/iswspace.texi: Likewise.
52988         * doc/posix-functions/iswupper.texi: Likewise.
52989         * doc/posix-functions/iswxdigit.texi: Likewise.
52990         Reported by Alain Guibert.
52991
52992 2008-04-21  Bruno Haible  <bruno@clisp.org>
52993
52994         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52995         Patch by Alain Guibert.
52996
52997 2008-04-21  Bruno Haible  <bruno@clisp.org>
52998
52999         Fix test failures on mingw.
53000         * tests/test-xstrtol.c (print_no_progname): New function.
53001         (main): Install it in error_print_progname hook.
53002         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
53003         * tests/test-xstrtoimax.sh: Likewise.
53004         * tests/test-xstrtoumax.sh: Likewise.
53005
53006 2008-04-21  Bruno Haible  <bruno@clisp.org>
53007
53008         Fix test failure on mingw.
53009         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
53010
53011 2008-04-21  Bruno Haible  <bruno@clisp.org>
53012
53013         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53014         Actually assign a value.
53015
53016 2008-04-20  Bruno Haible  <bruno@clisp.org>
53017
53018         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53019         take 2.
53020         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53021         'canonicalize-lgpl' module is also used.
53022         * lib/canonicalize-lgpl.c: Undo last change.
53023         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53024
53025 2008-04-20  Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53028         config.h. Provide _mkdir based fallback for mingw.
53029         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53030         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53031         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53032         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53033         rather than defining mkdir in config.h.
53034         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53035         (gl_SYS_STAT_H_DEFAULTS): New macro.
53036         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53037         HAVE_IO_H any more.
53038         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53039         HAVE_DECL_MKDIR and HAVE_IO_H.
53040
53041 2008-04-20  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/isapipe.c: Port to native Windows platforms.
53044
53045 2008-04-20  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53048
53049 2008-04-21  Eric Blake  <ebb9@byu.net>
53050
53051         Work around preprocessors that don't handle UINTMAX_MAX.
53052         * lib/memchr2.c (memchr2): Avoid embedded #if.
53053         Reported by Alain Guibert, fix suggested by Bruno Haible.
53054
53055 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53056
53057         * doc/posix-functions/strftime.texi (strftime): Explain better
53058         Windows incompatibility.  Suggested by Micah Cowan
53059         <micah@cowan.name>.
53060
53061 2008-04-20  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53064         unistr/u8-mblen.
53065
53066 2008-04-20  Bruno Haible  <bruno@clisp.org>
53067
53068         Fix test failure on platforms with non-GNU iconv.
53069         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53070         (U_TO_U8): Use it, rather than u16_to_u8.
53071         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53072         units at the end of the input string.
53073         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53074
53075 2008-04-20  Bruno Haible  <bruno@clisp.org>
53076
53077         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53078         when the resulting length is 0.
53079         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53080
53081 2008-04-20  Bruno Haible  <bruno@clisp.org>
53082
53083         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53084         works.
53085         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53086
53087 2008-04-20  Bruno Haible  <bruno@clisp.org>
53088
53089         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53090         * modules/tsearch-tests (configure.ac): Test for initstate function.
53091
53092 2008-04-20  Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53095         for nlink_t if missing.
53096         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53097
53098 2008-04-19  Bruno Haible  <bruno@clisp.org>
53099
53100         Work around snprintf bug on Linux libc5.
53101         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53103         gl_SNPRINTF_SIZE1.
53104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53105         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53106         that test failed.
53107         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53108         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53109         * modules/snprintf (Files): Add m4/printf.m4.
53110         * modules/vsnprintf (Files): Likewise.
53111         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53112         * doc/posix-functions/vsnprintf.texi: Likewise.
53113
53114 2008-04-19  Bruno Haible  <bruno@clisp.org>
53115
53116         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53117         from 0.0058 to less than 10^-7.
53118
53119 2008-04-19  Bruno Haible  <bruno@clisp.org>
53120
53121         Fix rounding when a precision is given.
53122         * lib/vasnprintf.c (is_borderline): New function.
53123         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53124         9...9x.
53125         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53126         %e, %g.
53127         * tests/test-vasprintf-posix.c (test_function): Likewise.
53128         * tests/test-snprintf-posix.h (test_function): Likewise.
53129         * tests/test-sprintf-posix.h (test_function): Likewise.
53130         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53131         * tests/test-printf-posix.h (test_function): Likewise.
53132         * tests/test-printf-posix.output: Update.
53133         Reported by John Darrington <john@darrington.wattle.id.au> via
53134         Ben Pfaff <blp@cs.stanford.edu>.
53135
53136 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53137
53138         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53139         Suggested by Bruno Haible <bruno@clisp.org>.
53140
53141 2008-04-17  Bruno Haible  <bruno@clisp.org>
53142
53143         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53144         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53145         implementation.
53146         Patch by Bruce Merry <bmerry@gmail.com>.
53147
53148 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53149
53150         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53151         doesn't work under Windows.
53152
53153 2008-04-16  Bruno Haible  <bruno@clisp.org>
53154
53155         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53156         New macros.
53157         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53158         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53159         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53160         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53161         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53162         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53163         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53164         macros.
53165         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53166         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53167         Northern Sotho, Uighur.
53168
53169 2008-04-16  Bruno Haible  <bruno@clisp.org>
53170
53171         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53172         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53173         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53174         Reported by Daniel Bergström <daniel@octocode.com>.
53175
53176 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53177             Bruno Haible  <bruno@clisp.org>
53178
53179         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53180         function.
53181         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53182         New functions, mostly extracted from gl_locale_name_default.
53183         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53184
53185 2008-04-16  Eric Blake  <ebb9@byu.net>
53186
53187         Adjust strtod detection to catch glibc 2.7 bug.
53188         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53189         Reported by John Gatewood Ham.
53190
53191 2008-04-16  Bruno Haible  <bruno@clisp.org>
53192
53193         Add tentative support for Linux libc5.
53194         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53195         * lib/fpurge.c (fpurge): Likewise.
53196         * lib/freadable.c (freadable): Likewise.
53197         * lib/freadahead.c (freadahead): Likewise.
53198         * lib/freading.c (freading): Likewise.
53199         * lib/freadptr.c (freadptr): Likewise.
53200         * lib/freadseek.c (freadptrinc): Likewise.
53201         * lib/fseeko.c (rpl_fseeko): Likewise.
53202         * lib/fseterr.c (fseterr): Likewise.
53203         * lib/fwritable.c (fwritable): Likewise.
53204         * lib/fwriting.c (fwriting): Likewise.
53205         Reported by Alain Guibert <alguibert+bts@free.fr>.
53206
53207 2008-04-15  Bruno Haible  <bruno@clisp.org>
53208
53209         * modules/mathl (configure.ac): Define module indicator.
53210
53211 2008-04-15  Bruno Haible  <bruno@clisp.org>
53212
53213         * lib/logl.c (logl): Remove unused variables.
53214
53215 2008-04-15  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53218         fails.
53219
53220 2008-04-15  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/trim.c (trim2): Fix argument of isspace() macro.
53223
53224 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53225
53226         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53227         to 0.
53228         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53229
53230 2008-04-14  Bruno Haible  <bruno@clisp.org>
53231
53232         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53233         AC_LANG_PROGRAM argument.
53234         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53235         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53237         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53238         * m4/math_h.m4 (gl_MATH_H): Likewise.
53239         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53240         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53241         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53242         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53243         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53244         * m4/regex.m4 (gl_REGEX): Likewise.
53245         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53246         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53248         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53249         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53250         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53251         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53252         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53253
53254 2008-04-14  Jim Meyering  <meyering@redhat.com>
53255
53256         test-strtod: fix typos: s/abs/fabs/
53257         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53258
53259 2008-04-13  Bruno Haible  <bruno@clisp.org>
53260
53261         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53262         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53263         module is also used and while not building the reloc-wrapper.
53264
53265 2008-04-13  Bruno Haible  <bruno@clisp.org>
53266
53267         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53268
53269 2008-04-13  Bruno Haible  <bruno@clisp.org>
53270
53271         Fix AIX compilation failure introduced on 2008-04-02.
53272         * tests/test-frexp.c (exp): Undefine before redefining.
53273         * tests/test-frexpl.c (exp): Likewise.
53274
53275 2008-04-13  Bruno Haible  <bruno@clisp.org>
53276
53277         Work around a HP-UX stdio bug.
53278         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53279         * tests/test-ftello.c (main): Likewise.
53280         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53281         * doc/posix-functions/ftello.texi: Likewise.
53282
53283 2008-04-13  Bruno Haible  <bruno@clisp.org>
53284
53285         Make test-signbit pass on HP-UX/hppa.
53286         * tests/test-signbit.c (minus_zerol): New variable.
53287         (test_signbitl): Use it.
53288
53289 2008-04-13  Bruno Haible  <bruno@clisp.org>
53290
53291         Make truncl work on OSF/1 4.0.
53292         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
53293         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53294         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53296         HAVE_DECL_TRUNCL.
53297         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53298         HAVE_DECL_TRUNCL.
53299         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53300
53301 2008-04-13  Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53304
53305 2008-04-13  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53308         expression, so as to avoid HP-UX 11 cc compiler bug.
53309
53310 2008-04-13  Bruno Haible  <bruno@clisp.org>
53311
53312         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53313
53314 2008-04-13  Bruno Haible  <bruno@clisp.org>
53315
53316         * lib/git-merge-changelog.c: Remove empty declaration outside of
53317         functions.
53318
53319 2008-04-13  Bruno Haible  <bruno@clisp.org>
53320
53321         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53322
53323 2008-04-13  Bruno Haible  <bruno@clisp.org>
53324
53325         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53326         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53328         also if it exists but lacks definitions of the SHUT_* macros.
53329         * modules/sys_socket (Description): Update.
53330         Reported by Elbert Pol <e.pol@chello.nl>.
53331
53332 2008-04-13  Bruno Haible  <bruno@clisp.org>
53333
53334         * lib/localcharset.c (OS2): Don't redefine if already defined.
53335         Reported by Elbert Pol <e.pol@chello.nl>.
53336
53337 2008-04-13  Bruno Haible  <bruno@clisp.org>
53338
53339         * lib/binary-io.h [__EMX__]: Include <io.h>.
53340         Reported by Elbert Pol <e.pol@chello.nl>.
53341
53342 2008-04-12  Bruno Haible  <bruno@clisp.org>
53343
53344         * lib/fpucw.h: Enable the definitions also for x86_64.
53345         Needed for NetBSD/x86_64.
53346         Reported by Thomas Klausner <tk@giga.or.at>.
53347
53348 2008-04-12  Bruno Haible  <bruno@clisp.org>
53349
53350         * tests/test-strtod.c: Include isnand.h.
53351         (main): Use isnand instead of isnan.
53352         Reported by Jim Meyering.
53353
53354 2008-04-12  Bruno Haible  <bruno@clisp.org>
53355
53356         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53357         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53358
53359 2008-04-12  Jim Meyering  <meyering@redhat.com>
53360
53361         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53362
53363 2008-04-12  Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53366         Reported by Elbert Pol <e.pol@chello.nl>.
53367
53368 2008-04-12  Eric Blake  <ebb9@byu.net>
53369
53370         Work around Solaris 10 math.h bug.
53371         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53372         (gl_MATH_H_DEFAULTS): Set up default.
53373         * modules/math (Makefile.am): Replace new indicators.
53374         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53375         * tests/test-math.c (main): Test this.
53376         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53377         * doc/posix-headers/math.texi (math.h): Mention bug.
53378         Reported by Nelson H. F. Beebe and Jim Meyering.
53379
53380 2008-04-11  Bruno Haible  <bruno@clisp.org>
53381
53382         Adapt to future versions of Apple GCC.
53383         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53384         Reported by Peter O'Gorman <peter@pogma.com>.
53385
53386 2008-04-11  Bruno Haible  <bruno@clisp.org>
53387
53388         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53389
53390 2008-04-11  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53393
53394         * modules/getaddrinfo-tests (Makefile.am): Define
53395         test_getaddrinfo_LDADD.
53396
53397 2008-04-11  Bruno Haible  <bruno@clisp.org>
53398
53399         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53400         (init): Fix syntax error.
53401         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53402         is declared.
53403
53404 2008-04-11  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53407         * modules/glob (Depends-on): Add stdbool.
53408
53409 2008-04-11  Bruno Haible  <bruno@clisp.org>
53410
53411         * lib/trim.c: Include <string.h>.
53412
53413 2008-04-11  Eric Blake  <ebb9@byu.net>
53414
53415         Avoid compile failure on OS/2.
53416         * lib/regex_internal.h (internal_function): Disable optimization
53417         on OS/2 (__EMX__), where it caused compiler error.
53418         Reported by Elbert Pol.
53419
53420 2008-04-11  Bruno Haible  <bruno@clisp.org>
53421
53422         Flush the standard error stream before aborting. Needed on mingw.
53423         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53424         * tests/test-array_list.c (ASSERT): Likewise.
53425         * tests/test-array_oset.c (ASSERT): Likewise.
53426         * tests/test-avltree_list.c (ASSERT): Likewise.
53427         * tests/test-avltree_oset.c (ASSERT): Likewise.
53428         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53429         * tests/test-binary-io.c (ASSERT): Likewise.
53430         * tests/test-byteswap.c (ASSERT): Likewise.
53431         * tests/test-c-ctype.c (ASSERT): Likewise.
53432         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53433         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53434         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53435         * tests/test-c-strstr.c (ASSERT): Likewise.
53436         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53437         * tests/test-canonicalize.c (ASSERT): Likewise.
53438         * tests/test-carray_list.c (ASSERT): Likewise.
53439         * tests/test-ceilf1.c (ASSERT): Likewise.
53440         * tests/test-ceilf2.c (ASSERT): Likewise.
53441         * tests/test-ceill.c (ASSERT): Likewise.
53442         * tests/test-count-one-bits.c (ASSERT): Likewise.
53443         * tests/test-fbufmode.c (ASSERT): Likewise.
53444         * tests/test-fflush2.c (ASSERT): Likewise.
53445         * tests/test-floorf1.c (ASSERT): Likewise.
53446         * tests/test-floorf2.c (ASSERT): Likewise.
53447         * tests/test-floorl.c (ASSERT): Likewise.
53448         * tests/test-fopen.c (ASSERT): Likewise.
53449         * tests/test-fpending.c (ASSERT): Likewise.
53450         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53451         * tests/test-fpurge.c (ASSERT): Likewise.
53452         * tests/test-freadable.c (ASSERT): Likewise.
53453         * tests/test-freadahead.c (ASSERT): Likewise.
53454         * tests/test-freading.c (ASSERT): Likewise.
53455         * tests/test-freadptr.c (ASSERT): Likewise.
53456         * tests/test-freadptr2.c (ASSERT): Likewise.
53457         * tests/test-freadseek.c (ASSERT): Likewise.
53458         * tests/test-freopen.c (ASSERT): Likewise.
53459         * tests/test-frexp.c (ASSERT): Likewise.
53460         * tests/test-frexpl.c (ASSERT): Likewise.
53461         * tests/test-fseek.c (ASSERT): Likewise.
53462         * tests/test-fseeko.c (ASSERT): Likewise.
53463         * tests/test-fstrcmp.c (ASSERT): Likewise.
53464         * tests/test-ftell.c (ASSERT): Likewise.
53465         * tests/test-ftello.c (ASSERT): Likewise.
53466         * tests/test-func.c (ASSERT): Likewise.
53467         * tests/test-fwritable.c (ASSERT): Likewise.
53468         * tests/test-fwriting.c (ASSERT): Likewise.
53469         * tests/test-getdelim.c (ASSERT): Likewise.
53470         * tests/test-getline.c (ASSERT): Likewise.
53471         * tests/test-i-ring.c (ASSERT): Likewise.
53472         * tests/test-iconv-utf.c (ASSERT): Likewise.
53473         * tests/test-iconv.c (ASSERT): Likewise.
53474         * tests/test-isfinite.c (ASSERT): Likewise.
53475         * tests/test-isnand.c (ASSERT): Likewise.
53476         * tests/test-isnanf.c (ASSERT): Likewise.
53477         * tests/test-isnanl.h (ASSERT): Likewise.
53478         * tests/test-ldexpl.c (ASSERT): Likewise.
53479         * tests/test-linked_list.c (ASSERT): Likewise.
53480         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53481         * tests/test-localename.c (ASSERT): Likewise.
53482         * tests/test-lseek.c (ASSERT): Likewise.
53483         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53484         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53485         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53486         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53487         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53488         * tests/test-mbschr.c (ASSERT): Likewise.
53489         * tests/test-mbscspn.c (ASSERT): Likewise.
53490         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53491         * tests/test-mbspbrk.c (ASSERT): Likewise.
53492         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53493         * tests/test-mbsrchr.c (ASSERT): Likewise.
53494         * tests/test-mbsspn.c (ASSERT): Likewise.
53495         * tests/test-mbsstr1.c (ASSERT): Likewise.
53496         * tests/test-mbsstr2.c (ASSERT): Likewise.
53497         * tests/test-mbsstr3.c (ASSERT): Likewise.
53498         * tests/test-memchr2.c (ASSERT): Likewise.
53499         * tests/test-memmem.c (ASSERT): Likewise.
53500         * tests/test-open.c (ASSERT): Likewise.
53501         * tests/test-printf-frexp.c (ASSERT): Likewise.
53502         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53503         * tests/test-printf-posix.c (ASSERT): Likewise.
53504         * tests/test-quotearg.c (ASSERT): Likewise.
53505         * tests/test-rbtree_list.c (ASSERT): Likewise.
53506         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53507         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53508         * tests/test-round1.c (ASSERT): Likewise.
53509         * tests/test-roundf1.c (ASSERT): Likewise.
53510         * tests/test-roundl.c (ASSERT): Likewise.
53511         * tests/test-signbit.c (ASSERT): Likewise.
53512         * tests/test-sleep.c (ASSERT): Likewise.
53513         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53514         * tests/test-snprintf.c (ASSERT): Likewise.
53515         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53516         * tests/test-stat-time.c (ASSERT): Likewise.
53517         * tests/test-strcasestr.c (ASSERT): Likewise.
53518         * tests/test-strerror.c (ASSERT): Likewise.
53519         * tests/test-striconv.c (ASSERT): Likewise.
53520         * tests/test-striconveh.c (ASSERT): Likewise.
53521         * tests/test-striconveha.c (ASSERT): Likewise.
53522         * tests/test-strsignal.c (ASSERT): Likewise.
53523         * tests/test-strstr.c (ASSERT): Likewise.
53524         * tests/test-strtod.c (ASSERT): Likewise.
53525         * tests/test-trunc1.c (ASSERT): Likewise.
53526         * tests/test-trunc2.c (ASSERT): Likewise.
53527         * tests/test-truncf1.c (ASSERT): Likewise.
53528         * tests/test-truncf2.c (ASSERT): Likewise.
53529         * tests/test-truncl.c (ASSERT): Likewise.
53530         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53531         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53532         * tests/test-vasnprintf.c (ASSERT): Likewise.
53533         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53534         * tests/test-vasprintf.c (ASSERT): Likewise.
53535         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53536         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53537         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53538         * tests/test-vsnprintf.c (ASSERT): Likewise.
53539         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53540         * tests/test-wcwidth.c (ASSERT): Likewise.
53541         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53542         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53543         * tests/test-xvasprintf.c (ASSERT): Likewise.
53544         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53545         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53546         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53547         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53548         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53549         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53550         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53551         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53552         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53553         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53554         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53555         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53556         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53557         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53558         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53559         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53560         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53561         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53562         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53563         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53564         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53565         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53566         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53567         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53568         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53569         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53570         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53571         * tests/unictype/test-combining.c (ASSERT): Likewise.
53572         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53573         * tests/unictype/test-digit.c (ASSERT): Likewise.
53574         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53575         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53576         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53577         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53578         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53579         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53580         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53581         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53582         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53583         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53584         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53585         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53586         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53587         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53588         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53589         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53590         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53591         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53592         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53593         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53594         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53595         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53596         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53597         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53598         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53599         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53600         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53601         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53602         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53603         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53604         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53605         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53606         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53607         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53608         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53609         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53610         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53611         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53612         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53613         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53614         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53615         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53616         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53617         Reported by Eric Blake.
53618
53619 2008-04-11  Bruno Haible  <bruno@clisp.org>
53620
53621         * lib/wchar.in.h: Tweak comment.
53622
53623 2008-04-11  Bruno Haible  <bruno@clisp.org>
53624
53625         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53626         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53627         gl_COMMON.
53628         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53629
53630 2008-04-11  Bruno Haible  <bruno@clisp.org>
53631
53632         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53633
53634 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53635
53636         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53637         of attempting to use non-existing /dev/*random.  Based on patch
53638         from Adam Strzelecki <ono@java.pl> in
53639         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53640
53641 2008-04-08  Bruno Haible  <bruno@clisp.org>
53642
53643         Add tentative support for emx+gcc.
53644         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53645         * lib/fpurge.c (fpurge): Likewise.
53646         * lib/freadable.c (freadable): Likewise.
53647         * lib/freadahead.c (freadahead): Likewise.
53648         * lib/freading.c (freading): Likewise.
53649         * lib/freadptr.c (freadptr): Likewise.
53650         * lib/freadseek.c (freadptrinc): Likewise.
53651         * lib/fseeko.c (rpl_fseeko): Likewise.
53652         * lib/fseterr.c (fseterr): Likewise.
53653         * lib/fwritable.c (fwritable): Likewise.
53654         * lib/fwriting.c (fwriting): Likewise.
53655         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53656
53657 2008-04-09  Eric Blake  <ebb9@byu.net>
53658
53659         Avoid some autoconf warnings.
53660         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53661         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53662         * m4/afs.m4 (gl_AFS): Likewise.
53663         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53664         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53666         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53667         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53668         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53669         (AC_CHECK_DECLS_ONCE): Likewise.
53670         Rename file...
53671         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53672         gnulib-tool requires autoconf 2.59 or better.
53673         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53674
53675 2008-04-08  Eric Blake  <ebb9@byu.net>
53676
53677         Use 'git describe --match' if present (added in git 1.5.5).
53678         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53679         if possible.
53680
53681 2008-04-08  Bruno Haible  <bruno@clisp.org>
53682
53683         Add tentative support for OpenServer.
53684         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53685         _ptr, _cnt.
53686         * lib/fpurge.c (fpurge): Likewise.
53687         * lib/freadable.c (freadable): Likewise.
53688         * lib/freadahead.c (freadahead): Likewise.
53689         * lib/freading.c (freading): Likewise.
53690         * lib/freadptr.c (freadptr): Likewise.
53691         * lib/freadseek.c (freadptrinc): Likewise.
53692         * lib/fseeko.c (rpl_fseeko): Likewise.
53693         * lib/fseterr.c (fseterr): Likewise.
53694         * lib/fwritable.c (fwritable): Likewise.
53695         * lib/fwriting.c (fwriting): Likewise.
53696         Reported by Roger Cornelius <rac@tenzing.org> and
53697         Brian K. White <brian@aljex.com>.
53698
53699 2008-04-06  Jim Meyering  <meyering@redhat.com>
53700
53701         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53702
53703 2008-04-06  Bruno Haible  <bruno@clisp.org>
53704
53705         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53706         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53707         * tests/test-printf-posix.sh: Likewise.
53708         * tests/test-vfprintf-posix.sh: Likewise.
53709         * tests/test-vprintf-posix.sh: Likewise.
53710         * tests/test-xprintf-posix.sh: Likewise.
53711
53712 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53713
53714         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53715         hide error from 'ls', needed on OS/2.
53716         Report by Elbert Pol <elbert.pol@gmail.com>.
53717
53718 2008-04-04  Eric Blake  <ebb9@byu.net>
53719
53720         Make test-fseeko.c failures meaningful.
53721         * tests/test-fseeko.c: Print line number on failure.
53722         * tests/test-fseek.c: Likewise.
53723         Reported by Nelson H. F. Beebe.
53724
53725         Improve strtod bug detection check.
53726         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53727         required for Solaris 10.
53728         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53729
53730 2008-04-04  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53733         by m4/setenv.m4.
53734
53735 2008-04-03  Eric Blake  <ebb9@byu.net>
53736
53737         Ensure sane .version contents.
53738         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53739         version string.
53740         * build-aux/git-version-gen: Improve documentation.
53741
53742         Make GNU make output nicer.
53743         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53744         MAKECMDGOALS to enforce message for all command line targets.  Set
53745         srcdir for use in maint.mk.
53746
53747         Another maintainer tweak.
53748         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53749         a target that regenerates version.
53750
53751 2008-04-03  Jim Meyering  <meyering@redhat.com>
53752
53753         vc-list-files: don't cause coreutils "make po-check" failure
53754         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53755
53756 2008-04-03  Eric Blake  <ebb9@byu.net>
53757
53758         Allow VPATH usage of vc-list-files.
53759         * build-aux/vc-list-files (scriptversion): Add timestamp.
53760         (options): Add --help, --version, -C.
53761         (CVS): Support installed cvsu.
53762
53763 2008-04-02  Bruno Haible  <bruno@clisp.org>
53764
53765         Avoid some "statement with no effect" warnings from gcc.
53766         * tests/test-wctype.c (main): Explicitly ignore unused values.
53767         Reported by Jim Meyering.
53768
53769 2008-04-02  Jim Meyering  <meyering@redhat.com>
53770
53771         Avoid some warnings from "gcc -Wshadow".
53772         * tests/test-frexp.c (exp): Define to a different identifier.
53773         * tests/test-frexpl.c (exp): Likewise.
53774
53775 2008-04-03  Jim Meyering  <meyering@redhat.com>
53776
53777         bootstrap: remove dangling *.[ch] symlinks from lib
53778         * build-aux/bootstrap [dangling symlink removal]: Move find's
53779         -depth option to precede all others, to avoid a warning.
53780         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53781
53782 2008-04-02  Bruno Haible  <bruno@clisp.org>
53783
53784         Avoid some warnings from "gcc -Wshadow".
53785         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53786         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53787         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53788         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53789         Reported by Jim Meyering.
53790
53791 2008-04-01  Bruno Haible  <bruno@clisp.org>
53792
53793         Fix test to work on IRIX 6.5 with cc.
53794         * tests/test-math.c (numeric_equal): New function.
53795         (main): Use it.
53796
53797 2008-04-01  Bruno Haible  <bruno@clisp.org>
53798
53799         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53800
53801 2008-04-01  Bruno Haible  <bruno@clisp.org>
53802
53803         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53804         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53805         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53806         (Depends-on): Remove math.
53807
53808         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53809         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53810         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53811         (Depends-on): Remove math.
53812
53813         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53814         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53815         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53816         (Depends-on): Remove math.
53817         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53818         (Depends-on): Remove math.
53819
53820         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53821         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53822         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53823         (Depends-on): Remove math.
53824         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53825         (Depends-on): Remove math.
53826
53827         * tests/test-round1.c: Include nan.h.
53828         (main): Use NaNd instead of NAN.
53829         * modules/round-tests (Files): Add tests/nan.h.
53830
53831         * tests/test-trunc1.c: Include nan.h.
53832         (main): Use NaNd instead of NAN.
53833         * modules/trunc-tests (Files): Add tests/nan.h.
53834
53835         * tests/test-roundf1.c: Include nan.h.
53836         (main): Use NaNf instead of NAN.
53837         * modules/roundf-tests (Files): Add tests/nan.h.
53838
53839         * tests/test-truncf1.c: Include nan.h.
53840         (main): Use NaNf instead of NAN.
53841         * modules/truncf-tests (Files): Add tests/nan.h.
53842
53843         * tests/test-ceilf1.c: Include nan.h.
53844         (main): Use NaNf instead of NAN.
53845         * modules/ceilf-tests (Files): Add tests/nan.h.
53846
53847         * tests/test-floorf1.c: Include nan.h.
53848         (main): Use NaNf instead of NAN.
53849         * modules/floorf-tests (Files): Add tests/nan.h.
53850
53851         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53852         (main): Use NaNf instead of NAN.
53853         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53854
53855         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53856         (main): Use NaNd instead of NAN.
53857         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53858
53859         * tests/test-frexp.c: Include nan.h.
53860         (main): Use NaNd instead of NAN.
53861         * modules/frexp-tests (Files): Add tests/nan.h.
53862
53863         * lib/isnan.c: Don't include <math.h>.
53864         (FUNC): Don't use NAN macro.
53865         * modules/isnand-nolibm (Depends-on): Remove math.
53866         * modules/isnanf-nolibm (Depends-on): Remove math.
53867         * modules/isnanl (Depends-on): Remove math.
53868         * modules/isnanl-nolibm (Depends-on): Remove math.
53869
53870         * tests/nan.h: New file.
53871
53872 2008-04-01  Eric Blake  <ebb9@byu.net>
53873
53874         Fix typos.
53875         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53876         values to be the right type.
53877
53878         For now, cater to gnulib strtod inaccuracies.
53879         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53880         fractional results.  While not as nice from a QoI perspective, it
53881         is a quicker patch than correctly implementing decimal to binary
53882         rounding.
53883
53884 2008-03-31  Eric Blake  <ebb9@byu.net>
53885
53886         Guarantee a definition of NAN.
53887         * lib/math.in.h (NAN): Define if missing.
53888         * tests/test-math.c (main): Test it.
53889         * doc/posix-headers/math.texi (math.h): Document this.
53890         * lib/isnan.c (rpl_isnand): Use it.
53891         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53892         * tests/test-floorf1.c (NaN): Likewise.
53893         * tests/test-frexp.c (NaN): Likewise.
53894         * tests/test-isnand.c (NaN): Likewise.
53895         * tests/test-isnanf.c (NaN): Likewise.
53896         * tests/test-round1.c (NaN): Likewise.
53897         * tests/test-roundf1.c (NaN): Likewise.
53898         * tests/test-snprintf-posix.h (NaN): Likewise.
53899         * tests/test-sprintf-posix.h (NaN): Likewise.
53900         * tests/test-trunc1.c (NaN): Likewise.
53901         * tests/test-truncf1.c (NaN): Likewise.
53902         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53903         * tests/test-vasprintf-posix.c (NaN): Likewise.
53904         * modules/isnand-nolibm (Depends-on): Add math.
53905         * modules/isnanf-nolibm (Depends-on): Likewise.
53906         * modules/isnanl (Depends-on): Likewise.
53907         * modules/isnanl-nolibm (Depends-on): Likewise.
53908         * modules/snprintf-posix-tests (Depends-on): Likewise.
53909         * modules/sprintf-posix-tests (Depends-on): Likewise.
53910         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53911         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53912         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53913         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53914
53915 2008-03-31  Bruno Haible  <bruno@clisp.org>
53916
53917         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53918         * doc/posix-functions/strtod.texi: Likewise.
53919
53920 2008-03-31  Bruno Haible  <bruno@clisp.org>
53921
53922         * tests/test-strtod.c (main): Don't use C99 syntax.
53923
53924 2008-03-31  Bruno Haible  <bruno@clisp.org>
53925
53926         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53927         Reported by Eric Blake.
53928
53929 2008-03-31  Jim Meyering  <meyering@redhat.com>
53930
53931         Don't compare actual signbit return values.
53932         * tests/test-strtod.c (main): Rather, compare only their
53933         zero/non-zero nature.
53934
53935 2008-03-31  Eric Blake  <ebb9@byu.net>
53936
53937         More strtod documentation.
53938         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53939         failures as distinct bugs.
53940
53941 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53944         Problem reported by Erik Benada in
53945         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53946
53947 2008-03-30  Bruno Haible  <bruno@clisp.org>
53948
53949         * tests/test-strtod.c: Add comments about which assertion fails on which
53950         platform.
53951         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53952
53953 2008-03-30  Eric Blake  <ebb9@byu.net>
53954
53955         Test signbit behavior on zeros.
53956         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53957         (test_signbitd, test_signbitl): Likewise.
53958
53959         More strtod touchups.
53960         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53961         sign of negative underflow, for now.  Use .5, not .1.
53962         * doc/posix-functions/strtod.texi (strtod): Mention these
53963         limitations.
53964         Reported by Jim Meyering.
53965
53966 2008-03-30  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53969         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53970
53971 2008-03-30  Bruno Haible  <bruno@clisp.org>
53972
53973         Avoid failure when attempting to return empty iconv results on some
53974         platforms.
53975         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53976         allocation, don't report ENOMEM when the resulting string is empty.
53977
53978 2008-03-30  Bruno Haible  <bruno@clisp.org>
53979
53980         Fix buffer overrun.
53981         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53982         Don't consider the width for tmp_length. Check count against tmp_length
53983         before doing the padding. Ensure enough allocation during padding.
53984
53985 2008-03-30  Eric Blake  <ebb9@byu.net>
53986
53987         strtod touchups.
53988         * lib/strtod.c (strtod): Avoid compiler warnings.
53989         Reported by Jim Meyering.
53990
53991 2008-03-30  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53994         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53995         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53996         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53997         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53998         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53999         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
54000         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
54001
54002         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
54003         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
54004         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
54005         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
54006         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
54007         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
54008         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
54009         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
54010
54011         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54012         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54013         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54014         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54015         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54016         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54017         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54018         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54019
54020         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54021         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54022
54023         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54024         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54025
54026         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54027         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54028
54029         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54031         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54032
54033         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54035         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54036
54037         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54039         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54040
54041         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54043         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54044
54045         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54046         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54048         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54049         (Depends-on): Add EOVERFLOW.
54050         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54051         (Depends-on): Add EOVERFLOW.
54052         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54053         (Depends-on): Add EOVERFLOW.
54054         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54055         (Depends-on): Add EOVERFLOW.
54056         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54057         (Depends-on): Add EOVERFLOW.
54058         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54059         (Depends-on): Add EOVERFLOW.
54060         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54061         (Depends-on): Add EOVERFLOW.
54062         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54063         (Depends-on): Add EOVERFLOW.
54064
54065         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54067         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54068
54069         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54071         * modules/snprintf (Depends-on): Add EOVERFLOW.
54072
54073         * lib/poll.c (EOVERFLOW): Remove fallback.
54074         * modules/poll (Depends-on): Add EOVERFLOW.
54075
54076         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54077         * modules/getugroups (Depends-on): Add EOVERFLOW.
54078
54079         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54080         * modules/getdelim (Depends-on): Add EOVERFLOW.
54081
54082         * lib/ftell.c (EOVERFLOW): Remove fallback.
54083         * modules/ftell (Depends-on): Add EOVERFLOW.
54084
54085         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54087         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54088
54089         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54090
54091         * modules/EOVERFLOW-tests: New file.
54092         * tests/test-EOVERFLOW.c: New file.
54093
54094         * modules/EOVERFLOW: New file.
54095         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54096
54097 2008-03-30  Bruno Haible  <bruno@clisp.org>
54098
54099         Fix bug introduced on 2007-06-10.
54100         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54101         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54102
54103 2008-03-30  Bruno Haible  <bruno@clisp.org>
54104
54105         Improve freadseek's efficiency after ungetc.
54106         * lib/freadseek.c: Include freadahead.h.
54107         (freadptrinc): New function, extracted from freadseek.
54108         (freadseek): Use it in a loop. Use freadahead to determine the number
54109         of loop iterations.
54110         * modules/freadseek (Depends-on): Add freadahead.
54111         (configure.ac): Require AC_C_INLINE.
54112
54113 2008-03-30  Bruno Haible  <bruno@clisp.org>
54114
54115         * lib/freadseek.c (freadseek): Don't ignore the return value of
54116         freadptr.
54117
54118 2008-03-29  Eric Blake  <ebb9@byu.net>
54119
54120         Add hex float support.
54121         * modules/strtod (Depends-on): Add c-ctype.
54122         (Link): Mention POW_LIB.
54123         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54124         whitespace between 'e' and exponent.
54125         * tests/test-strtod.c (main): Enable hex float tests.
54126         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54127         now provides.
54128
54129         Document various strtod bugs, with some fixes.
54130         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54131         "-0x", "inf", "nan", and hex constants.
54132         * doc/posix-functions/atof.texi (atof): Likewise.
54133         * modules/stdlib (Makefile.am): Support strtod.
54134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54135         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54136         detect additional strtod bugs.
54137         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54138         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54139         bool where appropriate.  Parse 'inf' and 'nan'.
54140         * tests/test-strtod.c: New file.
54141         * modules/strtod (Depends-on): Add stdbool, stdlib.
54142         (configure.ac): Turn on module indicator.
54143         * modules/strtod-tests: New module.
54144
54145 2008-03-29  Eric Blake  <ebb9@byu.net>
54146
54147         Fix ftell on mingw.
54148         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54149         * modules/ftell-tests (Depends-on): Add binary-io.
54150         * modules/ftello-tests (Depends-on): Likewise.
54151         * tests/test-ftell.c (main): Enhance test to cover behavior after
54152         ungetc.  Enforce binary mode.
54153         * tests/test-ftello.c (main): Likewise.
54154
54155         Pass test-freadseek on cygwin.
54156         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54157         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54158         ungetc buffer.
54159
54160         * tests/test-fflush2.c (main): Fix typo.
54161
54162 2008-03-29  Bruno Haible  <bruno@clisp.org>
54163
54164         * tests/test-fflush2.c (main): Temporarily disable the contents of
54165         this test.
54166         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54167         Reported by Eric Blake.
54168
54169 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54170
54171         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54172         (GC_SHA224_DIGEST_SIZE): Add.
54173
54174         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54175         (gc_hash_digest_length): Likewise.
54176         (gc_hash_buffer): Likewise.
54177
54178 2008-03-25  Bruno Haible  <bruno@clisp.org>
54179
54180         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54181         detail which gettext release to use.
54182         Reported by Simon Josefsson.
54183
54184 2008-03-26  Jim Meyering  <meyering@redhat.com>
54185
54186         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54187         * modules/gnumakefile (clean-GNUmakefile): Also, use
54188         test ... && ... || : syntax rather than if-then ... fi.
54189
54190         gnumakefile: Don't double-quote-expand $(VPATH) value.
54191         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54192
54193 2008-03-24  Eric Blake  <ebb9@byu.net>
54194
54195         Alter GNUmakefile to install into top directory.
54196         * modules/maintainer-makefile: Split, and add dependency...
54197         * modules/gnumakefile: to this new module.
54198         * build-aux/GNUmakefile: Move...
54199         * top/GNUmakefile: ...here.
54200         * build-aux/maint.mk: Move...
54201         * top/maint.mk: ...here.
54202         * MODULES.html.sh (Support for maintaining...): Document new
54203         module.
54204
54205 2008-03-23  Bruno Haible  <bruno@clisp.org>
54206
54207         * gnulib-tool: New options --vc-files, --no-vc-files.
54208         (func_usage): Document them.
54209         (vc_files): New variable.
54210         (func_import): Consider vc_files.
54211         (func_create_testdir): Set vc_files to empty.
54212         Suggested by Jim Meyering and Karl Berry.
54213
54214 2008-03-23  Bruno Haible  <bruno@clisp.org>
54215
54216         Fix regex compilation error on HP-UX 11.
54217         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54218         * modules/regex (Files): Add m4/mbstate_t.m4.
54219         Reported by Ton Voon <ton.voon@altinity.com>.
54220
54221 2008-03-23  Bruno Haible  <bruno@clisp.org>
54222
54223         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54224
54225 2008-03-23  Eric Blake  <ebb9@byu.net>
54226             Bruno Haible  <bruno@clisp.org>
54227
54228         Install files from top/ in the destination directory.
54229         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54230         augmentation also for the files from top/.
54231         (func_import, func_create_testdir): Rewrite file names:
54232         top/filename -> filename.
54233
54234 2008-03-23  Bruno Haible  <bruno@clisp.org>
54235
54236         Tweak "gnulib --version" output.
54237         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54238
54239 2008-03-23  Bruno Haible  <bruno@clisp.org>
54240
54241         Tweak "gnulib --version" output.
54242         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54243         rather than contents of ChangeLog, when possible.
54244
54245 2008-03-21  Eric Blake  <ebb9@byu.net>
54246
54247         More --version tweaks.
54248         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54249         date of last ChangeLog entry.
54250
54251 2008-03-21  Jim Meyering  <meyering@redhat.com>
54252
54253         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54254
54255 2008-03-20  Eric Blake  <ebb9@byu.net>
54256
54257         VPATH fix.
54258         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54259
54260 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54261
54262         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54263         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54264
54265 2008-03-20  Eric Blake  <ebb9@byu.net>
54266
54267         Sync GNUmakefile with coreutils.
54268         * build-aux/GNUmakefile (have-Makefile): Rename...
54269         (_have-Makefile): ...to this, for namespace consideration.
54270         (GNUmakefile.cfg): Include, if present.
54271         (_autoreconf): Define a default.
54272         (_is-dist-target): New rule for rebuilds to pick up intra-release
54273         version.
54274         (maint-cfg.mk): Rename...
54275         (cfg.mk): ...to this.
54276
54277 2008-03-18  Jim Meyering  <meyering@redhat.com>
54278
54279         New script and module: mktempd
54280         * MODULES.html.sh (maint+release support): Add mktempd.
54281         * build-aux/mktempd: New file.
54282         * modules/mktempd: New file.
54283
54284 2008-03-15  Jim Meyering  <meyering@redhat.com>
54285
54286         Undo last change.
54287         * lib/sha1.c, lib/md5.c: 63 != ~63.
54288         Reported by Andreas Schwab.
54289
54290         sha1.c, md5.c: Hoist a redundant expression.
54291         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
54292         "ctx->buflen" only once, before calling *_process_block.
54293         * lib/md5.c (md5_process_bytes): Likewise.
54294
54295 2008-03-14  Eric Blake  <ebb9@byu.net>
54296
54297         Bump copyright year in files generated by gnulib-tool.
54298         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54299         gnulib-tool, rather than hard-coding it.
54300
54301         Fix 'gnulib-tool --version' output to work with git.
54302         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54303         (startup): ...here.
54304         (func_version): Use it to invoke git-version-gen, rather than
54305         relying on CVS keyword expansion.  Modernize wording.
54306         (cvsdatestamp, last_checkin_date, version): Kill unused
54307         variables.
54308
54309 2008-03-12  Jim Meyering  <meyering@redhat.com>
54310
54311         Recognize optional cast of the argument to free.
54312         * build-aux/useless-if-before-free: Update regexps.
54313
54314         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54315
54316 2008-03-11  Bruno Haible  <bruno@clisp.org>
54317
54318         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54319         by a single package.
54320         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54321         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54322         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54323         Reported by Sam Steingold <sds@gnu.org>.
54324
54325 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54326
54327         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54328         repositories.
54329
54330 2008-03-11  Bruno Haible  <bruno@clisp.org>
54331
54332         Avoid conflicts between local macro definitions.
54333         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54334         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54335
54336 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54337             Bruno Haible  <bruno@clisp.org>
54338
54339         Make va_copy work with some version of xlc on AIX 5.1.
54340         * lib/stdarg.in.h: New file.
54341         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54342         On AIX, use a <stdarg.h> file substitute.
54343         * modules/stdarg (Files): Add lib/stdarg.in.h.
54344         (Depends-on): Add include_next.
54345         (Makefile.am): Build a stdarg.h substitute if requested.
54346         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54347
54348 2008-03-10  Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54352         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54353
54354 2008-03-10  Bruno Haible  <bruno@clisp.org>
54355
54356         * modules/stdlib (Depends-on): Add include_next, remove
54357         absolute-header.
54358
54359 2008-03-09  Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/freadahead.h (freadahead): Document more precisely.
54362         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54363         the sum of both buffer sizes.
54364         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54365         * NEWS: Document the change.
54366
54367 2008-03-09  Bruno Haible  <bruno@clisp.org>
54368
54369         Extend freadptr to return also the buffer size.
54370         * lib/freadptr.h (freadptr): Add sizep argument.
54371         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54372         (freadptr): Add sizep argument. Determine buffer size like freadahead
54373         does.
54374         * tests/test-freadptr.c: Don't include freadahead.h.
54375         (main): Adapt for new calling convention of freadptr.
54376         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54377         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54378         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54379         tests/test-freadptr2.sh.
54380         (Depends): Remove freadahead.
54381         (TESTS): Add test-freadptr2.sh.
54382         (check_PROGRAMS): Add test-freadptr2.
54383
54384 2008-03-09  Bruno Haible  <bruno@clisp.org>
54385
54386         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54387         Report and solution by Simon Josefsson.
54388
54389 2008-03-06  Bruno Haible  <bruno@clisp.org>
54390
54391         Make fflush after ungetc work on BSD platforms.
54392         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54393         * tests/test-fflush2.c: New file.
54394         * tests/test-fflush2.sh: New file.
54395         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54396         tests/test-fflush2.c.
54397         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54398         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54399
54400 2008-03-06  Eric Blake  <ebb9@byu.net>
54401
54402         Likewise for ftello.
54403         * modules/ftello (Dependencies): Add extensions.
54404         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54405
54406 2008-03-06  Bruno Haible  <bruno@clisp.org>
54407
54408         * modules/fseeko (Dependencies): Add extensions.
54409         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54410         Needed on glibc systems.
54411
54412 2008-03-06  Bruno Haible  <bruno@clisp.org>
54413
54414         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54415         email address.
54416         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54417
54418 2008-03-06  Bruno Haible  <bruno@clisp.org>
54419
54420         * users.txt: Add libgnupdf.
54421
54422 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54423
54424         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54425         (Header File Substitutes, Function Substitutes,
54426         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54427         (Build robot for gnulib): Fix typo.
54428
54429 2008-03-06  Bruno Haible  <bruno@clisp.org>
54430
54431         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54432         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54433
54434 2008-03-06  Bruno Haible  <bruno@clisp.org>
54435
54436         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54437         * doc/gnulib.texi: Include it.
54438
54439 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54440
54441         * modules/func (License): Change license to unlimited; there was
54442         no LGPL parts in the module anyway.
54443
54444 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54445
54446         * modules/__func__: Renamed to modules/func.
54447         * modules/__func__-tests: Renamed to modules/func-tests.
54448         * tests/test-__func__.c: Renamed to tests/test-func.c.
54449         * m4/__func__.m4: Renamed to m4/func.m4.
54450         * doc/gnulib.texi (__func__): Section renamed to func.
54451         Suggested by Eric Blake <ebb9@byu.net>.
54452
54453 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54454
54455         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54456         about __func__.  Make example self-contained.  Suggested by Eric
54457         Blake <ebb9@byu.net>.
54458
54459         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54460         Suggested by Eric Blake <ebb9@byu.net>.
54461
54462 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54463
54464         * modules/__func__: New file.
54465         * modules/__func__-tests: New file.
54466         * tests/test-__func__.c: New file.
54467         * m4/__func__.m4: New file.
54468         * doc/gnulib.texi (__func__): Document __func__ module.
54469
54470 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54471
54472         * modules/byteswap (License): Re-license as LGPLv2+.
54473
54474 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54475
54476         * doc/Makefile: Add pdf target.
54477
54478 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54479
54480         * modules/inline (License): Use 'unlimited', since there are only
54481         *.m4 files in this module.
54482
54483 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54484             Bruno Haible  <bruno@clisp.org>
54485
54486         Add support for HP C 7.1 on OpenVMS 8.3.
54487         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54488
54489 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54490
54491         Update VMS specifics.
54492         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54493
54494 2008-03-02  Jim Meyering  <meyering@redhat.com>
54495
54496         Remove the last dependency on the "free" module.
54497         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54498         Reported by Bob Proulx.
54499
54500         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54501
54502         Remove useless "if" tests before free.  Deprecate "free" module.
54503         * doc/posix-functions/free.texi: Mention that this
54504         module is no longer useful.
54505         * modules/free (Notice): Say this module is obsolete.
54506         * modules/readutmp (Depends-on): Remove free.
54507         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54508         * lib/putenv.c (putenv): Likewise.
54509         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54510         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54511         * tests/test-c-strcasestr.c (main): Likewise.
54512         * tests/test-c-strstr.c (main): Likewise.
54513         * tests/test-mbscasestr1.c (main): Likewise.
54514         * tests/test-mbscasestr2.c (main): Likewise.
54515         * tests/test-mbsstr1.c (main): Likewise.
54516         * tests/test-mbsstr2.c (main): Likewise.
54517         * tests/test-memmem.c (main): Likewise.
54518         * tests/test-strcasestr.c (main): Likewise.
54519         * tests/test-striconv.c (main): Likewise.
54520         * tests/test-striconveh.c (main): Likewise.
54521         * tests/test-striconveha.c (main): Likewise.
54522         * tests/test-strstr.c (main): Likewise.
54523
54524         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54525
54526         bootstrap: sync from coreutils again
54527         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54528
54529 2008-03-01  Jim Meyering  <meyering@redhat.com>
54530
54531         bootstrap: sync from coreutils
54532         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54533         also when the target doesn't exist.
54534
54535 2008-03-01  Eric Blake  <ebb9@byu.net>
54536
54537         Fix bugs in last patch.
54538         * lib/memchr2.c (memchr2): Fix typo.
54539         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54540         extension.
54541         Reported by Bruce Korb.
54542
54543         New module 'memchr2'.
54544         * modules/memchr2: New file.
54545         * modules/memchr2-tests: Likewise.
54546         * lib/memchr2.h: Likewise.
54547         * lib/memchr2.c: Likewise, based on memchr.c.
54548         * tests/test-memchr2.c: New test.
54549         * MODULES.html.sh (String handling): Add memchr2.
54550
54551 2008-02-29  Bruno Haible  <bruno@clisp.org>
54552
54553         * modules/freadseek-tests: New file.
54554         * tests/test-freadseek.sh: New file.
54555         * tests/test-freadseek.c: New file.
54556
54557         New module 'freadseek'.
54558         * modules/freadseek: New file.
54559         * lib/freadseek.h: New file.
54560         * lib/freadseek.c: New file.
54561         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54562
54563 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54564
54565         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54566         wydawca.
54567
54568         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54569         program_invocation_name and program_invocation_short_name are
54570         present.
54571
54572 2008-02-28  Bruno Haible  <bruno@clisp.org>
54573
54574         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54575         * tests/test-freadptr.sh: Also test non-seekable stdin.
54576
54577 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54578
54579         * build-aux/bootstrap (source_base, m4_base)
54580         (doc_base, tests_base): New variables.
54581         (gnulib_tool_options): Do not hardcode base directories, use
54582         the above variables instead.
54583
54584 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54585
54586         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54587
54588 2008-02-28  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/freadptr-tests: New file.
54591         * tests/test-freadptr.sh: New file.
54592         * tests/test-freadptr.c: New file.
54593
54594         New module 'freadptr'.
54595         * modules/freadptr: New file.
54596         * lib/freadptr.h: New file.
54597         * lib/freadptr.c: New file.
54598         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54599
54600 2008-02-26  Karl Berry  <karl@freefriends.org>
54601
54602         Sync from Libtool:
54603         * libltdl/argz.c (argz_add, argz_count): New functions.
54604         * libltdl/argz.in.h: Declare them.
54605         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54606
54607 2008-02-22  Bruno Haible  <bruno@clisp.org>
54608
54609         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54610         is a pointer type.  Needed for HP-UX 10.
54611         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54612         * doc/posix-functions/gmtime_r.texi: Likewise.
54613         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54614
54615 2008-02-24  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/environ-tests: New file.
54618         * tests/test-environ.c: New file.
54619
54620         New module 'environ'.
54621         * modules/environ: New file.
54622         * lib/unistd.in.h (environ): New declaration.
54623         * m4/environ.m4: New file.
54624         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54625         after use.
54626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54627         HAVE_DECL_ENVIRON.
54628         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54629         HAVE_DECL_ENVIRON.
54630         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54631         wrong claim that 'environ' is missing on some systems.
54632         * modules/execute (Depends-on): Add environ.
54633         * lib/execute.c (environ): Remove fallback declaration.
54634         * modules/pipe (Depends-on): Add environ.
54635         * lib/pipe.c (environ): Remove fallback declaration.
54636         * modules/setenv (Depends-on): Add environ.
54637         * lib/setenv.c (environ): Remove fallback declaration.
54638         * modules/unsetenv (Depends-on): Add environ.
54639         * lib/unsetenv.c (environ): Remove fallback declaration.
54640         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54641         m4/environ.m4.
54642         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54643         (gl_PREREQ_UNSETENV): Likewise.
54644
54645 2008-02-24  Bruno Haible  <bruno@clisp.org>
54646
54647         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54648
54649 2008-02-20  Bob Proulx  <bob@proulx.com>
54650
54651         Enable use of older two part flavor 'git describe'.
54652         * build-aux/git-version-gen: If using the older two part flavor of
54653         git version then recreate the third part now present in the
54654         newer three part flavor of git describe.
54655
54656 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54657
54658         * lib/fts.c (fts_build): Typo correction to comment.
54659
54660 2008-02-17  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54663         generating no-op conflicts.
54664
54665 2008-02-17  Bruno Haible  <bruno@clisp.org>
54666
54667         Speed up by 10%.
54668         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54669         result_entries, rather than an index-based loop.
54670
54671 2008-02-17  Bruno Haible  <bruno@clisp.org>
54672
54673         Speed up by 25%.
54674         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54675         'hashcode_cached'.
54676         (entry_create): New function.
54677         (entry_hashcode): Use the cached hashcode if possible.
54678         (read_changelog_file, try_split_merged_entry): Use entry_create.
54679
54680 2008-02-17  Bruno Haible  <bruno@clisp.org>
54681
54682         Speed up from O(n^2) to O(n) for long ChangeLog files.
54683         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54684         (read_changelog_file): Change implementation of entries_reversed list
54685         to rbtreehash.
54686         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54687
54688 2008-02-17  Bruno Haible  <bruno@clisp.org>
54689
54690         New option --split-merged-entry.
54691         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54692         (find_paragraph_end, try_split_merged_entry): New functions.
54693         (long_options): Add option --split-merged-entry.
54694         (usage): Document option --split-merged-entry.
54695         (main): Implement option --split-merged-entry.
54696         Reported by Eric Blake.
54697
54698 2008-02-17  Bruno Haible  <bruno@clisp.org>
54699
54700         * lib/git-merge-changelog.c: Include c-strstr.h.
54701         (main): Support the "git pull --rebase" situation.
54702         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54703         Reported by Eric Blake.
54704
54705 2008-02-16  Eric Blake  <ebb9@byu.net>
54706
54707         Avoid doubling \ in common case of "c-maybe" quoting style.
54708         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54709         eliding outer quotes.
54710         * lib/quotearg.h: Document this.
54711         * tests/test-quotearg.c (result_strings, inputs, results_g)
54712         (flag_results, locale_results): Test it by adding a new string to
54713         each test group.
54714         (compare_strings): Test new string.
54715
54716 2008-02-13  Eric Blake  <ebb9@byu.net>
54717
54718         Avoid trigraph quoting in default output.
54719         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54720         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54721         unless explicitly requested.
54722         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54723
54724 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54725
54726         Don't rely on signed integer overflowing to negative value.
54727         * lib/getugroups.c (getugroups): Include <limits.h>.
54728         Instead, compare against INT_MAX, and increment only if the test passes.
54729
54730 2008-02-13  Jim Meyering  <meyering@redhat.com>
54731         and Eric Blake  <ebb9@byu.net>
54732
54733         Avoid shadowing warning and compile errors on Linux.
54734         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54735         forwarding macros on Linux.
54736         (dcgettext): Define a stub, for Linux.
54737         (results_g, main): Avoid warnings.
54738
54739 2008-02-12  Eric Blake  <ebb9@byu.net>
54740
54741         Silence warning in last patch.
54742         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54743
54744         Quotearg part 4: add tests, fix c-maybe colon quoting.
54745         * lib/quotearg.h: Improve documentation.
54746         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54747         escapes when adding outer quotes.  When quoting trigraphs, use
54748         valid C notation.  When quoting NUL, omit extra characters if next
54749         character is not digit.  Alter prototype.
54750         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54751         callers.
54752         * modules/quotearg-tests: New module.
54753         * tests/test-quotearg.c: New test.
54754
54755 2008-02-07  Eric Blake  <ebb9@byu.net>
54756
54757         Quotearg part 3: add flag to control outer quote elision.
54758         * lib/quotearg.h (c_maybe_quoting_style): New style.
54759         (enum quoting_flags): Better documentation of flags.
54760         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54761         c-maybe style.
54762         (quotearg_buffer_restyled): Handle new flag to elide outer
54763         quotes.
54764
54765         Quotearg part 2: add flag that can control NUL elision.
54766         * lib/quotearg.h (set_quoting_flags): New prototype.
54767         * lib/quotearg.c (struct quoting_options): Add flag field.
54768         (set_quoting_flags): New function.
54769         (quotearg_buffer_restyled): Add flags parameter.
54770         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54771         (quotearg_n_options): Set the flag, since length cannot be
54772         returned.
54773         (quoting_options_from_style): Default flags correctly.
54774
54775         Quotearg part 1: more wrappers, restore quotearg_char state.
54776         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54777         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54778         (quotearg_colon_mem): New wrappers.
54779         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54780         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54781         functions.
54782         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54783         (quotearg_colon_mem): New functions.
54784
54785 2008-02-11  Bruno Haible  <bruno@clisp.org>
54786
54787         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54788         library in the current directory: it does not work with parallel make.
54789         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54790
54791 2008-02-11  Bruno Haible  <bruno@clisp.org>
54792
54793         * .gitattributes: New file.
54794
54795 2008-02-11  Jim Meyering  <meyering@redhat.com>
54796
54797         useless-if-before-free: Fix reversed exit values.
54798         * build-aux/useless-if-before-free: Use correct values
54799         for EXIT_MATCH and EXIT_NO_MATCH.
54800
54801         * build-aux/useless-if-before-free: Close stdout carefully.
54802
54803 2008-02-10  Bruno Haible  <bruno@clisp.org>
54804
54805         New module 'git-merge-changelog'.
54806         * modules/git-merge-changelog: New file.
54807         * lib/git-merge-changelog.c: New file.
54808
54809 2008-02-10  Jim Meyering  <meyering@redhat.com>
54810
54811         useless-if-before-free: New option: --list (-l).
54812
54813         useless-if-before-free: Don't exit immediately upon open failure.
54814         * build-aux/useless-if-before-free: Exit 2 for errors.
54815         Upon failure to open a file, don't exit immediately.
54816         Rather, just warn and continue with any remaining files.
54817
54818 2008-02-10  Bruno Haible  <bruno@clisp.org>
54819
54820         New abstract list operation 'node_set_value'.
54821         * lib/gl_list.h (gl_list_node_set_value): New function.
54822         (struct gl_list_implementation): New field node_set_value.
54823         * lib/gl_list.c (gl_list_node_set_value): New function.
54824         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54825         (gl_array_list_implementation): Update.
54826         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54827         (gl_carray_list_implementation): Update.
54828         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54829         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54830         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54831         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54832         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54833         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54834         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54835         Update.
54836         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54837         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54838         (gl_sublist_list_implementation): Update.
54839
54840 2008-02-10  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54843         Needed when ELEMENT is #defined to 'some_type *'.
54844
54845 2008-02-10  Jim Meyering  <meyering@redhat.com>
54846
54847         New script and module: useless-if-before-free
54848         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54849         * build-aux/useless-if-before-free: New file.
54850         * modules/useless-if-before-free: New file.
54851
54852         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54853
54854         xstrtol_error: Fix typo.
54855         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54856         s/exit_failure/exit_status/.
54857
54858 2008-02-09  Jim Meyering  <meyering@redhat.com>
54859
54860         New script and module: gitlog-to-changelog
54861         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54862         * modules/gitlog-to-changelog: New file.
54863         * build-aux/gitlog-to-changelog: New file.
54864
54865 2008-02-08  Jim Meyering  <meyering@redhat.com>
54866
54867         Avoid two "parameter unused" warnings.
54868         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54869         Mark "st" as used.
54870
54871         Use "git COMMAND", not "git-COMMAND".
54872         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54873         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54874         * build-aux/git-version-gen: Use "git status", not "git-status".
54875
54876 2008-02-07  Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54879         Avoids a crash on Windows Vista.
54880         Reported by Adam Strzelecki <ono@java.pl> via
54881         Simon Josefsson <simon@josefsson.org>.
54882
54883 2008-02-06  Bruno Haible  <bruno@clisp.org>
54884
54885         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54886         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54887         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54889         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54891         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54892         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54894         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54897         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54898         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54899         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54900         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54901         left-adjust flag.
54902         * tests/test-snprintf-posix.h (test_function): Likewise.
54903         * tests/test-sprintf-posix.h (test_function): Likewise.
54904         * tests/test-vasprintf-posix.c (test_function): Likewise.
54905         * doc/posix-functions/fprintf.texi: Update.
54906         * doc/posix-functions/printf.texi: Update.
54907         * doc/posix-functions/snprintf.texi: Update.
54908         * doc/posix-functions/sprintf.texi: Update.
54909         * doc/posix-functions/vfprintf.texi: Update.
54910         * doc/posix-functions/vprintf.texi: Update.
54911         * doc/posix-functions/vsnprintf.texi: Update.
54912         * doc/posix-functions/vsprintf.texi: Update.
54913         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54914
54915 2008-02-06  Bruno Haible  <bruno@clisp.org>
54916
54917         Fix bug introduced on 2008-01-26.
54918         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54919
54920 2008-02-06  Bruno Haible  <bruno@clisp.org>
54921
54922         Fix bug introduced on 2007-06-10.
54923         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54924         !NEED_PRINTF_FLAG_ZERO.
54925
54926 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54927
54928         getloadavg: use libperfstat on AIX5
54929         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54930
54931 2008-02-03  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/diffseq.h: Add comments about required #includes.
54934         Reported by Michael Biggs <gnulib@doubleplum.net>.
54935
54936 2008-02-01  Bruno Haible  <bruno@clisp.org>
54937
54938         * users.txt: Add gnuit.
54939
54940 2008-01-31  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/md4.c (set_uint32): Mark as inline.
54943         * lib/md5.c (set_uint32): Likewise.
54944         * lib/sha1.c (set_uint32): Likewise.
54945         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54946         * m4/md5.m4 (gl_MD5): Likewise.
54947         * m4/sha1.m4 (gl_SHA1): Likewise.
54948
54949 2008-01-31  Jim Meyering  <meyering@redhat.com>
54950
54951         Use "sizeof VAR", rather than a literal "4".
54952         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54953         * lib/md4.c (md4_read_ctx): Likewise.
54954         * lib/sha1.c (sha1_read_ctx): Likewise.
54955
54956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54957
54958         * tests/test-sha1.c: New file, based on test-md5.c.
54959
54960         * modules/crypto/sha1-tests: New file.
54961
54962 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54963
54964         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54965
54966 2008-01-31  Jim Meyering  <meyering@redhat.com>
54967
54968         Prefer "sizeof v" over the equivalent "4".
54969         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54970         * lib/md5.c (set_uint32): Likewise.
54971         * lib/sha1.c (set_uint32): Likewise.
54972
54973 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54974
54975         * lib/sha1.c (set_uint32): Mark function as static.
54976
54977 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54978
54979         md2: clarify comments to say that alignment is not required.
54980         * lib/md2.h: Remove warning about alignment in comment.
54981         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54982         never been required.
54983
54984 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54985
54986         md4: adapt alignment constraint fix from sha1.
54987         * lib/md4.c (set_uint32): New function, from sha1.c
54988         (md4_read_ctx): Use it.
54989         (md4_finish_ctx): Doc fix.
54990         * lib/md4.h: Doc fix.
54991
54992 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54993
54994         md5: adapt alignment constraint fix from sha1.
54995         * lib/md5.c (set_uint32): New function, from sha1.c
54996         (md5_read_ctx): Use it.
54997         (md5_finish_ctx): Doc fix.
54998         * lib/md5.h: Doc fix.
54999
55000 2008-01-30  Peter Palfrader  <weasel@debian.org>
55001
55002         sha1: remove the result buffer alignment constraint
55003         * lib/sha1.c (set_uint32): New function.
55004         (sha1_read_ctx): Rewrite to remove the result buffer alignment
55005         constraint.
55006         (sha1_finish_ctx): Remove comment warning about alignment constraint.
55007         * lib/sha1.h: Likewise.
55008
55009 2008-01-30  Andreas Schwab  <schwab@suse.de>
55010             Bruno Haible  <bruno@clisp.org>
55011
55012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55013         correct definition of LDBL_MIN_EXP.
55014
55015 2008-01-30  Karl Berry  <karl@gnu.org>
55016
55017         * config/srclist-update: try to preserve x bit on updates.
55018         * config/srclistvars.sh: update for karl.
55019
55020 2008-01-29  Jim Meyering  <meyering@redhat.com>
55021
55022         vasnprintf.c: Avoid warning about unused label
55023         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55024         "overflow" label definition and associated code with the
55025         same cpp condition that guards the sole use of that label.
55026
55027 2008-01-26  Bruno Haible  <bruno@clisp.org>
55028
55029         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55030         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55031         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55032         * lib/isnanl-nolibm.h (isnanl): Likewise.
55033         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55034
55035 2008-01-26  Bruno Haible  <bruno@clisp.org>
55036
55037         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55038         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55039
55040 2008-01-26  Bruno Haible  <bruno@clisp.org>
55041
55042         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55043         GCC >= 4.0 built-in.
55044         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55045
55046 2008-01-26  Bruno Haible  <bruno@clisp.org>
55047
55048         Rename isnan, applicable to 'double' only, to isnand.
55049         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55050         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55051         (configure.ac): Update.
55052         (Include): Replace "isnan.h" with "isnand.h".
55053         * m4/isnand.m4: Renamed from m4/isnan.m4.
55054         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55055         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55056         instead of isnan.c.
55057         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55058         instead of HAVE_ISNAN_IN_LIBC.
55059         (isnand): Renamed from isnan.
55060         * lib/isnand.c: New file.
55061         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55062         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55063         (Makefile.am): Update.
55064         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55065         Include isnand.h instead of isnan.h.
55066         (main): Test isnand instead of isnan.
55067         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55068         isnan-nolibm.
55069         * modules/frexp (Depends-on): Likewise.
55070         * modules/frexp-tests (Depends-on): Likewise.
55071         * modules/frexp-nolibm (Depends-on): Likewise.
55072         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55073         * modules/isfinite (Depends-on): Likewise.
55074         * modules/round-tests (Depends-on): Likewise.
55075         * modules/signbit (Depends-on): Likewise.
55076         * modules/signbit-tests (Depends-on): Likewise.
55077         * modules/snprintf-posix (Depends-on): Likewise.
55078         * modules/sprintf-posix (Depends-on): Likewise.
55079         * modules/trunc-tests (Depends-on): Likewise.
55080         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55081         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55082         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55083         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55084         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55085         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55086         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55087         * modules/vasnprintf-posix (Depends-on): Likewise.
55088         * modules/vasprintf-posix (Depends-on): Likewise.
55089         * modules/vfprintf-posix (Depends-on): Likewise.
55090         * modules/vsnprintf-posix (Depends-on): Likewise.
55091         * modules/vsprintf-posix (Depends-on): Likewise.
55092         * lib/frexp.c: Include isnand.h instead of isnan.h.
55093         (ISNAN): Set to isnand instead of isnan.
55094         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55095         (gl_isfinited): Use isnand instead of isnan.
55096         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55097         (gl_signbitd): Use isnand instead of isnan.
55098         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55099         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55100         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55101         (main): Use isnand instead of isnan.
55102         * tests/test-round1.c: Include isnand.h.
55103         (main): Use isnand instead of isnan.
55104         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55105         (ISNAN): Set to isnand instead of isnan.
55106         * tests/test-trunc1.c: Include isnand.h.
55107         (main): Use isnand instead of isnan.
55108         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55109         (equal): Use isnand instead of isnan.
55110         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55111         isnand-nolibm.
55112         * NEWS: Mention the change.
55113
55114 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55115             Bruno Haible  <bruno@clisp.org>
55116
55117         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55118         the GCC builtins for signbits are present and set
55119         REPLACE_SIGNBIT_USING_GCC if so.
55120         * lib/math.in.h (signbit): Define using GCC builtins if
55121         REPLACE_SIGNBIT_USING_GCC is set.
55122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55123         REPLACE_SIGNBIT_USING_GCC.
55124         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55125
55126 2008-01-25  Jim Meyering  <meyering@redhat.com>
55127
55128         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55129         * lib/poll.c: Include <config.h>, not "config.h".
55130         * tests/test-getaddrinfo.c: Likewise.
55131
55132 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55133
55134         * modules/sockets-tests: New file.
55135
55136 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55137
55138         * modules/sockets: New module, can be used to call WSA_Startup and
55139         WSA_Cleanup when needed.
55140
55141         * lib/sockets.h, lib/sockets.c: New files.
55142
55143         * m4/sockets.m4: New file.
55144
55145         * tests/test-sockets.c: New file.
55146
55147 2008-01-19  Bruno Haible  <bruno@clisp.org>
55148
55149         * doc/posix-headers: Renamed from doc/headers.
55150         * doc/posix-functions: Renamed from doc/functions.
55151         * doc/gnulib.texi: Update.
55152
55153 2008-01-19  Bruno Haible  <bruno@clisp.org>
55154
55155         * doc/glibc-functions/strcasestr.texi: Include contents of
55156         doc/functions/strcasestr.texi, fixing the list of platforms.
55157         * doc/functions/strcasestr.texi: Remove file.
55158
55159 2008-01-19  Bruno Haible  <bruno@clisp.org>
55160
55161         * doc/glibc-functions/memmem.texi: Include contents of
55162         doc/functions/memmem.texi.
55163         * doc/functions/memmem.texi: Remove file.
55164
55165 2008-01-18  Bruno Haible  <bruno@clisp.org>
55166
55167         * doc/glibc-functions/*.texi: New files.
55168         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55169         to use the new files.
55170
55171 2008-01-17  Bruno Haible  <bruno@clisp.org>
55172
55173         * tests/test-gethostname.c (main): Fix printf statement.
55174
55175 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55176
55177         * modules/gethostname-tests: New file.
55178
55179         * tests/test-gethostname.c: New file.
55180
55181 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55182
55183         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55184         used by the UNAME case.  Reported by Bruno Haible
55185         <bruno@clisp.org>.
55186
55187 2008-01-17  Eric Blake  <ebb9@byu.net>
55188
55189         Convert c-strcasestr to be more efficient.
55190         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55191         (Depends-on): Add c-strcase, remove malloca, strnlen.
55192         * tests/test-c-strcasestr.c (main): Enhance test.
55193         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55194
55195 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55196
55197         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55198         Use it in creating po/Makevars.
55199
55200 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55201
55202         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55203         Applications that requires it should initialize libgcrypt
55204         manually.
55205
55206 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55207
55208         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55209
55210 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         Fix problem with getdate on mingw32 reported by Simon Josefsson
55213         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55214         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55215         tzname", when deciding whether to declare tzname.
55216         * lib/strftime.c (tzname): Likewise.
55217
55218 2008-01-15  Bruno Haible  <bruno@clisp.org>
55219
55220         Work around a MacOS X 10.5 bug in frexpl().
55221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55222         * doc/functions/frexpl.texi: Document the bug.
55223         Reported by Elias Pipping <pipping@gentoo.org>.
55224
55225 2008-01-14  Eric Blake  <ebb9@byu.net>
55226
55227         Touch up previous patch.
55228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55229         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55230
55231         Convert strcasestr module to use Two-Way algorithm.
55232         * modules/strcasestr-simple: New module, based on the old
55233         strcasestr, but with Two-Way rather than KMP.
55234         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55235         * lib/string.in.h (rpl_strcasestr): Declare.
55236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55237         performance.
55238         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55239         * modules/string (Makefile.am): Support strcasestr.
55240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55241         * modules/strcasestr-tests (Depends-on): Check for alarm.
55242         * tests/test-strcasestr.c: Augment test.
55243         * lib/str-two-way.h: Clean up stray macro.
55244         * NEWS: Document new module.
55245         * MODULES.html.sh (string handling): Likewise.
55246         * doc/functions/strcasestr.texi: New file.
55247         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55248         here, since it is not a POSIX function.
55249
55250 2008-01-14  Colin Watson  <cjwatson@debian.org>
55251             Bruno Haible  <bruno@clisp.org>
55252
55253         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55254         works fine; if not, set REPLACE_STRSIGNAL.
55255         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55257         REPLACE_STRSIGNAL.
55258         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55259         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55260         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55261
55262 2008-01-14  Bruno Haible  <bruno@clisp.org>
55263
55264         * modules/strsignal (Include): Change to <string.h>.
55265
55266 2008-01-14  Colin Watson  <cjwatson@debian.org>
55267
55268         * modules/argp (Notice): Add a notice recommending to change
55269         XGETTEXT_OPTIONS.
55270         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55271
55272 2008-01-13  Colin Watson  <cjwatson@debian.org>
55273
55274         * modules/strsignal-tests: New file.
55275         * tests/test-strsignal.c: New file.
55276
55277         * lib/strsignal.c: New file, from glibc with modifications.
55278         * lib/siglist.h: New file, from glibc with modifications.
55279         * lib/string.in.h (strsignal): New declaration.
55280         * m4/strsignal.m4: New file.
55281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55282         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55283         * modules/strsignal: New file.
55284         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55285         HAVE_DECL_STRSIGNAL.
55286
55287 2008-01-13  Bruno Haible  <bruno@clisp.org>
55288
55289         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
55290         locale encoding is not ASCII. Needed for OpenBSD 4.0.
55291         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55292         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55293
55294 2008-01-13  Bruno Haible  <bruno@clisp.org>
55295
55296         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55297         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55298         * lib/argp.h (__attribute__): Likewise.
55299         * lib/c-stack.c (__attribute__): Likewise.
55300         * lib/error.h (__attribute__): Likewise.
55301         * lib/fts.c (__attribute__): Likewise.
55302         * lib/openat.h (__attribute__): Likewise.
55303         * lib/stdio.in.h (__attribute__): Likewise.
55304         * lib/string.in.h (__attribute__): Likewise.
55305         * lib/utimens.c (__attribute__): Likewise.
55306         * lib/vasnprintf.h (__attribute__): Likewise.
55307         * lib/xalloc.h (__attribute__): Likewise.
55308         * lib/xprintf.h (__attribute__): Likewise.
55309         * lib/xstrtol.h (__attribute__): Likewise.
55310         * lib/xvasprintf.h (__attribute__): Likewise.
55311
55312 2008-01-12  Bruno Haible  <bruno@clisp.org>
55313
55314         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55315         * doc/glibc-headers/a.out.texi: New file.
55316         * doc/glibc-headers/aliases.texi: New file.
55317         * doc/glibc-headers/alloca.texi: New file.
55318         * doc/glibc-headers/ar.texi: New file.
55319         * doc/glibc-headers/argp.texi: New file.
55320         * doc/glibc-headers/argz.texi: New file.
55321         * doc/glibc-headers/byteswap.texi: New file.
55322         * doc/glibc-headers/crypt.texi: New file.
55323         * doc/glibc-headers/endian.texi: New file.
55324         * doc/glibc-headers/envz.texi: New file.
55325         * doc/glibc-headers/err.texi: New file.
55326         * doc/glibc-headers/error.texi: New file.
55327         * doc/glibc-headers/execinfo.texi: New file.
55328         * doc/glibc-headers/fpu_control.texi: New file.
55329         * doc/glibc-headers/fstab.texi: New file.
55330         * doc/glibc-headers/fts.texi: New file.
55331         * doc/glibc-headers/getopt.texi: New file.
55332         * doc/glibc-headers/ieee754.texi: New file.
55333         * doc/glibc-headers/ifaddrs.texi: New file.
55334         * doc/glibc-headers/libintl.texi: New file.
55335         * doc/glibc-headers/mcheck.texi: New file.
55336         * doc/glibc-headers/mntent.texi: New file.
55337         * doc/glibc-headers/obstack.texi: New file.
55338         * doc/glibc-headers/paths.texi: New file.
55339         * doc/glibc-headers/printf.texi: New file.
55340         * doc/glibc-headers/pty.texi: New file.
55341         * doc/glibc-headers/resolv.texi: New file.
55342         * doc/glibc-headers/shadow.texi: New file.
55343         * doc/glibc-headers/sysexits.texi: New file.
55344         * doc/glibc-headers/ttyent.texi: New file.
55345
55346 2008-01-12  Jim Meyering  <meyering@redhat.com>
55347
55348         announce-gen: emit Gnulib's git-based version string.
55349         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55350         New option --gnulib-version=V, where V is expected to be
55351         the output of running git describe in the gnulib directory.
55352         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55353         not useful, and plan to stop publishing an xdelta file with each
55354         coreutils release.
55355
55356         * build-aux/announce-gen: Also check for lzma-compressed files.
55357
55358 2008-01-11  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-memmem.c (main): Increase maximum allowed time.
55361         * tests/test-strstr.c (main): Likewise.
55362
55363 2008-01-11  Bruno Haible  <bruno@clisp.org>
55364
55365         * doc/functions/memmem.texi: Add more precisions about platforms.
55366         * doc/functions/strstr.texi: Likewise.
55367
55368 2008-01-10  Eric Blake  <ebb9@byu.net>
55369
55370         * m4/strstr.m4: Delete cruft from copy-n-paste.
55371         Reported by Bruno Haible.
55372
55373 2008-01-10  Bruno Haible  <bruno@clisp.org>
55374
55375         Make c-strstr rely on strstr.
55376         * lib/c-strstr.c: Don't include str-kmp.h.
55377         (c_strstr): Define in terms of strstr.
55378         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55379         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55380
55381 2008-01-10  Bruno Haible  <bruno@clisp.org>
55382
55383         * doc/gnulib.texi (String Functions in C Locale): New section.
55384         * doc/c-ctype.texi: New file.
55385         * doc/c-strcase.texi: New file.
55386         * doc/c-strcaseeq.texi: New file.
55387         * doc/c-strcasestr.texi: New file.
55388         * doc/c-strstr.texi: New file.
55389         * doc/c-strtod.texi: New file.
55390         * doc/c-strtold.texi: New file.
55391
55392 2008-01-10  Eric Blake  <ebb9@byu.net>
55393
55394         * lib/relocatable.h: Fix a comment.
55395
55396 2008-01-10  Eric Blake  <ebb9@byu.net>
55397
55398         Share two-way algorithm.
55399         * lib/str-two-way.h: New file, merged from...
55400         * lib/memmem.c: ...here...
55401         * lib/strstr.c: ...and here.
55402         * modules/memmem (Files): Use it.
55403         * modules/strstr (Files): Likewise.
55404
55405         Avoid quadratic strstr implementations.
55406         * lib/strstr.c: New file.
55407         * m4/strstr.m4: Likewise.
55408         * modules/strstr: Likewise.
55409         * modules/strstr-tests: Likewise.
55410         * tests/test-strstr.c: Likewise.
55411         * lib/string.in.h (rpl_strstr): Declare.
55412         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55414         * modules/string (Makefile.am): Likewise.
55415         * MODULES.html.sh (string handling): Mention new module.
55416         * doc/functions/strstr.texi (strstr): Document the bug.
55417
55418 2008-01-10  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/relocatable.h (relocate): State whether result is freshly
55421         allocated or not.
55422         * lib/relocatable.c (relocate): Return a freshly allocated string
55423         instead of a pointer to a privately held string.
55424         Reported by Sylvain Beucler <beuc@gnu.org>.
55425
55426 2008-01-10  Colin Watson  <cjwatson@debian.org>
55427
55428         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55429         s/S_ISNLK/S_ISLNK/.
55430
55431 2008-01-09  Bruno Haible  <bruno@clisp.org>
55432
55433         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55434         and other files.
55435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55436         if it's only a guess.
55437         * modules/memmem: Simplify by depending on memmem-simple.
55438
55439 2008-01-09  Bruno Haible  <bruno@clisp.org>
55440
55441         Work around OpenBSD 4.0 tdelete() bug.
55442         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55443         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55444         macros and don't redefine the enum values.
55445         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55446         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55447         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55448
55449 2008-01-09  Bruno Haible  <bruno@clisp.org>
55450
55451         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55452         (main): Don't perform the tests if setlocale did not install a UTF-8
55453         locale. Needed on OpenBSD 4.0.
55454         * modules/wcwidth-tests (Depends-on): Add localcharset.
55455
55456 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55459         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55460         * NEWS: announce this.
55461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55462
55463 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55464         and Eric Blake  <ebb9@byu.net>
55465
55466         Add memmem-simple module.
55467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55468         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55469         * modules/memmem-simple: New file.
55470         * modules/memmem (Description): Tweak.
55471         * MODULES.html.sh (string handling): Mention new module.
55472         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55473         addressed by memmem-simple.
55474         * NEWS: Document the difference.
55475
55476 2008-01-09  Eric Blake  <ebb9@byu.net>
55477
55478         Give gcc some memmem optimization hints.
55479         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55480         (strcasestr): Declare as pure.
55481         * modules/memmem (Maintainer): Claim my implementation.
55482
55483 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55484
55485         Support AIX 6.1 and higher.
55486         * build-aux/config.libpath: Likewise.
55487         * build-aux/config.rpath: Likewise.
55488
55489 2008-01-08  Jim Meyering  <meyering@redhat.com>
55490             Bruno Haible  <bruno@clisp.org>
55491
55492         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55493         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55494         Reported by Peter Fales in
55495         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55496
55497 2008-01-08  Bruno Haible  <bruno@clisp.org>
55498
55499         * modules/unictype/category-of (Depends-on): Add
55500         unictype/category-none.
55501         * modules/unictype/category-and-tests (Depends-on): Add
55502         unictype/category-{L,N,Lu,Nd}.
55503         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55504         * modules/unictype/category-or-tests (Depends-on): Add
55505         unictype/category-{L,N}.
55506         * modules/unictype/category-name-tests (Depends-on): Add
55507         unictype/category-{Z,Nl}.
55508         Reported by Simon Josefsson.
55509
55510 2008-01-08  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55513         convention better.
55514         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55515         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55516         Reported by Peter Miller <millerp@canb.auug.org.au>.
55517
55518 2008-01-08  Eric Blake  <ebb9@byu.net>
55519
55520         Rewrite memmem to guarantee linear complexity without malloc.
55521         * lib/memmem.c (memmem): Use Two-Way rather than
55522         Knuth-Morris-Pratt, to allow O(1) space usage.
55523         (critical_factorization, two_way_short_needle)
55524         (two_way_long_needle): New functions.
55525         (knuth_morris_pratt): Delete.
55526         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55527         Add stdint.
55528         * tests/test-memmem.c (main): Add tests for periodic needle and
55529         sublinear performance.
55530         * doc/functions/memmem.texi (memmem): Document other deficiencies
55531         in cygwin and older glibc.
55532
55533 2008-01-08  Bruno Haible  <bruno@clisp.org>
55534
55535         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55536         augmentation.
55537
55538 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55539
55540         Add a configure time option: --disable-acl.
55541         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55542         AC_ARG_ENABLE(acl).
55543
55544 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55545
55546         * tests/test-localename.c: Don't include obsolete "setenv.h".
55547
55548         * modules/localename-tests (Depends-on): Need unsetenv.
55549
55550 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55551
55552         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55553
55554 2008-01-06  Colin Watson  <cjwatson@debian.org>
55555
55556         * users.txt: Add man-db.
55557
55558 2008-01-07  Bruno Haible  <bruno@clisp.org>
55559
55560         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55561         previous section name.
55562
55563 2008-01-07  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/progname.c (set_program_name): Don't strip off a leading
55566         "lt-" prefix outside a .libs directory.
55567         Suggested by Paul Eggert.
55568
55569 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55570             Bruno Haible  <bruno@clisp.org>
55571
55572         Improve memory cleanup in 'relocatable' module.
55573         * lib/relocatable.h (compute_curr_prefix): Change return type to
55574         'char *'.
55575         * lib/relocatable.c (compute_curr_prefix): Change return type to
55576         'char *'. Free curr_installdir after use.
55577         (relocate): Free curr_prefix_better after use.
55578         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55579
55580 2008-01-01  Bruno Haible  <bruno@clisp.org>
55581
55582         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55583         failure on older glibc systems.
55584         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55585
55586 2008-01-05  Eric Blake  <ebb9@byu.net>
55587
55588         Avoid quadratic system memmem.
55589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55590         Reported by Ralf Wildenhues.
55591
55592         Fix memmem test for mingw.
55593         * modules/memmem-tests (configure.ac): Check for alarm.
55594         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55595         it.
55596         * doc/functions/memmem.texi: New file.
55597         * doc/gnulib.texi (Function Substitutes): Add memmem.
55598         Reported by Bruno Haible.
55599
55600 2008-01-04  Bruno Haible  <bruno@clisp.org>
55601
55602         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55603         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55604         gl_HEADER_STRING_H_DEFAULTS.
55605
55606 2008-01-04  Eric Blake  <ebb9@byu.net>
55607
55608         Shorten duration of memmem test.
55609         * tests/test-memmem.c (main): Use alarm to declare failure if test
55610         is taking too long.
55611         Reported by Ralf Wildenhues.
55612
55613 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55614
55615         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55616         string, needed by strerror.
55617
55618 2008-01-03  Colin Watson  <cjwatson@debian.org>
55619             Bruno Haible  <bruno@clisp.org>
55620
55621         * doc/gnulib-tool.texi (Localization): New section.
55622
55623 2008-01-02  Bruno Haible  <bruno@clisp.org>
55624
55625         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55626         variables to 'unsigned char *' type.
55627         Reported by Paul Eggert.
55628
55629 2008-01-02  Jim Meyering  <jim@meyering.net>
55630
55631         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55632
55633 2007-12-31  Jim Meyering  <jim@meyering.net>
55634
55635         Avoid use of private FTS type name.
55636         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55637
55638 2007-12-30  Karl Berry  <karl@gnu.org>
55639
55640         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55641         work around defect in Texinfo and/or the standalone Info browser.
55642
55643 2007-12-30  Bruno Haible  <bruno@clisp.org>
55644
55645         Unify 5 copies of the KMP code.
55646         * lib/str-kmp.h: New file.
55647         * lib/c-strcasestr.c: Include str-kmp.h.
55648         (knuth_morris_pratt): Remove function.
55649         (c_strcasestr): Update.
55650         * lib/c-strstr.c: Include str-kmp.h.
55651         (knuth_morris_pratt): Remove function.
55652         (c_strcasestr): Update.
55653         * lib/mbscasestr.c: Include str-kmp.h.
55654         (knuth_morris_pratt_unibyte): Remove function.
55655         * lib/mbsstr.c: Include str-kmp.h.
55656         (knuth_morris_pratt_unibyte): Remove function.
55657         * lib/strcasestr.c: Include str-kmp.h.
55658         (knuth_morris_pratt): Remove function.
55659         (strcasestr): Update.
55660         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55661         * modules/c-strstr (Files): Likewise.
55662         * modules/mbscasestr (Files): Likewise.
55663         * modules/mbsstr (Files): Likewise.
55664         * modules/strcasestr (Files): Likewise.
55665         Suggested by Paul Eggert.
55666
55667 2007-12-30  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55670         defined.
55671
55672 2007-12-30  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/xmalloca.h: Include xalloc.h.
55675         (xnmalloca): New macro.
55676
55677 2007-12-30  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/malloca.h (nmalloca): New macro.
55680         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55681         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55682         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55683         knuth_morris_pratt_multibyte): Likewise.
55684         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55685         knuth_morris_pratt_multibyte): Likewise.
55686         * lib/memmem.c (knuth_morris_pratt): Likewise.
55687         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55688
55689 2007-12-25  Bruno Haible  <bruno@clisp.org>
55690
55691         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55692         * lib/glob.c: Don't include openat.h.
55693         (link_exists2_p): Add back the code that deals with the
55694         !GLOB_ALTDIRFUNC case.
55695         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55696         let it do the filename concatenation.
55697         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55698         * modules/glob (Depends-on): Remove openat.
55699
55700 2007-12-31  Bruno Haible  <bruno@clisp.org>
55701
55702         * modules/dirfd (License): Change to LGPLv2+.
55703         Approved by Jim Meyering.
55704
55705 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55706
55707         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55708         when multiplying M by sizeof (size_t).
55709
55710 2007-12-10  Martin Lambers  <marlam@marlam.de>
55711
55712         Override getpagesize on mingw.
55713         * lib/getpagesize.c: New file.
55714         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55715         * modules/getpagesize (Files): Add lib/getpagesize.c.
55716         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55718         REPLACE_GETPAGESIZE.
55719         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55720
55721 2007-12-25  Bruno Haible  <bruno@clisp.org>
55722
55723         * modules/localcharset (Notice): New field.
55724         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55725         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55726
55727 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55728             Bruno Haible  <bruno@clisp.org>
55729
55730         Avoid using the syntax symbol() in formatted documentation.
55731         * MODULES.html.sh (func_module): When replacing symbol() with a
55732         hyperlink, remove the parentheses. Show an error if some remain.
55733         Recognize and render the '...' syntax.
55734         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55735         Rework. Add paragraph about GCC's inlining.
55736         * doc/alloca.texi: Likewise.
55737         * doc/error.texi: Remove parentheses from symbol reference.
55738         * doc/gnulib-intro.texi: Likewise.
55739         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55740         * modules/fnmatch (Description): Reword to say "the ... function".
55741         * modules/full-read (Description): Likewise.
55742         * modules/full-write (Description): Likewise.
55743         * modules/safe-read (Description): Likewise.
55744         * modules/safe-write (Description): Likewise.
55745         * modules/strchrnul (Description): Likewise.
55746         * modules/trim (Description): Likewise.
55747         * modules/error (Description): Remove parentheses from symbol
55748         references.
55749         * modules/verror (Description): Likewise.
55750         Reported by Karl Berry.
55751
55752 2007-12-25  Bruno Haible  <bruno@clisp.org>
55753
55754         Fixup after 2007-10-16 commit.
55755         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55756
55757 2007-12-24  Bruno Haible  <bruno@clisp.org>
55758
55759         Make --enable-relocatable work with DESTDIR.
55760         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55761         to compute installdir from destprog.
55762         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55763         also set the RELOC_DESTDIR variable.
55764         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55765
55766 2007-12-24  Bruno Haible  <bruno@clisp.org>
55767
55768         Fix link error due to xalloc_die().
55769         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55770         of xreadlink.
55771         * lib/relocwrapper.c: Update comments.
55772         * build-aux/install-reloc: Remove xreadlink.c from file list.
55773         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55774         xreadlink.c.
55775         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55776
55777 2007-12-24  Bruno Haible  <bruno@clisp.org>
55778
55779         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55780         * lib/setenv.h: Remove file.
55781         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55782         lib/setenv.h.
55783         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55784         (Depends-on): Add stdlib.
55785         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55786         gl_FUNC_UNSETENV.
55787         (Include): Replace setenv.h with <stdlib.h>.
55788         * modules/unsetenv: New file.
55789         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55790         * lib/unsetenv.c: Include <stdlib.h> first.
55791         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55792         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55793         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55794         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55795         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55796         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55798         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55799         * doc/functions/unsetenv.texi: Update.
55800         * modules/xsetenv (Depends-on): Add unsetenv.
55801         * modules/getdate (Depends-on): Likewise.
55802         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55803         * lib/xsetenv.c: Don't include setenv.h.
55804         * lib/getdate.y: Likewise.
55805         * lib/relocwrapper.c: Likewise.
55806         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55807         (Depends-on): Add stdlib.
55808         * NEWS: Mention the changes.
55809         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55810
55811 2007-12-23  Bruno Haible  <bruno@clisp.org>
55812
55813         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55814         indentation.
55815
55816 2007-12-23  Bruno Haible  <bruno@clisp.org>
55817
55818         * lib/c-strcasestr.c: Add more comments.
55819         * lib/c-strstr.c: Likewise.
55820         * lib/mbscasestr.c: Likewise.
55821         * lib/mbsstr.c: Likewise.
55822         * lib/strcasestr.c: Likewise.
55823         * lib/memmem.c: Likewise.
55824
55825 2007-12-23  Bruno Haible  <bruno@clisp.org>
55826
55827         * tests/test-memmem.c: Include <string.h> first.
55828
55829 2007-12-22  Bruno Haible  <bruno@clisp.org>
55830
55831         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55832         the contents of $testsbase.
55833         Reported by Ralf Wildenhues.
55834
55835 2007-12-22  Bruno Haible  <bruno@clisp.org>
55836
55837         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55838         two variables local_ldadd_before, local_ldadd_last.
55839
55840 2007-12-20  Eric Blake  <ebb9@byu.net>
55841
55842         Work around circular library issue when cross-compiling.
55843         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55844         that progname.o does not need to pull in rpl_memcmp.
55845
55846 2007-12-19  Eric Blake  <ebb9@byu.net>
55847
55848         Fix memmem to avoid O(n^2) worst-case complexity.
55849         * lib/memmem.c (knuth_morris_pratt): New function.
55850         (memmem): Use it if first few naive iterations fail.
55851         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55852         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55853         * modules/memchr (License): Likewise.
55854         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55855         malloca.
55856         * tests/test-memmem.c: Rewrite, borrowing ideas from
55857         test-mbsstr1.c; the old version wouldn't even compile!
55858         * modules/memmem-tests: New file.
55859         * lib/string.in.h (rpl_memmem): Add declaration.
55860         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55862         REPLACE_MEMMEM.
55863
55864 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55867         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55868         before any system include files, and undef after them all.  This
55869         should fix a problem on VMS reported by John E. Malmberg in
55870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55871
55872 2007-12-17  Eric Blake  <ebb9@byu.net>
55873
55874         Revert addition of verify, for BSD/OS.
55875         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55876         can't handle large files, for the sake of obsolete platforms.
55877         * modules/fseeko (Depends-on): Remove verify.
55878         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55879         * doc/functions/ftello.texi (ftello): Likewise.
55880         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55881         Reported by Larry Jones.
55882
55883 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55884
55885         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55886         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55887
55888 2007-12-17  Jim Meyering  <meyering@redhat.com>
55889
55890         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55891         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55892         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55893         * modules/getcwd (Depends-on): Add openat.
55894         Reported by Petr Salinger.
55895
55896 2007-12-17  Bruno Haible  <bruno@clisp.org>
55897
55898         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55899         avoid a segmentation fault of the configure test on x86_64 systems.
55900
55901 2007-12-15  Jim Meyering  <meyering@redhat.com>
55902
55903         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55904
55905 2007-12-13  Eric Blake  <ebb9@byu.net>
55906
55907         Another fseek test.
55908         * tests/test-fseek.c (main): Also test ungetc handling.
55909         * tests/test-fseeko.c (main): Likewise.
55910         * modules/fseeko (Depends-on): Add verify.
55911         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55912         large.
55913         Reported by Larry Jones.
55914
55915         Fix fseeko on mingw.
55916         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55917         seek.
55918
55919         Beef up fseek tests.
55920         * tests/test-fseek.c (main): Also test eof handling.
55921         * tests/test-fseeko.c (main): Likewise.
55922         Reported by Larry Jones.
55923
55924 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55925
55926         Fix fseeko on BSD-based platforms.
55927         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55928         successful seek.
55929
55930 2007-12-12  Eric Blake  <ebb9@byu.net>
55931
55932         Allow circular dependency of separate libtests.a
55933         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55934         when use_libtests.
55935
55936 2007-12-11  Eric Blake  <ebb9@byu.net>
55937
55938         Fix bug with -0.0L in previous patch.
55939         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55940         * tests/test-isnan.c (main): Also test on zeroes.
55941         * tests/test-isnanf.c (main): Likewise.
55942         * tests/test-isnanl.h (main): Likewise.
55943
55944         Detect pseudo-denormals on x86 even when cross-compiling.
55945         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55946         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55947         invalid bit patterns that happen to satisfy ==.
55948
55949         Avoid link failures with separate libtests.a.
55950         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55951         last, to satisfy circular dependencies.
55952
55953 2007-12-11  Eric Blake  <ebb9@byu.net>
55954         and Bruno Haible  <bruno@clisp.org>
55955
55956         Fix OpenBSD 4.0 <float.h> handling of long double.
55957         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55958         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55959         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55960
55961 2007-12-11  Jim Meyering  <meyering@redhat.com>
55962
55963         * users.txt: Add libvirt.
55964
55965         Support versions of autoconf prior to 2.59c.
55966         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55967         if it is not already defined.
55968
55969 2007-12-09  Bruno Haible  <bruno@clisp.org>
55970
55971         Let 'gnulib-tool --import' collect sources needed for the tests in
55972         tests/ rather than in lib/.
55973         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55974         argument. If true, add rules to generate libtests.a, and put libtests.a
55975         into $(LDADD). Consider source files in subdirectories and set
55976         uses_subdirs.
55977         (func_emit_initmacro_start, func_emit_initmacro_end,
55978         func_emit_initmacro_done): Pass all arguments explicitly.
55979         (func_import): Determine two module lists main_modules,
55980         testsrelated_modules. Determine use_libtests. Determine two variables
55981         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55982         instead of just sed_transform_lib_file. Determine two variables
55983         main_files and testsrelated_files. Compute 'files' as the union of
55984         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55985         func_add_or_update. In the generated gnulib-comp.m4, collect the
55986         object files for tests/ in different variables than those for lib/.
55987         Substitute LIBTESTS_LIBDEPS.
55988         (func_create_testdir): Combine the uses_subdirs results from
55989         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55990
55991 2007-12-09  Bruno Haible  <bruno@clisp.org>
55992
55993         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55994         the build-aux directory.
55995
55996 2007-12-09  Bruno Haible  <bruno@clisp.org>
55997
55998         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55999         introduced on 2006-09-09.
56000
56001 2007-12-07  Jim Meyering  <meyering@redhat.com>
56002
56003         Let these macros work also with autoconf-2.59.
56004         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
56005         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
56006         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56007
56008 2007-12-06  Jim Meyering  <meyering@redhat.com>
56009
56010         Avoid a configure-time syntax error in gl_FUNC_ACL.
56011         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56012         function in each branch, before testing the cache variable.
56013
56014 2007-12-04  Eric Blake  <ebb9@byu.net>
56015
56016         Make scripts executable.
56017         * build-aux/config.guess: Add execute permissions.
56018         * build-aux/config.sub: Likewise.
56019         * build-aux/gendocs.sh: Likewise.
56020
56021         Fix frexp on mingw.
56022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56023         cross-compiling.
56024         * doc/functions/frexp.texi (frexp): Document the bug.
56025
56026         Make cygwin fseeko check more reliable.
56027         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56028         version numbers, rather than unrelated feature check.
56029         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56030         * doc/functions/ftello.texi (ftello): Likewise.
56031         Reported by Bruno Haible.
56032
56033         * m4/strerror.m4: Bump version number.
56034
56035 2007-12-03  Bruno Haible  <bruno@clisp.org>
56036
56037         * doc/functions/mprotect.texi: Mention the mingw problem.
56038
56039 2007-12-03  Eric Blake  <ebb9@byu.net>
56040
56041         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56042         REPLACE_STRERROR is initialized before this macro.
56043
56044 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56045
56046         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56047         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56048         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56049         put -lsec in even for programs other than 'ls'.  This fixes a problem
56050         for gettext reported by Bruno Haible in
56051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56052         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56053         Add support for Solaris 10.  This isn't efficient, but should get the
56054         job done for now.
56055
56056 2007-12-03  James Youngman  <jay@gnu.org>
56057
56058         * doc/regexprops-generic.texi: change "an close-group" to "a
56059         close-group" and "illegal" to "not allowed".
56060
56061 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56062
56063         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56064         pr_byname.h. Needed for the rare case when the maintainer has done
56065         "make maintainer-clean" in the source directory and then attempts a
56066         build outside the source directory.
56067         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56068         scripts_byname.h.
56069
56070 2007-12-02  Martin Lambers <marlam@marlam.de>
56071             Bruno Haible  <bruno@clisp.org>
56072
56073         * lib/getpagesize.h: Remove file.
56074         * lib/unistd.in.h: Include declaration of getpagesize here.
56075         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56076         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56077         HAVE_SYS_PARAM_H.
56078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56079         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56080         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56081         (Depends-on): Add unistd.
56082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56083         (Include): Use <unistd.h> instead of getpagesize.h.
56084         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56085         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56086         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56087         gl_GETPAGESIZE invocation, already handled by module dependency.
56088         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56089
56090 2007-12-02  Bruno Haible  <bruno@clisp.org>
56091
56092         * modules/strings-tests: New file.
56093         * tests/test-strings.c: New file.
56094
56095         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56096         * lib/strings.in.h: New file.
56097         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56098         * m4/strings_h.m4: New file.
56099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56100         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56101         * modules/strings: New file.
56102         * modules/string (Makefile.am): Update.
56103         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56104         Reported by Karl Berry.
56105
56106 2007-12-01  Eric Blake  <ebb9@byu.net>
56107
56108         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56109         accomodate fix in cygwin 1.5.25.
56110
56111 2007-12-01  Jim Meyering  <meyering@redhat.com>
56112
56113         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56114         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56115         that would inhibit utf8-optimization of a regexp containing line-
56116         or buffer-anchors, e.g., `^', `$'.
56117
56118 2007-11-30  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56121         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56122         glthread_recursive_lock_init.
56123         * lib/lock.c (glthread_recursive_lock_init)
56124         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56125         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56126
56127 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         New function qset_acl, like set_acl but with syscall semantics.
56130         * lib/acl.h (qset_acl): New decl.
56131         * lib/acl.c (qset_acl): New function.
56132         (set_acl): Use new function.  Use more-consistent diagnostics.
56133
56134 2007-11-28  Jim Meyering  <meyering@redhat.com>
56135
56136         * modules/physmem (License): Change from GPL to LGPLv2+.
56137
56138 2007-11-26  Bruno Haible  <bruno@clisp.org>
56139
56140         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56141         'long double' type has excess precision.
56142         Reported by Jim Meyering in
56143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56144
56145 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56146
56147         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56148         Sync from <http://gnu.org/licenses>.
56149         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56150         with license text from same location.
56151         * doc/maintain.texi, doc/standards.texi:  Sync from
56152         <http://savannah.gnu.org/projects/gnustandards>.
56153
56154 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56155         and Jim Meyering  <meyering@redhat.com>
56156
56157         Adjust getdate' grammar to accept a slightly more regular language.
56158         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56159         Before, the former was rejected.
56160         * lib/getdate.y (digits_to_date_time): New function, factored
56161         out of ...
56162         (number): ...here.  Just call digits_to_date_time.
56163         (hybrid): New non-terminal to handle an <unsigned number,
56164         signed relative offset> sequence consistently.
56165
56166 2007-11-18  Jim Meyering  <meyering@redhat.com>
56167
56168         Pull my changes from coreutils:
56169         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56170         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56171         use of $gnulib_tool_option_extras, so that it's separated from the
56172         preceding argument.
56173
56174         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56175         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56176         parent destination directories before copying a file into place.
56177
56178 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56179
56180         bootstrap: work also with 4-argument variant of AC_INIT
56181         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56182
56183 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         Port test-getaddrinfo to Solaris.
56186         Problem reported by Bruno Haible in
56187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56188         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56189         explanation of setting 'hints'.
56190         Don't reject an implementation merely because it returns EAI_SERVICE.
56191         (EAI_SERVICE): Define to 0 if not defined.
56192
56193 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         The license of gnu-make and posix-shell is now "GPLed build tool".
56196         * modules/gnu-make (License): Likewise.
56197         * modules/posix-shell (License): Likewise.
56198
56199         New module posix-shell, for determining a POSIX shell
56200         or perhaps something that is close enough to a POSIX shell.
56201         * m4/posix-shell.m4: New file.
56202         * modules/posix-shell: New file.
56203
56204         * MODULES.html.sh: Mention new module.
56205
56206         New module gnu-make, for determining whether we're using GNU Make.
56207         * m4/gnu-make.m4: New file.
56208         * modules/gnu-make: New file.
56209         * MODULES.html.sh: Mention new module.
56210
56211 2007-11-14  Jim Meyering  <meyering@redhat.com>
56212
56213         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56214         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56215         use this macro to create a function _definition_.
56216         Remove useless "#undef ARGMATCH_DIE".
56217
56218 2007-11-14  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/config.charset: Update for OpenBSD 4.1.
56221         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56222
56223 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56224
56225         Document 64-bit #if problems in stdint.texi.
56226         * doc/headers/stdint.texi (stdint.h): Mention problems with
56227         64-bit-#if, and how to work around them.
56228
56229         Don't insist on 'long long int' support in the preprocessor.  It
56230         breaks too many things.  For example, PRIdMAX still uses a 'long
56231         long int' format with the latest Sun compiler, even though
56232         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56233         preprocessor problem.  This causes the latest coreutils to dump
56234         core on Solaris 10 sparc with the Sun C compiler.
56235         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56236         the troublesome expressions at configure-time, not at #if-time.
56237         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56238         preprocessor.
56239         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56240         compile-time C checks, done at 'configure'-time.
56241         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56242         * modules/inttypes (Makefile): Substitute the new symbols that
56243         gl_INTTYPES_H now generates.
56244         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56245
56246 2007-11-12  Bruno Haible  <bruno@clisp.org>
56247
56248         Tests for Unicode character classification functions.
56249
56250         * modules/unictype/bidicategory-byname-tests: New file.
56251         * modules/unictype/bidicategory-name-tests: New file.
56252         * modules/unictype/bidicategory-of-tests: New file.
56253         * modules/unictype/bidicategory-test-tests: New file.
56254         * modules/unictype/block-list-tests: New file.
56255         * modules/unictype/block-of-tests: New file.
56256         * modules/unictype/block-test-tests: New file.
56257         * modules/unictype/category-C-tests: New file.
56258         * modules/unictype/category-Cc-tests: New file.
56259         * modules/unictype/category-Cf-tests: New file.
56260         * modules/unictype/category-Cn-tests: New file.
56261         * modules/unictype/category-Co-tests: New file.
56262         * modules/unictype/category-Cs-tests: New file.
56263         * modules/unictype/category-L-tests: New file.
56264         * modules/unictype/category-Ll-tests: New file.
56265         * modules/unictype/category-Lm-tests: New file.
56266         * modules/unictype/category-Lo-tests: New file.
56267         * modules/unictype/category-Lt-tests: New file.
56268         * modules/unictype/category-Lu-tests: New file.
56269         * modules/unictype/category-M-tests: New file.
56270         * modules/unictype/category-Mc-tests: New file.
56271         * modules/unictype/category-Me-tests: New file.
56272         * modules/unictype/category-Mn-tests: New file.
56273         * modules/unictype/category-N-tests: New file.
56274         * modules/unictype/category-Nd-tests: New file.
56275         * modules/unictype/category-Nl-tests: New file.
56276         * modules/unictype/category-No-tests: New file.
56277         * modules/unictype/category-P-tests: New file.
56278         * modules/unictype/category-Pc-tests: New file.
56279         * modules/unictype/category-Pd-tests: New file.
56280         * modules/unictype/category-Pe-tests: New file.
56281         * modules/unictype/category-Pf-tests: New file.
56282         * modules/unictype/category-Pi-tests: New file.
56283         * modules/unictype/category-Po-tests: New file.
56284         * modules/unictype/category-Ps-tests: New file.
56285         * modules/unictype/category-S-tests: New file.
56286         * modules/unictype/category-Sc-tests: New file.
56287         * modules/unictype/category-Sk-tests: New file.
56288         * modules/unictype/category-Sm-tests: New file.
56289         * modules/unictype/category-So-tests: New file.
56290         * modules/unictype/category-Z-tests: New file.
56291         * modules/unictype/category-Zl-tests: New file.
56292         * modules/unictype/category-Zp-tests: New file.
56293         * modules/unictype/category-Zs-tests: New file.
56294         * modules/unictype/category-and-not-tests: New file.
56295         * modules/unictype/category-and-tests: New file.
56296         * modules/unictype/category-byname-tests: New file.
56297         * modules/unictype/category-name-tests: New file.
56298         * modules/unictype/category-none-tests: New file.
56299         * modules/unictype/category-of-tests: New file.
56300         * modules/unictype/category-or-tests: New file.
56301         * modules/unictype/category-test-withtable-tests: New file.
56302         * modules/unictype/combining-class-tests: New file.
56303         * modules/unictype/ctype-alnum-tests: New file.
56304         * modules/unictype/ctype-alpha-tests: New file.
56305         * modules/unictype/ctype-blank-tests: New file.
56306         * modules/unictype/ctype-cntrl-tests: New file.
56307         * modules/unictype/ctype-digit-tests: New file.
56308         * modules/unictype/ctype-graph-tests: New file.
56309         * modules/unictype/ctype-lower-tests: New file.
56310         * modules/unictype/ctype-print-tests: New file.
56311         * modules/unictype/ctype-punct-tests: New file.
56312         * modules/unictype/ctype-space-tests: New file.
56313         * modules/unictype/ctype-upper-tests: New file.
56314         * modules/unictype/ctype-xdigit-tests: New file.
56315         * modules/unictype/decimal-digit-tests: New file.
56316         * modules/unictype/digit-tests: New file.
56317         * modules/unictype/mirror-tests: New file.
56318         * modules/unictype/numeric-tests: New file.
56319         * modules/unictype/property-alphabetic-tests: New file.
56320         * modules/unictype/property-ascii-hex-digit-tests: New file.
56321         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56322         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56323         * modules/unictype/property-bidi-block-separator-tests: New file.
56324         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56325         * modules/unictype/property-bidi-common-separator-tests: New file.
56326         * modules/unictype/property-bidi-control-tests: New file.
56327         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56328         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56329         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56330         * modules/unictype/property-bidi-european-digit-tests: New file.
56331         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56332         * modules/unictype/property-bidi-left-to-right-tests: New file.
56333         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56334         * modules/unictype/property-bidi-other-neutral-tests: New file.
56335         * modules/unictype/property-bidi-pdf-tests: New file.
56336         * modules/unictype/property-bidi-segment-separator-tests: New file.
56337         * modules/unictype/property-bidi-whitespace-tests: New file.
56338         * modules/unictype/property-byname-tests: New file.
56339         * modules/unictype/property-combining-tests: New file.
56340         * modules/unictype/property-composite-tests: New file.
56341         * modules/unictype/property-currency-symbol-tests: New file.
56342         * modules/unictype/property-dash-tests: New file.
56343         * modules/unictype/property-decimal-digit-tests: New file.
56344         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56345         * modules/unictype/property-deprecated-tests: New file.
56346         * modules/unictype/property-diacritic-tests: New file.
56347         * modules/unictype/property-extender-tests: New file.
56348         * modules/unictype/property-format-control-tests: New file.
56349         * modules/unictype/property-grapheme-base-tests: New file.
56350         * modules/unictype/property-grapheme-extend-tests: New file.
56351         * modules/unictype/property-grapheme-link-tests: New file.
56352         * modules/unictype/property-hex-digit-tests: New file.
56353         * modules/unictype/property-hyphen-tests: New file.
56354         * modules/unictype/property-id-continue-tests: New file.
56355         * modules/unictype/property-id-start-tests: New file.
56356         * modules/unictype/property-ideographic-tests: New file.
56357         * modules/unictype/property-ids-binary-operator-tests: New file.
56358         * modules/unictype/property-ids-trinary-operator-tests: New file.
56359         * modules/unictype/property-ignorable-control-tests: New file.
56360         * modules/unictype/property-iso-control-tests: New file.
56361         * modules/unictype/property-join-control-tests: New file.
56362         * modules/unictype/property-left-of-pair-tests: New file.
56363         * modules/unictype/property-line-separator-tests: New file.
56364         * modules/unictype/property-logical-order-exception-tests: New file.
56365         * modules/unictype/property-lowercase-tests: New file.
56366         * modules/unictype/property-math-tests: New file.
56367         * modules/unictype/property-non-break-tests: New file.
56368         * modules/unictype/property-not-a-character-tests: New file.
56369         * modules/unictype/property-numeric-tests: New file.
56370         * modules/unictype/property-other-alphabetic-tests: New file.
56371         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56372         * modules/unictype/property-other-grapheme-extend-tests: New file.
56373         * modules/unictype/property-other-id-continue-tests: New file.
56374         * modules/unictype/property-other-id-start-tests: New file.
56375         * modules/unictype/property-other-lowercase-tests: New file.
56376         * modules/unictype/property-other-math-tests: New file.
56377         * modules/unictype/property-other-uppercase-tests: New file.
56378         * modules/unictype/property-paired-punctuation-tests: New file.
56379         * modules/unictype/property-paragraph-separator-tests: New file.
56380         * modules/unictype/property-pattern-syntax-tests: New file.
56381         * modules/unictype/property-pattern-white-space-tests: New file.
56382         * modules/unictype/property-private-use-tests: New file.
56383         * modules/unictype/property-punctuation-tests: New file.
56384         * modules/unictype/property-quotation-mark-tests: New file.
56385         * modules/unictype/property-radical-tests: New file.
56386         * modules/unictype/property-sentence-terminal-tests: New file.
56387         * modules/unictype/property-soft-dotted-tests: New file.
56388         * modules/unictype/property-space-tests: New file.
56389         * modules/unictype/property-terminal-punctuation-tests: New file.
56390         * modules/unictype/property-test-tests: New file.
56391         * modules/unictype/property-titlecase-tests: New file.
56392         * modules/unictype/property-unassigned-code-value-tests: New file.
56393         * modules/unictype/property-unified-ideograph-tests: New file.
56394         * modules/unictype/property-uppercase-tests: New file.
56395         * modules/unictype/property-variation-selector-tests: New file.
56396         * modules/unictype/property-white-space-tests: New file.
56397         * modules/unictype/property-xid-continue-tests: New file.
56398         * modules/unictype/property-xid-start-tests: New file.
56399         * modules/unictype/property-zero-width-tests: New file.
56400         * modules/unictype/scripts-tests: New file.
56401         * modules/unictype/syntax-c-ident-tests: New file.
56402         * modules/unictype/syntax-c-whitespace-tests: New file.
56403         * modules/unictype/syntax-java-ident-tests: New file.
56404         * modules/unictype/syntax-java-whitespace-tests: New file.
56405         * tests/unictype/test-bidi_byname.c: New file.
56406         * tests/unictype/test-bidi_name.c: New file.
56407         * tests/unictype/test-bidi_of.c: New file.
56408         * tests/unictype/test-bidi_test.c: New file.
56409         * tests/unictype/test-block_list.c: New file.
56410         * tests/unictype/test-block_of.c: New file.
56411         * tests/unictype/test-block_test.c: New file.
56412         * tests/unictype/test-categ_and.c: New file.
56413         * tests/unictype/test-categ_and_not.c: New file.
56414         * tests/unictype/test-categ_byname.c: New file.
56415         * tests/unictype/test-categ_name.c: New file.
56416         * tests/unictype/test-categ_none.c: New file.
56417         * tests/unictype/test-categ_of.c: New file.
56418         * tests/unictype/test-categ_or.c: New file.
56419         * tests/unictype/test-categ_test_withtable.c: New file.
56420         * tests/unictype/test-combining.c: New file.
56421         * tests/unictype/test-decdigit.c: New file.
56422         * tests/unictype/test-digit.c: New file.
56423         * tests/unictype/test-mirror.c: New file.
56424         * tests/unictype/test-numeric.c: New file.
56425         * tests/unictype/test-pr_byname.c: New file.
56426         * tests/unictype/test-pr_test.c: New file.
56427         * tests/unictype/test-predicate-part1.h: New file.
56428         * tests/unictype/test-predicate-part2.h: New file.
56429         * tests/unictype/test-scripts.c: New file.
56430         * tests/unictype/test-sy_c_ident.c: New file.
56431         * tests/unictype/test-sy_java_ident.c: New file.
56432
56433         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56434         for Unicode 5.0.0.
56435         * tests/unictype/test-categ_Cc.c: Likewise.
56436         * tests/unictype/test-categ_Cf.c: Likewise.
56437         * tests/unictype/test-categ_Cn.c: Likewise.
56438         * tests/unictype/test-categ_Co.c: Likewise.
56439         * tests/unictype/test-categ_Cs.c: Likewise.
56440         * tests/unictype/test-categ_L.c: Likewise.
56441         * tests/unictype/test-categ_Ll.c: Likewise.
56442         * tests/unictype/test-categ_Lm.c: Likewise.
56443         * tests/unictype/test-categ_Lo.c: Likewise.
56444         * tests/unictype/test-categ_Lt.c: Likewise.
56445         * tests/unictype/test-categ_Lu.c: Likewise.
56446         * tests/unictype/test-categ_M.c: Likewise.
56447         * tests/unictype/test-categ_Mc.c: Likewise.
56448         * tests/unictype/test-categ_Me.c: Likewise.
56449         * tests/unictype/test-categ_Mn.c: Likewise.
56450         * tests/unictype/test-categ_N.c: Likewise.
56451         * tests/unictype/test-categ_Nd.c: Likewise.
56452         * tests/unictype/test-categ_Nl.c: Likewise.
56453         * tests/unictype/test-categ_No.c: Likewise.
56454         * tests/unictype/test-categ_P.c: Likewise.
56455         * tests/unictype/test-categ_Pc.c: Likewise.
56456         * tests/unictype/test-categ_Pd.c: Likewise.
56457         * tests/unictype/test-categ_Pe.c: Likewise.
56458         * tests/unictype/test-categ_Pf.c: Likewise.
56459         * tests/unictype/test-categ_Pi.c: Likewise.
56460         * tests/unictype/test-categ_Po.c: Likewise.
56461         * tests/unictype/test-categ_Ps.c: Likewise.
56462         * tests/unictype/test-categ_S.c: Likewise.
56463         * tests/unictype/test-categ_Sc.c: Likewise.
56464         * tests/unictype/test-categ_Sk.c: Likewise.
56465         * tests/unictype/test-categ_Sm.c: Likewise.
56466         * tests/unictype/test-categ_So.c: Likewise.
56467         * tests/unictype/test-categ_Z.c: Likewise.
56468         * tests/unictype/test-categ_Zl.c: Likewise.
56469         * tests/unictype/test-categ_Zp.c: Likewise.
56470         * tests/unictype/test-categ_Zs.c: Likewise.
56471         * tests/unictype/test-ctype_alnum.c: Likewise.
56472         * tests/unictype/test-ctype_alpha.c: Likewise.
56473         * tests/unictype/test-ctype_blank.c: Likewise.
56474         * tests/unictype/test-ctype_cntrl.c: Likewise.
56475         * tests/unictype/test-ctype_digit.c: Likewise.
56476         * tests/unictype/test-ctype_graph.c: Likewise.
56477         * tests/unictype/test-ctype_lower.c: Likewise.
56478         * tests/unictype/test-ctype_print.c: Likewise.
56479         * tests/unictype/test-ctype_punct.c: Likewise.
56480         * tests/unictype/test-ctype_space.c: Likewise.
56481         * tests/unictype/test-ctype_upper.c: Likewise.
56482         * tests/unictype/test-ctype_xdigit.c: Likewise.
56483         * tests/unictype/test-decdigit.h: Likewise.
56484         * tests/unictype/test-digit.h: Likewise.
56485         * tests/unictype/test-numeric.h: Likewise.
56486         * tests/unictype/test-pr_alphabetic.c: Likewise.
56487         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56488         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56489         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56490         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56491         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56492         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56493         * tests/unictype/test-pr_bidi_control.c: Likewise.
56494         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56495         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56496         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56497         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56498         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56499         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56500         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56501         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56502         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56503         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56504         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56505         * tests/unictype/test-pr_combining.c: Likewise.
56506         * tests/unictype/test-pr_composite.c: Likewise.
56507         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56508         * tests/unictype/test-pr_dash.c: Likewise.
56509         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56510         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56511         * tests/unictype/test-pr_deprecated.c: Likewise.
56512         * tests/unictype/test-pr_diacritic.c: Likewise.
56513         * tests/unictype/test-pr_extender.c: Likewise.
56514         * tests/unictype/test-pr_format_control.c: Likewise.
56515         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56516         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56517         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56518         * tests/unictype/test-pr_hex_digit.c: Likewise.
56519         * tests/unictype/test-pr_hyphen.c: Likewise.
56520         * tests/unictype/test-pr_id_continue.c: Likewise.
56521         * tests/unictype/test-pr_id_start.c: Likewise.
56522         * tests/unictype/test-pr_ideographic.c: Likewise.
56523         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56524         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56525         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56526         * tests/unictype/test-pr_iso_control.c: Likewise.
56527         * tests/unictype/test-pr_join_control.c: Likewise.
56528         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56529         * tests/unictype/test-pr_line_separator.c: Likewise.
56530         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56531         * tests/unictype/test-pr_lowercase.c: Likewise.
56532         * tests/unictype/test-pr_math.c: Likewise.
56533         * tests/unictype/test-pr_non_break.c: Likewise.
56534         * tests/unictype/test-pr_not_a_character.c: Likewise.
56535         * tests/unictype/test-pr_numeric.c: Likewise.
56536         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56537         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56538         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56539         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56540         * tests/unictype/test-pr_other_id_start.c: Likewise.
56541         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56542         * tests/unictype/test-pr_other_math.c: Likewise.
56543         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56544         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56545         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56546         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56547         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56548         * tests/unictype/test-pr_private_use.c: Likewise.
56549         * tests/unictype/test-pr_punctuation.c: Likewise.
56550         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56551         * tests/unictype/test-pr_radical.c: Likewise.
56552         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56553         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56554         * tests/unictype/test-pr_space.c: Likewise.
56555         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56556         * tests/unictype/test-pr_titlecase.c: Likewise.
56557         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56558         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56559         * tests/unictype/test-pr_uppercase.c: Likewise.
56560         * tests/unictype/test-pr_variation_selector.c: Likewise.
56561         * tests/unictype/test-pr_white_space.c: Likewise.
56562         * tests/unictype/test-pr_xid_continue.c: Likewise.
56563         * tests/unictype/test-pr_xid_start.c: Likewise.
56564         * tests/unictype/test-pr_zero_width.c: Likewise.
56565         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56566         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56567
56568 2007-11-12  Bruno Haible  <bruno@clisp.org>
56569
56570         Unicode character classification functions.
56571         * lib/unictype.h: New file.
56572         * modules/unictype/base: New file.
56573         * modules/unictype/category-L: New file.
56574         * modules/unictype/category-Lu: New file.
56575         * modules/unictype/category-Ll: New file.
56576         * modules/unictype/category-Lt: New file.
56577         * modules/unictype/category-Lm: New file.
56578         * modules/unictype/category-Lo: New file.
56579         * modules/unictype/category-M: New file.
56580         * modules/unictype/category-Mn: New file.
56581         * modules/unictype/category-Mc: New file.
56582         * modules/unictype/category-Me: New file.
56583         * modules/unictype/category-N: New file.
56584         * modules/unictype/category-Nd: New file.
56585         * modules/unictype/category-Nl: New file.
56586         * modules/unictype/category-No: New file.
56587         * modules/unictype/category-P: New file.
56588         * modules/unictype/category-Pc: New file.
56589         * modules/unictype/category-Pd: New file.
56590         * modules/unictype/category-Ps: New file.
56591         * modules/unictype/category-Pe: New file.
56592         * modules/unictype/category-Pi: New file.
56593         * modules/unictype/category-Pf: New file.
56594         * modules/unictype/category-Po: New file.
56595         * modules/unictype/category-S: New file.
56596         * modules/unictype/category-Sm: New file.
56597         * modules/unictype/category-Sc: New file.
56598         * modules/unictype/category-Sk: New file.
56599         * modules/unictype/category-So: New file.
56600         * modules/unictype/category-Z: New file.
56601         * modules/unictype/category-Zs: New file.
56602         * modules/unictype/category-Zl: New file.
56603         * modules/unictype/category-Zp: New file.
56604         * modules/unictype/category-C: New file.
56605         * modules/unictype/category-Cc: New file.
56606         * modules/unictype/category-Cf: New file.
56607         * modules/unictype/category-Cs: New file.
56608         * modules/unictype/category-Co: New file.
56609         * modules/unictype/category-Cn: New file.
56610         * modules/unictype/category-or: New file.
56611         * modules/unictype/category-of: New file.
56612         * modules/unictype/category-test: New file.
56613         * modules/unictype/category-test-withtable: New file.
56614         * modules/unictype/category-byname: New file.
56615         * modules/unictype/category-none: New file.
56616         * modules/unictype/category-and: New file.
56617         * modules/unictype/category-and-not: New file.
56618         * modules/unictype/category-name: New file.
56619         * modules/unictype/combining-class: New file.
56620         * modules/unictype/category-all: New file.
56621         * modules/unictype/bidicategory-all: New file.
56622         * modules/unictype/bidicategory-byname: New file.
56623         * modules/unictype/bidicategory-name: New file.
56624         * modules/unictype/bidicategory-of: New file.
56625         * modules/unictype/bidicategory-test: New file.
56626         * modules/unictype/decimal-digit: New file.
56627         * modules/unictype/digit: New file.
56628         * modules/unictype/numeric: New file.
56629         * modules/unictype/mirror: New file.
56630         * modules/unictype/property-white-space: New file.
56631         * modules/unictype/property-alphabetic: New file.
56632         * modules/unictype/property-other-alphabetic: New file.
56633         * modules/unictype/property-not-a-character: New file.
56634         * modules/unictype/property-default-ignorable-code-point: New file.
56635         * modules/unictype/property-other-default-ignorable-code-point: New
56636         file.
56637         * modules/unictype/property-deprecated: New file.
56638         * modules/unictype/property-logical-order-exception: New file.
56639         * modules/unictype/property-variation-selector: New file.
56640         * modules/unictype/property-private-use: New file.
56641         * modules/unictype/property-unassigned-code-value: New file.
56642         * modules/unictype/property-uppercase: New file.
56643         * modules/unictype/property-other-uppercase: New file.
56644         * modules/unictype/property-lowercase: New file.
56645         * modules/unictype/property-other-lowercase: New file.
56646         * modules/unictype/property-titlecase: New file.
56647         * modules/unictype/property-soft-dotted: New file.
56648         * modules/unictype/property-id-start: New file.
56649         * modules/unictype/property-other-id-start: New file.
56650         * modules/unictype/property-id-continue: New file.
56651         * modules/unictype/property-other-id-continue: New file.
56652         * modules/unictype/property-xid-start: New file.
56653         * modules/unictype/property-xid-continue: New file.
56654         * modules/unictype/property-pattern-white-space: New file.
56655         * modules/unictype/property-pattern-syntax: New file.
56656         * modules/unictype/property-join-control: New file.
56657         * modules/unictype/property-grapheme-base: New file.
56658         * modules/unictype/property-grapheme-extend: New file.
56659         * modules/unictype/property-other-grapheme-extend: New file.
56660         * modules/unictype/property-grapheme-link: New file.
56661         * modules/unictype/property-bidi-control: New file.
56662         * modules/unictype/property-bidi-left-to-right: New file.
56663         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56664         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56665         * modules/unictype/property-bidi-european-digit: New file.
56666         * modules/unictype/property-bidi-eur-num-separator: New file.
56667         * modules/unictype/property-bidi-eur-num-terminator: New file.
56668         * modules/unictype/property-bidi-arabic-digit: New file.
56669         * modules/unictype/property-bidi-common-separator: New file.
56670         * modules/unictype/property-bidi-block-separator: New file.
56671         * modules/unictype/property-bidi-segment-separator: New file.
56672         * modules/unictype/property-bidi-whitespace: New file.
56673         * modules/unictype/property-bidi-non-spacing-mark: New file.
56674         * modules/unictype/property-bidi-boundary-neutral: New file.
56675         * modules/unictype/property-bidi-pdf: New file.
56676         * modules/unictype/property-bidi-embedding-or-override: New file.
56677         * modules/unictype/property-bidi-other-neutral: New file.
56678         * modules/unictype/property-hex-digit: New file.
56679         * modules/unictype/property-ascii-hex-digit: New file.
56680         * modules/unictype/property-ideographic: New file.
56681         * modules/unictype/property-unified-ideograph: New file.
56682         * modules/unictype/property-radical: New file.
56683         * modules/unictype/property-ids-binary-operator: New file.
56684         * modules/unictype/property-ids-trinary-operator: New file.
56685         * modules/unictype/property-zero-width: New file.
56686         * modules/unictype/property-space: New file.
56687         * modules/unictype/property-non-break: New file.
56688         * modules/unictype/property-iso-control: New file.
56689         * modules/unictype/property-format-control: New file.
56690         * modules/unictype/property-dash: New file.
56691         * modules/unictype/property-hyphen: New file.
56692         * modules/unictype/property-punctuation: New file.
56693         * modules/unictype/property-line-separator: New file.
56694         * modules/unictype/property-paragraph-separator: New file.
56695         * modules/unictype/property-quotation-mark: New file.
56696         * modules/unictype/property-sentence-terminal: New file.
56697         * modules/unictype/property-terminal-punctuation: New file.
56698         * modules/unictype/property-currency-symbol: New file.
56699         * modules/unictype/property-math: New file.
56700         * modules/unictype/property-other-math: New file.
56701         * modules/unictype/property-paired-punctuation: New file.
56702         * modules/unictype/property-left-of-pair: New file.
56703         * modules/unictype/property-combining: New file.
56704         * modules/unictype/property-composite: New file.
56705         * modules/unictype/property-decimal-digit: New file.
56706         * modules/unictype/property-numeric: New file.
56707         * modules/unictype/property-diacritic: New file.
56708         * modules/unictype/property-extender: New file.
56709         * modules/unictype/property-ignorable-control: New file.
56710         * modules/unictype/property-test: New file.
56711         * modules/unictype/property-byname: New file.
56712         * modules/unictype/property-all: New file.
56713         * modules/unictype/scripts: New file.
56714         * modules/unictype/scripts-all: New file.
56715         * modules/unictype/block-of: New file.
56716         * modules/unictype/block-test: New file.
56717         * modules/unictype/block-list: New file.
56718         * modules/unictype/block-all: New file.
56719         * modules/unictype/syntax-c-whitespace: New file.
56720         * modules/unictype/syntax-java-whitespace: New file.
56721         * modules/unictype/syntax-c-ident: New file.
56722         * modules/unictype/syntax-java-ident: New file.
56723         * modules/unictype/ctype-alnum: New file.
56724         * modules/unictype/ctype-alpha: New file.
56725         * modules/unictype/ctype-cntrl: New file.
56726         * modules/unictype/ctype-digit: New file.
56727         * modules/unictype/ctype-graph: New file.
56728         * modules/unictype/ctype-lower: New file.
56729         * modules/unictype/ctype-print: New file.
56730         * modules/unictype/ctype-punct: New file.
56731         * modules/unictype/ctype-space: New file.
56732         * modules/unictype/ctype-upper: New file.
56733         * modules/unictype/ctype-xdigit: New file.
56734         * modules/unictype/ctype-blank: New file.
56735         * lib/unictype/bidi_byname.c: New file.
56736         * lib/unictype/bidi_name.c: New file.
56737         * lib/unictype/bidi_of.c: New file.
56738         * lib/unictype/bidi_test.c: New file.
56739         * lib/unictype/bitmap.h: New file.
56740         * lib/unictype/block_test.c: New file.
56741         * lib/unictype/blocks.c: New file.
56742         * lib/unictype/categ_C.c: New file.
56743         * lib/unictype/categ_Cc.c: New file.
56744         * lib/unictype/categ_Cf.c: New file.
56745         * lib/unictype/categ_Cn.c: New file.
56746         * lib/unictype/categ_Co.c: New file.
56747         * lib/unictype/categ_Cs.c: New file.
56748         * lib/unictype/categ_L.c: New file.
56749         * lib/unictype/categ_Ll.c: New file.
56750         * lib/unictype/categ_Lm.c: New file.
56751         * lib/unictype/categ_Lo.c: New file.
56752         * lib/unictype/categ_Lt.c: New file.
56753         * lib/unictype/categ_Lu.c: New file.
56754         * lib/unictype/categ_M.c: New file.
56755         * lib/unictype/categ_Mc.c: New file.
56756         * lib/unictype/categ_Me.c: New file.
56757         * lib/unictype/categ_Mn.c: New file.
56758         * lib/unictype/categ_N.c: New file.
56759         * lib/unictype/categ_Nd.c: New file.
56760         * lib/unictype/categ_Nl.c: New file.
56761         * lib/unictype/categ_No.c: New file.
56762         * lib/unictype/categ_P.c: New file.
56763         * lib/unictype/categ_Pc.c: New file.
56764         * lib/unictype/categ_Pd.c: New file.
56765         * lib/unictype/categ_Pe.c: New file.
56766         * lib/unictype/categ_Pf.c: New file.
56767         * lib/unictype/categ_Pi.c: New file.
56768         * lib/unictype/categ_Po.c: New file.
56769         * lib/unictype/categ_Ps.c: New file.
56770         * lib/unictype/categ_S.c: New file.
56771         * lib/unictype/categ_Sc.c: New file.
56772         * lib/unictype/categ_Sk.c: New file.
56773         * lib/unictype/categ_Sm.c: New file.
56774         * lib/unictype/categ_So.c: New file.
56775         * lib/unictype/categ_Z.c: New file.
56776         * lib/unictype/categ_Zl.c: New file.
56777         * lib/unictype/categ_Zp.c: New file.
56778         * lib/unictype/categ_Zs.c: New file.
56779         * lib/unictype/categ_and.c: New file.
56780         * lib/unictype/categ_and_not.c: New file.
56781         * lib/unictype/categ_byname.c: New file.
56782         * lib/unictype/categ_name.c: New file.
56783         * lib/unictype/categ_none.c: New file.
56784         * lib/unictype/categ_of.c: New file.
56785         * lib/unictype/categ_or.c: New file.
56786         * lib/unictype/categ_test.c: New file.
56787         * lib/unictype/combining.c: New file.
56788         * lib/unictype/ctype_alnum.c: New file.
56789         * lib/unictype/ctype_alpha.c: New file.
56790         * lib/unictype/ctype_blank.c: New file.
56791         * lib/unictype/ctype_cntrl.c: New file.
56792         * lib/unictype/ctype_digit.c: New file.
56793         * lib/unictype/ctype_graph.c: New file.
56794         * lib/unictype/ctype_lower.c: New file.
56795         * lib/unictype/ctype_print.c: New file.
56796         * lib/unictype/ctype_punct.c: New file.
56797         * lib/unictype/ctype_space.c: New file.
56798         * lib/unictype/ctype_upper.c: New file.
56799         * lib/unictype/ctype_xdigit.c: New file.
56800         * lib/unictype/decdigit.c: New file.
56801         * lib/unictype/digit.c: New file.
56802         * lib/unictype/identsyntaxmap.h: New file.
56803         * lib/unictype/mirror.c: New file.
56804         * lib/unictype/numeric.c: New file.
56805         * lib/unictype/pr_alphabetic.c: New file.
56806         * lib/unictype/pr_ascii_hex_digit.c: New file.
56807         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56808         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56809         * lib/unictype/pr_bidi_block_separator.c: New file.
56810         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56811         * lib/unictype/pr_bidi_common_separator.c: New file.
56812         * lib/unictype/pr_bidi_control.c: New file.
56813         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56814         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56815         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56816         * lib/unictype/pr_bidi_european_digit.c: New file.
56817         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56818         * lib/unictype/pr_bidi_left_to_right.c: New file.
56819         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56820         * lib/unictype/pr_bidi_other_neutral.c: New file.
56821         * lib/unictype/pr_bidi_pdf.c: New file.
56822         * lib/unictype/pr_bidi_segment_separator.c: New file.
56823         * lib/unictype/pr_bidi_whitespace.c: New file.
56824         * lib/unictype/pr_byname.c: New file.
56825         * lib/unictype/pr_byname.gperf: New file.
56826         * lib/unictype/pr_combining.c: New file.
56827         * lib/unictype/pr_composite.c: New file.
56828         * lib/unictype/pr_currency_symbol.c: New file.
56829         * lib/unictype/pr_dash.c: New file.
56830         * lib/unictype/pr_decimal_digit.c: New file.
56831         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56832         * lib/unictype/pr_deprecated.c: New file.
56833         * lib/unictype/pr_diacritic.c: New file.
56834         * lib/unictype/pr_extender.c: New file.
56835         * lib/unictype/pr_format_control.c: New file.
56836         * lib/unictype/pr_grapheme_base.c: New file.
56837         * lib/unictype/pr_grapheme_extend.c: New file.
56838         * lib/unictype/pr_grapheme_link.c: New file.
56839         * lib/unictype/pr_hex_digit.c: New file.
56840         * lib/unictype/pr_hyphen.c: New file.
56841         * lib/unictype/pr_id_continue.c: New file.
56842         * lib/unictype/pr_id_start.c: New file.
56843         * lib/unictype/pr_ideographic.c: New file.
56844         * lib/unictype/pr_ids_binary_operator.c: New file.
56845         * lib/unictype/pr_ids_trinary_operator.c: New file.
56846         * lib/unictype/pr_ignorable_control.c: New file.
56847         * lib/unictype/pr_iso_control.c: New file.
56848         * lib/unictype/pr_join_control.c: New file.
56849         * lib/unictype/pr_left_of_pair.c: New file.
56850         * lib/unictype/pr_line_separator.c: New file.
56851         * lib/unictype/pr_logical_order_exception.c: New file.
56852         * lib/unictype/pr_lowercase.c: New file.
56853         * lib/unictype/pr_math.c: New file.
56854         * lib/unictype/pr_non_break.c: New file.
56855         * lib/unictype/pr_not_a_character.c: New file.
56856         * lib/unictype/pr_numeric.c: New file.
56857         * lib/unictype/pr_other_alphabetic.c: New file.
56858         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56859         * lib/unictype/pr_other_grapheme_extend.c: New file.
56860         * lib/unictype/pr_other_id_continue.c: New file.
56861         * lib/unictype/pr_other_id_start.c: New file.
56862         * lib/unictype/pr_other_lowercase.c: New file.
56863         * lib/unictype/pr_other_math.c: New file.
56864         * lib/unictype/pr_other_uppercase.c: New file.
56865         * lib/unictype/pr_paired_punctuation.c: New file.
56866         * lib/unictype/pr_paragraph_separator.c: New file.
56867         * lib/unictype/pr_pattern_syntax.c: New file.
56868         * lib/unictype/pr_pattern_white_space.c: New file.
56869         * lib/unictype/pr_private_use.c: New file.
56870         * lib/unictype/pr_punctuation.c: New file.
56871         * lib/unictype/pr_quotation_mark.c: New file.
56872         * lib/unictype/pr_radical.c: New file.
56873         * lib/unictype/pr_sentence_terminal.c: New file.
56874         * lib/unictype/pr_soft_dotted.c: New file.
56875         * lib/unictype/pr_space.c: New file.
56876         * lib/unictype/pr_terminal_punctuation.c: New file.
56877         * lib/unictype/pr_test.c: New file.
56878         * lib/unictype/pr_titlecase.c: New file.
56879         * lib/unictype/pr_unassigned_code_value.c: New file.
56880         * lib/unictype/pr_unified_ideograph.c: New file.
56881         * lib/unictype/pr_uppercase.c: New file.
56882         * lib/unictype/pr_variation_selector.c: New file.
56883         * lib/unictype/pr_white_space.c: New file.
56884         * lib/unictype/pr_xid_continue.c: New file.
56885         * lib/unictype/pr_xid_start.c: New file.
56886         * lib/unictype/pr_zero_width.c: New file.
56887         * lib/unictype/scripts.c: New file.
56888         * lib/unictype/sy_c_ident.c: New file.
56889         * lib/unictype/sy_c_whitespace.c: New file.
56890         * lib/unictype/sy_java_ident.c: New file.
56891         * lib/unictype/sy_java_whitespace.c: New file.
56892
56893         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56894         Unicode 5.0.0.
56895         * lib/unictype/blocks.h: Likewise.
56896         * lib/unictype/categ_C.h: Likewise.
56897         * lib/unictype/categ_Cc.h: Likewise.
56898         * lib/unictype/categ_Cf.h: Likewise.
56899         * lib/unictype/categ_Cn.h: Likewise.
56900         * lib/unictype/categ_Co.h: Likewise.
56901         * lib/unictype/categ_Cs.h: Likewise.
56902         * lib/unictype/categ_L.h: Likewise.
56903         * lib/unictype/categ_Ll.h: Likewise.
56904         * lib/unictype/categ_Lm.h: Likewise.
56905         * lib/unictype/categ_Lo.h: Likewise.
56906         * lib/unictype/categ_Lt.h: Likewise.
56907         * lib/unictype/categ_Lu.h: Likewise.
56908         * lib/unictype/categ_M.h: Likewise.
56909         * lib/unictype/categ_Mc.h: Likewise.
56910         * lib/unictype/categ_Me.h: Likewise.
56911         * lib/unictype/categ_Mn.h: Likewise.
56912         * lib/unictype/categ_N.h: Likewise.
56913         * lib/unictype/categ_Nd.h: Likewise.
56914         * lib/unictype/categ_Nl.h: Likewise.
56915         * lib/unictype/categ_No.h: Likewise.
56916         * lib/unictype/categ_P.h: Likewise.
56917         * lib/unictype/categ_Pc.h: Likewise.
56918         * lib/unictype/categ_Pd.h: Likewise.
56919         * lib/unictype/categ_Pe.h: Likewise.
56920         * lib/unictype/categ_Pf.h: Likewise.
56921         * lib/unictype/categ_Pi.h: Likewise.
56922         * lib/unictype/categ_Po.h: Likewise.
56923         * lib/unictype/categ_Ps.h: Likewise.
56924         * lib/unictype/categ_S.h: Likewise.
56925         * lib/unictype/categ_Sc.h: Likewise.
56926         * lib/unictype/categ_Sk.h: Likewise.
56927         * lib/unictype/categ_Sm.h: Likewise.
56928         * lib/unictype/categ_So.h: Likewise.
56929         * lib/unictype/categ_Z.h: Likewise.
56930         * lib/unictype/categ_Zl.h: Likewise.
56931         * lib/unictype/categ_Zp.h: Likewise.
56932         * lib/unictype/categ_Zs.h: Likewise.
56933         * lib/unictype/categ_of.h: Likewise.
56934         * lib/unictype/combining.h: Likewise.
56935         * lib/unictype/ctype_alnum.h: Likewise.
56936         * lib/unictype/ctype_alpha.h: Likewise.
56937         * lib/unictype/ctype_blank.h: Likewise.
56938         * lib/unictype/ctype_cntrl.h: Likewise.
56939         * lib/unictype/ctype_digit.h: Likewise.
56940         * lib/unictype/ctype_graph.h: Likewise.
56941         * lib/unictype/ctype_lower.h: Likewise.
56942         * lib/unictype/ctype_print.h: Likewise.
56943         * lib/unictype/ctype_punct.h: Likewise.
56944         * lib/unictype/ctype_space.h: Likewise.
56945         * lib/unictype/ctype_upper.h: Likewise.
56946         * lib/unictype/ctype_xdigit.h: Likewise.
56947         * lib/unictype/decdigit.h: Likewise.
56948         * lib/unictype/digit.h: Likewise.
56949         * lib/unictype/mirror.h: Likewise.
56950         * lib/unictype/numeric.h: Likewise.
56951         * lib/unictype/pr_alphabetic.h: Likewise.
56952         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56953         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56954         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56955         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56956         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56957         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56958         * lib/unictype/pr_bidi_control.h: Likewise.
56959         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56960         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56961         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56962         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56963         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56964         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56965         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56966         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56967         * lib/unictype/pr_bidi_pdf.h: Likewise.
56968         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56969         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56970         * lib/unictype/pr_combining.h: Likewise.
56971         * lib/unictype/pr_composite.h: Likewise.
56972         * lib/unictype/pr_currency_symbol.h: Likewise.
56973         * lib/unictype/pr_dash.h: Likewise.
56974         * lib/unictype/pr_decimal_digit.h: Likewise.
56975         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56976         * lib/unictype/pr_deprecated.h: Likewise.
56977         * lib/unictype/pr_diacritic.h: Likewise.
56978         * lib/unictype/pr_extender.h: Likewise.
56979         * lib/unictype/pr_format_control.h: Likewise.
56980         * lib/unictype/pr_grapheme_base.h: Likewise.
56981         * lib/unictype/pr_grapheme_extend.h: Likewise.
56982         * lib/unictype/pr_grapheme_link.h: Likewise.
56983         * lib/unictype/pr_hex_digit.h: Likewise.
56984         * lib/unictype/pr_hyphen.h: Likewise.
56985         * lib/unictype/pr_id_continue.h: Likewise.
56986         * lib/unictype/pr_id_start.h: Likewise.
56987         * lib/unictype/pr_ideographic.h: Likewise.
56988         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56989         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56990         * lib/unictype/pr_ignorable_control.h: Likewise.
56991         * lib/unictype/pr_iso_control.h: Likewise.
56992         * lib/unictype/pr_join_control.h: Likewise.
56993         * lib/unictype/pr_left_of_pair.h: Likewise.
56994         * lib/unictype/pr_line_separator.h: Likewise.
56995         * lib/unictype/pr_logical_order_exception.h: Likewise.
56996         * lib/unictype/pr_lowercase.h: Likewise.
56997         * lib/unictype/pr_math.h: Likewise.
56998         * lib/unictype/pr_non_break.h: Likewise.
56999         * lib/unictype/pr_not_a_character.h: Likewise.
57000         * lib/unictype/pr_numeric.h: Likewise.
57001         * lib/unictype/pr_other_alphabetic.h: Likewise.
57002         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57003         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57004         * lib/unictype/pr_other_id_continue.h: Likewise.
57005         * lib/unictype/pr_other_id_start.h: Likewise.
57006         * lib/unictype/pr_other_lowercase.h: Likewise.
57007         * lib/unictype/pr_other_math.h: Likewise.
57008         * lib/unictype/pr_other_uppercase.h: Likewise.
57009         * lib/unictype/pr_paired_punctuation.h: Likewise.
57010         * lib/unictype/pr_paragraph_separator.h: Likewise.
57011         * lib/unictype/pr_pattern_syntax.h: Likewise.
57012         * lib/unictype/pr_pattern_white_space.h: Likewise.
57013         * lib/unictype/pr_private_use.h: Likewise.
57014         * lib/unictype/pr_punctuation.h: Likewise.
57015         * lib/unictype/pr_quotation_mark.h: Likewise.
57016         * lib/unictype/pr_radical.h: Likewise.
57017         * lib/unictype/pr_sentence_terminal.h: Likewise.
57018         * lib/unictype/pr_soft_dotted.h: Likewise.
57019         * lib/unictype/pr_space.h: Likewise.
57020         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57021         * lib/unictype/pr_titlecase.h: Likewise.
57022         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57023         * lib/unictype/pr_unified_ideograph.h: Likewise.
57024         * lib/unictype/pr_uppercase.h: Likewise.
57025         * lib/unictype/pr_variation_selector.h: Likewise.
57026         * lib/unictype/pr_white_space.h: Likewise.
57027         * lib/unictype/pr_xid_continue.h: Likewise.
57028         * lib/unictype/pr_xid_start.h: Likewise.
57029         * lib/unictype/pr_zero_width.h: Likewise.
57030         * lib/unictype/scripts.h: Likewise.
57031         * lib/unictype/scripts_byname.gperf: Likewise.
57032         * lib/unictype/sy_c_ident.h: Likewise.
57033         * lib/unictype/sy_c_whitespace.h: Likewise.
57034         * lib/unictype/sy_java_ident.h: Likewise.
57035         * lib/unictype/sy_java_whitespace.h: Likewise.
57036
57037         * lib/unictype/Makefile: New file.
57038         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57039         glibc.
57040         * lib/unictype/3level.h: New file, copied from glibc.
57041         * lib/unictype/3levelbit.h: New file.
57042
57043 2007-11-11  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/gperf: New file.
57046         * modules/iconv_open (Depends-on): Add it.
57047         (Makefile.am): Remove the GPERF definition.
57048
57049 2007-11-11  Bruno Haible  <bruno@clisp.org>
57050
57051         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57052         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57053
57054 2007-11-11  Bruno Haible  <bruno@clisp.org>
57055
57056         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57057         (usage): Remove function.
57058
57059 2007-11-11  Bruno Haible  <bruno@clisp.org>
57060
57061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57062         gl_FUNC_CEILF_LIBS.
57063         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57064         gl_FUNC_CEIL_LIBS.
57065         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57066         gl_FUNC_CEILL_LIBS.
57067         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57068         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57069         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57070
57071 2007-11-11  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57074         roundf were declared but do not exist on functions.
57075         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57076         roundl were declared but do not exist on functions.
57077         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57078         HAVE_FLOORL_AND_CEILL, respectively.
57079         Needed for Sun C on Solaris 10.
57080
57081 2007-11-11  Bruno Haible  <bruno@clisp.org>
57082
57083         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57084         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57085         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57086         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57087         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57088         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57089         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57090         HAVE_DECL_ROUNDF.
57091         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57092         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57094         of HAVE_DECL_ROUND*.
57095         * modules/math (Makefile.am): Update.
57096
57097 2007-11-10  Bruno Haible  <bruno@clisp.org>
57098
57099         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57100         ptrdiff_t as m4/intl.m4.
57101
57102 2007-11-10  Jim Meyering  <meyering@redhat.com>
57103
57104         Avoid link failure for the argmatch test.
57105         * tests/test-argmatch.c (usage): Define function to avoid a link
57106         failure: argmatch_die requires a usage function.
57107
57108 2007-11-09  Bruno Haible  <bruno@clisp.org>
57109
57110         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57111         * doc/functions/vsnprintf.texi: Likewise.
57112         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57113         with a size argument < 2.
57114
57115 2007-11-09  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57118         buffer. Fixes an inefficiency introduced on 2007-11-03.
57119
57120 2007-11-09  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57123         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57124
57125 2007-11-08  Jim Meyering  <meyering@redhat.com>
57126
57127         Change cache variable name prefix "jm_" to "gl_" everywhere.
57128         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57129         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57130         * m4/uptime.m4: s/gl_/jm_/
57131
57132 2007-11-07  Bruno Haible  <bruno@clisp.org>
57133
57134         Update to GNU gettext 0.17.
57135         * m4/intl.m4: Update to GNU gettext 0.17.
57136         * m4/po.m4: Likewise.
57137         * modules/gettext (Files): Remove m4/ulonglong.m4.
57138         (configure.ac): Require gettext infrastructure from version 0.17.
57139
57140 2007-11-06  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57143         symbolic values are not defined in a public header.
57144         * lib/freadable.c (freadable) [QNX]: Likewise.
57145         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57146         * lib/freading.c (freading) [QNX]: Likewise.
57147         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57148         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57149         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57150         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57151         Reported by Alain Magloire.
57152
57153         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57154
57155 2007-11-05  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57158         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57159         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57160         Reported by Eric Blake.
57161
57162 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57163             Bruno Haible  <bruno@clisp.org>
57164
57165         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57166         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57167         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57168         (malloc): Undefine also before including <stdlib.h>.
57169         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57170         Needed on OSF/1 4.0.
57171
57172 2007-11-05  Jim Meyering  <meyering@redhat.com>
57173
57174         git-version-gen: sync from coreutils.
57175         * build-aux/git-version-gen: Add comments.
57176         Change the first '-' to '.' in the snapshot version string,
57177         e.g., 6.9-377-08144 -> 6.9.377-08144
57178         Remove first parameter.
57179         Don't declare a version "-dirty" merely because a time
57180         stamp has changed.
57181
57182 2007-11-04  Bruno Haible  <bruno@clisp.org>
57183
57184         * lib/lock.h: Protect all macro definitions containing an 'if'
57185         statement through a "do { ... } while (0)".
57186         * lib/tls.h: Likewise.
57187
57188 2007-11-04  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57191
57192 2007-11-04  Bruno Haible  <bruno@clisp.org>
57193
57194         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57195         * modules/fprintf-posix (Depends-on): Add nocrash.
57196         * modules/snprintf-posix (Depends-on): Likewise.
57197         * modules/sprintf-posix (Depends-on): Likewise.
57198         * modules/vasnprintf-posix (Depends-on): Likewise.
57199         * modules/vasprintf-posix (Depends-on): Likewise.
57200         * modules/vfprintf-posix (Depends-on): Likewise.
57201         * modules/vsnprintf-posix (Depends-on): Likewise.
57202         * modules/vsprintf-posix (Depends-on): Likewise.
57203         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57204         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57205         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57206         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57207         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57208         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57209         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57210
57211 2007-11-04  Bruno Haible  <bruno@clisp.org>
57212
57213         * modules/nocrash: New file.
57214         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57215         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57216
57217 2007-11-04  Bruno Haible  <bruno@clisp.org>
57218
57219         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57220         precision handling.
57221         * tests/test-vasprintf-posix.c (test_function): Likewise.
57222         * tests/test-snprintf-posix.h (test_function): Likewise.
57223         * tests/test-sprintf-posix.h (test_function): Likewise.
57224
57225         Fix *printf behaviour for large precisions on mingw and BeOS.
57226         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57227         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57229         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57231         gl_PRINTF_PRECISION and test its result. Invoke
57232         gl_PREREQ_VASNPRINTF_PRECISION.
57233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57240         * doc/functions/fprintf.texi: Update.
57241         * doc/functions/printf.texi: Update.
57242         * doc/functions/snprintf.texi: Update.
57243         * doc/functions/sprintf.texi: Update.
57244         * doc/functions/vfprintf.texi: Update.
57245         * doc/functions/vprintf.texi: Update.
57246         * doc/functions/vsnprintf.texi: Update.
57247         * doc/functions/vsprintf.texi: Update.
57248
57249 2007-11-04  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57252
57253 2007-11-04  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57256         Reported by Sylvain Beucler <beuc@gnu.org>.
57257
57258 2007-11-03  Bruno Haible  <bruno@clisp.org>
57259
57260         * tests/test-fprintf-posix2.sh: New file.
57261         * tests/test-fprintf-posix2.c: New file.
57262         * modules/fprintf-posix-tests (Files): Add them.
57263         (TESTS): Add test-fprintf-posix2.sh.
57264         (configure.ac): Check for getrlimit and setrlimit.
57265         (check_PROGRAMS): Add test-fprintf-posix2.
57266
57267         * tests/test-printf-posix2.sh: New file.
57268         * tests/test-printf-posix2.c: New file.
57269         * modules/printf-posix-tests (Files): Add them.
57270         (TESTS): Add test-printf-posix2.sh.
57271         (configure.ac): Check for getrlimit and setrlimit.
57272         (check_PROGRAMS): Add test-printf-posix2.
57273
57274         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57275         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57276         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57277         (decode_double): New function, copied from decode_long_double.
57278         (scale10_round_decimal_decoded): New function, extracted from
57279         scale10_round_decimal_long_double.
57280         (scale10_round_decimal_long_double): Use it.
57281         (scale10_round_decimal_double): New function.
57282         (floorlog10): New function.
57283         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57285         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57286         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57287         gl_PRINTF_ENOMEM and test its result. Invoke
57288         gl_PREREQ_VASNPRINTF_ENOMEM.
57289         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57296         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57297         * modules/snprintf-posix (Depends-on): Likewise.
57298         * modules/sprintf-posix (Depends-on): Likewise.
57299         * modules/vasnprintf-posix (Depends-on): Likewise.
57300         * modules/vasprintf-posix (Depends-on): Likewise.
57301         * modules/vfprintf-posix (Depends-on): Likewise.
57302         * modules/vsnprintf-posix (Depends-on): Likewise.
57303         * modules/vsprintf-posix (Depends-on): Likewise.
57304         * doc/functions/fprintf.texi: Update.
57305         * doc/functions/printf.texi: Update.
57306         * doc/functions/snprintf.texi: Update.
57307         * doc/functions/sprintf.texi: Update.
57308         * doc/functions/vfprintf.texi: Update.
57309         * doc/functions/vprintf.texi: Update.
57310         * doc/functions/vsnprintf.texi: Update.
57311         * doc/functions/vsprintf.texi: Update.
57312
57313 2007-11-03  Bruno Haible  <bruno@clisp.org>
57314
57315         * modules/frexp-nolibm-tests: New file.
57316
57317         * modules/frexp-nolibm: New file.
57318         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57319
57320 2007-11-03  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57323         value is C99 compliant.
57324         Needed for OSF/1 5.1.
57325
57326 2007-11-03  Bruno Haible  <bruno@clisp.org>
57327
57328         Fix out-of-memory handling of vasnprintf.
57329         * lib/printf-parse.c: Include <errno.h>.
57330         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57331         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57332         is already set.
57333
57334 2007-11-02  Eric Blake  <ebb9@byu.net>
57335
57336         Fix tests on cygwin.
57337         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57338
57339 2007-11-01  Bruno Haible  <bruno@clisp.org>
57340
57341         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57342         warning.
57343         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57344         needed for POSIX compatibility.
57345
57346 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57347
57348         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57349         for compatibility with GNU.
57350
57351 2007-11-01  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57354         (putenv): Renamed from rpl_putenv. Change argument type from
57355         'const char *' to 'char *'.
57356         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57357         of defining putenv in config.h, just set REPLACE_PUTENV.
57358         * modules/putenv (Depends-on): Add stdlib.
57359         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57360         (Include): Use <stdlib.h>.
57361         * lib/stdlib.in.h (putenv): New declaration.
57362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57363         REPLACE_PUTENV.
57364         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57365         REPLACE_PUTENV.
57366         Needed for MacOS X 10.5.0.
57367         Reported by Peter O'Gorman <peter@pogma.com>.
57368
57369 2007-11-01  Jim Meyering  <meyering@redhat.com>
57370
57371         Treat an empty date string exactly like "0".
57372         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57373         if the remaining date string (to be parsed) is empty, use "0".
57374         Reported by Mischa Molhoek and discussed in this thread:
57375         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57376
57377 2007-10-31  Bruno Haible  <bruno@clisp.org>
57378
57379         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57380         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57381         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57382         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57383         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57384         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57385
57386 2007-10-31  Bruno Haible  <bruno@clisp.org>
57387
57388         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57389         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57390         (AC_TYPE_LONG_LONG_INT): Use it.
57391         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57392         it as well.
57393         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57394         to m4/longlong.m4.
57395         * modules/stdint (Files): Remove m4/ulonglong.m4.
57396         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57397         m4/ulonglong.m4.
57398         * modules/strtoumax (Files): Likewise.
57399
57400 2007-10-30  Bruno Haible  <bruno@clisp.org>
57401
57402         * modules/xvasprintf-posix: New file.
57403         Suggested by Eric Blake.
57404
57405 2007-10-30  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/xprintf-posix-tests: New file.
57408         * tests/test-xprintf-posix.sh: New file.
57409         * tests/test-xprintf-posix.c: New file.
57410         * tests/test-xfprintf-posix.c: New file.
57411
57412         * modules/xprintf-posix: New file.
57413
57414 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57415
57416         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57417         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57418         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57419
57420 2007-10-29  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57423         contain the special marker '_cv_'.
57424         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57425         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57426         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57427         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57428         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57429         Reported by Ralf Wildenhues.
57430
57431 2007-10-29  Bruno Haible  <bruno@clisp.org>
57432
57433         * gnulib-tool (func_import): When --lgpl is not specified, set
57434         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57435         GPLv3.
57436         Reported by Simon Josefsson.
57437
57438 2007-10-28  Bruno Haible  <bruno@clisp.org>
57439
57440         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57441         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57442         HAVE_DECL_ISFINITE.
57443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57444         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57445         HAVE_DECL_ISFINITE.
57446
57447 2007-10-28  Bruno Haible  <bruno@clisp.org>
57448
57449         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57450         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57451
57452 2007-10-28  Bruno Haible  <bruno@clisp.org>
57453
57454         Fix link errors with Sun C 5.0 on Solaris 10.
57455         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57456         function is declared but not present in the compiler's libm.
57457         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57458         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57459         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57460         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57461         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57462         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57463         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57465         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57466         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57467         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57468         HAVE_DECL_FLOORL.
57469
57470 2007-10-28  Bruno Haible  <bruno@clisp.org>
57471
57472         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57473         gl_FUNC_FLOORL. Cache the result.
57474         (gl_FUNC_FLOORL): Use it.
57475         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57476         gl_FUNC_CEILL. Cache the result.
57477         (gl_FUNC_CEILL): Use it.
57478
57479         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57480         gl_FUNC_FLOOR. Cache the result.
57481         (gl_FUNC_FLOOR): Use it.
57482         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57483         gl_FUNC_CEIL. Cache the result.
57484         (gl_FUNC_CEIL): Use it.
57485
57486         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57487         gl_FUNC_FLOORF. Cache the result.
57488         (gl_FUNC_FLOORF): Use it.
57489         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57490         gl_FUNC_CEILF. Cache the result.
57491         (gl_FUNC_CEILF): Use it.
57492
57493 2007-10-28  Bruno Haible  <bruno@clisp.org>
57494
57495         * gnulib-tool: Allow specifying the LGPL version number through
57496         --lgpl=2 or --lgpl=3.
57497         (func_usage): Document --lgpl with argument.
57498         Handle --lgpl=... arguments.
57499         (func_import): Recognize also gl_LGPL calls with an argument. When
57500         --lgpl=2 is used and the module's license is just LGPL, report an
57501         error. Set sed_transform_lib_file according to the lgpl variable. In
57502         the generated files, use --lgpl or gl_LGPL invocations with argument,
57503         if necessary.
57504         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57505         an LGPv2+ license.
57506         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57507         gl_LGPL macro.
57508
57509 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57510             Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57513         (u16_uctomb_aux): Likewise.
57514         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57515         !HAVE_INLINE.
57516         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57517
57518 2007-10-28  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57521         Invoke AM_GETTEXT_OPTION if it exists.
57522         * modules/vasprintf: Likewise.
57523         * modules/verror: Likewise.
57524         * modules/xprintf: Likewise.
57525         * modules/xvasprintf: Likewise.
57526
57527 2007-10-27  Ben Pfaff  <blp@gnu.org>
57528
57529         * lib/math.in.h: Define isfinite macro and prototypes for
57530         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57531         implementations.
57532         * m4/math_h.m4: New substitutions for isfinite module.
57533         * lib/isfinite.c: New file.
57534         * m4/isfinite.m4: New file.
57535         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57536         * modules/isfinite: New file.
57537         * modules/isfinite-tests: New file.
57538         * tests/tests-isfinite.c: New file.
57539         * doc/functions/isfinite.texi: Mention isfinite module.
57540         * MODULES.html.sh: Mention new module.
57541
57542 2007-10-27  Ben Pfaff  <blp@gnu.org>
57543
57544         Ralf Wildenhues reported that Tru64 4.0D declares the round
57545         functions but does not have definitions.
57546         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57547         cannot be found in any library, set the output variable to
57548         "missing" instead of "".
57549         * m4/round.m4: Also use our substitute if we cannot find round in
57550         any library, even if it is declared.
57551         * m4/roundf.m4: Likewise for roundf.
57552         * m4/roundl.m4: Likewise for roundl.
57553         * lib/math.in.h: Undefine roundf, round, roundl before defining
57554         their replacements, to allow for hypothetical systems where these
57555         may be defined as macros but not available in libraries.
57556
57557 2007-10-27  Bruno Haible  <bruno@clisp.org>
57558
57559         * doc/gnulib.texi: Invoke @firstparagraphindent.
57560         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57561         changes in gnulib.
57562         (Source changes): New section.
57563
57564 2007-10-26  Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57567         borrowed from autoconf.
57568
57569 2007-10-26  Bruno Haible  <bruno@clisp.org>
57570
57571         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57572         strerror returned the empty string. Needed on HP-UX 11.00.
57573
57574 2007-10-24  Micah Cowan  <micah@cowan.name>
57575
57576         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57577         * build-aux/bootstrap: Remove support for now-unnecessary option,
57578         --cvs-user, and envvars CVS_USER, CVS_RSH.
57579
57580 2007-10-24  Jim Meyering  <meyering@redhat.com>
57581
57582         Avoid diagnostics from sha1sum when there is no cached checksum.
57583         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57584         if the po.s1 file hasn't been created yet.
57585
57586         * build-aux/bootstrap: Sync from coreutils:
57587         2007-10-24  Jim Meyering  <meyering@redhat.com>
57588         Get gnulib from the git repository, not from an obsolete cvs one.
57589         * build-aux/bootstrap: Suggestion from Micah Cowan.
57590         2007-10-04  Jim Meyering  <jim@meyering.net>
57591         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57592         (update_po_files): Work also when there are no .po files in po/.
57593
57594 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * README: Append ".git" to git and cg examples.
57597         Problem reported by Benoit Sigoure.
57598
57599 2007-10-23  Micah Cowan  <micah@cowan.name>
57600
57601         * users.txt: Add wget.
57602
57603 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57604
57605         Fix linking of some unistdio tests on FreeBSD.
57606         * modules/unistdio/u16-vsnprintf-tests
57607         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57608         * modules/unistdio/u16-vsprintf-tests
57609         (test_u16_vsnprintf1_LDADD): Likewise.
57610         * modules/unistdio/u32-vsnprintf-tests
57611         (test_u32_vsnprintf1_LDADD): Likewise.
57612         * modules/unistdio/u32-vsprintf-tests
57613         (test_u32_vsprintf1_LDADD): Likewise.
57614         * modules/unistdio/u8-vsnprintf-tests
57615         (test_u8_vsnprintf1_LDADD): Likewise.
57616         * modules/unistdio/u8-vsprintf-tests
57617         (test_u8_vsprintf1_LDADD): Likewise.
57618         * modules/unistdio/ulc-vsnprintf-tests
57619         (test_ulc_vsnprintf1_LDADD): Likewise.
57620         * modules/unistdio/ulc-vsprintf-tests
57621         (test_ulc_vsprintf1_LDADD): Likewise.
57622
57623         Fix linking of some uniconv tests on FreeBSD.
57624         * modules/uniconv/u16-conv-from-enc-tests
57625         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57626         * modules/uniconv/u16-conv-to-enc-tests
57627         (test_u16_conv_to_enc_LDADD): Likewise.
57628         * modules/uniconv/u16-strconv-from-enc-tests
57629         (test_u16_strconv_from_enc_LDADD): Likewise.
57630         * modules/uniconv/u16-strconv-to-enc-tests
57631         (test_u16_strconv_to_enc_LDADD): Likewise.
57632         * modules/uniconv/u32-conv-from-enc-tests
57633         (test_u32_conv_from_enc_LDADD): Likewise.
57634         * modules/uniconv/u32-conv-to-enc-tests
57635         (test_u32_conv_to_enc_LDADD): Likewise.
57636         * modules/uniconv/u32-strconv-from-enc-tests
57637         (test_u32_strconv_from_enc_LDADD): Likewise.
57638         * modules/uniconv/u32-strconv-to-enc-tests
57639         (test_u32_strconv_to_enc_LDADD): Likewise.
57640         * modules/uniconv/u8-conv-from-enc-tests
57641         (test_u8_conv_from_enc_LDADD): Likewise.
57642         * modules/uniconv/u8-conv-to-enc-tests
57643         (test_u8_conv_to_enc_LDADD): Likewise.
57644         * modules/uniconv/u8-strconv-from-enc-tests
57645         (test_u8_strconv_from_enc_LDADD): Likewise.
57646         * modules/uniconv/u8-strconv-to-enc-tests
57647         (test_u8_strconv_to_enc_LDADD): Likewise.
57648
57649 2007-10-22  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57652         size.
57653
57654 2007-10-22  Eric Blake  <ebb9@byu.net>
57655
57656         Tweak x*printf documentation.
57657         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57658         variable name and comments.
57659         Suggested by Bruno Haible.
57660
57661 2007-10-22  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/acl.c (copy_acl): Fix file name in comment.
57664
57665 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         Fix Tru64 problem with stdbool.h.
57668         * lib/stdbool.in.h (false, true):
57669         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57670         Don't declare as an enum in this situation; it runs afoul of Tru64.
57671         Problem reported by Steven M. Schweda in
57672         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57673
57674 2007-10-22  Eric Blake  <ebb9@byu.net>
57675
57676         Also wrap vf?printf.
57677         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57678         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57679         (xvprintf, xvfprintf): New functions.
57680
57681 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57682
57683         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57684         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57685
57686         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57687         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57688
57689 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57690
57691         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57692         by Bruno Haible.
57693
57694 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57695
57696         * lib/getloadavg.c
57697         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57698         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57699
57700         * tests/test-i-ring.c: Work for C89.
57701
57702 2007-10-22  Bruno Haible  <bruno@clisp.org>
57703
57704         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57705         -1u, in preprocessor expression, so that we don't test for the bug
57706         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57708
57709 2007-10-22  Eric Blake  <ebb9@byu.net>
57710
57711         * tests/test-yesno.sh: Silence stderr during test.
57712
57713 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57714
57715         * modules/crypto/gc-camellia: New file.
57716
57717         * m4/gc-camellia.m4: New file.
57718
57719         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57720
57721         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57722
57723 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57724
57725         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57726         --help to stdout.  Reported by sms@antinode.org (Steven
57727         M. Schweda).
57728
57729 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57730
57731         * users.txt: Fix link to libksba.
57732
57733 2007-10-21  Ben Pfaff  <blp@gnu.org>
57734
57735         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57736         round.c roundf implementation that depends on floorf and ceilf to
57737         be tested unconditionally.
57738
57739 2007-10-21  Ben Pfaff  <blp@gnu.org>
57740
57741         * m4/check-libm-func.m4: Removed.
57742         * m4/check-math-lib.m4: New file.
57743         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57744         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57745         definition and lack of AC_LIBOBJ([roundf]).
57746         * m4/roundl.m4: Ditto, and similarly for roundl.
57747         * modules/round: Reference new m4 file.
57748         * modules/roundf: Ditto.
57749         * modules/roundl: Ditto.
57750         * tests/test-round2.c (main): Use ROUND instead of round.
57751         Bug report from Bruno Haible.
57752
57753 2007-10-21  Bruno Haible  <bruno@clisp.org>
57754
57755         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57756         context.
57757
57758 2007-10-21  Bruno Haible  <bruno@clisp.org>
57759
57760         * tests/test-wcwidth.c (main): Allow negative result for some control
57761         characters.
57762
57763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57764         Needed on OSF/1 5.1.
57765
57766 2007-10-21  Bruno Haible  <bruno@clisp.org>
57767
57768         * tests/test-floorf1.c: Include isnanf.h.
57769         (main): Use isnanf() instead of isnan().
57770         * tests/test-ceilf1.c: Include isnanf.h.
57771         (main): Use isnanf() instead of isnan().
57772         * tests/test-truncf1.c: Include isnanf.h.
57773         (main): Use isnanf() instead of isnan().
57774         * tests/test-roundf1.c: Include isnanf.h.
57775         (main): Use isnanf() instead of isnan().
57776
57777 2007-10-21  Eric Blake  <ebb9@byu.net>
57778
57779         * users.txt: Update URL for m4.
57780
57781 2007-10-21  Bruno Haible  <bruno@clisp.org>
57782
57783         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57784
57785 2007-10-21  Bruno Haible  <bruno@clisp.org>
57786
57787         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57788         Git's management files if the CVS files are not present.
57789
57790 2007-10-20  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57793         gcc-3.4.x.
57794
57795 2007-10-20  Ben Pfaff  <blp@gnu.org>
57796
57797         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57798         implementations.
57799         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57800         * lib/round.c: New file.
57801         * lib/roundf.c: New file.
57802         * lib/roundl.c: New file.
57803         * m4/round.m4: New file.
57804         * m4/roundf.m4: New file.
57805         * m4/roundl.m4: New file.
57806         * m4/check-libm-func-m4: New file.
57807         * modules/math: Replace round, roundf, roundl related @VARS@ in
57808         math.in.h.
57809         * modules/round: New file.
57810         * modules/round-tests: New file.
57811         * modules/roundf: New file.
57812         * modules/roundf-tests: New file.
57813         * modules/roundl: New file.
57814         * modules/roundl-tests: New file.
57815         * tests/test-round1.c: New file.
57816         * tests/test-round2.c: New file.
57817         * tests/test-roundf1.c: New file.
57818         * tests/test-roundf2.c: New file.
57819         * tests/test-roundl.c: New file.
57820         * doc/functions/round.texi: Mention round module.
57821         * doc/functions/roundf.texi: Mention roundf module.
57822         * doc/functions/roundl.texi: Mention roundl module.
57823         * MODULES.html.sh: Mention new modules.
57824         Thanks to Bruno Haible for suggestions.
57825
57826 2007-10-20  Jim Meyering  <meyering@redhat.com>
57827
57828         * lib/xprintf.c: Include <config.h> unconditionally.
57829
57830         Change xprintf's license to GPL.
57831         * modules/xprintf (License): s/LGPL/GPL/, since this module
57832         depends on modules (exit and exitfail) which are GPL.
57833         Suggestion from Bruno Haible.
57834
57835         xprintf fixes.
57836         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57837         Use a clearer diagnostic.
57838         Patch from Bruno Haible.
57839
57840 2007-10-20  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57843         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57845
57846 2007-10-20  Bruno Haible  <bruno@clisp.org>
57847
57848         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57849         precision in the comparison result > x - 1 or similar.
57850         * tests/test-ceilf2.c (correct_result_p): Likewise.
57851         * tests/test-truncf2.c (correct_result_p): Likewise.
57852         * tests/test-trunc2.c (correct_result_p): Likewise.
57853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57854
57855 2007-10-20  Bruno Haible  <bruno@clisp.org>
57856
57857         * modules/ceil: New file.
57858         * m4/ceil.m4: New file.
57859         * doc/functions/ceil.texi: Mention the 'ceil' module.
57860
57861 2007-10-20  Bruno Haible  <bruno@clisp.org>
57862
57863         * modules/floor: New file.
57864         * m4/floor.m4: New file.
57865         * doc/functions/floor.texi: Mention the 'floor' module.
57866
57867 2007-10-20  Bruno Haible  <bruno@clisp.org>
57868
57869         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57870         of %a.
57871         * modules/floorf-tests (Depends-on): Likewise.
57872         * modules/truncf-tests (Depends-on): Likewise.
57873         * modules/trunc-tests (Depends-on): Likewise.
57874         Reported by Ben Pfaff.
57875
57876 2007-10-19  Jim Meyering  <meyering@redhat.com>
57877
57878         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57879         Don't bother testing specific errno values.  Just test ferror.
57880
57881         New module: xprintf
57882         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57883
57884 2007-10-19  Bruno Haible  <bruno@clisp.org>
57885
57886         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57887         syntax.
57888         * modules/javaexec (Makefile.am): Likewise.
57889         * modules/relocatable-prog (Makefile.am): Likewise.
57890         Suggested by Jim Meyering.
57891
57892 2007-10-18  Bruno Haible  <bruno@clisp.org>
57893
57894         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57895         Reported by Jim Meyering.
57896
57897 2007-10-18  Eric Blake  <ebb9@byu.net>
57898
57899         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57900
57901 2007-10-18  Bruno Haible  <bruno@clisp.org>
57902
57903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57904         the format string into writable memory. Needed in Fortify conditions.
57905
57906 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57907             Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57910         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57911         * modules/trim (Depends-on): Add mbchar.
57912         (configure.ac): Add gl_FUNC_MBRTOWC.
57913         (Makefile.am): Augment lib_SOURCES.
57914
57915 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         Modify glob.c to use fstatat and dirfd, to simplify it.
57918         Suggested by Eric Blake.
57919         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57920         Don't include <stdbool.h>; not used.
57921         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57922         (link_exists_p): Simplify implementation, since we can now assume
57923         dirfd and fstatat.
57924         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57925
57926 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57927
57928         * gnulib-tool (func_get_dependencies): Fix sed script to
57929         match only tests.
57930
57931 2007-10-17  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57934         allow locale names without encoding suffix.
57935         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57936         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57937
57938 2007-10-16  Bruno Haible  <bruno@clisp.org>
57939
57940         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57941         * lib/getgroups.c (getgroups): Likewise.
57942         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57943
57944 2007-10-16  Bruno Haible  <bruno@clisp.org>
57945
57946         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57947         * modules/malloc-posix (License): Likewise.
57948         * modules/realloc-posix (License): Likewise.
57949         * modules/calloc-posix (License): Likewise.
57950         * modules/intprops (License): Change from GPL to LGPL, with
57951         Paul Eggert's approval.
57952
57953 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57954
57955         Merge glibc changes into lib/glob.c.
57956
57957         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57958         2007-10-15 04:59:03 UTC.  Here are the changes:
57959
57960         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57961
57962         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57963
57964         * lib/glob.c: Add some branch prediction throughout.
57965
57966         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57967
57968         [BZ #5103]
57969         * lib/glob.c (glob): Recognize patterns starting \/.
57970
57971         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57972
57973         [BZ #3996]
57974         * lib/glob.c (attribute_hidden): Define if not defined.
57975         (glob): Unescape dirname, filename or username when needed and not
57976         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57977         is NULL.  Handle unescaped [ in pattern without closing ].
57978         Don't pass GLOB_CHECK down to recursive glob for directories.
57979         (__glob_pattern_type): New function.
57980         (__glob_pattern_p): Implement using __glob_pattern_type.
57981         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57982         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57983         Remove unreachable code.
57984
57985         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57986
57987         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57988         explain why there are no leaks.
57989
57990         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57991
57992         [BZ #3253]
57993         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57994         time, rather allocate increasingly bigger arrays of pointers, if
57995         possible with alloca, if too large with malloc.
57996
57997 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
58000         Problem reported by H.Merijn Brand in
58001         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
58002         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
58003         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58004
58005 2007-10-15  Bruno Haible  <bruno@clisp.org>
58006
58007         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
58008         with explicit rpl_ prefix.
58009         * lib/fopen.c (fopen): Likewise.
58010         * lib/freopen.c (freopen): Likewise.
58011         * lib/iconv.c (iconv): Likewise.
58012         * lib/iconv_close.c (iconv_close): Likewise.
58013
58014 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58015
58016         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58017
58018 2007-10-15  Bruno Haible  <bruno@clisp.org>
58019
58020         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58021         <stddef.h> instead of <stdlib.h> since we only need NULL.
58022         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58023
58024 2007-10-15  Bruno Haible  <bruno@clisp.org>
58025
58026         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58027         Replace paragraph talking about LIBOBJS.
58028         Reported by Colin Watson <cjwatson@debian.org>.
58029
58030 2007-10-15  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58033         <stdlib.h> before using NULL.
58034
58035 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58036
58037         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58038         Reported by Albert Chin <china@thewrittenword.com>.
58039
58040 2007-10-14  Bruno Haible  <bruno@clisp.org>
58041
58042         * modules/iconv_open-utf-tests: New file.
58043         * tests/test-iconv-utf.c: New file.
58044
58045         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58046         * modules/iconv_open-utf: New file.
58047         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58048         (iconv, iconv_close): New declarations.
58049         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58050         be defined.
58051         (iconv_open): Add special handling of conversion between UTF-8 and
58052         UTF-{16,32}{BE,LE}.
58053         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58054         * lib/iconv_close.c: New file.
58055         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58056         gl_FUNC_ICONV_OPEN.
58057         (gl_FUNC_ICONV_OPEN): Use it.
58058         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58059         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58060         and REPLACE_ICONV_UTF.
58061         * modules/iconv_open (Depends-on): Add c-strcase.
58062         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58063         ICONV_CONST.
58064         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58065
58066 2007-10-13  Albert Chin  <china@thewrittenword.com>
58067             Bruno Haible  <bruno@clisp.org>
58068
58069         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58070         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58071
58072 2007-10-13  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58075         defined, use the ISO C99 inline semantics.
58076         * lib/argp.h (ARGP_EI): Likewise.
58077
58078 2007-10-13  Bruno Haible  <bruno@clisp.org>
58079
58080         Handle 'inline' change in gcc 4.3.0.
58081         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58082         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58083         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58084         argp_fmtstream_point): Disable 'extern' declaration if the function
58085         definition is going to be provided inline.
58086         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58087         semantics, not the ISO C99 inline semantics.
58088         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58089         'extern' declaration if the function definition is going to be provided
58090         inline.
58091         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58092         the GNU C inline semantics, not the ISO C99 inline semantics. With
58093         GCC 4.2, avoid a warning.
58094
58095 2007-10-13  Bruno Haible  <bruno@clisp.org>
58096
58097         * lib/freading.h (freading): Enable the use of __freading for
58098         glibc >= 2.7.
58099         * lib/freading.c (freading): Likewise.
58100
58101 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58104         "warning: C99 inline functions are not supported; using GNU89".
58105
58106 2007-10-12  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58109         of 2.
58110         * tests/test-ceilf2.c: New file.
58111         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58112
58113         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58114         * modules/ceilf-tests: Update.
58115
58116 2007-10-12  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58119         of 2.
58120         * tests/test-floorf2.c: New file.
58121         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58122
58123         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58124         * modules/floorf-tests: Update.
58125
58126 2007-10-12  Bruno Haible  <bruno@clisp.org>
58127
58128         * tests/test-trunc2.c: New file.
58129         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58130
58131         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58132         * modules/trunc-tests: Update.
58133
58134 2007-10-12  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58137         of 2.
58138         * tests/test-truncf2.c: New file.
58139         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58140
58141         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58142         * modules/truncf-tests: Update.
58143
58144 2007-10-11  Eric Blake  <ebb9@byu.net>
58145
58146         Don't claim strerror is broken on Interix.
58147         * doc/functions/strerror.texi (strerror): Known broken systems are
58148         now Solaris 8, and not Interix.
58149         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58150         Interix on cross-compile.
58151         Reported by Martin Koeppe in
58152         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58153
58154 2007-10-11  Bruno Haible  <bruno@clisp.org>
58155
58156         * modules/i-ring-tests: New file.
58157         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58158         instead of assert.
58159
58160 2007-10-11  Bruno Haible  <bruno@clisp.org>
58161
58162         * modules/filenamecat-tests: New file.
58163         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58164         * lib/filenamecat.c: Remove test code.
58165
58166 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58167
58168         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58169
58170         * lib/strerror.c: Include <string.h> always, to test interface,
58171         and to remove the need for the dummy.
58172         Include intprops.h to compute width instead of doing it ourselves
58173         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58174         (strerror): Define it to return NULL if there's no system strerror.
58175         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58176         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58177         ancient pre-strerror Unix systems well any more.  Saying "unknown
58178         system error" is enough.
58179         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58180         simpler strerror.c implementation.
58181         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58182         Simplify the tests to reflect the simpler strerror implementation.
58183         * modules/strerror (Depends-on): Add intprops.
58184
58185 2007-10-09  Eric Blake  <ebb9@byu.net>
58186
58187         Silence test-fpending.
58188         * modules/fpending-tests (Files): Add wrapper script.
58189         * tests/test-fpending.sh: New file.
58190
58191 2007-10-09  Bruno Haible  <bruno@clisp.org>
58192
58193         * MODULES.html.sh (func_module): Don't create a hyperlink for
58194         function names like 'printf_frexp'.
58195         (Misc): Add crc, memxor.
58196         (Characteristics of floating types): New section.
58197         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58198         isnanf-nolibm, signbit, trunc, truncf, truncl.
58199         (Enhancements for ISO C 99 functions): New subsection Input/output.
58200         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58201         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58202         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58203         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58204         (Enhancements for POSIX:2001 functions): Add chdir-long.
58205         (File system functions): Add areadlink, chdir-safer, read-file.
58206         Remove cycle-check.
58207         (File system as inode set): New section.
58208         (Date and time): Add gethrxtime.
58209         (Multithreading): Add openmp.
58210         (Internationalization functions): Add localename.
58211         (Unicode string functions): Add unistr/u*-mbsnlen.
58212         (Support for maintaining and releasing projects): Add git-version-gen.
58213         (Lone files): Remove directories.
58214
58215 2007-10-08  Ben Pfaff  <blp@gnu.org>
58216
58217         * lib/xmalloca.h: Fix typo in comment.
58218
58219 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58222         when avoiding problems with integer overflow.  Use a portable test
58223         instead.
58224
58225 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58226
58227         * modules/dummy (License): Change to LGPLv2+.
58228         * modules/float (License): Likewise
58229         * modules/realloc (License): Likewise
58230         * modules/stdlib (License): Likewise
58231
58232 2007-10-07  Bruno Haible  <bruno@clisp.org>
58233
58234         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58235         * floor.c (TWO_MANT_DIG): Likewise.
58236         * ceil.c (TWO_MANT_DIG): Likewise.
58237         Reported by Ben Pfaff.
58238
58239 2007-10-07  Bruno Haible  <bruno@clisp.org>
58240
58241         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58242         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58243         * lib/frexp.c (FUNC): Likewise.
58244         * lib/printf-frexp.h (printf_frexp): Likewise.
58245         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58246         * lib/printf-frexp.c (FUNC): Likewise.
58247         Suggested by Jim Meyering.
58248
58249 2007-10-07  Jim Meyering  <meyering@redhat.com>
58250
58251         Make xnanosleep's integer overflow test more robust.
58252         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58253         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58254
58255 2007-10-07  Bruno Haible  <bruno@clisp.org>
58256
58257         * NEWS: Mention the license change.
58258
58259         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58260         abbreviations in the modules files.
58261
58262         Change copyright notice from GPLv2+ to GPLv3+.
58263         * README: Change copyright notice.
58264         * MODULES.html.sh: Likewise.
58265         * build-aux/bootstrap.conf: Likewise.
58266         * build-aux/config.libpath: Likewise.
58267         * build-aux/csharpcomp.sh.in: Likewise.
58268         * build-aux/csharpexec.sh.in: Likewise.
58269         * build-aux/install-reloc: Likewise.
58270         * build-aux/javacomp.sh.in: Likewise.
58271         * build-aux/javaexec.sh.in: Likewise.
58272         * build-aux/ldd.sh.in: Likewise.
58273         * build-aux/reloc-ldflags: Likewise.
58274         * build-aux/relocatable.sh.in: Likewise.
58275         * build-aux/x-to-1.in: Likewise.
58276         * check-module: Likewise.
58277         * config/srclistvars.sh: Likewise.
58278         * gnulib-tool: Likewise.
58279         * lib/acl-internal.h: Likewise.
58280         * lib/acl.c: Likewise.
58281         * lib/acl.h: Likewise.
58282         * lib/acl_entries.c: Likewise.
58283         * lib/areadlink-with-size.c: Likewise.
58284         * lib/areadlink.c: Likewise.
58285         * lib/areadlink.h: Likewise.
58286         * lib/argmatch.c: Likewise.
58287         * lib/argmatch.h: Likewise.
58288         * lib/argp-ba.c: Likewise.
58289         * lib/argp-eexst.c: Likewise.
58290         * lib/argp-fmtstream.c: Likewise.
58291         * lib/argp-fmtstream.h: Likewise.
58292         * lib/argp-fs-xinl.c: Likewise.
58293         * lib/argp-help.c: Likewise.
58294         * lib/argp-namefrob.h: Likewise.
58295         * lib/argp-parse.c: Likewise.
58296         * lib/argp-pin.c: Likewise.
58297         * lib/argp-pv.c: Likewise.
58298         * lib/argp-pvh.c: Likewise.
58299         * lib/argp-xinl.c: Likewise.
58300         * lib/argp.h: Likewise.
58301         * lib/at-func.c: Likewise.
58302         * lib/atanl.c: Likewise.
58303         * lib/backupfile.c: Likewise.
58304         * lib/backupfile.h: Likewise.
58305         * lib/basename.c: Likewise.
58306         * lib/binary-io.h: Likewise.
58307         * lib/byteswap.in.h: Likewise.
58308         * lib/c-stack.c: Likewise.
58309         * lib/c-stack.h: Likewise.
58310         * lib/c-strcasestr.c: Likewise.
58311         * lib/c-strcasestr.h: Likewise.
58312         * lib/c-strstr.c: Likewise.
58313         * lib/c-strstr.h: Likewise.
58314         * lib/c-strtod.c: Likewise.
58315         * lib/calloc.c: Likewise.
58316         * lib/canon-host.c: Likewise.
58317         * lib/canon-host.h: Likewise.
58318         * lib/canonicalize-lgpl.c: Likewise.
58319         * lib/canonicalize.c: Likewise.
58320         * lib/canonicalize.h: Likewise.
58321         * lib/ceil.c: Likewise.
58322         * lib/ceilf.c: Likewise.
58323         * lib/ceill.c: Likewise.
58324         * lib/chdir-long.c: Likewise.
58325         * lib/chdir-long.h: Likewise.
58326         * lib/chdir-safer.c: Likewise.
58327         * lib/chdir-safer.h: Likewise.
58328         * lib/chown.c: Likewise.
58329         * lib/classpath.c: Likewise.
58330         * lib/classpath.h: Likewise.
58331         * lib/clean-temp.c: Likewise.
58332         * lib/clean-temp.h: Likewise.
58333         * lib/cloexec.c: Likewise.
58334         * lib/close-stream.c: Likewise.
58335         * lib/closein.c: Likewise.
58336         * lib/closein.h: Likewise.
58337         * lib/closeout.c: Likewise.
58338         * lib/closeout.h: Likewise.
58339         * lib/concat-filename.c: Likewise.
58340         * lib/copy-file.c: Likewise.
58341         * lib/copy-file.h: Likewise.
58342         * lib/count-one-bits.h: Likewise.
58343         * lib/crc.c: Likewise.
58344         * lib/crc.h: Likewise.
58345         * lib/creat-safer.c: Likewise.
58346         * lib/csharpcomp.c: Likewise.
58347         * lib/csharpcomp.h: Likewise.
58348         * lib/csharpexec.c: Likewise.
58349         * lib/csharpexec.h: Likewise.
58350         * lib/cycle-check.c: Likewise.
58351         * lib/cycle-check.h: Likewise.
58352         * lib/diacrit.c: Likewise.
58353         * lib/diacrit.h: Likewise.
58354         * lib/diffseq.h: Likewise.
58355         * lib/dirchownmod.c: Likewise.
58356         * lib/dirent.in.h: Likewise.
58357         * lib/dirfd.c: Likewise.
58358         * lib/dirfd.h: Likewise.
58359         * lib/dirname.c: Likewise.
58360         * lib/dirname.h: Likewise.
58361         * lib/dummy.c: Likewise.
58362         * lib/dup-safer.c: Likewise.
58363         * lib/dup2.c: Likewise.
58364         * lib/eealloc.h: Likewise.
58365         * lib/error.c: Likewise.
58366         * lib/error.h: Likewise.
58367         * lib/euidaccess.c: Likewise.
58368         * lib/exclude.c: Likewise.
58369         * lib/exclude.h: Likewise.
58370         * lib/execute.c: Likewise.
58371         * lib/execute.h: Likewise.
58372         * lib/exitfail.c: Likewise.
58373         * lib/exitfail.h: Likewise.
58374         * lib/expl.c: Likewise.
58375         * lib/fatal-signal.c: Likewise.
58376         * lib/fatal-signal.h: Likewise.
58377         * lib/fbufmode.c: Likewise.
58378         * lib/fbufmode.h: Likewise.
58379         * lib/fchdir.c: Likewise.
58380         * lib/fchmodat.c: Likewise.
58381         * lib/fchownat.c: Likewise.
58382         * lib/fcntl--.h: Likewise.
58383         * lib/fcntl-safer.h: Likewise.
58384         * lib/fcntl.in.h: Likewise.
58385         * lib/fd-safer.c: Likewise.
58386         * lib/fflush.c: Likewise.
58387         * lib/file-has-acl.c: Likewise.
58388         * lib/file-set.c: Likewise.
58389         * lib/file-type.c: Likewise.
58390         * lib/file-type.h: Likewise.
58391         * lib/fileblocks.c: Likewise.
58392         * lib/filemode.c: Likewise.
58393         * lib/filemode.h: Likewise.
58394         * lib/filename.h: Likewise.
58395         * lib/filenamecat.c: Likewise.
58396         * lib/filenamecat.h: Likewise.
58397         * lib/findprog.c: Likewise.
58398         * lib/findprog.h: Likewise.
58399         * lib/float.in.h: Likewise.
58400         * lib/floor.c: Likewise.
58401         * lib/floorf.c: Likewise.
58402         * lib/floorl.c: Likewise.
58403         * lib/fopen-safer.c: Likewise.
58404         * lib/fopen.c: Likewise.
58405         * lib/fpending.c: Likewise.
58406         * lib/fpending.h: Likewise.
58407         * lib/fprintf.c: Likewise.
58408         * lib/fprintftime.h: Likewise.
58409         * lib/fpucw.h: Likewise.
58410         * lib/fpurge.c: Likewise.
58411         * lib/fpurge.h: Likewise.
58412         * lib/freadable.c: Likewise.
58413         * lib/freadable.h: Likewise.
58414         * lib/freadahead.c: Likewise.
58415         * lib/freadahead.h: Likewise.
58416         * lib/freading.c: Likewise.
58417         * lib/freading.h: Likewise.
58418         * lib/free.c: Likewise.
58419         * lib/freopen.c: Likewise.
58420         * lib/frexp.c: Likewise.
58421         * lib/frexpl.c: Likewise.
58422         * lib/fseek.c: Likewise.
58423         * lib/fseterr.c: Likewise.
58424         * lib/fseterr.h: Likewise.
58425         * lib/fstatat.c: Likewise.
58426         * lib/fstrcmp.c: Likewise.
58427         * lib/fstrcmp.h: Likewise.
58428         * lib/fsusage.c: Likewise.
58429         * lib/fsusage.h: Likewise.
58430         * lib/ftell.c: Likewise.
58431         * lib/ftello.c: Likewise.
58432         * lib/fts-cycle.c: Likewise.
58433         * lib/fts.c: Likewise.
58434         * lib/fts_.h: Likewise.
58435         * lib/full-read.c: Likewise.
58436         * lib/full-read.h: Likewise.
58437         * lib/full-write.c: Likewise.
58438         * lib/full-write.h: Likewise.
58439         * lib/fwritable.c: Likewise.
58440         * lib/fwritable.h: Likewise.
58441         * lib/fwriteerror.c: Likewise.
58442         * lib/fwriteerror.h: Likewise.
58443         * lib/fwriting.c: Likewise.
58444         * lib/fwriting.h: Likewise.
58445         * lib/gcd.c: Likewise.
58446         * lib/gcd.h: Likewise.
58447         * lib/getcwd.c: Likewise.
58448         * lib/getdate.h: Likewise.
58449         * lib/getdate.y: Likewise.
58450         * lib/getdomainname.c: Likewise.
58451         * lib/getdomainname.h: Likewise.
58452         * lib/getgroups.c: Likewise.
58453         * lib/gethostname.c: Likewise.
58454         * lib/gethrxtime.c: Likewise.
58455         * lib/gethrxtime.h: Likewise.
58456         * lib/getloadavg.c: Likewise.
58457         * lib/getndelim2.c: Likewise.
58458         * lib/getndelim2.h: Likewise.
58459         * lib/getnline.c: Likewise.
58460         * lib/getnline.h: Likewise.
58461         * lib/getopt.c: Likewise.
58462         * lib/getopt.in.h: Likewise.
58463         * lib/getopt1.c: Likewise.
58464         * lib/getopt_int.h: Likewise.
58465         * lib/getpagesize.h: Likewise.
58466         * lib/getsubopt.c: Likewise.
58467         * lib/gettime.c: Likewise.
58468         * lib/getugroups.c: Likewise.
58469         * lib/getugroups.h: Likewise.
58470         * lib/getusershell.c: Likewise.
58471         * lib/gl_anyavltree_list1.h: Likewise.
58472         * lib/gl_anyavltree_list2.h: Likewise.
58473         * lib/gl_anyhash_list1.h: Likewise.
58474         * lib/gl_anyhash_list2.h: Likewise.
58475         * lib/gl_anylinked_list1.h: Likewise.
58476         * lib/gl_anylinked_list2.h: Likewise.
58477         * lib/gl_anyrbtree_list1.h: Likewise.
58478         * lib/gl_anyrbtree_list2.h: Likewise.
58479         * lib/gl_anytree_list1.h: Likewise.
58480         * lib/gl_anytree_list2.h: Likewise.
58481         * lib/gl_anytree_oset.h: Likewise.
58482         * lib/gl_anytreehash_list1.h: Likewise.
58483         * lib/gl_anytreehash_list2.h: Likewise.
58484         * lib/gl_array_list.c: Likewise.
58485         * lib/gl_array_list.h: Likewise.
58486         * lib/gl_array_oset.c: Likewise.
58487         * lib/gl_array_oset.h: Likewise.
58488         * lib/gl_avltree_list.c: Likewise.
58489         * lib/gl_avltree_list.h: Likewise.
58490         * lib/gl_avltree_oset.c: Likewise.
58491         * lib/gl_avltree_oset.h: Likewise.
58492         * lib/gl_avltreehash_list.c: Likewise.
58493         * lib/gl_avltreehash_list.h: Likewise.
58494         * lib/gl_carray_list.c: Likewise.
58495         * lib/gl_carray_list.h: Likewise.
58496         * lib/gl_linked_list.c: Likewise.
58497         * lib/gl_linked_list.h: Likewise.
58498         * lib/gl_linkedhash_list.c: Likewise.
58499         * lib/gl_linkedhash_list.h: Likewise.
58500         * lib/gl_list.c: Likewise.
58501         * lib/gl_list.h: Likewise.
58502         * lib/gl_oset.c: Likewise.
58503         * lib/gl_oset.h: Likewise.
58504         * lib/gl_rbtree_list.c: Likewise.
58505         * lib/gl_rbtree_list.h: Likewise.
58506         * lib/gl_rbtree_oset.c: Likewise.
58507         * lib/gl_rbtree_oset.h: Likewise.
58508         * lib/gl_rbtreehash_list.c: Likewise.
58509         * lib/gl_rbtreehash_list.h: Likewise.
58510         * lib/gl_sublist.c: Likewise.
58511         * lib/gl_sublist.h: Likewise.
58512         * lib/group-member.c: Likewise.
58513         * lib/group-member.h: Likewise.
58514         * lib/hard-locale.c: Likewise.
58515         * lib/hard-locale.h: Likewise.
58516         * lib/hash-pjw.c: Likewise.
58517         * lib/hash-pjw.h: Likewise.
58518         * lib/hash-triple.c: Likewise.
58519         * lib/hash.c: Likewise.
58520         * lib/hash.h: Likewise.
58521         * lib/human.c: Likewise.
58522         * lib/human.h: Likewise.
58523         * lib/i-ring.c: Likewise.
58524         * lib/i-ring.h: Likewise.
58525         * lib/idcache.c: Likewise.
58526         * lib/imaxabs.c: Likewise.
58527         * lib/imaxdiv.c: Likewise.
58528         * lib/inet_pton.c: Likewise.
58529         * lib/inet_pton.h: Likewise.
58530         * lib/intprops.h: Likewise.
58531         * lib/inttostr.c: Likewise.
58532         * lib/inttostr.h: Likewise.
58533         * lib/inttypes.in.h: Likewise.
58534         * lib/isapipe.c: Likewise.
58535         * lib/isdir.c: Likewise.
58536         * lib/isnan.c: Likewise.
58537         * lib/isnan.h: Likewise.
58538         * lib/isnanf.c: Likewise.
58539         * lib/isnanf.h: Likewise.
58540         * lib/isnanl-nolibm.h: Likewise.
58541         * lib/isnanl.c: Likewise.
58542         * lib/isnanl.h: Likewise.
58543         * lib/javacomp.c: Likewise.
58544         * lib/javacomp.h: Likewise.
58545         * lib/javaexec.c: Likewise.
58546         * lib/javaexec.h: Likewise.
58547         * lib/javaversion.c: Likewise.
58548         * lib/javaversion.h: Likewise.
58549         * lib/javaversion.java: Likewise.
58550         * lib/lbrkprop.h: Likewise.
58551         * lib/lchmod.h: Likewise.
58552         * lib/lchown.c: Likewise.
58553         * lib/ldexpl.c: Likewise.
58554         * lib/linebreak.c: Likewise.
58555         * lib/linebreak.h: Likewise.
58556         * lib/linebuffer.c: Likewise.
58557         * lib/linebuffer.h: Likewise.
58558         * lib/locale.in.h: Likewise.
58559         * lib/logl.c: Likewise.
58560         * lib/long-options.c: Likewise.
58561         * lib/long-options.h: Likewise.
58562         * lib/lstat.c: Likewise.
58563         * lib/lstat.h: Likewise.
58564         * lib/math.in.h: Likewise.
58565         * lib/mbchar.c: Likewise.
58566         * lib/mbchar.h: Likewise.
58567         * lib/mbfile.h: Likewise.
58568         * lib/mbiter.h: Likewise.
58569         * lib/mbscasecmp.c: Likewise.
58570         * lib/mbscasestr.c: Likewise.
58571         * lib/mbschr.c: Likewise.
58572         * lib/mbscspn.c: Likewise.
58573         * lib/mbslen.c: Likewise.
58574         * lib/mbsncasecmp.c: Likewise.
58575         * lib/mbsnlen.c: Likewise.
58576         * lib/mbspbrk.c: Likewise.
58577         * lib/mbspcasecmp.c: Likewise.
58578         * lib/mbsrchr.c: Likewise.
58579         * lib/mbssep.c: Likewise.
58580         * lib/mbsspn.c: Likewise.
58581         * lib/mbsstr.c: Likewise.
58582         * lib/mbstok_r.c: Likewise.
58583         * lib/mbswidth.c: Likewise.
58584         * lib/mbswidth.h: Likewise.
58585         * lib/mbuiter.h: Likewise.
58586         * lib/memcasecmp.c: Likewise.
58587         * lib/memcasecmp.h: Likewise.
58588         * lib/memchr.c: Likewise.
58589         * lib/memcmp.c: Likewise.
58590         * lib/memcoll.c: Likewise.
58591         * lib/memcoll.h: Likewise.
58592         * lib/memcpy.c: Likewise.
58593         * lib/memrchr.c: Likewise.
58594         * lib/mkancesdirs.c: Likewise.
58595         * lib/mkdir-p.c: Likewise.
58596         * lib/mkdir-p.h: Likewise.
58597         * lib/mkdir.c: Likewise.
58598         * lib/mkdirat.c: Likewise.
58599         * lib/mkdtemp.c: Likewise.
58600         * lib/mkstemp-safer.c: Likewise.
58601         * lib/mkstemp.c: Likewise.
58602         * lib/modechange.c: Likewise.
58603         * lib/modechange.h: Likewise.
58604         * lib/mountlist.c: Likewise.
58605         * lib/mountlist.h: Likewise.
58606         * lib/mpsort.c: Likewise.
58607         * lib/nanosleep.c: Likewise.
58608         * lib/obstack.c: Likewise.
58609         * lib/obstack.h: Likewise.
58610         * lib/open-safer.c: Likewise.
58611         * lib/open.c: Likewise.
58612         * lib/openat-die.c: Likewise.
58613         * lib/openat-priv.h: Likewise.
58614         * lib/openat-proc.c: Likewise.
58615         * lib/openat.c: Likewise.
58616         * lib/openat.h: Likewise.
58617         * lib/pagealign_alloc.c: Likewise.
58618         * lib/pagealign_alloc.h: Likewise.
58619         * lib/physmem.c: Likewise.
58620         * lib/physmem.h: Likewise.
58621         * lib/pipe-safer.c: Likewise.
58622         * lib/pipe.c: Likewise.
58623         * lib/pipe.h: Likewise.
58624         * lib/posixtm.c: Likewise.
58625         * lib/posixtm.h: Likewise.
58626         * lib/posixver.c: Likewise.
58627         * lib/printf-frexp.c: Likewise.
58628         * lib/printf-frexp.h: Likewise.
58629         * lib/printf-frexpl.c: Likewise.
58630         * lib/printf-frexpl.h: Likewise.
58631         * lib/printf.c: Likewise.
58632         * lib/progname.c: Likewise.
58633         * lib/progname.h: Likewise.
58634         * lib/progreloc.c: Likewise.
58635         * lib/putenv.c: Likewise.
58636         * lib/quote.c: Likewise.
58637         * lib/quote.h: Likewise.
58638         * lib/quotearg.c: Likewise.
58639         * lib/quotearg.h: Likewise.
58640         * lib/raise.c: Likewise.
58641         * lib/readline.c: Likewise.
58642         * lib/readline.h: Likewise.
58643         * lib/readlink.c: Likewise.
58644         * lib/readtokens.c: Likewise.
58645         * lib/readtokens.h: Likewise.
58646         * lib/readtokens0.c: Likewise.
58647         * lib/readtokens0.h: Likewise.
58648         * lib/readutmp.c: Likewise.
58649         * lib/readutmp.h: Likewise.
58650         * lib/realloc.c: Likewise.
58651         * lib/relocwrapper.c: Likewise.
58652         * lib/rename-dest-slash.c: Likewise.
58653         * lib/rename.c: Likewise.
58654         * lib/rmdir.c: Likewise.
58655         * lib/rpmatch.c: Likewise.
58656         * lib/safe-read.c: Likewise.
58657         * lib/safe-read.h: Likewise.
58658         * lib/safe-write.c: Likewise.
58659         * lib/safe-write.h: Likewise.
58660         * lib/same-inode.h: Likewise.
58661         * lib/same.c: Likewise.
58662         * lib/same.h: Likewise.
58663         * lib/save-cwd.c: Likewise.
58664         * lib/save-cwd.h: Likewise.
58665         * lib/savedir.c: Likewise.
58666         * lib/savedir.h: Likewise.
58667         * lib/savewd.c: Likewise.
58668         * lib/savewd.h: Likewise.
58669         * lib/search.in.h: Likewise.
58670         * lib/setenv.c: Likewise.
58671         * lib/setenv.h: Likewise.
58672         * lib/settime.c: Likewise.
58673         * lib/sh-quote.c: Likewise.
58674         * lib/sh-quote.h: Likewise.
58675         * lib/sig2str.c: Likewise.
58676         * lib/sig2str.h: Likewise.
58677         * lib/signal.in.h: Likewise.
58678         * lib/signbitd.c: Likewise.
58679         * lib/signbitf.c: Likewise.
58680         * lib/signbitl.c: Likewise.
58681         * lib/sigprocmask.c: Likewise.
58682         * lib/sincosl.c: Likewise.
58683         * lib/sleep.c: Likewise.
58684         * lib/sprintf.c: Likewise.
58685         * lib/sqrtl.c: Likewise.
58686         * lib/stat-time.h: Likewise.
58687         * lib/stdio--.h: Likewise.
58688         * lib/stdio-safer.h: Likewise.
58689         * lib/stdlib--.h: Likewise.
58690         * lib/stdlib-safer.h: Likewise.
58691         * lib/stdlib.in.h: Likewise.
58692         * lib/stpcpy.c: Likewise.
58693         * lib/stpncpy.c: Likewise.
58694         * lib/strchrnul.c: Likewise.
58695         * lib/strcspn.c: Likewise.
58696         * lib/strerror.c: Likewise.
58697         * lib/strftime.c: Likewise.
58698         * lib/strftime.h: Likewise.
58699         * lib/striconveh.c: Likewise.
58700         * lib/striconveh.h: Likewise.
58701         * lib/striconveha.c: Likewise.
58702         * lib/striconveha.h: Likewise.
58703         * lib/stripslash.c: Likewise.
58704         * lib/strnlen1.c: Likewise.
58705         * lib/strnlen1.h: Likewise.
58706         * lib/strtod.c: Likewise.
58707         * lib/strtoimax.c: Likewise.
58708         * lib/strtok_r.c: Likewise.
58709         * lib/strtol.c: Likewise.
58710         * lib/strtoll.c: Likewise.
58711         * lib/strtoul.c: Likewise.
58712         * lib/strtoull.c: Likewise.
58713         * lib/sysexits.in.h: Likewise.
58714         * lib/tempname.c: Likewise.
58715         * lib/tempname.h: Likewise.
58716         * lib/timespec.h: Likewise.
58717         * lib/tls.c: Likewise.
58718         * lib/tls.h: Likewise.
58719         * lib/tmpdir.c: Likewise.
58720         * lib/tmpdir.h: Likewise.
58721         * lib/tmpfile-safer.c: Likewise.
58722         * lib/tmpfile.c: Likewise.
58723         * lib/trigl.c: Likewise.
58724         * lib/trigl.h: Likewise.
58725         * lib/trim.c: Likewise.
58726         * lib/trim.h: Likewise.
58727         * lib/trunc.c: Likewise.
58728         * lib/truncf.c: Likewise.
58729         * lib/truncl.c: Likewise.
58730         * lib/tsearch.c: Likewise.
58731         * lib/unicodeio.c: Likewise.
58732         * lib/unicodeio.h: Likewise.
58733         * lib/unistd--.h: Likewise.
58734         * lib/unistd-safer.h: Likewise.
58735         * lib/unistdio/ulc-fprintf.c: Likewise.
58736         * lib/unistdio/ulc-vfprintf.c: Likewise.
58737         * lib/unlinkdir.c: Likewise.
58738         * lib/unlinkdir.h: Likewise.
58739         * lib/unlocked-io.h: Likewise.
58740         * lib/unsetenv.c: Likewise.
58741         * lib/userspec.c: Likewise.
58742         * lib/utime.c: Likewise.
58743         * lib/utimecmp.c: Likewise.
58744         * lib/utimecmp.h: Likewise.
58745         * lib/utimens.c: Likewise.
58746         * lib/verify.h: Likewise.
58747         * lib/verror.c: Likewise.
58748         * lib/verror.h: Likewise.
58749         * lib/version-etc-fsf.c: Likewise.
58750         * lib/version-etc.c: Likewise.
58751         * lib/version-etc.h: Likewise.
58752         * lib/vfprintf.c: Likewise.
58753         * lib/vprintf.c: Likewise.
58754         * lib/vsprintf.c: Likewise.
58755         * lib/w32spawn.h: Likewise.
58756         * lib/wait-process.c: Likewise.
58757         * lib/wait-process.h: Likewise.
58758         * lib/wcwidth.c: Likewise.
58759         * lib/write-any-file.c: Likewise.
58760         * lib/xalloc-die.c: Likewise.
58761         * lib/xalloc.h: Likewise.
58762         * lib/xasprintf.c: Likewise.
58763         * lib/xgetcwd.c: Likewise.
58764         * lib/xgetcwd.h: Likewise.
58765         * lib/xgetdomainname.c: Likewise.
58766         * lib/xgetdomainname.h: Likewise.
58767         * lib/xgethostname.c: Likewise.
58768         * lib/xmalloc.c: Likewise.
58769         * lib/xmalloca.c: Likewise.
58770         * lib/xmalloca.h: Likewise.
58771         * lib/xmemcoll.c: Likewise.
58772         * lib/xnanosleep.c: Likewise.
58773         * lib/xreadlink.c: Likewise.
58774         * lib/xreadlink.h: Likewise.
58775         * lib/xsetenv.c: Likewise.
58776         * lib/xsetenv.h: Likewise.
58777         * lib/xstriconv.c: Likewise.
58778         * lib/xstriconv.h: Likewise.
58779         * lib/xstrndup.c: Likewise.
58780         * lib/xstrndup.h: Likewise.
58781         * lib/xstrtod.c: Likewise.
58782         * lib/xstrtod.h: Likewise.
58783         * lib/xstrtol-error.c: Likewise.
58784         * lib/xstrtol.c: Likewise.
58785         * lib/xstrtol.h: Likewise.
58786         * lib/xtime.h: Likewise.
58787         * lib/xvasprintf.c: Likewise.
58788         * lib/xvasprintf.h: Likewise.
58789         * lib/yesno.c: Likewise.
58790         * lib/yesno.h: Likewise.
58791         * posix-modules: Likewise.
58792         * tests/test-alloca-opt.c: Likewise.
58793         * tests/test-arcfour.c: Likewise.
58794         * tests/test-arctwo.c: Likewise.
58795         * tests/test-argmatch.c: Likewise.
58796         * tests/test-argp-2.sh: Likewise.
58797         * tests/test-argp.c: Likewise.
58798         * tests/test-arpa_inet.c: Likewise.
58799         * tests/test-array_list.c: Likewise.
58800         * tests/test-array_oset.c: Likewise.
58801         * tests/test-atexit.c: Likewise.
58802         * tests/test-avltree_list.c: Likewise.
58803         * tests/test-avltree_oset.c: Likewise.
58804         * tests/test-avltreehash_list.c: Likewise.
58805         * tests/test-base64.c: Likewise.
58806         * tests/test-binary-io.c: Likewise.
58807         * tests/test-byteswap.c: Likewise.
58808         * tests/test-c-ctype.c: Likewise.
58809         * tests/test-c-strcasecmp.c: Likewise.
58810         * tests/test-c-strcasestr.c: Likewise.
58811         * tests/test-c-strncasecmp.c: Likewise.
58812         * tests/test-c-strstr.c: Likewise.
58813         * tests/test-canonicalize-lgpl.c: Likewise.
58814         * tests/test-canonicalize.c: Likewise.
58815         * tests/test-carray_list.c: Likewise.
58816         * tests/test-ceilf.c: Likewise.
58817         * tests/test-ceill.c: Likewise.
58818         * tests/test-count-one-bits.c: Likewise.
58819         * tests/test-crc.c: Likewise.
58820         * tests/test-dirname.c: Likewise.
58821         * tests/test-fbufmode.c: Likewise.
58822         * tests/test-fcntl.c: Likewise.
58823         * tests/test-fflush.c: Likewise.
58824         * tests/test-floorf.c: Likewise.
58825         * tests/test-floorl.c: Likewise.
58826         * tests/test-fopen.c: Likewise.
58827         * tests/test-fprintf-posix.c: Likewise.
58828         * tests/test-fprintf-posix.h: Likewise.
58829         * tests/test-fpurge.c: Likewise.
58830         * tests/test-freadable.c: Likewise.
58831         * tests/test-freadahead.c: Likewise.
58832         * tests/test-freading.c: Likewise.
58833         * tests/test-freopen.c: Likewise.
58834         * tests/test-frexp.c: Likewise.
58835         * tests/test-frexpl.c: Likewise.
58836         * tests/test-fseek.c: Likewise.
58837         * tests/test-fseeko.c: Likewise.
58838         * tests/test-fseterr.c: Likewise.
58839         * tests/test-fstrcmp.c: Likewise.
58840         * tests/test-ftell.c: Likewise.
58841         * tests/test-ftello.c: Likewise.
58842         * tests/test-fwritable.c: Likewise.
58843         * tests/test-fwriting.c: Likewise.
58844         * tests/test-getaddrinfo.c: Likewise.
58845         * tests/test-getpass.c: Likewise.
58846         * tests/test-gettimeofday.c: Likewise.
58847         * tests/test-hmac-md5.c: Likewise.
58848         * tests/test-hmac-sha1.c: Likewise.
58849         * tests/test-iconv.c: Likewise.
58850         * tests/test-iconvme.c: Likewise.
58851         * tests/test-inttypes.c: Likewise.
58852         * tests/test-isnan.c: Likewise.
58853         * tests/test-isnanf.c: Likewise.
58854         * tests/test-isnanl-nolibm.c: Likewise.
58855         * tests/test-isnanl.c: Likewise.
58856         * tests/test-isnanl.h: Likewise.
58857         * tests/test-ldexpl.c: Likewise.
58858         * tests/test-linked_list.c: Likewise.
58859         * tests/test-linkedhash_list.c: Likewise.
58860         * tests/test-locale.c: Likewise.
58861         * tests/test-localename.c: Likewise.
58862         * tests/test-lock.c: Likewise.
58863         * tests/test-lseek.c: Likewise.
58864         * tests/test-malloca.c: Likewise.
58865         * tests/test-math.c: Likewise.
58866         * tests/test-mbscasecmp.c: Likewise.
58867         * tests/test-mbscasestr1.c: Likewise.
58868         * tests/test-mbscasestr2.c: Likewise.
58869         * tests/test-mbscasestr3.c: Likewise.
58870         * tests/test-mbscasestr4.c: Likewise.
58871         * tests/test-mbschr.c: Likewise.
58872         * tests/test-mbscspn.c: Likewise.
58873         * tests/test-mbsncasecmp.c: Likewise.
58874         * tests/test-mbspbrk.c: Likewise.
58875         * tests/test-mbspcasecmp.c: Likewise.
58876         * tests/test-mbsrchr.c: Likewise.
58877         * tests/test-mbsspn.c: Likewise.
58878         * tests/test-mbsstr1.c: Likewise.
58879         * tests/test-mbsstr2.c: Likewise.
58880         * tests/test-mbsstr3.c: Likewise.
58881         * tests/test-md5.c: Likewise.
58882         * tests/test-memmem.c: Likewise.
58883         * tests/test-netinet_in.c: Likewise.
58884         * tests/test-open.c: Likewise.
58885         * tests/test-printf-frexp.c: Likewise.
58886         * tests/test-printf-frexpl.c: Likewise.
58887         * tests/test-printf-posix.c: Likewise.
58888         * tests/test-printf-posix.h: Likewise.
58889         * tests/test-rbtree_list.c: Likewise.
58890         * tests/test-rbtree_oset.c: Likewise.
58891         * tests/test-rbtreehash_list.c: Likewise.
58892         * tests/test-read-file.c: Likewise.
58893         * tests/test-rijndael.c: Likewise.
58894         * tests/test-search.c: Likewise.
58895         * tests/test-signbit.c: Likewise.
58896         * tests/test-sleep.c: Likewise.
58897         * tests/test-snprintf-posix.c: Likewise.
58898         * tests/test-snprintf-posix.h: Likewise.
58899         * tests/test-snprintf.c: Likewise.
58900         * tests/test-sprintf-posix.c: Likewise.
58901         * tests/test-sprintf-posix.h: Likewise.
58902         * tests/test-stat-time.c: Likewise.
58903         * tests/test-stdbool.c: Likewise.
58904         * tests/test-stdint.c: Likewise.
58905         * tests/test-stdio.c: Likewise.
58906         * tests/test-stdlib.c: Likewise.
58907         * tests/test-stpncpy.c: Likewise.
58908         * tests/test-strcasestr.c: Likewise.
58909         * tests/test-striconv.c: Likewise.
58910         * tests/test-striconveh.c: Likewise.
58911         * tests/test-striconveha.c: Likewise.
58912         * tests/test-string.c: Likewise.
58913         * tests/test-sys_select.c: Likewise.
58914         * tests/test-sys_socket.c: Likewise.
58915         * tests/test-sys_stat.c: Likewise.
58916         * tests/test-sys_time.c: Likewise.
58917         * tests/test-sysexits.c: Likewise.
58918         * tests/test-time.c: Likewise.
58919         * tests/test-tls.c: Likewise.
58920         * tests/test-trunc.c: Likewise.
58921         * tests/test-truncf.c: Likewise.
58922         * tests/test-truncl.c: Likewise.
58923         * tests/test-unistd.c: Likewise.
58924         * tests/test-vasnprintf-posix.c: Likewise.
58925         * tests/test-vasnprintf-posix2.c: Likewise.
58926         * tests/test-vasnprintf.c: Likewise.
58927         * tests/test-vasprintf-posix.c: Likewise.
58928         * tests/test-vasprintf.c: Likewise.
58929         * tests/test-verify.c: Likewise.
58930         * tests/test-vfprintf-posix.c: Likewise.
58931         * tests/test-vprintf-posix.c: Likewise.
58932         * tests/test-vsnprintf-posix.c: Likewise.
58933         * tests/test-vsnprintf.c: Likewise.
58934         * tests/test-vsprintf-posix.c: Likewise.
58935         * tests/test-wchar.c: Likewise.
58936         * tests/test-wctype.c: Likewise.
58937         * tests/test-wcwidth.c: Likewise.
58938         * tests/test-xstrtol.c: Likewise.
58939         * tests/test-xvasprintf.c: Likewise.
58940         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58941         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58942         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58943         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58944         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58945         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58946         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58947         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58948         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58949         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58950         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58951         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58952         * tests/uniname/test-uninames.c: Likewise.
58953         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58954         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58955         * tests/unistdio/test-u16-printf1.h: Likewise.
58956         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58957         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58958         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58959         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58960         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58961         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58962         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58963         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58964         * tests/unistdio/test-u32-printf1.h: Likewise.
58965         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58966         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58967         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58968         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58969         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58970         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58971         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58972         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58973         * tests/unistdio/test-u8-printf1.h: Likewise.
58974         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58975         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58976         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58977         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58978         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58979         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58980         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58981         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58982         * tests/unistdio/test-ulc-printf1.h: Likewise.
58983         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58984         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58985         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58986         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58987         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58988         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58989         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58990         * tests/uniwidth/test-u16-width.c: Likewise.
58991         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58992         * tests/uniwidth/test-u32-width.c: Likewise.
58993         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58994         * tests/uniwidth/test-u8-width.c: Likewise.
58995         * tests/uniwidth/test-uc_width.c: Likewise.
58996         * config/srclist-update: Likewise.
58997         (fixlicense): Update to GPLv3+.
58998
58999         Change copyright notice from LGPLv2.1+ to LGPLv3+.
59000         * tests/test-tsearch.c: Change copyright notice.
59001
59002         Change copyright notice from LGPLv2.0+ to LGPLv3+.
59003         * lib/c-strcaseeq.h: Change copyright notice.
59004         * lib/streq.h: Likewise.
59005         * lib/uniconv.h: Likewise.
59006         * lib/uniconv/u-conv-from-enc.h: Likewise.
59007         * lib/uniconv/u-conv-to-enc.h: Likewise.
59008         * lib/uniconv/u-strconv-from-enc.h: Likewise.
59009         * lib/uniconv/u-strconv-to-enc.h: Likewise.
59010         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59011         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59012         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59013         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59014         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59015         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59016         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59017         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59018         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59019         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59020         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59021         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59022         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59023         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59024         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59025         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59026         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59027         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59028         * lib/uniname.h: Likewise.
59029         * lib/uniname/uniname.c: Likewise.
59030         * lib/unistdio.h: Likewise.
59031         * lib/unistdio/u-asnprintf.h: Likewise.
59032         * lib/unistdio/u-asprintf.h: Likewise.
59033         * lib/unistdio/u-printf-args.c: Likewise.
59034         * lib/unistdio/u-printf-args.h: Likewise.
59035         * lib/unistdio/u-printf-parse.h: Likewise.
59036         * lib/unistdio/u-snprintf.h: Likewise.
59037         * lib/unistdio/u-sprintf.h: Likewise.
59038         * lib/unistdio/u-vasprintf.h: Likewise.
59039         * lib/unistdio/u-vsnprintf.h: Likewise.
59040         * lib/unistdio/u-vsprintf.h: Likewise.
59041         * lib/unistdio/u16-asnprintf.c: Likewise.
59042         * lib/unistdio/u16-asprintf.c: Likewise.
59043         * lib/unistdio/u16-printf-parse.c: Likewise.
59044         * lib/unistdio/u16-snprintf.c: Likewise.
59045         * lib/unistdio/u16-sprintf.c: Likewise.
59046         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59047         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59048         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59049         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59050         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59051         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59052         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59053         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59054         * lib/unistdio/u16-vasnprintf.c: Likewise.
59055         * lib/unistdio/u16-vasprintf.c: Likewise.
59056         * lib/unistdio/u16-vsnprintf.c: Likewise.
59057         * lib/unistdio/u16-vsprintf.c: Likewise.
59058         * lib/unistdio/u32-asnprintf.c: Likewise.
59059         * lib/unistdio/u32-asprintf.c: Likewise.
59060         * lib/unistdio/u32-printf-parse.c: Likewise.
59061         * lib/unistdio/u32-snprintf.c: Likewise.
59062         * lib/unistdio/u32-sprintf.c: Likewise.
59063         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59064         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59065         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59066         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59067         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59068         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59069         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59070         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59071         * lib/unistdio/u32-vasnprintf.c: Likewise.
59072         * lib/unistdio/u32-vasprintf.c: Likewise.
59073         * lib/unistdio/u32-vsnprintf.c: Likewise.
59074         * lib/unistdio/u32-vsprintf.c: Likewise.
59075         * lib/unistdio/u8-asnprintf.c: Likewise.
59076         * lib/unistdio/u8-asprintf.c: Likewise.
59077         * lib/unistdio/u8-printf-parse.c: Likewise.
59078         * lib/unistdio/u8-snprintf.c: Likewise.
59079         * lib/unistdio/u8-sprintf.c: Likewise.
59080         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59081         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59082         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59083         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59084         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59085         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59086         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59087         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59088         * lib/unistdio/u8-vasnprintf.c: Likewise.
59089         * lib/unistdio/u8-vasprintf.c: Likewise.
59090         * lib/unistdio/u8-vsnprintf.c: Likewise.
59091         * lib/unistdio/u8-vsprintf.c: Likewise.
59092         * lib/unistdio/ulc-asnprintf.c: Likewise.
59093         * lib/unistdio/ulc-asprintf.c: Likewise.
59094         * lib/unistdio/ulc-printf-parse.c: Likewise.
59095         * lib/unistdio/ulc-snprintf.c: Likewise.
59096         * lib/unistdio/ulc-sprintf.c: Likewise.
59097         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59098         * lib/unistdio/ulc-vasprintf.c: Likewise.
59099         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59100         * lib/unistdio/ulc-vsprintf.c: Likewise.
59101         * lib/unistr.h: Likewise.
59102         * lib/unistr/u-cpy-alloc.h: Likewise.
59103         * lib/unistr/u-cpy.h: Likewise.
59104         * lib/unistr/u-endswith.h: Likewise.
59105         * lib/unistr/u-move.h: Likewise.
59106         * lib/unistr/u-set.h: Likewise.
59107         * lib/unistr/u-startswith.h: Likewise.
59108         * lib/unistr/u-stpcpy.h: Likewise.
59109         * lib/unistr/u-stpncpy.h: Likewise.
59110         * lib/unistr/u-strcat.h: Likewise.
59111         * lib/unistr/u-strcpy.h: Likewise.
59112         * lib/unistr/u-strcspn.h: Likewise.
59113         * lib/unistr/u-strdup.h: Likewise.
59114         * lib/unistr/u-strlen.h: Likewise.
59115         * lib/unistr/u-strncat.h: Likewise.
59116         * lib/unistr/u-strncpy.h: Likewise.
59117         * lib/unistr/u-strnlen.h: Likewise.
59118         * lib/unistr/u-strpbrk.h: Likewise.
59119         * lib/unistr/u-strspn.h: Likewise.
59120         * lib/unistr/u-strstr.h: Likewise.
59121         * lib/unistr/u-strtok.h: Likewise.
59122         * lib/unistr/u16-check.c: Likewise.
59123         * lib/unistr/u16-chr.c: Likewise.
59124         * lib/unistr/u16-cmp.c: Likewise.
59125         * lib/unistr/u16-cpy-alloc.c: Likewise.
59126         * lib/unistr/u16-cpy.c: Likewise.
59127         * lib/unistr/u16-endswith.c: Likewise.
59128         * lib/unistr/u16-mblen.c: Likewise.
59129         * lib/unistr/u16-mbsnlen.c: Likewise.
59130         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59131         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59132         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59133         * lib/unistr/u16-mbtouc.c: Likewise.
59134         * lib/unistr/u16-mbtoucr.c: Likewise.
59135         * lib/unistr/u16-move.c: Likewise.
59136         * lib/unistr/u16-next.c: Likewise.
59137         * lib/unistr/u16-prev.c: Likewise.
59138         * lib/unistr/u16-set.c: Likewise.
59139         * lib/unistr/u16-startswith.c: Likewise.
59140         * lib/unistr/u16-stpcpy.c: Likewise.
59141         * lib/unistr/u16-stpncpy.c: Likewise.
59142         * lib/unistr/u16-strcat.c: Likewise.
59143         * lib/unistr/u16-strchr.c: Likewise.
59144         * lib/unistr/u16-strcmp.c: Likewise.
59145         * lib/unistr/u16-strcpy.c: Likewise.
59146         * lib/unistr/u16-strcspn.c: Likewise.
59147         * lib/unistr/u16-strdup.c: Likewise.
59148         * lib/unistr/u16-strlen.c: Likewise.
59149         * lib/unistr/u16-strmblen.c: Likewise.
59150         * lib/unistr/u16-strmbtouc.c: Likewise.
59151         * lib/unistr/u16-strncat.c: Likewise.
59152         * lib/unistr/u16-strncmp.c: Likewise.
59153         * lib/unistr/u16-strncpy.c: Likewise.
59154         * lib/unistr/u16-strnlen.c: Likewise.
59155         * lib/unistr/u16-strpbrk.c: Likewise.
59156         * lib/unistr/u16-strrchr.c: Likewise.
59157         * lib/unistr/u16-strspn.c: Likewise.
59158         * lib/unistr/u16-strstr.c: Likewise.
59159         * lib/unistr/u16-strtok.c: Likewise.
59160         * lib/unistr/u16-to-u32.c: Likewise.
59161         * lib/unistr/u16-to-u8.c: Likewise.
59162         * lib/unistr/u16-uctomb-aux.c: Likewise.
59163         * lib/unistr/u16-uctomb.c: Likewise.
59164         * lib/unistr/u32-check.c: Likewise.
59165         * lib/unistr/u32-chr.c: Likewise.
59166         * lib/unistr/u32-cmp.c: Likewise.
59167         * lib/unistr/u32-cpy-alloc.c: Likewise.
59168         * lib/unistr/u32-cpy.c: Likewise.
59169         * lib/unistr/u32-endswith.c: Likewise.
59170         * lib/unistr/u32-mblen.c: Likewise.
59171         * lib/unistr/u32-mbsnlen.c: Likewise.
59172         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59173         * lib/unistr/u32-mbtouc.c: Likewise.
59174         * lib/unistr/u32-mbtoucr.c: Likewise.
59175         * lib/unistr/u32-move.c: Likewise.
59176         * lib/unistr/u32-next.c: Likewise.
59177         * lib/unistr/u32-prev.c: Likewise.
59178         * lib/unistr/u32-set.c: Likewise.
59179         * lib/unistr/u32-startswith.c: Likewise.
59180         * lib/unistr/u32-stpcpy.c: Likewise.
59181         * lib/unistr/u32-stpncpy.c: Likewise.
59182         * lib/unistr/u32-strcat.c: Likewise.
59183         * lib/unistr/u32-strchr.c: Likewise.
59184         * lib/unistr/u32-strcmp.c: Likewise.
59185         * lib/unistr/u32-strcpy.c: Likewise.
59186         * lib/unistr/u32-strcspn.c: Likewise.
59187         * lib/unistr/u32-strdup.c: Likewise.
59188         * lib/unistr/u32-strlen.c: Likewise.
59189         * lib/unistr/u32-strmblen.c: Likewise.
59190         * lib/unistr/u32-strmbtouc.c: Likewise.
59191         * lib/unistr/u32-strncat.c: Likewise.
59192         * lib/unistr/u32-strncmp.c: Likewise.
59193         * lib/unistr/u32-strncpy.c: Likewise.
59194         * lib/unistr/u32-strnlen.c: Likewise.
59195         * lib/unistr/u32-strpbrk.c: Likewise.
59196         * lib/unistr/u32-strrchr.c: Likewise.
59197         * lib/unistr/u32-strspn.c: Likewise.
59198         * lib/unistr/u32-strstr.c: Likewise.
59199         * lib/unistr/u32-strtok.c: Likewise.
59200         * lib/unistr/u32-to-u16.c: Likewise.
59201         * lib/unistr/u32-to-u8.c: Likewise.
59202         * lib/unistr/u32-uctomb.c: Likewise.
59203         * lib/unistr/u8-check.c: Likewise.
59204         * lib/unistr/u8-chr.c: Likewise.
59205         * lib/unistr/u8-cmp.c: Likewise.
59206         * lib/unistr/u8-cpy-alloc.c: Likewise.
59207         * lib/unistr/u8-cpy.c: Likewise.
59208         * lib/unistr/u8-endswith.c: Likewise.
59209         * lib/unistr/u8-mblen.c: Likewise.
59210         * lib/unistr/u8-mbsnlen.c: Likewise.
59211         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59212         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59213         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59214         * lib/unistr/u8-mbtouc.c: Likewise.
59215         * lib/unistr/u8-mbtoucr.c: Likewise.
59216         * lib/unistr/u8-move.c: Likewise.
59217         * lib/unistr/u8-next.c: Likewise.
59218         * lib/unistr/u8-prev.c: Likewise.
59219         * lib/unistr/u8-set.c: Likewise.
59220         * lib/unistr/u8-startswith.c: Likewise.
59221         * lib/unistr/u8-stpcpy.c: Likewise.
59222         * lib/unistr/u8-stpncpy.c: Likewise.
59223         * lib/unistr/u8-strcat.c: Likewise.
59224         * lib/unistr/u8-strchr.c: Likewise.
59225         * lib/unistr/u8-strcmp.c: Likewise.
59226         * lib/unistr/u8-strcpy.c: Likewise.
59227         * lib/unistr/u8-strcspn.c: Likewise.
59228         * lib/unistr/u8-strdup.c: Likewise.
59229         * lib/unistr/u8-strlen.c: Likewise.
59230         * lib/unistr/u8-strmblen.c: Likewise.
59231         * lib/unistr/u8-strmbtouc.c: Likewise.
59232         * lib/unistr/u8-strncat.c: Likewise.
59233         * lib/unistr/u8-strncmp.c: Likewise.
59234         * lib/unistr/u8-strncpy.c: Likewise.
59235         * lib/unistr/u8-strnlen.c: Likewise.
59236         * lib/unistr/u8-strpbrk.c: Likewise.
59237         * lib/unistr/u8-strrchr.c: Likewise.
59238         * lib/unistr/u8-strspn.c: Likewise.
59239         * lib/unistr/u8-strstr.c: Likewise.
59240         * lib/unistr/u8-strtok.c: Likewise.
59241         * lib/unistr/u8-to-u16.c: Likewise.
59242         * lib/unistr/u8-to-u32.c: Likewise.
59243         * lib/unistr/u8-uctomb-aux.c: Likewise.
59244         * lib/unistr/u8-uctomb.c: Likewise.
59245         * lib/unitypes.h: Likewise.
59246         * lib/uniwidth.h: Likewise.
59247         * lib/uniwidth/cjk.h: Likewise.
59248         * lib/uniwidth/u16-strwidth.c: Likewise.
59249         * lib/uniwidth/u16-width.c: Likewise.
59250         * lib/uniwidth/u32-strwidth.c: Likewise.
59251         * lib/uniwidth/u32-width.c: Likewise.
59252         * lib/uniwidth/u8-strwidth.c: Likewise.
59253         * lib/uniwidth/u8-width.c: Likewise.
59254         * lib/uniwidth/width.c: Likewise.
59255
59256 2007-10-07  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59259         The file is still under LGPL (see modules/inttypes).
59260
59261 2007-10-06  Bruno Haible  <bruno@clisp.org>
59262
59263         * modules/trunc (Dependencies): Add 'extensions'.
59264         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59265         Reported by Ben Pfaff <blp@gnu.org>.
59266
59267 2007-10-06  Bruno Haible  <bruno@clisp.org>
59268
59269         * modules/freopen-tests: New file.
59270         * tests/test-freopen.c: New file.
59271
59272         * modules/fopen-tests: New file.
59273         * tests/test-fopen.c: New file.
59274
59275         * modules/fopen: New file.
59276         * lib/fopen.c: New file.
59277         * m4/fopen.m4: New file.
59278         * modules/freopen: New file.
59279         * lib/freopen.c: New file.
59280         * m4/freopen.m4: New file.
59281         * lib/stdio.in.h (fopen, freopen): New declarations.
59282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59283         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59284         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59285         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59286         * doc/functions/fopen.texi: Mention the 'fopen' module.
59287         * doc/functions/freopen.texi: Mention the 'freopen' module.
59288
59289 2007-10-06  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/open-tests: New file.
59292         * tests/test-open.c: New file.
59293
59294         * modules/open: New file.
59295         * lib/open.c: New file.
59296         * m4/open.m4: New file.
59297         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59298         lib/open.c does.
59299         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59300         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59301         macros.
59302         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59303         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59304         REPLACE_OPEN.
59305         * doc/functions/open.texi: Mention the 'open' module.
59306
59307 2007-10-04  Bruno Haible  <bruno@clisp.org>
59308
59309         * modules/ceill-tests: New file.
59310         * tests/test-ceill.c: New file.
59311
59312         * modules/ceill: New file.
59313         * lib/ceill.c: Replace entire file.
59314         * m4/ceill.m4: New file.
59315         * lib/math.in.h (ceill): Replace declaration.
59316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59317         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59318         * doc/functions/ceill.texi: Mention the 'ceill' module.
59319         * modules/mathl (Files): Remove lib/ceill.c.
59320         (Depends-on): Add ceill.
59321
59322 2007-10-04  Bruno Haible  <bruno@clisp.org>
59323
59324         * modules/ceilf-tests: New file.
59325         * tests/test-ceilf.c: New file.
59326
59327         * modules/ceilf: New file.
59328         * lib/ceil.c: New file.
59329         * lib/ceilf.c: New file.
59330         * m4/ceilf.m4: New file.
59331         * lib/math.in.h (ceilf): New declaration.
59332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59333         HAVE_DECL_CEILF.
59334         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59335         HAVE_DECL_CEILF.
59336         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59337
59338 2007-10-04  Bruno Haible  <bruno@clisp.org>
59339
59340         * modules/floorl-tests: New file.
59341         * tests/test-floorl.c: New file.
59342
59343         * modules/floorl: New file.
59344         * lib/floorl.c: Replace entire file.
59345         * m4/floorl.m4: New file.
59346         * lib/math.in.h (floorl): Replace declaration.
59347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59348         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59349         * doc/functions/floorl.texi: Mention the 'floorl' module.
59350         * modules/mathl (Files): Remove lib/floorl.c.
59351         (Depends-on): Add floorl.
59352
59353 2007-10-04  Bruno Haible  <bruno@clisp.org>
59354
59355         * modules/floorf-tests: New file.
59356         * tests/test-floorf.c: New file.
59357
59358         * modules/floorf: New file.
59359         * lib/floor.c: New file.
59360         * lib/floorf.c: New file.
59361         * m4/floorf.m4: New file.
59362         * lib/math.in.h (floorf): New declaration.
59363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59364         HAVE_DECL_FLOORF.
59365         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59366         HAVE_DECL_FLOORF.
59367         * doc/functions/floorf.texi: Mention the 'floorf' module.
59368
59369 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59370             Bruno Haible  <bruno@clisp.org>
59371
59372         Advertise for the Git server instead of the CVS server.
59373         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59374         repository instead of the CVS one.
59375         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59376         about all VCS systems generically.
59377         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59378
59379 2007-10-04  Bruno Haible  <bruno@clisp.org>
59380
59381         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59382         means.
59383         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59384
59385 2007-10-04  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/truncl-tests: New file.
59388         * tests/test-truncl.c: New file.
59389
59390         * modules/truncl: New file.
59391         * lib/truncl.c: New file.
59392         * m4/truncl.m4: New file.
59393         * lib/math.in.h (truncl): New declaration.
59394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59395         HAVE_DECL_TRUNCL.
59396         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59397         HAVE_DECL_TRUNCL.
59398         * doc/functions/truncl.texi: Mention the 'truncl' module.
59399
59400 2007-10-04  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/truncf-tests: New file.
59403         * tests/test-truncf.c: New file.
59404
59405         * modules/truncf: New file.
59406         * lib/trunc.c: Make paramerizable through USE_* macros.
59407         * lib/truncf.c: New file.
59408         * m4/truncf.m4: New file.
59409         * lib/math.in.h (truncf): New declaration.
59410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59411         HAVE_DECL_TRUNCF.
59412         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59413         HAVE_DECL_TRUNCF.
59414         * doc/functions/truncf.texi: Mention the 'truncf' module.
59415
59416 2007-10-03  Bruno Haible  <bruno@clisp.org>
59417
59418         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59419         augmentation also for tests modules.
59420         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59421         * modules/atexit-tests (Makefile.am): Likewise.
59422         * modules/binary-io-tests (Makefile.am): Likewise.
59423         * modules/c-strcase-tests (Makefile.am): Likewise.
59424         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59425         * modules/canonicalize-tests (Makefile.am): Likewise.
59426         * modules/closein-tests (Makefile.am): Likewise.
59427         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59428         * modules/freadahead-tests (Makefile.am): Likewise.
59429         * modules/fseek-tests (Makefile.am): Likewise.
59430         * modules/fseeko-tests (Makefile.am): Likewise.
59431         * modules/ftell-tests (Makefile.am): Likewise.
59432         * modules/ftello-tests (Makefile.am): Likewise.
59433         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59434         * modules/isnanl-tests (Makefile.am): Likewise.
59435         * modules/lseek-tests (Makefile.am): Likewise.
59436         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59437         * modules/mbscasestr-tests (Makefile.am): Likewise.
59438         * modules/mbschr-tests (Makefile.am): Likewise.
59439         * modules/mbscspn-tests (Makefile.am): Likewise.
59440         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59441         * modules/mbspbrk-tests (Makefile.am): Likewise.
59442         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59443         * modules/mbsrchr-tests (Makefile.am): Likewise.
59444         * modules/mbsspn-tests (Makefile.am): Likewise.
59445         * modules/mbsstr-tests (Makefile.am): Likewise.
59446         * modules/printf-posix-tests (Makefile.am): Likewise.
59447         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59448         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59449         * modules/tsearch-tests (Makefile.am): Likewise.
59450         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59451         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59452         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59453         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59454         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59455         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59456         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59457         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59458         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59459         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59460         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59461         * modules/xstrtol-tests (Makefile.am): Likewise.
59462         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59463         * modules/yesno-tests (Makefile.am): Likewise.
59464
59465 2007-10-03  Bruno Haible  <bruno@clisp.org>
59466
59467         * modules/trunc-tests: New file.
59468         * tests/test-trunc.c: New file.
59469
59470         * modules/trunc: New file.
59471         * lib/trunc.c: New file.
59472         * m4/trunc.m4: New file.
59473         * lib/math.in.h (trunc): New declaration.
59474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59475         HAVE_DECL_TRUNC.
59476         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59477         HAVE_DECL_TRUNC.
59478         * doc/functions/trunc.texi: Mention the 'trunc' module.
59479
59480 2007-10-03  Bruno Haible  <bruno@clisp.org>
59481
59482         * tests/test-fpending.c: New file, mostly copied
59483         from coreutils/lib/t-fpending.c.
59484         * modules/fpending-tests: New file.
59485
59486 2007-10-03  Bruno Haible  <bruno@clisp.org>
59487
59488         Port the stdio extensions to QNX (untested).
59489         * lib/fseterr.c (fseterr): Add support for QNX.
59490         * lib/fbufmode.c (fbufmode): Likewise.
59491         * lib/freadable.c (freadable): Likewise.
59492         * lib/fwritable.c (fwritable): Likewise.
59493         * lib/freading.c (freading): Likewise.
59494         * lib/fwriting.c (fwriting): Likewise.
59495         * lib/freadahead.c (freadahed): Likewise.
59496         * lib/fpurge.c (fpurge): Likewise.
59497         * lib/fseeko.c (rpl_fseeko): Likewise.
59498
59499 2007-10-03  Bruno Haible  <bruno@clisp.org>
59500             Jim Meyering  <jim@meyering.net>
59501             Eric Blake  <ebb9@byu.net>
59502
59503         * doc/relocatable.texi: Use @command instead of @program.
59504
59505 2007-10-02  Jim Meyering  <jim@meyering.net>
59506
59507         Perform one more "_.h" -> ".in.h" substitution.
59508         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59509         instead of unistd_.h here, too.
59510
59511 2007-10-01  Bruno Haible  <bruno@clisp.org>
59512
59513         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59514         Needed for the alloca-opt module.
59515
59516 2007-09-30  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59519         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59520         alloca_.h.
59521         * lib/argz.in.h: Renamed from lib/argz_.h.
59522         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59523         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59524         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59525         byteswap_.h.
59526         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59527         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59528         dirent_.h.
59529         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59530         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59531         fcntl_.h.
59532         * lib/float.in.h: Renamed from lib/float_.h.
59533         * modules/float (Files, Makefile.am): Use float.in.h instead of
59534         float_.h.
59535         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59536         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59537         fnmatch_.h.
59538         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59539         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59540         getopt_.h.
59541         * lib/glob.in.h: Renamed from lib/glob_.h.
59542         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59543         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59544         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59545         iconv_.h.
59546         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59547         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59548         inttypes_.h.
59549         * lib/locale.in.h: Renamed from lib/locale_.h.
59550         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59551         locale_.h.
59552         * lib/math.in.h: Renamed from lib/math_.h.
59553         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59554         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59555         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59556         of netinet_in_.h. Add dependency.
59557         * lib/poll.in.h: Renamed from lib/poll_.h.
59558         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59559         * lib/search.in.h: Renamed from lib/search_.h.
59560         * modules/search (Files, Makefile.am): Use search.in.h instead of
59561         search_.h.
59562         * lib/signal.in.h: Renamed from lib/signal_.h.
59563         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59564         _signal.h.
59565         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59566         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59567         stdbool_.h.
59568         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59569         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59570         stdint_.h.
59571         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59572         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59573         stdio_.h.
59574         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59575         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59576         stdlib_.h.
59577         * lib/string.in.h: Renamed from lib/string_.h.
59578         * modules/string (Files, Makefile.am): Use string.in.h instead of
59579         string_.h.
59580         * doc/gnulib-tool.texi (Initial import): Update.
59581         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59582         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59583         of sys_select_.h. Add dependency.
59584         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59585         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59586         of sys_socket_.h.
59587         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59588         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59589         sys_stat_.h.
59590         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59591         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59592         sys_time_.h.
59593         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59594         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59595         sysexits_.h.
59596         * lib/time.in.h: Renamed from lib/time_.h.
59597         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59598         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59599         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59600         unistd_.h.
59601         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59602         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59603         wchar_.h.
59604         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59605         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59606         wctype_.h.
59607         * build-aux/bootstrap (slurp): Update.
59608         * lib/.cppi-disable: Update.
59609
59610 2007-09-30  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59613         Needed on BeOS.
59614
59615 2007-09-30  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59618
59619 2007-09-29  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59622
59623 2007-09-29  Bruno Haible  <bruno@clisp.org>
59624
59625         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59626         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59627         * build-aux/install-reloc: Compile also areadlink.c.
59628         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59629
59630 2007-09-29  Bruno Haible  <bruno@clisp.org>
59631
59632         * gnulib-tool (func_emit_initmacro_done): Indentation.
59633
59634 2007-09-29  Bruno Haible  <bruno@clisp.org>
59635
59636         * README: Add CVS checkout update instructions.
59637         Info from Bob Proulx <bob@proulx.com>.
59638
59639 2007-09-28  Eric Blake  <ebb9@byu.net>
59640
59641         Provide move-if-change.
59642         * build-aux/move-if-change: New file, based on best practice
59643         rather than any canonical upstream location.
59644
59645 2007-09-28  Jim Meyering  <jim@meyering.net>
59646
59647         Fix canonicalize loop-detection corner case.
59648         Do not attempt to stat the symlink values stored via seen_triple.
59649         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59650         on linux-2.6.18, (but not 2.6.22).
59651         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59652         triple_compare.  The former compares dev,ino,filename, while the latter
59653         would actually stat dirname(filename) when dev and ino were equal.
59654         * lib/hash-triple.c: Install <string.h>.
59655         (STREQ): Define.
59656         (triple_compare_ino_str): New function.
59657         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59658
59659 2007-09-28  Eric Blake  <ebb9@byu.net>
59660
59661         Enforce that AC_REPLACE_FUNCS files exist.
59662         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59663         override check for typos.
59664
59665         Fix test-closein on Solaris 10.
59666         * tests/test-closein.c (main): Don't assume stdin can be inherited
59667         closed on all systems.
59668         * tests/test-closein.sh: Likewise.
59669         Reported by Piotr Tarnowski.
59670
59671 2007-09-28  Jim Meyering  <jim@meyering.net>
59672
59673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59674
59675 2007-09-27  Jim Meyering  <jim@meyering.net>
59676
59677         canonicalize: Avoid a false-positive cycle failure.
59678         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59679         Sort.  Remove cycle-check.
59680         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59681         not cycle-check.h.
59682         (seen_triple): New function.
59683         (canonicalize_filename_mode): Use it instead of cycle-check.
59684         * tests/test-canonicalize.c: Add a test for this bug.
59685         * tests/test-canonicalize.sh: Set up and run the test.
59686
59687         New module, file-set, from coreutils.
59688         * modules/file-set: Define it.
59689         * lib/file-set.c, lib/file-set.h: Implement.
59690
59691         New module, hash-triple, from coreutils.
59692         * modules/hash-triple: Define it.
59693         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59694
59695 2007-09-25  Eric Blake  <ebb9@byu.net>
59696
59697         Fix strerror on Interix.
59698         * lib/string_.h (strerror): Declare replacement.
59699         * doc/functions/strerror.texi (strerror): Document the Interix
59700         shortcoming.
59701         * modules/string (Makefile.am): Support new hooks.
59702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59703         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59704         gl_FUNC_STRERROR_SEPARATE.
59705         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59706         * lib/strerror.c (rpl_strerror): Provide replacement.
59707         * modules/strerror (Depends-on): Add string.
59708         (configure.ac): Detect use of module.
59709         * tests/test-strerror.c: New file.
59710         * modules/strerror-tests: New test module.
59711         * modules/argp (Depends-on): Add strerror.
59712         * modules/error (Depends-on): Likewise.
59713         Reported by Martin Koeppe.
59714
59715 2007-09-24  Bruno Haible  <bruno@clisp.org>
59716
59717         * README: Update git instructions.
59718
59719 2007-09-24  Eric Blake  <ebb9@byu.net>
59720
59721         Revert fpending breakage from 2007-09-08.
59722         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59723         __fpending.c.
59724
59725 2007-09-24  Jim Meyering  <jim@meyering.net>
59726
59727         filenamecat.c: Add a test.
59728         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59729         showing how the function works when DIR is the empty string.
59730
59731 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59732
59733         * tests/test-canonicalize.sh: Turn on executable bit.
59734
59735 2007-09-19  Eric Blake  <ebb9@byu.net>
59736
59737         * README: Update CVS instructions.
59738
59739 2007-09-18  Bruno Haible  <bruno@clisp.org>
59740
59741         * modules/areadlink: New file.
59742         * lib/areadlink.h (areadlink): New declaration.
59743         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59744
59745 2007-09-17  Jim Meyering  <jim@meyering.net>
59746
59747         * lib/savewd.c (ESTALE) [!defined]: Define.
59748         Reported to be required on Interix by Martin Koeppe.
59749
59750 2007-09-17  Bruno Haible  <bruno@clisp.org>
59751
59752         * gnulib-tool (func_version): Use $version.
59753
59754 2007-09-16  Bruno Haible  <bruno@clisp.org>
59755
59756         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59757         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59758         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59759         Reported by Greg Schafer <gschafer@zip.com.au>.
59760
59761 2007-09-15  Bruno Haible  <bruno@clisp.org>
59762
59763         * gnulib-tool (sed): Try a little harder to make bash understand the
59764         alias.
59765         Reported by Bruce Korb <bruce.korb@gmail.com>.
59766
59767 2007-09-13  Eric Blake  <ebb9@byu.net>
59768
59769         * ChangeLog: Remove conflict markers.
59770
59771 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59772
59773         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59774         Reported by Bruno Haible <bruno@clisp.org>.
59775
59776 2007-09-12  Bruno Haible  <bruno@clisp.org>
59777
59778         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59779         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59780         is not defined.
59781
59782 2007-09-12  Eric Blake  <ebb9@byu.net>
59783
59784         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59785         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59786         Autoconf definition.
59787         * modules/euidaccess (Depends-on): Add extensions, for
59788         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59789         * modules/fnmatch (Depends-on): Likewise.
59790         * modules/getaddrinfo (Depends-on): Likewise.
59791         * modules/getdelim (Depends-on): Likewise.
59792         * modules/getline (Depends-on): Likewise.
59793         * modules/getsubopt (Depends-on): Likewise.
59794         * modules/gettext (Depends-on): Likewise.
59795         * modules/group-member (Depends-on): Likewise.
59796         * modules/mbchar (Depends-on): Likewise.
59797         * modules/memmem (Depends-on): Likewise.
59798         * modules/mempcpy (Depends-on): Likewise.
59799         * modules/memrchr (Depends-on): Likewise.
59800         * modules/pagealign_alloc (Depends-on): Likewise.
59801         * modules/readutmp (Depends-on): Likewise.
59802         * modules/stpcpy (Depends-on): Likewise.
59803         * modules/stpncpy (Depends-on): Likewise.
59804         * modules/strchrnul (Depends-on): Likewise.
59805         * modules/strndup (Depends-on): Likewise.
59806         * modules/strsep (Depends-on): Likewise.
59807         * modules/strverscmp (Depends-on): Likewise.
59808         * modules/vasprintf (Depends-on): Likewise.
59809         * modules/wcwidth (Depends-on): Likewise.
59810         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59811         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59812         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59815         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59816         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59817         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59818         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59819         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59820         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59821         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59822         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59824         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59825         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59827         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59828         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59829         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59830         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59831         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59832         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59833         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59834         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59836         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59837         so that lock.m4 can be used in gettext without extensions module.
59838
59839 2007-09-11  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/isc-posix.m4: Remove file.
59842         Suggested by Eric Blake.
59843
59844 2007-09-11  Eric Blake  <ebb9@byu.net>
59845
59846         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59847
59848 2007-09-10  Bruno Haible  <bruno@clisp.org>
59849
59850         * posix-modules: Fix typo in error message.
59851         Reported by Matt <mkraai@beckman.com>.
59852
59853 2007-09-09  Bruno Haible  <bruno@clisp.org>
59854
59855         * doc/functions/getdelim.texi: Update list of platforms lacking the
59856         function.
59857         * doc/functions/getline.texi: Likewise.
59858
59859 2007-09-09  Jim Meyering  <jim@meyering.net>
59860
59861         * lib/hash.c (hash_initialize): Detect calloc failure.
59862         Reported by Bruno Haible.
59863
59864 2007-09-09  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59867         malloc or realloc fails.
59868
59869 2007-09-09  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/getcwd (Depends-on): Add malloc-posix.
59872         * modules/glob (Depends-on): Likewise.
59873         * modules/putenv (Depends-on): Likewise.
59874         * modules/strdup (Depends-on): Likewise.
59875         * modules/getdelim (Depends-on): Add realloc-posix.
59876         * modules/read-file (Depends-on): Likewise.
59877
59878 2007-09-09  Bruno Haible  <bruno@clisp.org>
59879
59880         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59881         (gl_FUNC_MALLOC_POSIX): Require it.
59882         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59883         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59884         * modules/realloc (Files): Add m4/malloc.m4.
59885         * modules/calloc (Files): Likewise.
59886
59887 2007-09-09  Bruno Haible  <bruno@clisp.org>
59888
59889         * modules/malloc-posix: New file.
59890         * modules/malloc (Depends-on): Add malloc-posix.
59891         * lib/malloc.c: Include errno.h.
59892         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59893         and a POSIX-compatible malloc into a single function. Set ENOMEM
59894         when returning NULL.
59895         * m4/malloc.m4: New file.
59896         * doc/functions/malloc.texi: Mention the malloc-posix module.
59897         * lib/stdlib_.h (malloc): New declaration.
59898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59899         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59900         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59901         and HAVE_MALLOC_POSIX.
59902
59903 2007-09-09  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/realloc-posix: New file.
59906         * modules/realloc (Depends-on): Add realloc-posix.
59907         * lib/realloc.c: Include errno.h.
59908         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59909         and a POSIX-compatible realloc into a single function. Set ENOMEM
59910         when returning NULL.
59911         * m4/realloc.m4: New file.
59912         * doc/functions/realloc.texi: Mention the realloc-posix module.
59913         * lib/stdlib_.h (realloc): New declaration.
59914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59915         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59916         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59917         and HAVE_REALLOC_POSIX.
59918
59919 2007-09-09  Bruno Haible  <bruno@clisp.org>
59920
59921         * modules/calloc-posix: New file.
59922         * modules/calloc (Depends-on): Add calloc-posix.
59923         * lib/calloc.c: Include errno.h.
59924         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59925         and a POSIX-compatible calloc into a single function. Set ENOMEM
59926         when returning NULL.
59927         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59928         * doc/functions/calloc.texi: Mention the calloc-posix module.
59929         * lib/stdlib_.h (calloc): New declaration.
59930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59931         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59932         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59933         and HAVE_CALLOC_POSIX.
59934
59935 2007-09-09  Bruno Haible  <bruno@clisp.org>
59936
59937         Allow for modules to show an arbitrary notice.
59938         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59939         * gnulib-tool: New option --extract-notice.
59940         (func_usage): Document it.
59941         (sed_extract_prog): Update.
59942         (func_get_notice): New function.
59943         (func_modules_notice): New function.
59944         (func_import, func_create_testdir): Invoke it.
59945         Suggested by Jim Meyering.
59946
59947 2007-09-09  Bruno Haible  <bruno@clisp.org>
59948
59949         * gnulib-tool: New options --verbose, --quiet.
59950         (func_usage): Document them.
59951         (verbose): New variable.
59952         (func_execute_command): New function.
59953         (func_import): Don't show the module list and the file list if
59954         $verbose < 0.
59955         (func_create_testdir): Likewise. Use func_execute_command.
59956         (func_create_megatestdir): Use func_execute_command.
59957
59958 2007-09-08  Bruno Haible  <bruno@clisp.org>
59959
59960         * gnulib-tool (func_import): Prefer rsync over wget when available,
59961         for fetching the PO files.
59962
59963 2007-09-08  Bruno Haible  <bruno@clisp.org>
59964
59965         * posix-modules: New file. Portions copied from gnulib-tool.
59966         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59967
59968 2007-09-08  Jim Meyering  <jim@meyering.net>
59969
59970         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59971         * lib/fpending.h: Rename from __fpending.h.
59972         * lib/fpending.c: Rename from __fpending.c.
59973         Include "fpending.h", not "__fpending.h".
59974         * lib/__fpending.h, lib/__fpending.c: Remove files.
59975         * modules/fpending (Files): Reflect new file names.
59976         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59977
59978 2007-09-08  Bruno Haible  <bruno@clisp.org>
59979
59980         * m4/inttypes-h.m4: Remove stub file.
59981
59982 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59983
59984         * doc/headers/stdint.texi: Discuss #include_next issue.
59985
59986 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59989
59990 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59991
59992         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59993         in variable name.
59994
59995 2007-09-03  Jim Meyering  <jim@meyering.net>
59996
59997         New module: git-version-gen.
59998         * modules/git-version-gen: New file.
59999
60000         Import changes from coreutils for bootstrap script.
60001
60002         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
60003
60004         bootstrap: uses rsync to download the .po files
60005         * build-aux/bootstrap (po_download_command_format): New global.
60006         (download_po_files): Use rsync.
60007         (update_po_files): Don't remove .po files after download,
60008         so future rsync runs can take advantage of the copies.
60009
60010         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60011
60012         Solve the unnecessary-.po-file-regeneration problem once and for all.
60013         * build-aux/bootstrap (download_po_files): New function, renamed from
60014         get_translations.  Now, downloads, but doesn't update LINGUAS.
60015         (update_po_files): New function.
60016
60017         bootstrap: Ignore more.
60018         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60019         uniwidth to e.g., lib/.gitignore.
60020         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60021
60022         * build-aux/bootstrap: New setting: vc_ignore.
60023         (insert_sorted_if_absent): Create $file if absent.
60024         Adapt to new, possibly empty, list: $vc_ignore.
60025
60026         bootstrap: generate more ignorable names
60027         * build-aux/bootstrap (slurp): When generating ignorable names,
60028         also map .sin to .sed, .gperf to .c, and .y to .c.
60029
60030 2007-09-03  Jim Meyering  <jim@meyering.net>
60031
60032         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60033         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60034
60035 2007-09-02  Bruno Haible  <bruno@clisp.org>
60036
60037         Fix mis-recognition of 'mcs' on QNX 6.
60038         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60039         output contains the string "Mono".
60040         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60041         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60042
60043 2007-09-01  Bruno Haible  <bruno@clisp.org>
60044
60045         Fix collision between uniwidth/* and linebreak modules.
60046         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60047         u32_width): Remove declarations.
60048         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60049         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60050         streq3, streq2, streq1, streq0): Remove functions.
60051         (STREQ): Remove macro.
60052         (is_cjk_encoding): Remove function.
60053         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60054         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60055         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60056         * NEWS: Document the change.
60057
60058 2007-09-01  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/streq.h: Add double-inclusion guard.
60061
60062 2007-09-01  Karl Berry  <karl@gnu.org>
60063
60064         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60065
60066 2007-08-28  Jim Meyering  <jim@meyering.net>
60067
60068         Rename mreadlink_with_size to areadlink_with_size.
60069         * NEWS: Document the change.
60070         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60071         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60072         * lib/mreadlink.h: Rename this to...
60073         * lib/areadlink.h: ...this.
60074         * modules/mreadlink-with-size: Rename this to...
60075         * modules/areadlink-with-size: ...this.
60076         * lib/canonicalize.c: Reflect the renaming.
60077         * modules/canonicalize: Likewise.
60078
60079 2007-08-26  Bruno Haible  <bruno@clisp.org>
60080
60081         * gnulib-tool (func_import): When deciding which files to remove,
60082         consider also dangling symbolic links.
60083         Reported by Eric Blake.
60084
60085 2007-08-26  Bruno Haible  <bruno@clisp.org>
60086
60087         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60088
60089 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60090
60091         * lib/readline.c: Don't include getline.h, the prototype is now
60092         found in stdio.h.
60093
60094 2007-08-23  Jim Meyering  <jim@meyering.net>
60095
60096         Getdelim touchup.
60097         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60098         around the funlockfile call, since funlockfile never sets errno.
60099         Don't set errno upon failed realloc.
60100
60101 2007-08-22  Eric Blake  <ebb9@byu.net>
60102
60103         Getline touchups.
60104         * lib/getdelim.c (getdelim): Revert regression that required *n to
60105         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60106         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60107         getdelim, rather than whether implementation is missing.
60108         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60109         * lib/stdio_.h (getline): Also declare if replacement is
60110         required.
60111         * doc/functions/getdelim.texi: New file.
60112         * doc/functions/getline.texi: Likewise.
60113         * doc/gnulib.texi (Function Substitutes): Add new files.
60114         Reported by Bruno Haible.
60115
60116 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60117
60118         * users.txt: Add Guile.
60119
60120 2007-08-22  Eric Blake  <ebb9@byu.net>
60121
60122         * tests/test-getdelim.c (main): Use remove, not unlink.
60123         * tests/test-getline.c (main): Likewise.
60124
60125         Move getline and getdelim into stdio.h, per POSIX 200x.
60126         * modules/getline (Files): Remove getline.h.
60127         (Depends-on): Add stdio.
60128         (configure.ac): Add module indicator.
60129         * modules/getdelim (Files): Remove getdelim.h.
60130         (Depends-on): Add stdio.
60131         (configure.ac): Add module indicator.
60132         * modules/stdio (Makefile.am): Work with new indicators.
60133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60136         * lib/getdelim.h: Delete.
60137         * lib/getline.h: Delete.
60138         * lib/stdio_.h (getdelim, getline): Declare.
60139         * modules/getdelim-tests: New module.
60140         * modules/getline-tests: Likewise.
60141         * tests/test-getdelim.c: New file.
60142         * tests/test-getline.c: Likewise.
60143         * NEWS: Document the change.
60144         * lib/getline.c: Update choice of header.
60145         * lib/csharpcomp.c: Likewise.
60146         * lib/getpass.c: Likewise.
60147         * lib/javacomp.c: Likewise.
60148         * lib/javaversion.c: Likewise.
60149         * lib/yesno.c: Likewise.
60150         * lib/getdelim.c: Likewise.
60151         (getdelim): Set errno on failure, and avoid memory leak.
60152
60153 2007-08-19  Bruno Haible  <bruno@clisp.org>
60154
60155         * modules/closein (Depends-on): Add freadahead.
60156         * lib/closein.c: Include freadahead.h.
60157         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60158         is zero.
60159
60160 2007-08-19  Bruno Haible  <bruno@clisp.org>
60161
60162         * modules/freadahead-tests: New file.
60163         * tests/test-freadahead.sh: New file.
60164         * tests/test-freadahead.c: New file.
60165
60166         * modules/freadahead: New file.
60167         * lib/freadahead.h: New file.
60168         * lib/freadahead.c: New file.
60169         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60170         fbufmode, fpurge, freadable, fwritable.
60171
60172 2007-08-19  Eric Blake  <ebb9@byu.net>
60173
60174         Test yesno in combination with closein.
60175         * lib/yesno.c (yesno): Document use of stdin.
60176         * modules/yesno-tests (Files): New module.
60177         * tests/test-yesno.c (main): New file.
60178         * tests/test-yesno.sh: Likewise.
60179
60180 2007-08-19  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60183         * lib/fseeko.c (rpl_fseeko): Likewise.
60184         * lib/fseterr.c (fseterr): Likewise.
60185
60186 2007-08-19  Bruno Haible  <bruno@clisp.org>
60187
60188         * tests/test-lseek.c (main): Disable a test for BeOS.
60189         * doc/functions/lseek.texi: Document the BeOS bug.
60190
60191 2007-08-19  Bruno Haible  <bruno@clisp.org>
60192             Eric Blake  <ebb9@byu.net>
60193
60194         * lib/lseek.c: Include <sys/stat.h>.
60195         (rpl_lseek): Add workaround code also for Unix platforms.
60196         Needed for BeOS.
60197         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60198         * doc/functions/lseek.texi: Document BeOS definiency.
60199
60200 2007-08-18  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/fstrcmp-tests: New file.
60203         * tests/test-fstrcmp.c: New file.
60204
60205 2007-08-18  Bruno Haible  <bruno@clisp.org>
60206
60207         * modules/fstrcmp: New file, from GNU gettext with modifications.
60208         * lib/fstrcmp.h: New file, from GNU gettext.
60209         * lib/fstrcmp.c: New file, from GNU gettext.
60210         * MODULES.html.sh (String handling): Add fstrcmp.
60211
60212 2007-08-18  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60215         'bool'.
60216         (diag, compareseq): Remove const from the ctxt argument.
60217         (USE_HEURISTIC): Undefine at the end.
60218
60219 2007-08-18  Jim Meyering  <jim@meyering.net>
60220
60221         New file: lib/idcache.h
60222         * NEWS: Mention the addition.
60223         * modules/idcache (Files): Add lib/idcache.h
60224         * lib/idcache.c: Include "idcache.h".
60225         Don't include <sys/types.h>.
60226         Add a FIXME comment.
60227         Move file-scoped "static" declarations to the top.
60228         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60229
60230 2007-08-17  Bruno Haible  <bruno@clisp.org>
60231         and Paul Eggert  <eggert@cs.ucla.edu>
60232
60233         * MODULES.html.sh: Add diffseq.
60234         * modules/diffseq: New file.
60235         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60236         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60237
60238 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         Import changes from coreutils for bootstrap script.
60241
60242         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * build-aux/bootstrap (slurp): Work even in environments where
60245         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60246         current code does not slurp files whose names start with ".", and
60247         this looks like it might be a troublesome area.
60248
60249         2007-07-11  Jim Meyering  <jim@meyering.net>
60250
60251         If there's a GPL vN copyright comment, require that N == 3.
60252
60253         2007-07-08  Jim Meyering  <jim@meyering.net>
60254
60255         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60256         * build-aux/bootstrap (mam_template): Move definition out of loop.
60257
60258         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60259
60260         * build-aux/bootstrap (symlink_to_dir): Rename function from
60261         symlink_to_gnulib.  Add a directory parameter.  Update all
60262         callers.
60263         (cp_mark_as_generated): Also check for -- and link to -- files in
60264         gl/.
60265
60266         2007-07-08  Jim Meyering  <jim@meyering.net>
60267
60268         Adapt to deeper hierarchy in gnulib.
60269         * build-aux/bootstrap (symlink_to_dir): If the destination
60270         directory doesn't exist, create it. This is required at least for
60271         "lib/uniwidth/cjk.h".
60272
60273         2007-05-15  Jim Meyering  <jim@meyering.net>
60274
60275         * build-aux/bootstrap: Now that generated Makefile.am files
60276         are no longer under version control, they must be created at
60277         bootstrap time.
60278
60279 2007-08-14  Ben Pfaff  <blp@gnu.org>
60280
60281         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60282
60283 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60284
60285         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60286         given the changes below.
60287         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60288         even on hosts that have padding bits beyond the supported 64.
60289
60290 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
60293         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
60294         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
60295         depends on it.
60296         (xstrtol_error): Remove.
60297         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60298         but with a different signature.
60299         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60300         * lib/xstrtol-error.c: Include exitfail.h.
60301         (xstrtol_fatal): New function, with a different signature from the
60302         old xstrtol_error, so that the caller need not worry about passing
60303         in an exit status, or about storage management of the option argument.
60304         (xstrtol_error): Now a static function.  Redo signature to
60305         implement xstrtol_fatal.  Output the correct number of hyphens in
60306         front of the option so that the caller need not worry about
60307         storage management.
60308         (N_): New macro.
60309         (_): Remove; not used now.
60310         * modules/xstrtol: Depend on getopt.
60311         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60312         of old STRTOL_FATAL_ERROR macro.
60313         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60314         of test program.
60315         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60316         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60317
60318 2007-08-08  Eric Blake  <ebb9@byu.net>
60319
60320         * lib/xstrtol-error.c: Add missing include.
60321
60322         Move xstrtol messages into gnulib domain, when --pobase is used.
60323         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60324         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60325         * modules/xstrtol (Files): Distribute new file.
60326         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60327         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60328         * tests/test-xstrtol.c: ...into new file.
60329         * tests/test-xstrtoul.c: Also test xstrtoul.
60330         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60331         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60332         * tests/test-xstrtol.sh: Drive the tests.
60333         * tests/test-xstrtoimax.sh: Likewise.
60334         * tests/test-xstrtoumax.sh: Likewise.
60335         * modules/xstrtol-tests: New module.
60336         * modules/xstrtoimax-tests: Likewise.
60337         * modules/xstrtoumax-tests: Likewise.
60338
60339 2007-08-08  Jim Meyering  <jim@meyering.net>
60340
60341         New function: mfile_name_concat.
60342         * lib/filenamecat.c (mfile_name_concat): New function, just like
60343         file_name_concat, but return NULL upon failure rather than exiting
60344         with a diagnostic.
60345         * lib/filenamecat.h: Declare it.
60346
60347 2007-08-07  Bruno Haible  <bruno@clisp.org>
60348
60349         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60350         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60351         warning from gcc.
60352         Reported by Eric Blake.
60353
60354 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60355
60356         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60357         * modules/crypto/arcfour (License): Likewise.
60358         * modules/crypto/des-tests (License): Likewise.
60359         * modules/crypto/gc-arctwo-tests (License): Likewise.
60360         * modules/crypto/gc-des-tests (License): Likewise.
60361         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60362         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60363         * modules/crypto/gc-md2-tests (License): Likewise.
60364         * modules/crypto/gc-md4-tests (License): Likewise.
60365         * modules/crypto/gc-md5-tests (License): Likewise.
60366         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60367         * modules/crypto/gc-rijndael-tests (License): Likewise.
60368         * modules/crypto/gc-sha1-tests (License): Likewise.
60369         * modules/crypto/gc-tests (License): Likewise.
60370         * modules/crypto/hmac-md5 (License): Likewise.
60371         * modules/crypto/hmac-sha1 (License): Likewise.
60372         * modules/crypto/md2-tests (License): Likewise.
60373         * modules/crypto/md4-tests (License): Likewise.
60374         * modules/crypto/md5 (License): Likewise.
60375         * modules/crypto/rijndael (License): Likewise.
60376         * modules/crypto/sha1 (License): Likewise.
60377         * modules/memxor (License): Likewise.
60378
60379 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60380         and Bruno Haible  <bruno@clisp.org>
60381
60382         * NEWS: Describe interface changes to human, xstrtol.
60383         * lib/human.h: Include <xstrtol.h>.
60384         (human_options): Return enum strtol_error, not int.  Remove
60385         bool arg; take int * instead.
60386         * lib/human.c: Don't include "gettext.h".
60387         (_): Remove; no longer used.
60388         Don't include <xstrtol.h>, since human.h does it.
60389         (human_options): Adjust to abovementioned interface changes.
60390         Do not report error to stderr; that's now the caller's
60391         responsibility.
60392         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60393         interface change.
60394         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60395         Str, Argument_type_string.  All uses changed.  Put " argument"
60396         in diagnostics to make them clearer.  Change wording of suffix
60397         message for clarity.
60398         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60399         Argument_type_string.
60400         (STRTOL_FATAL_WARN): Remove; no longer used.
60401         * modules/human (Depends-on): Remove gettext-h.
60402
60403 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60404
60405         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60406
60407 2007-07-31  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60410         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60411         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60412
60413 2007-07-31  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60416         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60417
60418 2007-07-30  Bruno Haible  <bruno@clisp.org>
60419
60420         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60421         * modules/c-ctype (License): Likewise.
60422         * modules/c-strcase (License): Likewise.
60423         * modules/check-version (License): Likewise.
60424         * modules/iconv (License): Likewise.
60425         * modules/iconv_open (License): Likewise.
60426         * modules/read-file (License): Likewise.
60427         * modules/striconv (License): Likewise.
60428         * modules/strverscmp (License): Likewise.
60429         * modules/vasprintf (License): Likewise.
60430         * modules/crypto/des (License): Likewise.
60431         * modules/crypto/gc (License): Likewise.
60432         * modules/crypto/gc-arcfour (License): Likewise.
60433         * modules/crypto/gc-arctwo (License): Likewise.
60434         * modules/crypto/gc-des (License): Likewise.
60435         * modules/crypto/gc-hmac-md5 (License): Likewise.
60436         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60437         * modules/crypto/gc-md2 (License): Likewise.
60438         * modules/crypto/gc-md4 (License): Likewise.
60439         * modules/crypto/gc-md5 (License): Likewise.
60440         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60441         * modules/crypto/gc-random (License): Likewise.
60442         * modules/crypto/gc-rijndael (License): Likewise.
60443         * modules/crypto/gc-sha1 (License): Likewise.
60444         * modules/crypto/md2 (License): Likewise.
60445         * modules/crypto/md4 (License): Likewise.
60446
60447 2007-07-30  Jim Meyering  <jim@meyering.net>
60448
60449         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60450         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60451         it has valid stat data.  This bug would cause du not to count the
60452         sizes of inaccessible directories.
60453         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60454         in <http://bugzilla.redhat.com/250077>.
60455
60456 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60457             Bruno Haible  <bruno@clisp.org>
60458
60459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60460         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60461         #include_next, gives a diagnostic about it, but reports no error in
60462         the exit code.
60463         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60464
60465 2007-07-24  Ben Pfaff  <blp@gnu.org>
60466
60467         Improve name: "count-one-bits" is better than "popcount".
60468         * MODULES.html.sh: Update name.
60469         * lib/popcount.h: Renamed lib/count-one-bits.h.
60470         (popcount): Renamed count_one_bits.
60471         (popcountl): Renamed count_one_bits_l.
60472         (popcountll): Renamed count_one_bits_ll.
60473         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60474         * modules/popcount: Renamed module/count-one-bits.
60475         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60476         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60477
60478 2007-07-23  Ben Pfaff  <blp@gnu.org>
60479
60480         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60481         better code generation, and add U to large constants to avoid
60482         warnings, in non-GCC case.
60483         Suggested by Bruno Haible.
60484
60485 2007-07-23  Ben Pfaff  <blp@gnu.org>
60486
60487         * lib/popcount.h: Use verify_true instead of if...abort.
60488         * modules/popcount: Depend on verify module.
60489         Suggested by Jim Meyering.
60490
60491 2007-07-23  Bruno Haible  <bruno@clisp.org>
60492
60493         * gnulib-tool (func_import): Create a .cvsignore file also when the
60494         directory is not yet in CVS but the toplevel directory is. When
60495         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60496         Reported by Karl Berry.
60497
60498 2007-07-22  Ben Pfaff  <blp@gnu.org>
60499
60500         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60501         case.
60502         Suggested by Eric Blake.
60503
60504 2007-07-22  Ben Pfaff  <blp@gnu.org>
60505
60506         New module: popcount.
60507         * MODULES.html.sh: Add popcount.
60508         * modules/popcount: New file.
60509         * modules/popcount-tests: New file.
60510         * tests/test-popcount.c: New file.
60511         * lib/popcount.h: New file.
60512         * m4/popcount.m4: New file.
60513
60514 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * build-aux/announce-gen: Update to GPLv3.
60517
60518         * build-aux/config.guess: Update from config.
60519
60520 2007-07-21  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60523         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60524
60525 2007-07-20  Jim Meyering  <jim@meyering.net>
60526
60527         * check-module: Diagnose a self-dependency.
60528
60529 2007-07-19  Bruno Haible  <bruno@clisp.org>
60530
60531         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60532         empty.
60533         Reported by Eric Blake.
60534
60535 2007-07-18  Bruno Haible  <bruno@clisp.org>
60536
60537         * gnulib-tool: New options --po-base, --po-domain.
60538         (func_usage): Document them.
60539         (pobase, po_domain): New variables.
60540         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60541         DEFAULT_TEXT_DOMAIN.
60542         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60543         (func_import): Consider pobase and po_domain. Create a po/ directory.
60544         (func_create_testdir): Set pobase and po_domain to empty.
60545         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60546         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60547
60548 2007-07-18  Bruno Haible  <bruno@clisp.org>
60549
60550         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60551         EXTRA_DIST augmentation for files in build-aux/.
60552
60553 2007-07-16  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60556         * modules/getdelim (License): Likewise.
60557
60558 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60559
60560         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60561         * modules/d-type (License): Likewise.
60562         * modules/extensions (License): Likewise.
60563         * modules/fnmatch (License): Likewise.
60564         * modules/fseeko (License): Likewise.
60565         * modules/getaddrinfo (License): Likewise.
60566         * modules/getline (License): Likewise.
60567         * modules/getlogin_r (License): Likewise.
60568         * modules/getpass (License): Likewise.
60569         * modules/gettimeofday (License): Likewise.
60570         * modules/glob (License): Likewise.
60571         * modules/inet_ntop (License): Likewise.
60572         * modules/malloc (License): Likewise.
60573         * modules/malloca (License): Likewise.
60574         * modules/memmem (License): Likewise.
60575         * modules/mempcpy (License): Likewise.
60576         * modules/memset (License): Likewise.
60577         * modules/minmax (License): Likewise.
60578         * modules/mktime (License): Likewise.
60579         * modules/netinet_in (License): Likewise.
60580         * modules/pathmax (License): Likewise.
60581         * modules/poll (License): Likewise.
60582         * modules/regex (License): Likewise.
60583         * modules/snprintf (License): Likewise.
60584         * modules/stdbool (License): Likewise.
60585         * modules/stdint (License): Likewise.
60586         * modules/stdio (License): Likewise.
60587         * modules/strcase (License): Likewise.
60588         * modules/strcasestr (License): Likewise.
60589         * modules/strdup (License): Likewise.
60590         * modules/string (License): Likewise.
60591         * modules/strndup (License): Likewise.
60592         * modules/strnlen (License): Likewise.
60593         * modules/strpbrk (License): Likewise.
60594         * modules/strptime (License): Likewise.
60595         * modules/strsep (License): Likewise.
60596         * modules/sys_select (License): Likewise.
60597         * modules/sys_socket (License): Likewise.
60598         * modules/sys_stat (License): Likewise.
60599         * modules/sys_time (License): Likewise.
60600         * modules/time (License): Likewise.
60601         * modules/time_r (License): Likewise.
60602         * modules/timegm (License): Likewise.
60603         * modules/unistd (License): Likewise.
60604         * modules/vsnprintf (License): Likewise.
60605         * modules/wctype (License): Likewise.
60606
60607 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60608
60609         * modules/argz (License): LGPLv2+.
60610
60611 2007-07-15  Karl Berry  <karl@gnu.org>
60612
60613         * doc/gnulib.texi: revise node structure per new fdl.texi.
60614
60615 2007-07-14  Bruno Haible  <bruno@clisp.org>
60616
60617         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60618         the output file.
60619         * lib/uniname/uninames.h: Regenerated.
60620
60621 2007-07-14  Karl Berry  <karl@gnu.org>
60622
60623         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60624         omitting sectioning and index commands.
60625
60626 2007-07-13  Bruno Haible  <bruno@clisp.org>
60627
60628         New gnulib-tool option --more-symlinks.
60629         * gnulib-tool (func_usage): Document --more-symlinks.
60630         (do_copyrights): New variable.
60631         Recognize option --more-symlinks.
60632         (func_import): Don't add a copyright notice transform to
60633         sed_transform_lib_file if do_copyrights is empty.
60634
60635 2007-07-13  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/vasnprintf.c (decimal_point_char): Define also if
60638         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60639         && !NEED_PRINTF_DIRECTIVE_A.
60640         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60641         Gary V. Vaughan <gary@gnu.org>.
60642
60643 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60644
60645         * lib/inttypes_.h: Undo previous change, since it was fixed
60646         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60647
60648 2007-07-13  Bruno Haible  <bruno@clisp.org>
60649
60650         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60651         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60652
60653 2007-07-13  Jim Meyering  <jim@meyering.net>
60654
60655         df: Don't fail for Tru64's "file-on-file mount".
60656         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60657         so we fall through and use statfs instead.  Details here:
60658         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60659         Reported by Albert Chin.
60660
60661 2007-07-13  Bruno Haible  <bruno@clisp.org>
60662
60663         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60664         * modules/configmake (License): Likewise.
60665         * modules/gettext (License): Likewise.
60666         * modules/gettext-h (License): Likewise.
60667         * modules/include_next (License): Likewise.
60668         * modules/link-warning (License): Likewise.
60669         * modules/localcharset (License): Likewise.
60670         * modules/localename (License): Likewise.
60671         * modules/lock (License): Likewise.
60672         * modules/relocatable-lib-lgpl (License): Likewise.
60673         * modules/size_max (License): Likewise.
60674         * modules/vasnprintf (License): Likewise.
60675         * modules/wchar (License): Likewise.
60676         * modules/xsize (License): Likewise.
60677
60678 2007-07-13  Bruno Haible  <bruno@clisp.org>
60679
60680         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60681         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60682
60683 2007-07-12  Bruno Haible  <bruno@clisp.org>
60684
60685         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60686         in the modules files.
60687
60688 2007-07-11  Karl Berry  <karl@gnu.org>
60689
60690         * MODULES.html.sh (func_module): use
60691          sed -e '\|^'"${includefile}"'$|d'
60692          instead of /.../d, to avoid errors on $includefile's containing /.
60693
60694 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60695
60696         * gnulib-tool (func_import): Avoid duplication of --avoid
60697         statements
60698         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60699         names to `_' in variable names.
60700
60701 2007-07-10  Eric Blake  <ebb9@byu.net>
60702
60703         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60704         * NEWS: Document this change.
60705
60706 2007-07-08  Bruno Haible  <bruno@clisp.org>
60707
60708         Update to Unicode 5.0.
60709         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60710         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60711         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60712         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60713         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60714         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60715         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60716         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60717         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60718         U+10A3F, U+1D242..U+1D244.
60719         (nonspacing_table_ind): Update.
60720         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60721         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60722
60723 2007-07-08  Bruno Haible  <bruno@clisp.org>
60724
60725         Update to Unicode 5.0.
60726         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60727         code transform. Extend the name index field of unicode_name_to_code and
60728         unicode_code_to_name from 16 to 24 bits.
60729         * lib/uniname/uniname.c (unicode_character_name,
60730         unicode_name_character): Add the range 0x12xxx to the code transform.
60731         * lib/uniname/uninames.h: Regenerated.
60732         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60733
60734 2007-07-07  Bruno Haible  <bruno@clisp.org>
60735
60736         * modules/wcwidth-tests: New file.
60737         * tests/test-wcwidth.c: New file.
60738
60739         Work around MacOS X wcwidth() bug.
60740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60741         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60742         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60743         original wcwidth in non-UTF-8 locales.
60744         * modules/wcwidth (Depends-on): Add localcharset, streq,
60745         uniwidth/width.
60746         * doc/functions/wcwidth.texi: Update.
60747
60748 2007-07-07  Bruno Haible  <bruno@clisp.org>
60749
60750         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60751         (wcwidth): New declaration.
60752         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60753         macros.
60754         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60755         here. Prepare for creating <wchar.h> unconditionally.
60756         * modules/wchar (Depends-on): Add link-warning.
60757         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60758         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60759         * lib/wcwidth.h: Remove file.
60760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60761         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60762         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60763         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60764         (Include): Replace wcwidth.h with <wchar.h>.
60765         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60766         * lib/mbchar.h: Don't include wcwidth.h.
60767         * lib/mbswidth.c: Likewise.
60768         * NEWS: Mention the change.
60769
60770 2007-07-07  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60773         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60774         definition with an external declaration.
60775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60776         defined as a function. Remove AC_C_INLINE requirement.
60777         * modules/wcwidth (Files): Add lib/wcwidth.c.
60778         (Makefile.am): Remove redundant statement.
60779
60780 2007-07-07  Bruno Haible  <bruno@clisp.org>
60781
60782         * MODULES.html.sh (Unicode string functions): Add the new modules.
60783
60784         * tests/uniwidth/test-u32-strwidth.c: New file.
60785         * modules/uniwidth/u32-strwidth-tests: New file.
60786
60787         * lib/uniwidth/u32-strwidth.c: New file.
60788         * modules/uniwidth/u32-strwidth: New file.
60789
60790         * tests/uniwidth/test-u16-strwidth.c: New file.
60791         * modules/uniwidth/u16-strwidth-tests: New file.
60792
60793         * lib/uniwidth/u16-strwidth.c: New file.
60794         * modules/uniwidth/u16-strwidth: New file.
60795
60796         * tests/uniwidth/test-u8-strwidth.c: New file.
60797         * modules/uniwidth/u8-strwidth-tests: New file.
60798
60799         * lib/uniwidth/u8-strwidth.c: New file.
60800         * modules/uniwidth/u8-strwidth: New file.
60801
60802         * tests/uniwidth/test-u32-width.c: New file.
60803         * modules/uniwidth/u32-width-tests: New file.
60804
60805         * lib/uniwidth/u32-width.c: New file.
60806         * modules/uniwidth/u32-width: New file.
60807
60808         * tests/uniwidth/test-u16-width.c: New file.
60809         * modules/uniwidth/u16-width-tests: New file.
60810
60811         * lib/uniwidth/u16-width.c: New file.
60812         * modules/uniwidth/u16-width: New file.
60813
60814         * tests/uniwidth/test-u8-width.c: New file.
60815         * modules/uniwidth/u8-width-tests: New file.
60816
60817         * lib/uniwidth/u8-width.c: New file.
60818         * modules/uniwidth/u8-width: New file.
60819
60820         * tests/uniwidth/test-uc_width.c: New file.
60821         * modules/uniwidth/width-tests: New file.
60822
60823         * lib/uniwidth/width.c: New file, from GNU libiconv.
60824         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60825         * modules/uniwidth/width: New file.
60826
60827         * lib/uniwidth.h: New file, from GNU libiconv.
60828         * modules/uniwidth/base: New file.
60829
60830 2007-07-07  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/uniname.h: New file, from GNU gettext.
60833         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60834         * lib/uniname/uninames.h: New file, from GNU gettext.
60835         * lib/uniname/uniname.c: New file, from GNU gettext.
60836         * tests/uniname/test-uninames.sh: New file.
60837         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60838         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60839         * modules/uniname/base: New file.
60840         * modules/uniname/uniname: New file.
60841         * modules/uniname/uniname-tests: New file.
60842         * MODULES.html.sh (Unicode string functions): Add the new modules.
60843
60844 2007-07-06  Bruno Haible  <bruno@clisp.org>
60845
60846         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60847
60848 2007-07-06  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60851         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60852         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60853         include <sys/time.h>.
60854         Reported by Eric Blake.
60855
60856 2007-07-06  Eric Blake  <ebb9@byu.net>
60857
60858         Fix testing canonicalize on cygwin.
60859         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60860         Revert patch from 2007-06-19.
60861         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60862         canonicalize module is also in use.
60863         * tests/test-canonicalize.c: New file.
60864         * tests/test-canonicalize.sh: Likewise.
60865         * modules/canonicalize-tests: Likewise.
60866
60867 2007-07-06  Jim Meyering  <jim@meyering.net>
60868
60869         * lib/getugroups.c (getugroups): Detect getgrent failure.
60870         Adjust comment to reflect reality: this function may return -1.
60871
60872 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60873
60874         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60875         the new TP address.
60876         (usage): Fix typo
60877         (gnulib_mk): New variable.
60878
60879 2007-07-05  Jim Meyering  <jim@meyering.net>
60880
60881         Don't let endgrent clobber errno, no matter how improbable.
60882         * lib/getugroups.c (getugroups): Save and restore errno around
60883         endgrent call.
60884
60885         Close the group DB even when failing with 2^31 or more members.
60886         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60887
60888 2007-07-04  Jim Meyering  <jim@meyering.net>
60889
60890         * lib/getugroups.h: New file.
60891         * lib/getugroups.c: Include "getugroups.h".
60892         Remove uses of "register" keyword.
60893         Move local variable, "cp", down into scope where used.
60894         Give "username" parameter the "const" attribute.
60895         * modules/getugroups (Files): Add lib/getugroups.h
60896
60897 2007-07-04  Karl Berry  <karl@gnu.org>
60898
60899         * MODULES.html.sh (func_all_modules): Complete rename of
60900         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60901
60902 2007-07-02  Bruno Haible  <bruno@clisp.org>
60903
60904         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60905         mode, when inttypes.h comes from gnulib.
60906         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60907
60908 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60909
60910         * NEWS: Mention lgpl module name change.
60911
60912         * modules/lgpl-2.1: Renamed from lgpl.
60913
60914         * NEWS: Mention gpl module name change.
60915
60916         * modules/gpl-3.0: New file, based on gpl-2.0.
60917
60918         * modules/gpl-2.0: Renamed from gpl.
60919
60920         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60921         doc/gpl-2.0.texi.
60922
60923 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60926         #define __STDC_LIMIT_MACROS temporarily while including
60927         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60928         Problem reported by Joel E. Denny in
60929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60930
60931 2007-07-01  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/unistdio.h: New file.
60934         * lib/unistdio/u-asnprintf.h: New file.
60935         * lib/unistdio/u-asprintf.h: New file.
60936         * lib/unistdio/u-printf-args.c: New file.
60937         * lib/unistdio/u-printf-args.h: New file.
60938         * lib/unistdio/u-printf-parse.h: New file.
60939         * lib/unistdio/u-snprintf.h: New file.
60940         * lib/unistdio/u-sprintf.h: New file.
60941         * lib/unistdio/u-vasprintf.h: New file.
60942         * lib/unistdio/u-vsnprintf.h: New file.
60943         * lib/unistdio/u-vsprintf.h: New file.
60944         * lib/unistdio/ulc-asnprintf.c: New file.
60945         * lib/unistdio/ulc-asprintf.c: New file.
60946         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60947         * lib/unistdio/ulc-printf-parse.c: New file.
60948         * lib/unistdio/ulc-snprintf.c: New file.
60949         * lib/unistdio/ulc-sprintf.c: New file.
60950         * lib/unistdio/ulc-vasnprintf.c: New file.
60951         * lib/unistdio/ulc-vasprintf.c: New file.
60952         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60953         * lib/unistdio/ulc-vsnprintf.c: New file.
60954         * lib/unistdio/ulc-vsprintf.c: New file.
60955         * lib/unistdio/u8-asnprintf.c: New file.
60956         * lib/unistdio/u8-asprintf.c: New file.
60957         * lib/unistdio/u8-printf-parse.c: New file.
60958         * lib/unistdio/u8-snprintf.c: New file.
60959         * lib/unistdio/u8-sprintf.c: New file.
60960         * lib/unistdio/u8-vasnprintf.c: New file.
60961         * lib/unistdio/u8-vasprintf.c: New file.
60962         * lib/unistdio/u8-vsnprintf.c: New file.
60963         * lib/unistdio/u8-vsprintf.c: New file.
60964         * lib/unistdio/u8-u8-asnprintf.c: New file.
60965         * lib/unistdio/u8-u8-asprintf.c: New file.
60966         * lib/unistdio/u8-u8-snprintf.c: New file.
60967         * lib/unistdio/u8-u8-sprintf.c: New file.
60968         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60969         * lib/unistdio/u8-u8-vasprintf.c: New file.
60970         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60971         * lib/unistdio/u8-u8-vsprintf.c: New file.
60972         * lib/unistdio/u16-asnprintf.c: New file.
60973         * lib/unistdio/u16-asprintf.c: New file.
60974         * lib/unistdio/u16-printf-parse.c: New file.
60975         * lib/unistdio/u16-snprintf.c: New file.
60976         * lib/unistdio/u16-sprintf.c: New file.
60977         * lib/unistdio/u16-vasnprintf.c: New file.
60978         * lib/unistdio/u16-vasprintf.c: New file.
60979         * lib/unistdio/u16-vsnprintf.c: New file.
60980         * lib/unistdio/u16-vsprintf.c: New file.
60981         * lib/unistdio/u16-u16-asnprintf.c: New file.
60982         * lib/unistdio/u16-u16-asprintf.c: New file.
60983         * lib/unistdio/u16-u16-snprintf.c: New file.
60984         * lib/unistdio/u16-u16-sprintf.c: New file.
60985         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60986         * lib/unistdio/u16-u16-vasprintf.c: New file.
60987         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60988         * lib/unistdio/u16-u16-vsprintf.c: New file.
60989         * lib/unistdio/u32-asnprintf.c: New file.
60990         * lib/unistdio/u32-asprintf.c: New file.
60991         * lib/unistdio/u32-printf-parse.c: New file.
60992         * lib/unistdio/u32-snprintf.c: New file.
60993         * lib/unistdio/u32-sprintf.c: New file.
60994         * lib/unistdio/u32-vasnprintf.c: New file.
60995         * lib/unistdio/u32-vasprintf.c: New file.
60996         * lib/unistdio/u32-vsnprintf.c: New file.
60997         * lib/unistdio/u32-vsprintf.c: New file.
60998         * lib/unistdio/u32-u32-asnprintf.c: New file.
60999         * lib/unistdio/u32-u32-asprintf.c: New file.
61000         * lib/unistdio/u32-u32-snprintf.c: New file.
61001         * lib/unistdio/u32-u32-sprintf.c: New file.
61002         * lib/unistdio/u32-u32-vasnprintf.c: New file.
61003         * lib/unistdio/u32-u32-vasprintf.c: New file.
61004         * lib/unistdio/u32-u32-vsnprintf.c: New file.
61005         * lib/unistdio/u32-u32-vsprintf.c: New file.
61006         * tests/unistdio/test-ulc-asnprintf1.c: New file.
61007         * tests/unistdio/test-ulc-asnprintf1.h: New file.
61008         * tests/unistdio/test-ulc-printf1.h: New file.
61009         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
61010         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61011         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61012         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61013         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61014         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61015         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61016         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61017         * tests/unistdio/test-u8-asnprintf1.c: New file.
61018         * tests/unistdio/test-u8-asnprintf1.h: New file.
61019         * tests/unistdio/test-u8-printf1.h: New file.
61020         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61021         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61022         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61023         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61024         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61025         * tests/unistdio/test-u8-vasprintf1.c: New file.
61026         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61027         * tests/unistdio/test-u8-vsprintf1.c: New file.
61028         * tests/unistdio/test-u16-asnprintf1.c: New file.
61029         * tests/unistdio/test-u16-asnprintf1.h: New file.
61030         * tests/unistdio/test-u16-printf1.h: New file.
61031         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61032         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61033         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61034         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61035         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61036         * tests/unistdio/test-u16-vasprintf1.c: New file.
61037         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61038         * tests/unistdio/test-u16-vsprintf1.c: New file.
61039         * tests/unistdio/test-u32-asnprintf1.c: New file.
61040         * tests/unistdio/test-u32-asnprintf1.h: New file.
61041         * tests/unistdio/test-u32-printf1.h: New file.
61042         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61043         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61044         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61045         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61046         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61047         * tests/unistdio/test-u32-vasprintf1.c: New file.
61048         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61049         * tests/unistdio/test-u32-vsprintf1.c: New file.
61050         * modules/unistdio/base: New file.
61051         * modules/unistdio/u-printf-args: New file.
61052         * modules/unistdio/ulc-asnprintf: New file.
61053         * modules/unistdio/ulc-asprintf: New file.
61054         * modules/unistdio/ulc-fprintf: New file.
61055         * modules/unistdio/ulc-printf-parse: New file.
61056         * modules/unistdio/ulc-snprintf: New file.
61057         * modules/unistdio/ulc-sprintf: New file.
61058         * modules/unistdio/ulc-vasnprintf: New file.
61059         * modules/unistdio/ulc-vasprintf: New file.
61060         * modules/unistdio/ulc-vfprintf: New file.
61061         * modules/unistdio/ulc-vsnprintf: New file.
61062         * modules/unistdio/ulc-vsprintf: New file.
61063         * modules/unistdio/u8-asnprintf: New file.
61064         * modules/unistdio/u8-asprintf: New file.
61065         * modules/unistdio/u8-printf-parse: New file.
61066         * modules/unistdio/u8-snprintf: New file.
61067         * modules/unistdio/u8-sprintf: New file.
61068         * modules/unistdio/u8-vasnprintf: New file.
61069         * modules/unistdio/u8-vasprintf: New file.
61070         * modules/unistdio/u8-vsnprintf: New file.
61071         * modules/unistdio/u8-vsprintf: New file.
61072         * modules/unistdio/u8-u8-asnprintf: New file.
61073         * modules/unistdio/u8-u8-asprintf: New file.
61074         * modules/unistdio/u8-u8-snprintf: New file.
61075         * modules/unistdio/u8-u8-sprintf: New file.
61076         * modules/unistdio/u8-u8-vasnprintf: New file.
61077         * modules/unistdio/u8-u8-vasprintf: New file.
61078         * modules/unistdio/u8-u8-vsnprintf: New file.
61079         * modules/unistdio/u8-u8-vsprintf: New file.
61080         * modules/unistdio/u16-asnprintf: New file.
61081         * modules/unistdio/u16-asprintf: New file.
61082         * modules/unistdio/u16-printf-parse: New file.
61083         * modules/unistdio/u16-snprintf: New file.
61084         * modules/unistdio/u16-sprintf: New file.
61085         * modules/unistdio/u16-vasnprintf: New file.
61086         * modules/unistdio/u16-vasprintf: New file.
61087         * modules/unistdio/u16-vsnprintf: New file.
61088         * modules/unistdio/u16-vsprintf: New file.
61089         * modules/unistdio/u16-u16-asnprintf: New file.
61090         * modules/unistdio/u16-u16-asprintf: New file.
61091         * modules/unistdio/u16-u16-snprintf: New file.
61092         * modules/unistdio/u16-u16-sprintf: New file.
61093         * modules/unistdio/u16-u16-vasnprintf: New file.
61094         * modules/unistdio/u16-u16-vasprintf: New file.
61095         * modules/unistdio/u16-u16-vsnprintf: New file.
61096         * modules/unistdio/u16-u16-vsprintf: New file.
61097         * modules/unistdio/u32-asnprintf: New file.
61098         * modules/unistdio/u32-asprintf: New file.
61099         * modules/unistdio/u32-printf-parse: New file.
61100         * modules/unistdio/u32-snprintf: New file.
61101         * modules/unistdio/u32-sprintf: New file.
61102         * modules/unistdio/u32-vasnprintf: New file.
61103         * modules/unistdio/u32-vasprintf: New file.
61104         * modules/unistdio/u32-vsnprintf: New file.
61105         * modules/unistdio/u32-vsprintf: New file.
61106         * modules/unistdio/u32-u32-asnprintf: New file.
61107         * modules/unistdio/u32-u32-asprintf: New file.
61108         * modules/unistdio/u32-u32-snprintf: New file.
61109         * modules/unistdio/u32-u32-sprintf: New file.
61110         * modules/unistdio/u32-u32-vasnprintf: New file.
61111         * modules/unistdio/u32-u32-vasprintf: New file.
61112         * modules/unistdio/u32-u32-vsnprintf: New file.
61113         * modules/unistdio/u32-u32-vsprintf: New file.
61114         * modules/unistdio/ulc-asnprintf-tests: New file.
61115         * modules/unistdio/ulc-vasnprintf-tests: New file.
61116         * modules/unistdio/ulc-vasprintf-tests: New file.
61117         * modules/unistdio/ulc-vsnprintf-tests: New file.
61118         * modules/unistdio/ulc-vsprintf-tests: New file.
61119         * modules/unistdio/u8-asnprintf-tests: New file.
61120         * modules/unistdio/u8-vasnprintf-tests: New file.
61121         * modules/unistdio/u8-vasprintf-tests: New file.
61122         * modules/unistdio/u8-vsnprintf-tests: New file.
61123         * modules/unistdio/u8-vsprintf-tests: New file.
61124         * modules/unistdio/u16-asnprintf-tests: New file.
61125         * modules/unistdio/u16-vasnprintf-tests: New file.
61126         * modules/unistdio/u16-vasprintf-tests: New file.
61127         * modules/unistdio/u16-vsnprintf-tests: New file.
61128         * modules/unistdio/u16-vsprintf-tests: New file.
61129         * modules/unistdio/u32-asnprintf-tests: New file.
61130         * modules/unistdio/u32-vasnprintf-tests: New file.
61131         * modules/unistdio/u32-vasprintf-tests: New file.
61132         * modules/unistdio/u32-vsnprintf-tests: New file.
61133         * modules/unistdio/u32-vsprintf-tests: New file.
61134         * MODULES.html.sh (Unicode string functions): Add the new modules.
61135
61136 2007-07-01  Bruno Haible  <bruno@clisp.org>
61137
61138         * lib/sprintf.c (sprintf): Limit the available length estimation,
61139         to avoid address wraparound.
61140         * lib/vsprintf.c (vsprintf): Likewise.
61141         * modules/sprintf-posix (Dependencies): Add stdint.
61142         * modules/vsprintf-posix (Dependencies): Likewise.
61143
61144 2007-07-01  Bruno Haible  <bruno@clisp.org>
61145
61146         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61147         Windows PATH as well. Conservative double-quoting. Comments.
61148
61149 2007-07-01  Bruno Haible  <bruno@clisp.org>
61150             Eric Blake  <ebb9@byu.net>
61151             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61152
61153         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61154         empty components in $PATH, denoting '.'.
61155
61156 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61157
61158         * gnulib-tool: Fix indentation.
61159         (func_create_megatestdir): Likewise.
61160         Report by Bruno Haible.
61161
61162 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61163
61164         Sync from Automake.
61165         * build-aux/gnupload: Fix shell portability issues with for loops.
61166         Report by Karl Berry.
61167
61168 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61169
61170         * build-aux/maint.mk (POURL): Use translationproject.org.
61171
61172 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61173             Bruno Haible  <bruno@clisp.org>
61174
61175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61176         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61177         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61178         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61179         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61180
61181 2007-06-27  Bruno Haible  <bruno@clisp.org>
61182
61183         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61184         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61185
61186 2007-06-26  Karl Berry  <karl@gnu.org>
61187
61188         * MODULES.html.sh: remove xreadlink-with-size.
61189
61190 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61193         method that I hope also handles the double-include problem noted
61194         by Bruno Haible in
61195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61196
61197 2007-06-23  Bruno Haible  <bruno@clisp.org>
61198
61199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61200         Don't let the 'mostlyclean' target fail if the last subdirectory could
61201         not be removed.
61202         Reported by Karl Berry.
61203
61204 2007-06-23  Bruno Haible  <bruno@clisp.org>
61205
61206         * gnulib-tool (echo): Add a speedier workaround for ksh.
61207         * tests/test-echo.sh: Likewise.
61208
61209 2007-06-23  Bruno Haible  <bruno@clisp.org>
61210
61211         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61212         * tests/test-echo.sh: Likewise.
61213
61214 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61215
61216         * gnulib-tool (IFS): Initialize early, so we don't set it to
61217         empty later.
61218         (self_abspathname): Rewrite algorithm to set it, reindent.
61219         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61220         (func_create_megatestdir): Merge some sed scripts.
61221
61222 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61223
61224         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61225         exposed by Sun Studio 11 cc on Solaris 8.
61226
61227 2007-06-22  Bruno Haible  <bruno@clisp.org>
61228
61229         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61230         backslashes.
61231         * tests/test-echo.sh: New file.
61232
61233 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61234
61235         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61236         simplify `sed_replace_build_aux' scripts, they are portable but
61237         echoing them with `echo' is not.
61238         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61239
61240 2007-06-21  Karl Berry  <karl@gnu.org>
61241
61242         * config/srclist.txt: guess we can't handle the licenses via
61243         srclist at the moment.
61244
61245 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61246
61247         * MODULES.html.sh: Add include_next.
61248         * modules/include_next: New file.
61249
61250 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61253         INCLUDE_NEXT.
61254         (gl_CHECK_NEXT_HEADERS): New macro.
61255         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61256         the obsolescent gl_ABSOLUTE_HEADER.
61257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61258         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61259         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61260         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61261         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61262         * m4/math_h.m4 (gl_MATH_H): Likewise.
61263         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61264         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61265         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61266         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61267         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61268         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61269         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61273         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61274         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61275         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61276         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61277         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61278         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61279         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61280         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61281         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61282         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61283         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61284         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61285         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61286         * lib/float_.h: Likewise.
61287         * lib/inttypes_.h: Likewise.
61288         * lib/math_.h: Likewise.
61289         * lib/search_.h: Likewise.
61290         * lib/signal_.h: Likewise.
61291         * lib/stdint_.h: Likewise.
61292         * lib/stdio_.h: Likewise.
61293         * lib/stdlib_.h: Likewise.
61294         * lib/string_.h: Likewise.
61295         * lib/sys_stat_.h: Likewise.
61296         * lib/sys_time_.h: Likewise.
61297         * lib/time_.h: Likewise.
61298         * lib/unistd_.h: Likewise.
61299         * lib/wchar_.h: Likewise.
61300         * lib/wctype_.h: Likewise.
61301         * lib/dirent_.h: Likewise.
61302         * lib/iconv_.h: Likewise.
61303         * lib/locale_.h: Likewise.
61304         * lib/netinet_in_.h: Likewise.
61305         * lib/sys_select_.h: Likewise.
61306         * lib/sys_socket_.h: Likewise.
61307         * lib/sysexits_.h: Likewise.
61308         * modules/fcntl (Depends-on): Depend on include_next, not
61309         absolute_header.
61310         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61311         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61312         * modules/fchdir: Likewise.
61313         * modules/float: Likewise.
61314         * modules/iconv_open: Likewise.
61315         * modules/inttypes: Likewise.
61316         * modules/locale: Likewise.
61317         * modules/math: Likewise.
61318         * modules/netinet_in: Likewise.
61319         * modules/search: Likewise.
61320         * modules/signal: Likewise.
61321         * modules/stdint: Likewise.
61322         * modules/stdio: Likewise.
61323         * modules/stdlib: Likewise.
61324         * modules/string: Likewise.
61325         * modules/sys_select: Likewise.
61326         * modules/sys_socket: Likewise.
61327         * modules/sys_stat: Likewise.
61328         * modules/sys_time: Likewise.
61329         * modules/sysexits: Likewise.
61330         * modules/time: Likewise.
61331         * modules/unistd: Likewise.
61332         * modules/wchar: Likewise.
61333         * modules/wctype: Likewise.
61334         * modules/sys_stat: Change maintainer to "all".
61335         * modules/unistd: Likewise.
61336
61337 2007-06-20  Karl Berry  <karl@gnu.org>
61338
61339         * config/srclist.txt: track www changes in license files.
61340
61341 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61342
61343         * build-aux/bootstrap: Remove stray dot.
61344         Make sure build_aux settings are honored when linking
61345         gnulib_extra_files.
61346
61347 2007-06-19  Eric Blake  <ebb9@byu.net>
61348
61349         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61350         Allow compilation on cygwin.
61351
61352 2007-06-19  Jim Meyering  <jim@meyering.net>
61353
61354         xreadlink-with-size: Remove module.  No longer used.
61355         Ex-callers now use xreadlink or mreadlink-with-size.
61356         * modules/xreadlink-with-size: Remove module.
61357         * lib/xreadlink-with-size.c: Remove file.
61358         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61359         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61360         just before the function definition *is* accurate.
61361
61362         Eliminate one way canonicalize_filename_mode could exit.
61363         * lib/canonicalize.c (canonicalize_filename_mode):
61364         Use mreadlink_with_size, not xreadlink_with_size.
61365
61366 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61367
61368         Detect porting problems to FreeBSD/arm, which has time_t wider than
61369         long int.  Original problem reported for GNU diff by Xin Li in
61370         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61371         * modules/getdate (Depends-on): Add intprops, verify.
61372         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61373         is an integer type no wider than long int.
61374
61375 2007-06-18  Jim Meyering  <jim@meyering.net>
61376
61377         New module: mreadlink-with-size.
61378         * MODULES.html.sh: Add mreadlink-with-size.
61379         * modules/mreadlink-with-size: New module
61380         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61381         not xreadlink-with-size.
61382         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61383
61384 2007-06-16  Bruno Haible  <bruno@clisp.org>
61385
61386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61387         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61388         Reported by Gary V. Vaughan <gary@gnu.org>.
61389
61390 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         Revamp lchown so that it lives in unistd.h where it belongs.
61393         * lib/lchown.h: Remove.
61394         * lib/dirchownmod.c: Don't include lib/lchown.h.
61395         * lib/fchownat.c: Likewise.
61396         * lib/openat.c: Likewise.
61397         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61398         does not follow symlinks.
61399         (EOPNOTSUPP): Define if not defined.
61400         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61401         is defined to 0.
61402         (lchown): New decl.
61403         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61404         Do not check for lchown decl.
61405         Set REPLACE_LCHOWN.
61406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61407         REPLACE_LCHOWN.
61408         * modules/chown: Make it clear it follows symlinks.
61409         * modules/lchown: Make it clear it doesn't follow symlinks.
61410         (Files): Remove lib/lchown.h
61411         (Depends-on): Add unistd.
61412         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61413         (Include): Include <unistd.h>, not "lchown.h".
61414         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61415         REPLACE_LCHOWN.
61416
61417 2007-06-15  Jim Meyering  <jim@meyering.net>
61418
61419         Change license (GPL to LGPL) of fsusage and dependents.
61420         * modules/fsusage (License): Change to LGPL.
61421         * modules/full-read (License): Likewise.
61422         * modules/full-write (License): Likewise.
61423         * modules/safe-read (License): Likewise.
61424         * modules/safe-write (License): Likewise.
61425
61426 2007-06-14  Ben Pfaff  <blp@gnu.org>
61427
61428         Missing part of allocsa -> malloca transition.
61429         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61430         gl_MALLOCA.
61431
61432 2007-06-12  Bruno Haible  <bruno@clisp.org>
61433
61434         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61435         to ia64, x86_64, i386.
61436         Reported by Eric Blake.
61437
61438 2007-06-12  Bruno Haible  <bruno@clisp.org>
61439
61440         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61441         cross-compiling to x86_64.
61442
61443 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61446         glitch reported by Ralf Wildenhues in
61447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61448
61449         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61450         Vin Shelton.
61451
61452 2007-06-11  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61455         replacement string.
61456         Reported by Eric Blake.
61457
61458 2007-06-10  Bruno Haible  <bruno@clisp.org>
61459
61460         Prepare vasnprintf code for use with Unicode strings.
61461         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61462         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61463         TYPE_U32_STRING.
61464         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61465         a_u32_string variants.
61466         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61467         * lib/printf-args.c: Don't include config.h and the specification
61468         header if PRINTF_FETCHARGS is already defined.
61469         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61470         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61471         TYPE_U16_STRING, TYPE_U32_STRING.
61472         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61473         u16_directive, u16_directives, u32_directive, u32_directives): New
61474         types.
61475         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61476         New declarations.
61477         * lib/printf-parse.c: Don't include config.h and the specification
61478         header if PRINTF_PARSE is already defined. Eliminate the set of
61479         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61480         them now. Include c-ctype.h.
61481         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61482         directive and CHAR_T_ONLY_ASCII.
61483         * lib/vasnprintf.c: Don't include config.h and the specification header
61484         if VASNPRINTF is already defined.
61485         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61486         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61487         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61488         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61489         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61490         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61491         code accordingly.
61492         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61493         pad_ourselves also in this case, with the 'c' and 's' directives, and
61494         with a different notion of "width".
61495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61496
61497 2007-06-10  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/unistr/u32-mbsnlen: New file.
61500         * lib/unistr/u32-mbsnlen.c: New file.
61501
61502         * modules/unistr/u16-mbsnlen: New file.
61503         * lib/unistr/u16-mbsnlen.c: New file.
61504
61505         * modules/unistr/u8-mbsnlen: New file.
61506         * lib/unistr/u8-mbsnlen.c: New file.
61507
61508         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61509         declarations.
61510
61511 2007-06-10  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/string_.h (mbsnlen): New declaration.
61514         * lib/mbsnlen.c: New file.
61515         * m4/mbsnlen.m4: New file.
61516         * modules/mbsnlen: New file.
61517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61518         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61519         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61520
61521 2007-06-10  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61524
61525 2007-06-10  Bruno Haible  <bruno@clisp.org>
61526
61527         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61528         * lib/mbuiter.h: Likewise.
61529
61530 2007-06-10  Bruno Haible  <bruno@clisp.org>
61531
61532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61533         declaration.
61534
61535 2007-06-10  Karl Berry  <karl@gnu.org>
61536
61537         * config/srclist.txt: remove gettext entries, Bruno prefers
61538         to update individually.
61539
61540 2007-06-10  Bruno Haible  <bruno@clisp.org>
61541
61542         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61543         'maxlen'. Ensure only length + width bytes are allocated, not
61544         length + 1 + width.
61545
61546 2007-06-09  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61549         (CHAR_T): Remove macro.
61550         (VASNPRINTF): Update.
61551
61552 2007-06-09  Bruno Haible  <bruno@clisp.org>
61553
61554         * MODULES.html.sh (Unicode string functions): Add the new modules.
61555
61556         * modules/uniconv/u32-conv-to-enc: New file.
61557         * lib/uniconv/u32-conv-to-enc.c: New file.
61558         * modules/uniconv/u32-conv-to-enc-tests: New file.
61559         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61560
61561         * modules/uniconv/u16-conv-to-enc: New file.
61562         * lib/uniconv/u16-conv-to-enc.c: New file.
61563         * lib/uniconv/u-conv-to-enc.h: New file.
61564         * modules/uniconv/u16-conv-to-enc-tests: New file.
61565         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61566
61567         * modules/uniconv/u8-conv-to-enc: New file.
61568         * lib/uniconv/u8-conv-to-enc.c: New file.
61569         * modules/uniconv/u8-conv-to-enc-tests: New file.
61570         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61571
61572         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61573         u32_conv_to_encoding): New declarations.
61574
61575 2007-06-09  Bruno Haible  <bruno@clisp.org>
61576
61577         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61578
61579 2007-06-09  Bruno Haible  <bruno@clisp.org>
61580
61581         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61582         * modules/malloca: Renamed from modules/allocsa, updated.
61583         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61584         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61585         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61586         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61587         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61588         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61589         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61590         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61591         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61592         * modules/c-strcasestr (Depends-on): Update.
61593         * lib/c-strcasestr.c: Update.
61594         * modules/c-strstr (Depends-on): Update.
61595         * lib/c-strstr.c: Update.
61596         * modules/canonicalize-lgpl (Depends-on): Update.
61597         * lib/canonicalize-lgpl.c: Update.
61598         * modules/clean-temp (Depends-on): Update.
61599         * lib/clean-temp.c: Update.
61600         * modules/csharpcomp (Depends-on): Update.
61601         * lib/csharpcomp.c: Update.
61602         * modules/csharpexec (Depends-on): Update.
61603         * lib/csharpexec.c: Update.
61604         * modules/javacomp (Depends-on): Update.
61605         * lib/javacomp.c: Update.
61606         * modules/javaexec (Depends-on): Update.
61607         * lib/javaexec.c: Update.
61608         * modules/mbscasestr (Depends-on): Update.
61609         * lib/mbscasestr.c: Update.
61610         * modules/mbsstr (Depends-on): Update.
61611         * lib/mbsstr.c: Update.
61612         * modules/setenv (Depends-on): Update.
61613         * lib/setenv.c: Update.
61614         * modules/strcasestr (Depends-on): Update.
61615         * lib/strcasestr.c: Update.
61616         * modules/striconveha (Depends-on): Update.
61617         * lib/striconveha.c: Update.
61618         * modules/relocatable-prog-wrapper (Files): Update.
61619         * lib/relocwrapper.c: Update.
61620         * build-aux/install-reloc: Update.
61621         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61622
61623 2007-06-08  Bruno Haible  <bruno@clisp.org>
61624
61625         Port to uClibc.
61626         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61627         * lib/fpurge.c (fpurge): Likewise.
61628         * lib/freading.c (freading): Likewise.
61629         * lib/fseeko.c (rpl_fseeko): Likewise.
61630         * lib/fseterr.c (fseterr): Likewise.
61631         * lib/fwriting.c (fwriting): Likewise.
61632         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61633
61634 2007-06-08  Bruno Haible  <bruno@clisp.org>
61635
61636         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61637         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61638         * modules/gettext (Files): Add m4/intlmacosx.m4.
61639
61640 2007-06-07  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/localename-tests: New file.
61643         * tests/test-localename.c: New file.
61644
61645         New module 'localename'.
61646         * lib/localename.h: New file.
61647         * lib/localename.c: New file, from GNU gettext.
61648         * m4/localename.m4: New file.
61649         * modules/localename: New file.
61650
61651 2007-06-07  Bruno Haible  <bruno@clisp.org>
61652
61653         Work around the lack of <wchar.h> on some builds of uClibc.
61654         * doc/headers/wchar.texi: Update.
61655         * lib/wchar_.h: Include <wchar.h> only if it exists.
61656         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61657         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61658         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61659         doesn't exist.
61660         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61661         * modules/mbfile (Depends-on): Add wchar.
61662         * modules/mbiter (Depends-on): Likewise.
61663         * modules/mbuiter (Depends-on): Likewise.
61664         Reported by Simon Josefsson.
61665
61666 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         Work around problem reported by Steven M. Schweda in
61669         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61670         Tru64 5.1B with the Compaq compiler environment installed declares
61671         an 'isblank' function but does not define it in the C library.
61672         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61673         * lib/regex_internal.h (isblank): Likewise.
61674         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61675         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61676
61677 2007-06-05  Bruno Haible  <bruno@clisp.org>
61678
61679         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61680         ia64.
61681         * modules/printf-safe: New file.
61682         * modules/fprintf-posix (Depends-on): Add printf-safe.
61683         * modules/printf-posix (Depends-on): Likewise.
61684         * modules/snprintf-posix (Depends-on): Likewise.
61685         * modules/sprintf-posix (Depends-on): Likewise.
61686         * modules/vasnprintf-posix (Depends-on): Likewise.
61687         * modules/vasprintf-posix (Depends-on): Likewise.
61688         * modules/vfprintf-posix (Depends-on): Likewise.
61689         * modules/vprintf-posix (Depends-on): Likewise.
61690         * modules/vsnprintf-posix (Depends-on): Likewise.
61691         * modules/vsprintf-posix (Depends-on): Likewise.
61692         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61693         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61694         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61695         "no" on i386, x86_64, ia64.
61696         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
61700         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61701         on i386, x86_64, ia64.
61702         * tests/test-vasnprintf-posix.c: Include float.h.
61703         (LDBL80_WORDS): New macro.
61704         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61705         on i386, x86_64, ia64.
61706         * tests/test-vasprintf-posix.c: Include float.h.
61707         (LDBL80_WORDS): New macro.
61708         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61709         on i386, x86_64, ia64.
61710         * tests/test-snprintf-posix.c: Include float.h.
61711         * tests/test-sprintf-posix.c: Likewise.
61712         * tests/test-vsnprintf-posix.c: Likewise.
61713         * tests/test-vsprintf-posix.c: Likewise.
61714
61715 2007-06-05  Bruno Haible  <bruno@clisp.org>
61716
61717         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61718         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61719         non-IEEE numbers on i386, x86_64, ia64.
61720         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61721         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61722         * tests/test-isnanl.h: Include float.h.
61723         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61724
61725 2007-06-05  Bruno Haible  <bruno@clisp.org>
61726
61727         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61728         also the %a / %A. Handle the %a / %A code before this extra handling.
61729
61730 2007-06-05  Bruno Haible  <bruno@clisp.org>
61731
61732         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61733         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61734
61735 2007-06-05  Bruno Haible  <bruno@clisp.org>
61736
61737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61738         typo in variable name.
61739
61740 2007-06-05  Eric Blake  <ebb9@byu.net>
61741
61742         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61743         Reported by Simon Josefsson.
61744
61745 2007-06-04  Bruno Haible  <bruno@clisp.org>
61746
61747         Avoid test failures on some PowerPC platforms.
61748         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61749         Define differently for PowerPC.
61750         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61751         Reported by Gary V. Vaughan <gary@gnu.org>.
61752
61753 2007-06-02  Bruno Haible  <bruno@clisp.org>
61754
61755         Fix test-stdint failure on FreeBSD/ia64.
61756         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61757         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61758         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61759         * doc/headers/stdint.texi: Update.
61760
61761 2007-06-01  Bruno Haible  <bruno@clisp.org>
61762
61763         * tests/test-binary-io.c (main): Pass a third argument to open().
61764         Reported by Gary V. Vaughan <gary@gnu.org>.
61765
61766 2007-06-01  Bruno Haible  <bruno@clisp.org>
61767
61768         * doc/functions/frexpl.texi: Update for mingw.
61769
61770 2007-06-01  Bruno Haible  <bruno@clisp.org>
61771
61772         * tests/test-lseek.c (main): Disable test of errno for invalid third
61773         argument.
61774         * doc/functions/lseek.texi: Update.
61775         Reported by Gary V. Vaughan <gary@gnu.org>.
61776
61777 2007-05-28  Bruno Haible  <bruno@clisp.org>
61778
61779         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61780
61781 2007-05-31  Eric Blake  <ebb9@byu.net>
61782
61783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61784         cross compiling.
61785
61786 2007-05-30  Eric Blake  <ebb9@byu.net>
61787         and Bruno Haible  <bruno@clisp.org>
61788
61789         Work around mingw test failures exposed by m4-1.4.9b.
61790         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61791         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61792         moment.
61793
61794 2007-05-30  Bruno Haible  <bruno@clisp.org>
61795
61796         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61797         assuming that they are closed. Needed on HP-UX 11.
61798
61799 2007-05-29  Bruno Haible  <bruno@clisp.org>
61800
61801         Fix a problem with #include_next.
61802         * lib/dirent_.h: Split the double-inclusion guard.
61803         * lib/fcntl_.h: Likewise.
61804         * lib/float_.h: Likewise.
61805         * lib/iconv_.h: Likewise.
61806         * lib/inttypes_.h: Likewise.
61807         * lib/locale_.h: Likewise.
61808         * lib/math_.h: Likewise.
61809         * lib/netinet_in_.h: Likewise.
61810         * lib/search_.h: Likewise.
61811         * lib/signal_.h: Likewise.
61812         * lib/stdint_.h: Likewise.
61813         * lib/stdio_.h: Likewise.
61814         * lib/stdlib_.h: Likewise.
61815         * lib/string_.h: Likewise.
61816         * lib/sys_select_.h: Likewise.
61817         * lib/sys_socket_.h: Likewise.
61818         * lib/sys_stat_.h: Likewise.
61819         * lib/sys_time_.h: Likewise.
61820         * lib/sysexits_.h: Likewise.
61821         * lib/time_.h: Likewise.
61822         * lib/unistd_.h: Likewise.
61823         * lib/wchar_.h: Likewise.
61824         * lib/wctype_.h: Likewise.
61825
61826 2007-05-29  Bruno Haible  <bruno@clisp.org>
61827
61828         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61829         for the moment.
61830
61831 2007-05-29  Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61834         invocation.
61835         Reported by Eric Blake.
61836
61837 2007-05-29  Bruno Haible  <bruno@clisp.org>
61838
61839         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61840         compiling case.
61841
61842 2007-05-29  Eric Blake  <ebb9@byu.net>
61843             Bruno Haible  <bruno@clisp.org>
61844
61845         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61846         cross compiles.
61847
61848 2007-05-28  Eric Blake  <ebb9@byu.net>
61849
61850         * modules/closein-tests (test_closein_LDADD): Support test on
61851         cygwin with libtool.
61852
61853 2007-05-28  Bruno Haible  <bruno@clisp.org>
61854
61855         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61856         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61857         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61858         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61859         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61860         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61861         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61862         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61863         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61864
61865 2007-05-28  Eric Blake  <ebb9@byu.net>
61866
61867         Unconditionally include <config.h> in unit tests.
61868         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61869         * tests/test-allocsa.c, tests/test-arcfour.c,
61870         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61871         tests/test-array_list.c, tests/test-array_oset.c,
61872         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61873         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61874         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61875         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61876         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61877         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61878         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61879         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61880         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61881         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61882         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61883         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61884         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61885         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61886         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61887         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61888         test-md5.c, test-memmem.c, test-printf-posix.c,
61889         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61890         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61891         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61892         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61893         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61894         test-vasnprintf-posix2.c, test-vasnprintf.c,
61895         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61896         test-vfprintf-posix.c, test-vprintf-posix.c,
61897         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61898         test-xvasprintf.c: Likewise.
61899
61900 2007-05-28  Bruno Haible  <bruno@clisp.org>
61901
61902         * gnulib-tool (func_import): Remember the --with-tests command-line
61903         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61904         Reported by Eric Blake.
61905
61906 2007-05-28  Bruno Haible  <bruno@clisp.org>
61907
61908         * modules/ftell-tests: New file.
61909         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61910         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61911
61912         * lib/ftell.c: New file.
61913         * modules/ftell: New file.
61914         * m4/ftell.m4: New file.
61915         * doc/functions/ftell.texi: Update.
61916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61917         REPLACE_FTELL.
61918         * lib/stdio_.h (rpl_ftell): New declaration.
61919         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61920         REPLACE_FTELL.
61921
61922 2007-05-28  Eric Blake  <ebb9@byu.net>
61923
61924         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61925
61926 2007-05-28  Bruno Haible  <bruno@clisp.org>
61927
61928         * modules/fseek-tests: New file.
61929         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61930         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61931
61932         * lib/fseek.c: New file.
61933         * modules/fseek: New file.
61934         * m4/fseek.m4: New file.
61935         * doc/functions/fseek.texi: Update.
61936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61937         REPLACE_FSEEK.
61938         * lib/stdio_.h (rpl_fseek): New declaration.
61939         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61940         REPLACE_FSEEK.
61941
61942 2007-05-28  Bruno Haible  <bruno@clisp.org>
61943
61944         * lib/stdio_.h (fflush): More comments.
61945
61946 2007-05-28  Bruno Haible  <bruno@clisp.org>
61947
61948         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61949         runtime test.
61950
61951 2007-05-28  Eric Blake  <ebb9@byu.net>
61952
61953         Improve lseek module.
61954         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61955         * lib/unistd_.h (lseek): Scale back link warning message.
61956         * tests/test-lseek.c: Beef up test.
61957         * tests/test-lseek.sh: Exercise more facets of lseek.
61958         Reported by Bruno Haible.
61959
61960 2007-05-28  Bruno Haible  <bruno@clisp.org>
61961
61962         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61963         to define.
61964
61965 2007-05-27  Bruno Haible  <bruno@clisp.org>
61966
61967         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61968
61969 2007-05-27  Bruno Haible  <bruno@clisp.org>
61970
61971         * modules/openmp: New file.
61972         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61973         Noah Misch.
61974
61975 2007-05-26  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/chdir-long (Depends-on): Add fchdir.
61978         * modules/chdir-safer (Depends-on): Likewise.
61979         * modules/fts (Depends-on): Likewise.
61980         * modules/fts-lgpl (Depends-on): Likewise.
61981         * modules/openat (Depends-on): Likewise.
61982         * modules/savewd (Depends-on): Likewise.
61983
61984 2007-05-24  Eric Blake  <ebb9@byu.net>
61985
61986         Fix lseek on mingw.
61987         * modules/lseek: New module.
61988         * m4/lseek.m4: New file.
61989         * lib/lseek.c: New file.
61990         * modules/lseek-tests: New file.
61991         * tests/test-lseek.c: New file.
61992         * tests/test-lseek.sh: New file.
61993         * MODULES.html.sh: Document lseek module.
61994         * modules/fflush (Depends-on): Add lseek, fseeko.
61995         * modules/fseeko (Depends-on): Likewise.
61996         * modules/ftello (Depends-on): Likewise.
61997         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61998         broken.
61999         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
62000         broken.
62001         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
62002         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
62003         * lib/ftello.c (rpl_ftello): Likewise.
62004         * tests/test-fseeko.c (main): Test this.
62005         * tests/test-fseeko.sh: Likewise.
62006         * tests/test-ftello.c (main): Likewise.
62007         * tests/test-ftello.sh: Likewise.
62008         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
62009         implies replacing fseek.
62010         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62011         HAVE_FTELLO.
62012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62013         * modules/unistd (Makefile.am): Likewise.
62014         * lib/unistd_.h (lseek): Declare a replacement.
62015         * doc/functions/lseek.texi (lseek): Document this fix.
62016         * doc/functions/fseek.texi (fseek): Likewise.
62017         * doc/functions/ftell.texi (ftell): Likewise.
62018
62019 2007-05-24  Bruno Haible  <bruno@clisp.org>
62020
62021         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62022         in the printed representation of a NaN.
62023         * tests/test-vasprintf-posix.c (test_function): Likewise.
62024         * tests/test-snprintf-posix.h (test_function): Likewise.
62025         * tests/test-sprintf-posix.h (test_function): Likewise.
62026         Reported by Eric Blake.
62027
62028 2007-05-23  Eric Blake  <ebb9@byu.net>
62029
62030         Fix fseeko/ftello on cygwin 1.5.24.
62031         * doc/functions/fseeko.texi (fseeko): Document the fix.
62032         * doc/functions/ftello.texi (ftello): Document the fix.
62033         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62034         * doc/functions/stdout.text (stdout): New file.
62035         * doc/functions/stderr.text (stderr): New file.
62036         * doc/gnulib.texi (Function Substitutes): Use new files.
62037         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62038         prior to 1.7.0.
62039         * tests/test-ftello.c (main): Likewise for ftello.
62040         * tests/test-fseeko.sh: New file.
62041         * tests/test-ftello.sh: New file.
62042         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62043         with seekable stdin.
62044         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62045         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62046         (gl_REPLACE_FSEEKO): New macro.
62047         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62048         * modules/fseeko (Files): Distribute fseeko.c.
62049         * modules/ftello (Files): Distribute ftello.c.
62050         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62051         mode.
62052         * lib/ftello.c (rpl_ftello): New file.
62053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62054         fseeko, ftello.
62055         (gl_STDIN_LARGE_OFFSET): New macro.
62056         * modules/stdio (Makefile.am): Perform the replacement.
62057         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62058
62059 2007-05-23  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62062         GNULIB_POSIXCHECK is defined.
62063
62064 2007-05-21  Bruno Haible  <bruno@clisp.org>
62065
62066         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62067         Check also the output for NaN arguments. When cross-compiling, guess
62068         no on IRIX.
62069         * lib/vasnprintf.c: Update comments.
62070         * tests/test-vasnprintf-posix.c (strisnan): New function.
62071         (test_function): Use it.
62072         * tests/test-vasprintf-posix.c (strisnan): New function.
62073         (test_function): Use it.
62074         * tests/test-snprintf-posix.h (strisnan): New function.
62075         (test_function): Use it.
62076         * tests/test-sprintf-posix.h (strisnan): New function.
62077         (test_function): Use it.
62078         Reported by Eric Blake.
62079
62080 2007-05-20  Bruno Haible  <bruno@clisp.org>
62081
62082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62083         numbers that fails on BeOS.
62084         * doc/functions/frexpl.texi: Update.
62085
62086 2007-05-20  Jim Meyering  <jim@meyering.net>
62087
62088         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62089         forced upon us by glibc-2.6.
62090
62091 2007-05-20  Bruno Haible  <bruno@clisp.org>
62092
62093         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62094         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62095         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62096         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62097         NEED_PRINTF_INFINITE.
62098         (is_infinitel): New function.
62099         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62101         gl_PREREQ_VASNPRINTF_INFINITE.
62102         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62104         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62105         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62106         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62107         gl_PREREQ_VASNPRINTF_INFINITE.
62108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62109         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62110         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62111         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62112         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62114         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62115         * doc/functions/fprintf.texi: Update.
62116         * doc/functions/printf.texi: Update.
62117         * doc/functions/snprintf.texi: Update.
62118         * doc/functions/sprintf.texi: Update.
62119         * doc/functions/vfprintf.texi: Update.
62120         * doc/functions/vprintf.texi: Update.
62121         * doc/functions/vsnprintf.texi: Update.
62122         * doc/functions/vsprintf.texi: Update.
62123
62124 2007-05-20  Bruno Haible  <bruno@clisp.org>
62125
62126         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62127         was not found in libc.
62128         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62129
62130 2007-05-20  Bruno Haible  <bruno@clisp.org>
62131
62132         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62133         printed as "-nan" instead of "nan".
62134         * tests/test-vasprintf-posix.c (test_function): Likewise.
62135         * tests/test-snprintf-posix.h (test_function): Likewise.
62136         * tests/test-sprintf-posix.h (test_function): Likewise.
62137         Needed for HP-UX 11.
62138
62139 2007-05-20  Jim Meyering  <jim@meyering.net>
62140
62141         Fix buggy test for the fchownat-deref bug.
62142         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62143         symlink required for the run-test.  Without it, this test would
62144         always declare that fchownat doesn't work, and client code would
62145         unnecessarily use the replacement function with fixed libc.
62146         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62147         Reported by Greg Schafer.
62148
62149 2007-05-19  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62152         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62153         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62154         Needed for IRIX 6.5 and Solaris 2.5.1.
62155
62156 2007-05-19  Bruno Haible  <bruno@clisp.org>
62157
62158         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62159         (test_function): Skip tests involving -0.0 on platforms where
62160         -0.0 = 0.0.
62161         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62162         (test_function): Skip tests involving -0.0 on platforms where
62163         -0.0 = 0.0.
62164         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62165         (test_function): Skip tests involving -0.0 on platforms where
62166         -0.0 = 0.0.
62167         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62168         (test_function): Skip tests involving -0.0 on platforms where
62169         -0.0 = 0.0.
62170         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62171         tests.
62172         * tests/test-printf-posix.h (test_function): Likewise.
62173         * tests/test-printf-posix.output: Remove all -0.0 related results.
62174         Needed for IRIX 6.5.
62175
62176 2007-05-19  Bruno Haible  <bruno@clisp.org>
62177
62178         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62179         printed as "nan0x7fffffff" instead of "nan".
62180         * tests/test-vasprintf-posix.c (test_function): Likewise.
62181         * tests/test-snprintf-posix.h (test_function): Likewise.
62182         * tests/test-sprintf-posix.h (test_function): Likewise.
62183         * tests/test-fprintf-posix.h (NaN): Remove macro.
62184         (test_function): Remove all NaN related tests.
62185         * tests/test-printf-posix.h (NaN): Remove macro.
62186         (test_function): Remove all NaN related tests.
62187         * tests/test-printf-posix.output: Remove all NaN related results.
62188         Needed for IRIX 6.5.
62189
62190 2007-05-19  Bruno Haible  <bruno@clisp.org>
62191
62192         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62194
62195 2007-05-19  Bruno Haible  <bruno@clisp.org>
62196
62197         * lib/float_.h: New file.
62198         * m4/float_h.m4: New file.
62199         * modules/float: New file.
62200         * modules/isnanl (Dependencies): Add float.
62201         * modules/isnanl-nolibm (Dependencies): Likewise.
62202         * modules/mathl (Dependencies): Likewise.
62203         * modules/printf-frexpl (Dependencies): Likewise.
62204         * modules/signbit (Dependencies): Likewise.
62205         * modules/vasnprintf (Dependencies): Likewise.
62206         * doc/headers/float.texi: Update.
62207
62208 2007-05-19  Jim Meyering  <jim@meyering.net>
62209
62210         * lib/utimens.c (gl_futimens): Rename from futimens,
62211         now that glibc-2.6 declares futimens.
62212         * lib/utimens.h: Likewise.
62213
62214 2007-05-19  Bruno Haible  <bruno@clisp.org>
62215
62216         Avoid test failures on mingw.
62217         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62218         * tests/test-printf-posix.sh: Likewise.
62219         * tests/test-vfprintf-posix.sh: Likewise.
62220         * tests/test-vprintf-posix.sh: Likewise.
62221
62222 2007-05-19  Bruno Haible  <bruno@clisp.org>
62223
62224         Fix *printf result for NaN, Inf, -0.0 on mingw.
62225         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62226         * lib/vasnprintf.c: Include math.h and isnan.h.
62227         (is_infinite_or_zero): New function.
62228         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62229         values in the %f, %F, %e, %E, %g, %G directives.
62230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62232         gl_PRINTF_INFINITE and test its result. Invoke
62233         gl_PREREQ_VASNPRINTF_INFINITE.
62234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62241         * doc/functions/fprintf.texi: Update.
62242         * doc/functions/printf.texi: Update.
62243         * doc/functions/snprintf.texi: Update.
62244         * doc/functions/sprintf.texi: Update.
62245         * doc/functions/vfprintf.texi: Update.
62246         * doc/functions/vprintf.texi: Update.
62247         * doc/functions/vsnprintf.texi: Update.
62248         * doc/functions/vsprintf.texi: Update.
62249
62250 2007-05-19  Bruno Haible  <bruno@clisp.org>
62251
62252         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62253         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62254         Instead of multiplying with 10^k, set extra_zeroes to k.
62255         (scale10_round_long_double): Remove function.
62256
62257 2007-05-18  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62260         introduced on 2007-05-06.
62261
62262 2007-05-18  Bruno Haible  <bruno@clisp.org>
62263
62264         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62265         %g directives.
62266         * tests/test-vasprintf-posix.c (test_function): Likewise.
62267         * tests/test-snprintf-posix.h (test_function): Likewise.
62268         * tests/test-sprintf-posix.h (test_function): Likewise.
62269
62270 2007-05-18  Bruno Haible  <bruno@clisp.org>
62271
62272         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62273         (strmatch): New function.
62274         (test_function): Test the %f directive on numbers of various exponents.
62275         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62276         (strmatch): New function.
62277         (test_function): Test the %f directive on numbers of various exponents.
62278         * tests/test-snprintf-posix.h (strmatch): New function.
62279         (test_function): Test the %f directive on numbers of various exponents.
62280         * tests/test-sprintf-posix.h (strmatch): New function.
62281         (test_function): Test the %f directive on numbers of various exponents.
62282         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62283         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62284         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62285         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62286
62287 2007-05-18  Bruno Haible  <bruno@clisp.org>
62288
62289         Add support for 'long double' number output.
62290         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
62291         * lib/vasnprintf.c: Include math.h and float+.h.
62292         (mp_limb_t): New type.
62293         (GMP_LIMB_BITS): New macro.
62294         (mp_twolimb_t): New type.
62295         (GMP_TWOLIMB_BITS): New macro.
62296         (mpn_t): New type.
62297         (multiply, divide, convert_to_decimal, decode_long_double,
62298         scale10_round_long_double, scale10_round_decimal_long_double,
62299         floorlog10l): New functions.
62300         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62301         for the %f, %F, %e, %E, %g, %G directives.
62302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62303         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62304         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62305         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62310         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62313         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62314         * modules/snprintf-posix (Depends-on): Likewise.
62315         * modules/sprintf-posix (Depends-on): Likewise.
62316         * modules/vasnprintf-posix (Depends-on): Likewise.
62317         * modules/vasprintf-posix (Depends-on): Likewise.
62318         * modules/vfprintf-posix (Depends-on): Likewise.
62319         * modules/vsnprintf-posix (Depends-on): Likewise.
62320         * modules/vsprintf-posix (Depends-on): Likewise.
62321         * modules/vasnprintf (Files): Add lib/float+.h.
62322         * doc/functions/fprintf.texi: Update.
62323         * doc/functions/printf.texi: Update.
62324         * doc/functions/snprintf.texi: Update.
62325         * doc/functions/sprintf.texi: Update.
62326         * doc/functions/vfprintf.texi: Update.
62327         * doc/functions/vprintf.texi: Update.
62328         * doc/functions/vsnprintf.texi: Update.
62329         * doc/functions/vsprintf.texi: Update.
62330
62331 2007-05-18  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62334
62335 2007-05-18  Bruno Haible  <bruno@clisp.org>
62336
62337         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62338         for printing 64-bit integers. Needed for mingw.
62339
62340 2007-05-18  Bruno Haible  <bruno@clisp.org>
62341
62342         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62343         gl_FUNC_FREXPL_WORKS.
62344         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62345
62346 2007-05-18  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/frexpl-nolibm-tests: New file.
62349
62350         * modules/frexpl-nolibm: New file.
62351         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62352
62353 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62354
62355         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62356         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62357         GCC 4.2, which otherwise issues a lot of warnings.
62358         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62359         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62360         Likewise.
62361         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62362         * modules/iconv_open (iconv.h): Likewise.
62363         * modules/locale (locale.h): Likewise.
62364         * modules/netinet_in (netinet/in.h): Likewise.
62365         * modules/sys_select (sys_select.h): Likewise.
62366         * modules/sys_socket (sys/socket.h): Likewise.
62367         * modules/sys_stat (sys/stat.h): Likewise.
62368         * modules/sysexits (sysexits.h): Likewise.
62369         * modules/unistd (unistd.h): Likewise.
62370
62371 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62372
62373         * modules/closein-tests (Makefile.am): Distribute
62374         `test-closein.sh'.
62375
62376 2007-05-17  Bruno Haible  <bruno@clisp.org>
62377
62378         * tests/test-printf-posix.output: Renamed from
62379         tests/test-fprintf-posix.out.
62380         * modules/fprintf-posix-tests: Update.
62381         * modules/printf-posix-tests: Update.
62382         * modules/vfprintf-posix-tests: Update.
62383         * modules/vprintf-posix-tests: Update.
62384         * tests/test-fprintf-posix.sh: Update.
62385         * tests/test-printf-posix.sh: Update.
62386         * tests/test-vfprintf-posix.sh: Update.
62387         * tests/test-vprintf-posix.sh: Update.
62388         Reported by Ralf Wildenhues.
62389
62390 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62391
62392         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62393         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62394         GCC 4.2, which otherwise issues a lot of warnings.
62395         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62396         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62397         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62398         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62399         it should no longer be needed.
62400         * lib/string_.h: Likewise.
62401         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62402         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62403         * modules/inttypes (inttypes.h): Likewise.
62404         * modules/math (math.h): Likewise.
62405         * modules/search (search.h): Likewise.
62406         * modules/signal (signal.h): Likewise.
62407         * modules/stdint (stdint.h): Likewise.
62408         * modules/stdio (stdio.h): Likewise.
62409         * modules/stdlib (stdlib.h): Likewise.
62410         * modules/string (string.h): Likewise.
62411         * modules/sys_time (sys/time.h): Likewise.
62412         * modules/time (time.h): Likewise.
62413         * modules/wchar (wchar.h): Likewise.
62414         * modules/wctype (wtype.h): Likewise.
62415
62416 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62417
62418         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62419
62420 2007-05-13  Bruno Haible  <bruno@clisp.org>
62421
62422         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62423         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62424         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62425         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62426         (gl_PREREQ_STRTOK_R): Don't require it here.
62427
62428 2007-05-13  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62431         when used in C++ mode.
62432
62433 2007-05-12  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/linebuffer.h: Tweak doc.
62436         * lib/linebuffer.c: Likewise.
62437
62438 2007-05-12  James Youngman  <jay@gnu.org>
62439
62440         * lib/linebuffer.c (readlinebuffer_delim): New function,
62441         like readlinebuffer, but use a caller-specified delimiter.
62442         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62443         as the delimiter.
62444         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62445
62446 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62447
62448         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62449         * modules/openat (Files): Remove openat-die.c.
62450         (Depends-on): Add openat-die.
62451         * modules/openat-die: New module.
62452
62453 2007-05-06  Bruno Haible  <bruno@clisp.org>
62454
62455         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62456         Update with info about Cygwin.
62457         * doc/functions/fprintf.texi: Update.
62458         * doc/functions/printf.texi: Update.
62459         * doc/functions/snprintf.texi: Update.
62460         * doc/functions/sprintf.texi: Update.
62461         * doc/functions/vfprintf.texi: Update.
62462         * doc/functions/vprintf.texi: Update.
62463         * doc/functions/vsnprintf.texi: Update.
62464         * doc/functions/vsprintf.texi: Update.
62465         Reported by Eric Blake.
62466
62467 2007-05-06  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62470         padding ourselves for the floating-point directives.
62471         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62474         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62475         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62478         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62480         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62481         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62482         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62483         * tests/test-snprintf-posix.h (test_function): Also check the width
62484         and some flags in the %f directive.
62485         * tests/test-sprintf-posix.h (test_function): Likewise.
62486         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62487         * tests/test-vasprintf-posix.c (test_function): Likewise.
62488         * doc/functions/fprintf.texi: Update.
62489         * doc/functions/printf.texi: Update.
62490         * doc/functions/snprintf.texi: Update.
62491         * doc/functions/sprintf.texi: Update.
62492         * doc/functions/vfprintf.texi: Update.
62493         * doc/functions/vprintf.texi: Update.
62494         * doc/functions/vsnprintf.texi: Update.
62495         * doc/functions/vsprintf.texi: Update.
62496
62497 2007-05-06  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62500         pass the ' flag character to sprintf or snprintf.
62501         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62502         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62504         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62505         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62512         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62513         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62514         flag.
62515         * tests/test-sprintf-posix.h (test_function): Likewise.
62516         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62517         * tests/test-vasprintf-posix.c (test_function): Likewise.
62518         * doc/functions/fprintf.texi: Update.
62519         * doc/functions/printf.texi: Update.
62520         * doc/functions/snprintf.texi: Update.
62521         * doc/functions/sprintf.texi: Update.
62522         * doc/functions/vfprintf.texi: Update.
62523         * doc/functions/vprintf.texi: Update.
62524         * doc/functions/vsnprintf.texi: Update.
62525         * doc/functions/vsprintf.texi: Update.
62526
62527 2007-05-01  Bruno Haible  <bruno@clisp.org>
62528
62529         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62530
62531 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62532
62533         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62534         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62535
62536 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62537
62538         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62539         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62541
62542 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62543
62544         * lib/argp-help.c (struct hol_entry): New member `ord'.
62545         (HOL_ENTRY_PTRCMP): Use ord for comparison
62546         (hol_sort): Initialize ord.
62547
62548 2007-05-01  Bruno Haible  <bruno@clisp.org>
62549
62550         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62551         Reported by Eric Blake.
62552         * doc/gnulib.texi (Function Substitutes): Update.
62553
62554 2007-05-01  Bruno Haible  <bruno@clisp.org>
62555
62556         * doc/functions.texi: Remove file, now redundant through
62557         doc/functions/*.texi.
62558
62559 2007-05-01  Bruno Haible  <bruno@clisp.org>
62560
62561         * modules/argp (Depends-on): Add sleep.
62562
62563 2007-05-01  Bruno Haible  <bruno@clisp.org>
62564
62565         * modules/sleep-tests: New file.
62566         * tests/test-sleep.c: New file.
62567
62568         * modules/sleep: New file.
62569         * lib/sleep.c: New file.
62570         * m4/sleep.m4: New file.
62571         * lib/unistd_.h (sleep): New declaration.
62572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62573         HAVE_SLEEP.
62574         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62575         * doc/functions/sleep.texi: Document the sleep module.
62576
62577 2007-05-01  Bruno Haible  <bruno@clisp.org>
62578
62579         * lib/sigprocmask.h: Remove file.
62580         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62581         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62582         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62583         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62584         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62585         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62586         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62587         HAVE_SIGSET_T as a shell variable.
62588         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62589         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62590         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62591         (Depends-on): Add signal. Remove verify.
62592         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62593         (Include): Mention <signal.h> instead of sigprocmask.h.
62594         * NEWS: Mention the change.
62595         * lib/fatal-signal.c: Don't include sigprocmask.h.
62596
62597 2007-05-01  Bruno Haible  <bruno@clisp.org>
62598
62599         * modules/signal: New file.
62600         * lib/signal_.h: New file.
62601         * m4/signal_h.m4: New file.
62602
62603 2007-05-01  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62606         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62607         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62608         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62609
62610 2007-05-01  Bruno Haible  <bruno@clisp.org>
62611
62612         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62613         configure time.
62614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62615         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62616         * modules/sys_stat (Makefile.am): Substitute their values into
62617         sys/stat.h.
62618
62619 2007-05-01  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62622         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62623         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62624
62625 2007-05-01  Bruno Haible  <bruno@clisp.org>
62626
62627         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62628         'assert' module here.
62629
62630 2007-05-01  Bruno Haible  <bruno@clisp.org>
62631
62632         * doc/functions/*.texi: New files.
62633         * doc/functions/google-ranking.txt: New file.
62634         * doc/gnulib.texi (Function Substitutes): New chapter.
62635         (ctime, inet_ntoa): Remove sections.
62636         * doc/ctime.texi: Remove file.
62637         * doc/inet_ntoa.texi: Remove file.
62638         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62639         dependencies.
62640         (%.info): New rule, specifying a --reference-limit.
62641
62642 2007-05-01  Bruno Haible  <bruno@clisp.org>
62643
62644         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62645
62646 2007-05-01  Bruno Haible  <bruno@clisp.org>
62647
62648         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62649         the portability of 'mkdir' to mingw systems.
62650
62651 2007-05-01  Bruno Haible  <bruno@clisp.org>
62652
62653         * doc/headers/google-ranking.txt: New file.
62654
62655 2007-04-30  Eric Blake  <ebb9@byu.net>
62656
62657         Prefer fseeko to fseek.
62658         * modules/getpass (Depends-on): Add fseeko.
62659         * lib/getpass.c (getpass): Use fseeko, not fseek.
62660
62661 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62662
62663         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62664         assumes the sorting is stable, while most qsort implementations
62665         are not.  Use argument addresses to ensure they never compare as
62666         equal.
62667
62668         * tests/test-argp-2.sh (usage-indent test): Fix output
62669         (func_compare): Restore diff options
62670         * tests/test-argp.c: Restore #include "progname.h"
62671
62672 2007-04-29  Bruno Haible  <bruno@clisp.org>
62673
62674         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62676         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62678         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62679         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62680         (TESTS, check_PROGRAMS): Add test-snprintf.
62681         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62682         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62683         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62684         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62685         assertions that fail on HP-UX, OSF/1, or IRIX.
62686         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62687
62688 2007-04-29  Bruno Haible  <bruno@clisp.org>
62689
62690         * MODULES.html.sh (posix_functions): Remove 'contents'.
62691
62692 2007-04-29  Karl Berry  <karl@gnu.org>
62693
62694         * config/srclist.txt (gendocs_template_min): new entry.
62695
62696 2007-04-29  Bruno Haible  <bruno@clisp.org>
62697
62698         Work around fpurge bug on BSD systems.
62699         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62700         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62701         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62702         fpurge to rpl_fpurge if the system already has this function.
62703         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62704         the case where the system already has this function. Correct invariants
62705         on BSD systems.
62706         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62707         BSD systems.
62708
62709 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62710
62711         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62712         proposed by Sven Verdoolaege.
62713
62714         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62715         options.
62716         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62717         (usage and help tests): Update
62718
62719 2007-04-29  Bruno Haible  <bruno@clisp.org>
62720
62721         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62722         Print more information in case of failure. Disable a test on BeOS.
62723
62724 2007-04-29  Bruno Haible  <bruno@clisp.org>
62725
62726         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62727         This helps debugging on systems on which no gdb is available.
62728
62729 2007-04-29  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/freading.h: Improve comments.
62732         * lib/fwriting.h: Likewise.
62733         * tests/test-freading.c (main): Don't check freading immediately after
62734         repositioning. Needed for glibc.
62735
62736 2007-04-29  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/freading.c (freading): Trivial simplification.
62739
62740 2007-04-28  Bruno Haible  <bruno@clisp.org>
62741
62742         * tests/test-fwriting.c (main): Also test the interaction between
62743         fflush and fwriting.
62744         * modules/fwriting-tests (Depends-on): Add fflush.
62745
62746         * tests/test-freading.c (main): Also test the interaction between
62747         fflush and freading.
62748         * modules/freading-tests (Depends-on): Add fflush.
62749
62750 2007-04-28  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62753         fseeko and ftello.
62754         Suggested by Eric Blake.
62755
62756 2007-04-28  Jim Meyering  <jim@meyering.net>
62757
62758         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62759         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62760         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62761
62762 2007-04-27  Eric Blake  <ebb9@byu.net>
62763
62764         * doc/headers/assert.texi (assert.h): Document assert module use.
62765
62766 2007-04-27  Bruno Haible  <bruno@clisp.org>
62767
62768         * doc/headers/*.texi: New files.
62769         * doc/gnulib.texi (Header File Substitutes): New chapter.
62770         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62771         dependencies.
62772         (standards.info ,standards.html, standards.dvi): Update dependencies.
62773         (mostlyclean, clean): New targets.
62774
62775 2007-04-27  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62778         * modules/sysexits (Files, Makefile.am): Update.
62779
62780         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62781         * modules/sys_socket (Files, Makefile.am): Update.
62782
62783         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62784         * modules/sys_stat (Files, Makefile.am): Update.
62785
62786 2007-04-27  Eric Blake  <ebb9@byu.net>
62787
62788         * lib/freading.h: Improve comments.
62789         * lib/fwriting.h: Likewise.
62790         * lib/fflush.c: Likewise.
62791
62792         Fix closein for mingw.
62793         * modules/closein-tests: Add tests for closein.
62794         * tests/test-closein.c: New file.
62795         * tests/test-closein.sh: Likewise.
62796         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62797         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62798
62799 2007-04-27  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62802         version is < 6.
62803         * lib/math_.h [__DECC]: Likewise.
62804         * lib/stdio_.h [__DECC]: Likewise.
62805         * lib/stdlib_.h [__DECC]: Likewise.
62806         * lib/string_.h [__DECC]: Likewise.
62807         * lib/time_.h [__DECC]: Likewise.
62808         * lib/wchar_.h [__DECC]: Likewise.
62809         * lib/wctype_.h [__DECC]: Likewise.
62810
62811 2007-04-27  Bruno Haible  <bruno@clisp.org>
62812
62813         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62814
62815 2007-04-27  Bruno Haible  <bruno@clisp.org>
62816
62817         * lib/fflush.c: Add comments.
62818         * modules/fpurge-tests (Depends-on): Add fflush.
62819         * modules/freadable-tests (Depends-on): Likewise.
62820         * modules/fwritable-tests (Depends-on): Likewise.
62821
62822 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62823
62824         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62825         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62826         Report by Bruno Haible <bruno@clisp.org>.
62827
62828 2007-04-26  Eric Blake  <ebb9@byu.net>
62829
62830         Fix fflush on mingw.
62831         * modules/fflush (Depends-on): Add freading.
62832         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62833         but unread data.
62834
62835 2007-04-26  Eric Blake  <ebb9@byu.net>
62836         and Bruno Haible  <bruno@clisp.org>
62837
62838         Implement freading and fwriting.
62839         * lib/freading.c: New file.
62840         * lib/freading.h: Likewise.
62841         * m4/freading.m4: Likewise.
62842         * modules/freading: Likewise.
62843         * modules/freading-tests: Likewise.
62844         * tests/test-freading.c: Likewise.
62845         * lib/fwriting.c: New file.
62846         * lib/fwriting.h: Likewise.
62847         * m4/fwriting.m4: Likewise.
62848         * modules/fwriting: Likewise.
62849         * modules/fwriting-tests: Likewise.
62850         * tests/test-fwriting.c: Likewise.
62851         * MODULES.html.sh (File stream based Input/Output): Mention them.
62852
62853 2007-04-26  Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62856         'long' when we assume it.
62857         Suggested by Eric Blake.
62858
62859 2007-04-26  Bruno Haible  <bruno@clisp.org>
62860
62861         Ensure fseeko, ftello are declared on glibc systems.
62862         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62863         * modules/fseeko (configure.ac-early): Likewise.
62864         * modules/ftello (configure.ac-early): Likewise.
62865         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62866         AC_FUNC_FSEEKO for this.
62867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62868         (gl_CHECK_FSEEKO): Remove macro.
62869
62870 2007-04-26  Bruno Haible  <bruno@clisp.org>
62871
62872         * tests/test-fflush.c (main): Also check the ftell result after
62873         fflush and fseek/fseeko.
62874         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62875         file descriptor position cache in the stream.
62876         * lib/fseeko.c (rpl_fseeko): Likewise.
62877
62878 2007-04-26  Bruno Haible  <bruno@clisp.org>
62879
62880         * modules/fflush-tests (Depends-on): Add fseeko.
62881
62882 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62883             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62884
62885         * lib/argz_.h: ensure error_t definition is obtained in same
62886         mechanism system argz.h would have.
62887         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62888         argz facilities are known bad.  Err on the side of caution if
62889         cross-compiling.
62890
62891 2007-04-25  Eric Blake  <ebb9@byu.net>
62892
62893         * lib/fpurge.c (includes): Use stdlib.h for free.
62894         * tests/test-fflush.c (main): Also test fflush-fseeko.
62895
62896 2007-04-25  Bruno Haible  <bruno@clisp.org>
62897
62898         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62899         * lib/fseeko.c: New file.
62900         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62901         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62902         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62903         gl_FUNC_FSEEKO.
62904         (gl_FUNC_FSEEKO): Invoke it.
62905         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62906         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62907         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62908
62909 2007-04-25  Bruno Haible  <bruno@clisp.org>
62910
62911         * modules/fflush (Depends-on): Add ftello.
62912
62913 2007-04-25  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/ftello-tests: New file.
62916         * tests/test-ftello.c: New file.
62917
62918         * modules/ftello: New file.
62919         * m4/ftello.m4: New file.
62920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62921         HAVE_FTELLO.
62922         * lib/stdio_.h (ftello): New declaration.
62923         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62924         HAVE_FTELLO.
62925
62926 2007-04-25  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/fseeko-tests: New file.
62929         * tests/test-fseeko.c: New file.
62930
62931         * modules/fseeko: New file.
62932         * m4/fseeko.m4: New file.
62933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62934         HAVE_FSEEKO.
62935         * lib/stdio_.h (fseeko): New declaration.
62936         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62937         HAVE_FSEEKO.
62938
62939 2007-04-25  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62942
62943 2007-04-25  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62946         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62947         * tests/test-unistd.c: Likewise.
62948         * tests/test-fcntl.c: Likewise.
62949
62950 2007-04-23  Eric Blake  <ebb9@byu.net>
62951
62952         * lib/fflush.c: Fix missing include.
62953         Reported by Bruno Haible.
62954
62955 2007-04-23  Bruno Haible  <bruno@clisp.org>
62956
62957         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62958         Reported by Eric Blake.
62959
62960 2007-04-23  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62963
62964 2007-04-23  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62967
62968 2007-04-23  Bruno Haible  <bruno@clisp.org>
62969
62970         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62971         Needed on HP-UX 11.
62972
62973 2007-04-16  Eric Blake  <ebb9@byu.net>
62974
62975         Make fflush rely on fpurge.
62976         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62977         open coding all variants.
62978         * modules/fflush (Depends-on): Add fpurge and unistd.
62979         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62980         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62981
62982         Fix --with-tests compilation on cygwin.
62983         * modules/argmatch-tests (Makefile.am): List gnulib library first
62984         in LDADD.
62985         * modules/argp-tests (Makefile.am): Likewise.
62986         * modules/array-list-tests (Makefile.am): Likewise.
62987         * modules/array-oset-tests (Makefile.am): Likewise.
62988         * modules/avltree-list-tests (Makefile.am): Likewise.
62989         * modules/avltree-oset-tests (Makefile.am): Likewise.
62990         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62991         * modules/carray-list-tests (Makefile.am): Likewise.
62992         * modules/dirname-tests (Makefile.am): Likewise.
62993         * modules/frexp-tests (Makefile.am): Likewise.
62994         * modules/isnanl-tests (Makefile.am): Likewise.
62995         * modules/linked-list-tests (Makefile.am): Likewise.
62996         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62997         * modules/lock-tests (Makefile.am): Likewise.
62998         * modules/rbtree-list-tests (Makefile.am): Likewise.
62999         * modules/rbtree-oset-tests (Makefile.am): Likewise.
63000         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
63001         * modules/tls-tests (Makefile.am): Likewise.
63002         * modules/tsearch-tests (Makefile.am): Likewise.
63003         * modules/xvasprintf-tests (Makefile.am): Likewise.
63004
63005         Fix fpurge for cygwin.
63006         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
63007         value.
63008         * modules/fpurge-tests (Depends-on): Clean up trash.
63009
63010 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63011
63012         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63013
63014         * m4/autobuild.m4: Re-indent.
63015
63016 2007-04-13  Bruno Haible  <bruno@clisp.org>
63017
63018         * modules/fpurge-tests: New file.
63019         * tests/test-fpurge.c: New file.
63020
63021         * modules/fpurge: New file.
63022         * lib/fpurge.h: New file.
63023         * lib/fpurge.c: New file.
63024         * m4/fpurge.m4: New file.
63025
63026 2007-04-13  Bruno Haible  <bruno@clisp.org>
63027
63028         * modules/fbufmode-tests: New file.
63029         * tests/test-fbufmode.c: New file.
63030
63031         * modules/fbufmode: New file.
63032         * lib/fbufmode.h: New file.
63033         * lib/fbufmode.c: New file.
63034         * m4/fbufmode.m4: New file.
63035
63036 2007-04-13  Bruno Haible  <bruno@clisp.org>
63037
63038         * modules/fwritable-tests: New file.
63039         * tests/test-fwritable.c: New file.
63040
63041         * modules/fwritable: New file.
63042         * lib/fwritable.h: New file.
63043         * lib/fwritable.c: New file.
63044         * m4/fwritable.m4: New file.
63045
63046 2007-04-13  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/freadable-tests: New file.
63049         * tests/test-freadable.c: New file.
63050
63051         * modules/freadable: New file.
63052         * lib/freadable.h: New file.
63053         * lib/freadable.c: New file.
63054         * m4/freadable.m4: New file.
63055
63056 2007-04-13  Bruno Haible  <bruno@clisp.org>
63057
63058         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63059         MOSTLYCLEANFILES.
63060
63061 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63062
63063         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63064         gzip bootstrap.conf to avoid dragging in i18n machinery.
63065         (gnulib_tool_option): Use it.
63066
63067 2007-04-13  Bruno Haible  <bruno@clisp.org>
63068
63069         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63070         %F directives.
63071         * tests/test-vasprintf-posix.c (test_function): Likewise.
63072         * tests/test-snprintf-posix.h (test_function): Likewise.
63073         * tests/test-sprintf-posix.h (test_function): Likewise.
63074         * tests/test-fprintf-posix.h (test_function): Likewise.
63075         * tests/test-printf-posix.h (test_function): Likewise.
63076         * tests/test-fprintf-posix.out: Likewise.
63077
63078 2007-04-13  Bruno Haible  <bruno@clisp.org>
63079
63080         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63081         * modules/tls-tests (configure.ac): Likewise.
63082         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63083
63084 2007-04-13  Bruno Haible  <bruno@clisp.org>
63085
63086         * lib/tls.c (glthread_tls_get): Fix return type.
63087         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63088
63089 2007-04-12  Eric Blake  <ebb9@byu.net>
63090
63091         * modules/gettime (Depends-on): Remove gettime.
63092         Reported by Dmitry V. Levin.
63093
63094 2007-04-12  Bruno Haible  <bruno@clisp.org>
63095
63096         * modules/fflush (Include): Mention <stdio.h>.
63097         * modules/strtoimax (Include): Mention <inttypes.h>.
63098         * modules/strtoumax (Include): Likewise.
63099
63100 2007-04-12  Eric Blake  <ebb9@byu.net>
63101
63102         * .cvsignore: New file.
63103         * .gitignore: Likewise.
63104
63105 2007-04-12  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63108         not before, since $(LDADD) often contains libgnu.a.
63109         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63110         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63111         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63112         Needed on Cygwin.
63113
63114 2007-04-12  Eric Blake  <ebb9@byu.net>
63115
63116         Work around glibc's failure to flush stdin on fclose.
63117         * lib/closein.c (close_stdin): Flush stdin before closing.
63118
63119         Work around glibc's failure to reset seekable stdin on exit.
63120         * modules/closein: New module.
63121         * lib/closein.c: New file.
63122         * lib/closein.h: Likewise.
63123         * m4/closein.m4: Likewise.
63124         * MODULES.html.sh (File stream based Input/Output): Document it.
63125
63126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63127
63128         * gnulib-tool: Rename generated 'autobuild' script to
63129         'do-autobuild' in --create-megatestdir output.
63130
63131         * doc/gnulib.texi (Build robot for gnulib): Fix.
63132
63133 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63134
63135         * modules/sysexits (Depends-on): Add absolute-header.
63136
63137 2007-04-12  Eric Blake  <ebb9@byu.net>
63138
63139         No need to preserve errno on success.
63140         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63141         Reported by Bruno Haible.
63142
63143 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63144
63145         * MODULES.html.sh (Support for maintaining and releasing
63146         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63147
63148 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63149
63150         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63151
63152 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63153
63154         * modules/autobuild: New module.
63155
63156         * m4/autobuild.m4: New file.
63157
63158 2007-04-11  Bruno Haible  <bruno@clisp.org>
63159
63160         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63161         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63162         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63170         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63183         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63184         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63186         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63187         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63188         Reported by Eric Blake.
63189
63190 2007-04-11  Bruno Haible  <bruno@clisp.org>
63191
63192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63193
63194 2007-04-10  Bruno Haible  <bruno@clisp.org>
63195
63196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63197         for NaN and Infinity. Needed on FreeBSD 6.1.
63198         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63199         regarding results for "%010a" of Infinity and NaN.
63200         * tests/test-vasprintf-posix.c (test_function): Likewise.
63201         * tests/test-snprintf-posix.h (test_function): Likewise.
63202         * tests/test-sprintf-posix.h (test_function): Likewise.
63203         * tests/test-fprintf-posix.h (test_function): Likewise.
63204         * tests/test-printf-posix.h (test_function): Likewise.
63205         * tests/test-fprintf-posix.out: Likewise.
63206
63207 2007-04-10  Bruno Haible  <bruno@clisp.org>
63208
63209         * modules/locale-tests: New file.
63210         * tests/test-locale.c: New file.
63211
63212         * modules/locale: New file.
63213         * lib/locale_.h: New file.
63214         * m4/locale_h.m4: New file.
63215
63216 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63217             Bruno Haible  <bruno@clisp.org>
63218
63219         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63220         be determined, test for availability of the copysignf, copysign,
63221         copysignl functions.
63222         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63223         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63224         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63225
63226 2007-04-09  Eric Blake  <ebb9@byu.net>
63227
63228         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63229         * modules/stdio (Makefile.am): Support fflush.
63230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63231         * modules/fflush: New file.
63232         * lib/fflush.c: Likewise.
63233         * m4/fflush.m4: Likewise.
63234         * modules/fflush-tests: New test.
63235         * tests/test-fflush.c: Likewise.
63236         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63237
63238 2007-04-06  Bruno Haible  <bruno@clisp.org>
63239
63240         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63241         (VASNPRINTF): Use signbit for faster determination whether to print a
63242         minus sign.
63243         * modules/vasnprintf (Files): Remove lib/float+.h.
63244         * modules/fprintf-posix (Depends-on): Add signbit.
63245         * modules/snprintf-posix (Depends-on): Likewise.
63246         * modules/sprintf-posix (Depends-on): Likewise.
63247         * modules/vasnprintf-posix (Depends-on): Likewise.
63248         * modules/vasprintf-posix (Depends-on): Likewise.
63249         * modules/vfprintf-posix (Depends-on): Likewise.
63250         * modules/vsnprintf-posix (Depends-on): Likewise.
63251         * modules/vsprintf-posix (Depends-on): Likewise.
63252
63253 2007-04-06  Bruno Haible  <bruno@clisp.org>
63254
63255         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63256         * tests/test-frexpl.c (main): Likewise.
63257         * tests/test-ldexpl.c (main): Likewise.
63258         * modules/frexp-tests (Depends-on): Add signbit.
63259         * modules/frexpl-tests (Depdends-on): Likewise.
63260         * modules/ldexpl-tests (Depdends-on): Likewise.
63261
63262 2007-04-06  Bruno Haible  <bruno@clisp.org>
63263
63264         * modules/signbit-tests: New file.
63265         * tests/test-signbit.c: New file.
63266
63267         * modules/signbit: New file.
63268         * lib/signbitf.c: New file.
63269         * lib/signbitd.c: New file.
63270         * lib/signbitl.c: New file.
63271         * m4/signbit.m4: New file.
63272         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63273         (signbit): New macro.
63274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63275         REPLACE_SIGNBIT.
63276         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63277         REPLACE_FREXPL into math.h.
63278
63279 2007-04-06  Bruno Haible  <bruno@clisp.org>
63280
63281         * modules/isnanf-nolibm-tests: New file.
63282         * tests/test-isnanf.c: New file.
63283
63284         * modules/isnanf-nolibm: New file.
63285         * lib/isnanf.h: New file.
63286         * lib/isnanf.c: New file.
63287         * lib/isnan.c: Consider the USE_FLOAT macro.
63288         * m4/isnanf.m4: New file.
63289
63290 2007-04-06  Bruno Haible  <bruno@clisp.org>
63291
63292         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
63293         (Link): New section.
63294
63295         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63296
63297 2007-04-06  Bruno Haible  <bruno@clisp.org>
63298
63299         Assume the 'long double' type.
63300         * m4/longdouble.m4: Remove file.
63301         * config/srclist.txt: Don't mention longdouble.m4.
63302         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63303         * lib/float+.h: Likewise.
63304         * lib/frexp.c: Likewise.
63305         * lib/printf-args.h: Likewise.
63306         * lib/printf-args.c: Likewise.
63307         * lib/printf-frexp.c: Likewise.
63308         * lib/printf-parse.c: Likewise.
63309         * lib/vasnprintf.c: Likewise.
63310         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63311         * m4/intl.m4: Likewise.
63312         * m4/isnanl.m4: Likewise.
63313         * m4/printf.m4: Likewise.
63314         * m4/printf-frexpl.m4: Likewise.
63315         * m4/vasnprintf.m4: Likewise.
63316         * modules/allocsa (Files): Remove m4/longdouble.m4.
63317         * modules/gettext (Files): Likewise.
63318         * modules/relocatable-prog-wrapper (Files): Likewise.
63319         * modules/vasnprintf (Files): Likewise.
63320         * modules/isnanl (Files): Likewise.
63321         (Include): Simplify.
63322         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63323         (Include): Simplify.
63324         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63325         (Include): Simplify.
63326         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63327         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63328         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63330         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63332         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63334         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63335         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63336         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63337         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63338         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63339         * tests/test-isnanl.c: Likewise.
63340         * tests/test-snprintf-posix.h: Likewise.
63341         * tests/test-sprintf-posix.h: Likewise.
63342         * tests/test-vasnprintf-posix.c: Likewise.
63343         * tests/test-vasnprintf-posix2.c: Likewise.
63344         * tests/test-vasprintf-posix.c: Likewise.
63345
63346 2007-04-06  Bruno Haible  <bruno@clisp.org>
63347
63348         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63349         * lib/math_.h [__DECC]: Include the overridden include file through
63350         #include_next, outside the double-inclusion guard.
63351         * lib/stdio_.h [__DECC]: Likewise.
63352         * lib/stdlib_.h [__DECC]: Likewise.
63353         * lib/string_.h [__DECC]: Likewise.
63354         * lib/time_.h [__DECC]: Likewise.
63355         * lib/wchar_.h [__DECC]: Likewise.
63356         * lib/wctype_.h [__DECC]: Likewise.
63357         * lib/inttypes_.h [__DECC]: Likewise.
63358         Reported by Albert Chin <china@thewrittenword.com> in
63359         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63360
63361 2007-04-04  Eric Blake  <ebb9@byu.net>
63362
63363         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63364         1.5.x.
63365
63366 2007-04-04  Bruno Haible  <bruno@clisp.org>
63367
63368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63369         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63370
63371 2007-04-04  Bruno Haible  <bruno@clisp.org>
63372
63373         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63374         results for "%010a" of Infinity and NaN.
63375         * tests/test-vasprintf-posix.c (test_function): Likewise.
63376         * tests/test-snprintf-posix.h (test_function): Likewise.
63377         * tests/test-sprintf-posix.h (test_function): Likewise.
63378         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63379         * tests/test-printf-posix.h (test_function): Likewise.
63380         * tests/test-fprintf-posix.out: Update.
63381         Needed for FreeBSD 6.1.
63382
63383 2007-04-04  Bruno Haible  <bruno@clisp.org>
63384
63385         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63386         directly used by the gnulib modules nor by gnulib-tool.
63387
63388 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63389
63390         * DEPENDENCIES: Give overall description of version dependency
63391         desirability.  Use more-typical names for apps.
63392         Add shell, coreutils, diffutils, grep, tar, gzip.
63393
63394 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63395
63396         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63397
63398 2007-04-04  Karl Berry  <karl@gnu.org>
63399
63400         * MODULES.html.sh (func_module): missing '.
63401
63402 2007-04-03  Bruno Haible  <bruno@clisp.org>
63403
63404         * modules/argmatch-tests (Makefile.am): New variable
63405         test_argmatch_LDADD.
63406         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63407         * modules/array-list-tests (Makefile.am): New variable
63408         test_array_list_LDADD.
63409         * modules/array-oset-tests (Makefile.am): New variable
63410         test_array_oset_LDADD.
63411         * modules/avltree-list-tests (Makefile.am): New variable
63412         test_avltree_list_LDADD.
63413         * modules/avltree-oset-tests (Makefile.am): New variable
63414         test_avltree_oset_LDADD.
63415         * modules/avltreehash-list-tests (Makefile.am): New variable
63416         test_avltreehash_list_LDADD.
63417         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63418         test_canonicalize_lgpl_LDADD.
63419         * modules/carray-list-tests (Makefile.am): New variable
63420         test_carray_list_LDADD.
63421         * modules/dirname-tests (Makefile.am): New variable
63422         test_dirname_LDADD.
63423         * modules/linked-list-tests (Makefile.am): New variable
63424         test_linked_list_LDADD.
63425         * modules/linkedhash-list-tests (Makefile.am): New variable
63426         test_linkedhash_list_LDADD.
63427         * modules/rbtree-list-tests (Makefile.am): New variable
63428         test_rbtree_list_LDADD.
63429         * modules/rbtree-oset-tests (Makefile.am): New variable
63430         test_rbtree_oset_LDADD.
63431         * modules/rbtreehash-list-tests (Makefile.am): New variable
63432         test_rbtreehash_list_LDADD.
63433         * modules/xvasprintf-tests (Makefile.am): New variable
63434         test_xvasprintf_LDADD.
63435         Reported by Eric Blake.
63436
63437 2007-04-03  Eric Blake  <ebb9@byu.net>
63438
63439         * DEPENDENCIES: Weaken m4 requirements.
63440
63441 2007-04-03  Bruno Haible  <bruno@clisp.org>
63442
63443         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63444         * modules/isnanl-tests (configure.ac): Likewise.
63445
63446 2007-04-03  Ben Pfaff  <blp@gnu.org>
63447
63448         * modules/iconv_open: Add $(srcdir)/ to source directory
63449         references in Makefile fragments that call gperf, to fix VPATH
63450         builds.
63451
63452 2007-04-03  Bruno Haible  <bruno@clisp.org>
63453
63454         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63455         * lib/ldexpl.c: Undo last change.
63456
63457 2007-04-03  Bruno Haible  <bruno@clisp.org>
63458
63459         * modules/printf-frexpl (Depends-on): Undo last change.
63460         (Files): Add m4/ldexpl.m4.
63461
63462 2007-04-03  Bruno Haible  <bruno@clisp.org>
63463
63464         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63465         * modules/isnanl (Link): New section.
63466
63467         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63468         * modules/frexp (Link): New section.
63469
63470         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63471         * modules/frexpl (Link): New section.
63472
63473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63474         * modules/ldexpl (Link): New section.
63475
63476 2007-04-03  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/TEMPLATE-EXTENDED: New file.
63479         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63480
63481 2007-04-03  Bruno Haible  <bruno@clisp.org>
63482
63483         * DEPENDENCIES: New file.
63484         Suggested by Simon Josefsson.
63485
63486 2007-04-03  Bruno Haible  <bruno@clisp.org>
63487
63488         * doc/gnulib.texi: Escape @.
63489
63490 2007-04-03  James Youngman  <jay@gnu.org>
63491         and Paul Eggert  <eggert@cs.ucla.edu>
63492
63493         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63494         birthtime on all systems that have birthtime, not just those which
63495         use st_birthtimensec rather than st_birthtim.  Putting zero in
63496         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63497         that the birth time is not available for files on an NFS mount.
63498
63499 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63500
63501         * modules/memxor: Move back from crypto/, suggested by Bruno.
63502         * modules/crypto/hmac-sha1: Fix memxor dependency.
63503
63504         * modules/crypto/gc: Moved from ../.
63505
63506 2007-04-02  Eric Blake  <ebb9@byu.net>
63507
63508         * lib/ldexpl.c (includes): Avoid libm.
63509
63510         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63511
63512 2007-04-02  Bruno Haible  <bruno@clisp.org>
63513
63514         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63515         on IRIX.
63516
63517 2007-04-02  Bruno Haible  <bruno@clisp.org>
63518
63519         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63520         x86 or x86_64 platforms running MacOS X.
63521         Reported by Ryan Schmidt <@ryandesign.com>.
63522
63523 2007-04-02  Bruno Haible  <bruno@clisp.org>
63524
63525         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63526         i386.
63527
63528 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63529
63530         * modules/crypto/arcfour: Moved from ../.
63531         * modules/crypto/arcfour-tests: Moved from ../.
63532         * modules/crypto/arctwo: Moved from ../.
63533         * modules/crypto/arctwo-tests: Moved from ../.
63534         * modules/crypto/des: Moved from ../.
63535         * modules/crypto/des-tests: Moved from ../.
63536         * modules/crypto/gc-arcfour: Moved from ../.
63537         * modules/crypto/gc-arcfour-tests: Moved from ../.
63538         * modules/crypto/gc-arctwo: Moved from ../.
63539         * modules/crypto/gc-arctwo-tests: Moved from ../.
63540         * modules/crypto/gc-des: Moved from ../.
63541         * modules/crypto/gc-des-tests: Moved from ../.
63542         * modules/crypto/gc-hmac-md5: Moved from ../.
63543         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63544         * modules/crypto/gc-hmac-sha1: Moved from ../.
63545         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63546         * modules/crypto/gc-md2: Moved from ../.
63547         * modules/crypto/gc-md2-tests: Moved from ../.
63548         * modules/crypto/gc-md4: Moved from ../.
63549         * modules/crypto/gc-md4-tests: Moved from ../.
63550         * modules/crypto/gc-md5: Moved from ../.
63551         * modules/crypto/gc-md5-tests: Moved from ../.
63552         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63553         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63554         * modules/crypto/gc-random: Moved from ../.
63555         * modules/crypto/gc-rijndael: Moved from ../.
63556         * modules/crypto/gc-rijndael-tests: Moved from ../.
63557         * modules/crypto/gc-sha1: Moved from ../.
63558         * modules/crypto/gc-sha1-tests: Moved from ../.
63559         * modules/crypto/gc-tests: Moved from ../.
63560         * modules/crypto/hmac-md5: Moved from ../.
63561         * modules/crypto/hmac-md5-tests: Moved from ../.
63562         * modules/crypto/hmac-sha1: Moved from ../.
63563         * modules/crypto/hmac-sha1-tests: Moved from ../.
63564         * modules/crypto/md2: Moved from ../.
63565         * modules/crypto/md2-tests: Moved from ../.
63566         * modules/crypto/md4: Moved from ../.
63567         * modules/crypto/md4-tests: Moved from ../.
63568         * modules/crypto/md5: Moved from ../.
63569         * modules/crypto/md5-tests: Moved from ../.
63570         * modules/crypto/memxor: Moved from ../.
63571         * modules/crypto/rijndael: Moved from ../.
63572         * modules/crypto/rijndael-tests: Moved from ../.
63573         * modules/crypto/sha1: Moved from ../.
63574
63575 2007-03-30  James Youngman  <jay@gnu.org>
63576
63577         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63578         rename() to change the ctime of a file (because ctime is unaffected
63579         by rename on jfs2 on AIX 5.1).
63580         (main): Start by doing cleanup, in case a previous run failed leaving
63581         test files behind.
63582
63583 2007-03-31  Bruno Haible  <bruno@clisp.org>
63584
63585         Support old proprietary implementations of iconv.
63586         * modules/iconv_open: New file.
63587         * lib/iconv_.h: New file.
63588         * m4/iconv_h.m4: New file.
63589         * lib/iconv_open.c: New file.
63590         * lib/iconv_open-aix.gperf: New file.
63591         * lib/iconv_open-hpux.gperf: New file.
63592         * lib/iconv_open-irix.gperf: New file.
63593         * lib/iconv_open-osf.gperf: New file.
63594         * m4/iconv_open.m4: New file.
63595         * modules/linebreak (Depends-on): Add iconv_open.
63596         * modules/striconv (Depends-on): Likewise.
63597         * modules/striconveh (Depends-on): Likewise.
63598         * modules/unicodeio (Depends-on): Likewise.
63599         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63600         (iconv_t)(-1).
63601         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63602         conversion if cd is (iconv_t)(-1).
63603         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63604         is not possible.
63605
63606 2007-03-31  Bruno Haible  <bruno@clisp.org>
63607
63608         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63609         work on Solaris either. Protect also second use of "autodetect_jp".
63610
63611 2007-03-31  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63614         the function is not present.
63615
63616 2007-03-31  Bruno Haible  <bruno@clisp.org>
63617
63618         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63619         the function is not present.
63620
63621 2007-03-31  Bruno Haible  <bruno@clisp.org>
63622
63623         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63624         a bug in HP-UX iconv_open().
63625
63626 2007-03-31  Bruno Haible  <bruno@clisp.org>
63627
63628         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63629         (Mathematics <math.h>): New section, add fpieee.
63630         (Input/output <stdio.h>): Add fseterr.
63631         (Mathematics <math.h>): New section, add printf-frexp.
63632         (Container data structures): Add sublist.
63633         (Core language properties): Add fpucw, inline.
63634         (Functions for greatest-width integer types <inttypes.h>): Add
63635         imaxabs, imaxdiv, inttypes.
63636         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63637         isnanl-nolibm, ldexp.
63638         (Mathematics <math.h>): New section, add printf-frexpl.
63639         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63640         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63641         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63642         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63643         (Unicode string functions): Add unistr/u*-mbtoucr.
63644         (Java): Add javacomp-script, javaexec-script.
63645         (C#): Add csharpcomp-script, csharpexec-script.
63646         (Support for building libraries and executables): Add havelib,
63647         relocatable-*.
63648         (Support for maintaining and releasing projects): Renamed from
63649         'Support for maintaining and release projects'. Add announce-gen.
63650
63651 2007-03-31  Bruno Haible  <bruno@clisp.org>
63652
63653         * README: Talk primarily about git.
63654         (git and CVS): Renamed from CVS.
63655         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63656         gnulib is available through git.
63657         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63658
63659 2007-03-30  Bruno Haible  <bruno@clisp.org>
63660
63661         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63662         * lib/poll_.h: Likewise.
63663         * lib/stat_.h: Likewise.
63664         * lib/sys_time_.h: Likewise.
63665         * lib/sysexit_.h: Likewise.
63666         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63667         * lib/stdbool_.h: Likewise.
63668         * lib/byteswap_.h: Add double-inclusion guard.
63669
63670 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63671
63672         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63673
63674 2007-03-30  Karl Berry  <karl@gnu.org>
63675
63676         * config/srclist-update: double space after USA in the license
63677         substitution, since that's how it's usually (?) written.
63678
63679 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63682         reported by Bruno Haible.
63683
63684 2007-03-29  Bruno Haible  <bruno@clisp.org>
63685
63686         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63687         a bug in AIX iconv().
63688
63689 2007-03-29  Bruno Haible  <bruno@clisp.org>
63690
63691         * modules/ldexpl-tests: New file.
63692         * tests/test-ldexpl.c: New file.
63693
63694 2007-03-29  Bruno Haible  <bruno@clisp.org>
63695
63696         * lib/ldexpl.c: Include fpucw.h.
63697         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63698         multiplication.
63699         * modules/ldexpl (Depends-on): Add fpucw.
63700
63701 2007-03-29  Bruno Haible  <bruno@clisp.org>
63702
63703         * modules/ldexpl: New file.
63704         * m4/ldexpl.m4: New file.
63705         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63706         set.
63707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63708         REPLACE_LDEXPL.
63709         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63710         REPLACE_LDEXPL.
63711         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63712         gl_FUNC_LDEXPL_WORKS.
63713         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63714         * modules/mathl (Files): Remove lib/ldexpl.c.
63715         (Depends-on): Add ldexpl.
63716
63717 2007-03-29  Bruno Haible  <bruno@clisp.org>
63718
63719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63720
63721 2007-03-29  Bruno Haible  <bruno@clisp.org>
63722
63723         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63724         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63725         and possibly also HP-UX.
63726         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63727         work on AIX, IRIX, HP-UX, OSF/1.
63728         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63729         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63730         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63731         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63732         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63733         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63734
63735 2007-03-29  Bruno Haible  <bruno@clisp.org>
63736
63737         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63738
63739 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63742         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63743
63744 2007-03-29  Eric Blake  <ebb9@byu.net>
63745
63746         * lib/acl-internal.h: Remove redundant include.
63747         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63748         Cygwin when a file is locked.
63749
63750 2007-03-29  Bruno Haible  <bruno@clisp.org>
63751
63752         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63753         file.
63754         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63755
63756 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63759         try to remove a parent directory if the child couldn't be removed
63760         (except for the first rmdir, which could fail because the child
63761         doesn't exist).  Problem reported by Jeff Blaine in
63762         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63763
63764 2007-03-28  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/striconveh.c (utf8conv_carefully): New function.
63767         (mem_cd_iconveh_internal): Invoke it.
63768
63769 2007-03-28  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63772         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63773         input.
63774         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63775         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63776         unistr/u8-uctomb.
63777
63778 2007-03-28  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/unistr/u8-mbtoucr: New file.
63781         * lib/unistr/u8-mbtoucr.c: New file.
63782         * modules/unistr/u16-mbtoucr: New file.
63783         * lib/unistr/u16-mbtoucr.c: New file.
63784         * modules/unistr/u16-mbtoucr: New file.
63785         * lib/unistr/u16-mbtoucr.c: New file.
63786         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63787
63788 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63789             Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63792         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63793         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63794
63795         * m4/stdio_h.m4: Add stubs for vasprintf too.
63796
63797         * modules/stdio: Support vasprintf in sed command.
63798
63799         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63800         vasprintf.h.  Add stdio module indicator.
63801
63802         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63803         vasprintf.h.
63804
63805         * lib/vasprintf.h: File removed.
63806
63807         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63808         * lib/vasprintf.c: Ditto.
63809         * lib/xvasprintf.c: Ditto.
63810         * tests/test-vasprintf-posix.c: Ditto.
63811         * tests/test-vasprintf.c: Ditto.
63812
63813 2007-03-27  Bruno Haible  <bruno@clisp.org>
63814
63815         Make vasnprintf multithread-safe.
63816         * lib/vasnprintf.c (decimal_point_char): New function.
63817         (VASNPRINTF): Use it.
63818         Suggested by Simon Josefsson.
63819
63820 2007-03-27  Eric Blake  <ebb9@byu.net>
63821
63822         Support sub-second birthtime on cygwin.
63823         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63824         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63825         (get_stat_birthtime): Also work with st_birthtim.
63826
63827 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63830         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63831         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63832         (get_stat_birthtime_ns): Simplify compile-time tests.
63833         (get_stat_birthtime): Change the API to look like
63834         get_stat_mtime etc., except return a negative tv_nsec on error.
63835         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63836         Don't check for "spare" fields.
63837         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63838         or for struct stat.st_birthtime, as these tests aren't used.
63839         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63840
63841 2007-03-27  Bruno Haible  <bruno@clisp.org>
63842
63843         * lib/stat-time.h: Include <sys/stat.h>.
63844
63845 2007-03-27  James Youngman  <jay@gnu.org>
63846
63847         * lib/stat-time.h (get_stat_birthtime): New function for
63848           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63849         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63850           and its variants.
63851         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63852         * modules/stat-time-test: New file.
63853         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63854
63855 2007-03-26  Bruno Haible  <bruno@clisp.org>
63856
63857         Better support of signalling NaNs.
63858         * lib/atanl.c: Include isnanl.h.
63859         (atanl): Perform test for NaN at the beginning of the function and
63860         through a call to isnanl.
63861         * lib/cosl.c: Include isnanl.h.
63862         (cosl): Perform test for NaN at the beginning of the function and
63863         through a call to isnanl.
63864         * lib/ldexpl.c: Include isnanl.h.
63865         (ldexpl): Perform test for NaN through a call to isnanl.
63866         * lib/logl.c: Include isnanl.h.
63867         (logl): Perform test for NaN at the beginning of the function and
63868         through a call to isnanl.
63869         * lib/sinl.c: Include isnanl.h.
63870         (sinl): Perform test for NaN at the beginning of the function and
63871         through a call to isnanl.
63872         * lib/sqrtl.c: Include isnanl.h.
63873         (sqrtl): Perform test for NaN at the beginning of the function and
63874         through a call to isnanl.
63875         * lib/tanl.c: Include isnanl.h.
63876         (tanl): Perform test for NaN at the beginning of the function and
63877         through a call to isnanl.
63878         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63879         * modules/mathl (Depends-on): Add isnanl.
63880
63881 2007-03-26  Eric Blake  <ebb9@byu.net>
63882
63883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63884         regression in logic sense of previous patch.
63885
63886 2007-03-26  Bruno Haible  <bruno@clisp.org>
63887
63888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63889         unportable shell command "if ! ...".
63890         Reported by Ralf Wildenhues.
63891
63892 2007-03-25  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63895         <sysexits.h> file, and only add EX_CONFIG.
63896         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63897         absolute file name and whether it is sufficient. Substitute also
63898         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63899         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63900         ABSOLUTE_SYSEXITS_H into sysexits.h.
63901
63902 2007-03-25  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63905         hints is NULL.
63906
63907 2007-03-25  Bruno Haible  <bruno@clisp.org>
63908
63909         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63910         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63911
63912 2007-03-25  Bruno Haible  <bruno@clisp.org>
63913
63914         * lib/vasnprintf.c: Include langinfo.h.
63915         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63916         multithread-safe.
63917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63920         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63922         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63923         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63925         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63926         Reported by Simon Josefsson.
63927
63928 2007-03-25  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63931         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63932         * modules/vasnprintf (Depends-on): Add stdint.
63933
63934 2007-03-25  Bruno Haible  <bruno@clisp.org>
63935
63936         * modules/fpieee: New file.
63937         * m4/fpieee.m4: New file.
63938         * modules/isnan-nolibm (Depends-on): Add fpieee.
63939         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63940         * modules/isnanl (Depends-on): Add fpieee.
63941
63942 2007-03-25  Bruno Haible  <bruno@clisp.org>
63943
63944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63945
63946 2007-03-25  Bruno Haible  <bruno@clisp.org>
63947
63948         Avoid test failures on IRIX 6.5.
63949         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63950         (main): Use it.
63951         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63952         macros.
63953         (main): Use them.
63954
63955 2007-03-25  Bruno Haible  <bruno@clisp.org>
63956
63957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63958         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63959         exists but doesn't work.
63960         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63961         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63963         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63964         math.h.
63965
63966 2007-03-25  Bruno Haible  <bruno@clisp.org>
63967
63968         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63969         returns inf. Needed on IRIX 6.5.
63970
63971 2007-03-25  Bruno Haible  <bruno@clisp.org>
63972
63973         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63974         (main): Use isnanl instead of x != x idiom.
63975         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63976
63977         * tests/test-frexp.c: Include isnan.h.
63978         (main): Use isnan instead of x != x idiom.
63979         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63980
63981 2007-03-25  Bruno Haible  <bruno@clisp.org>
63982
63983         * tests/test-frexp.c (NaN): New function/macro.
63984         (main): Use it instead of 0.0 / 0.0.
63985         * tests/test-isnan.c (NaN): New function/macro.
63986         (main): Use it instead of 0.0 / 0.0.
63987         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63988         (test_function): Use it instead of 0.0 / 0.0.
63989         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63990         (test_function): Use it instead of 0.0 / 0.0.
63991         * tests/test-snprintf-posix.h (NaN): New function/macro.
63992         (test_function): Use it instead of 0.0 / 0.0.
63993         * tests/test-sprintf-posix.h (NaN): New function/macro.
63994         (test_function): Use it instead of 0.0 / 0.0.
63995         * tests/test-fprintf-posix.h (NaN): New function/macro.
63996         (test_function): Use it instead of 0.0 / 0.0.
63997         * tests/test-printf-posix.h (NaN): New function/macro.
63998         (test_function): Use it instead of 0.0 / 0.0.
63999
64000         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
64001
64002 2007-03-25  Bruno Haible  <bruno@clisp.org>
64003
64004         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
64005
64006 2007-03-25  Bruno Haible  <bruno@clisp.org>
64007
64008         * lib/regexec.c (merge_state_with_log): Make static.
64009
64010 2007-03-25  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/trigl.c (kernel_rem_pio2): Make static.
64013
64014 2007-03-25  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/sincosl.c (sincosl_table): Make static.
64017
64018 2007-03-25  Bruno Haible  <bruno@clisp.org>
64019
64020         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64021         if the compiler does not support C99.
64022
64023 2007-03-25  Bruno Haible  <bruno@clisp.org>
64024
64025         * modules/time (Makefile.am): Ensure all rule action lines start with a
64026         tab.
64027
64028 2007-03-24  Bruno Haible  <bruno@clisp.org>
64029
64030         * modules/tsearch-tests: New file.
64031         * tests/test-tsearch.sh: New file.
64032         * tests/test-tsearch.c: New file, mostly copied from glibc.
64033
64034         * modules/search-tests: New file.
64035         * tests/test-search.c: New file.
64036
64037         * modules/search: New file.
64038         * lib/search_.h: New file, incorporating lib/tsearch.h.
64039         * m4/search_h.m4: New file.
64040         * lib/tsearch.h: Remove file.
64041         * lib/tsearch.c: Include search.h instead of tsearch.h.
64042         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64043         HAVE_TSEARCH.
64044         * modules/tsearch (Files): Remove lib/tsearch.h.
64045         (Depends-on): Add search.
64046         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64047         (Include): Change tsearch.h into search.h.
64048
64049 2007-03-24  Bruno Haible  <bruno@clisp.org>
64050
64051         * modules/fpucw: New file.
64052         * lib/fpucw.h: New file.
64053         * lib/frexp.c: Include fpucw.h.
64054         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64055         (FUNC): Use them.
64056         * lib/printf-frexp.c: Include fpucw.h.
64057         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64058         (FUNC): Use them.
64059         * lib/vasnprintf.c: Include fpucw.h.
64060         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64061         'long double' calculations.
64062         * tests/test-frexpl.c: Include fpucw.h.
64063         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64064         * tests/test-printf-frexpl.c: Include fpucw.h.
64065         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64066         * modules/frexpl (Depends-on): Add fpucw.
64067         * modules/printf-frexpl (Depends-on): Likewise.
64068         * modules/fprintf-posix (Depends-on): Likewise.
64069         * modules/snprintf-posix (Depends-on): Likewise.
64070         * modules/sprintf-posix (Depends-on): Likewise.
64071         * modules/vasnprintf-posix (Depends-on): Likewise.
64072         * modules/vasprintf-posix (Depends-on): Likewise.
64073         * modules/vfprintf-posix (Depends-on): Likewise.
64074         * modules/vsnprintf-posix (Depends-on): Likewise.
64075         * modules/vsprintf-posix (Depends-on): Likewise.
64076         * modules/frexpl-tests (Depends-on): Likewise.
64077         * modules/printf-frexpl-tests (Depends-on): Likewise.
64078
64079 2007-03-24  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/float+.h: New file.
64082         * lib/isnan.c: Include float+.h.
64083         (SIZE): New macro.
64084         (FUNC): Compare only SIZE bytes of the value.
64085         * lib/vasnprintf.c: Include float+.h.
64086         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64087         SIZEOF_LDBL or SIZEOF_DBL bytes.
64088         * modules/isnan-nolibm (Files): Add lib/float+.h.
64089         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64090         * modules/isnanl (Files): Add lib/float+.h.
64091         * modules/vasnprintf (Files): Add lib/float+.h.
64092
64093 2007-03-24  Bruno Haible  <bruno@clisp.org>
64094
64095         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64096         include isnanl-nolibm.h.
64097
64098 2007-03-24  Bruno Haible  <bruno@clisp.org>
64099
64100         * tests/test-read-file.c (main): Don't produce spurious output for
64101         expected situations. Make the test fail if it encountered unexpected
64102         results.
64103
64104 2007-03-24  Bruno Haible  <bruno@clisp.org>
64105
64106         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64107         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64108
64109 2007-03-24  Bruno Haible  <bruno@clisp.org>
64110
64111         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64112
64113 2007-03-24  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64116         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64117
64118         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64119         * modules/utf8-ucs4: Turn into a symbolic link to module
64120         unistr/u8-mbtouc.
64121
64122         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64123         utf8-ucs4-unsafe.
64124         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64125         unistr/u8-mbtouc-unsafe.
64126
64127         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64128         * modules/utf16-ucs4: Turn into a symbolic link to module
64129         unistr/u16-mbtouc.
64130
64131         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64132         utf16-ucs4-unsafe.
64133         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64134         unistr/u16-mbtouc-unsafe.
64135
64136         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64137         * modules/ucs4-utf8: Turn into a symbolic link to module
64138         unistr/u8-ubtomb.
64139
64140         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64141         * modules/ucs4-utf16: Turn into a symbolic link to module
64142         unistr/u16-ubtomb.
64143
64144 2007-03-24  Bruno Haible  <bruno@clisp.org>
64145
64146         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64147         Enable the function only if HAVE_INLINE.
64148         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64149         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64150         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64151         Enable the function only if HAVE_INLINE.
64152         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64153         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64154         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64155         Enable the function only if HAVE_INLINE.
64156         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64157         Enable the function only if HAVE_INLINE.
64158         * modules/utf8-ucs4: Update.
64159         * modules/utf8-ucs4-unsafe: Update.
64160         * modules/utf16-ucs4: Update.
64161         * modules/utf16-ucs4-unsafe: Update.
64162         * modules/ucs4-utf8: Update.
64163         * modules/ucs4-utf16: Update.
64164
64165 2007-03-24  Bruno Haible  <bruno@clisp.org>
64166
64167         * lib/utf8-ucs4.h: Remove file.
64168         * lib/utf8-ucs4-unsafe.h: Remove file.
64169         * lib/utf16-ucs4.h: Remove file.
64170         * lib/utf16-ucs4-unsafe.h: Remove file.
64171         * lib/ucs4-utf8.h: Remove file.
64172         * lib/ucs4-utf16.h: Remove file.
64173         * lib/unistr.h: Include their previous contents.
64174         * m4/utf-ucs4.m4: Remove file.
64175         * m4/ucs4-utf.m4: Remove file.
64176         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64177         (Depends-on): Add unistr/base.
64178         (configure.ac): Remove gl_UTF_UCS4.
64179         (Makefile.am): Update.
64180         (Include): Change to unistr.h.
64181         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64182         (Depends-on): Add unistr/base.
64183         (configure.ac): Remove gl_UTF_UCS4.
64184         (Makefile.am): Update.
64185         (Include): Change to unistr.h.
64186         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64187         (Depends-on): Add unistr/base.
64188         (configure.ac): Remove gl_UTF_UCS4.
64189         (Makefile.am): Update.
64190         (Include): Change to unistr.h.
64191         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64192         (Depends-on): Add unistr/base.
64193         (configure.ac): Remove gl_UTF_UCS4.
64194         (Makefile.am): Update.
64195         (Include): Change to unistr.h.
64196         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64197         (Depends-on): Add unistr/base.
64198         (configure.ac): Remove gl_UCS4_UTF.
64199         (Makefile.am): Update.
64200         (Include): Change to unistr.h.
64201         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64202         (Depends-on): Add unistr/base.
64203         (configure.ac): Remove gl_UCS4_UTF.
64204         (Makefile.am): Update.
64205         (Include): Change to unistr.h.
64206         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64207         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64208         utf8-ucs4-unsafe.h.
64209         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64210         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64211         utf16-ucs4-unsafe.h.
64212         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64213         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64214         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64215         * lib/unistr/u8-strchr.c: Likewise.
64216         * lib/unistr/u8-strrchr.c: Likewise.
64217         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64218         * lib/unistr/u16-strchr.c: Likewise.
64219         * lib/unistr/u16-strrchr.c: Likewise.
64220         * lib/striconveh.c: Update.
64221         * lib/linebreak.c: Update.
64222
64223 2007-03-24  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64226         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64227
64228 2007-03-22  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64231
64232 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64233
64234         * MODULES.html.sh (File system functions): New module write-any-file.
64235         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64236         * m4/write-any-file.m4: New files.
64237
64238 2007-03-23  Eric Blake  <ebb9@byu.net>
64239
64240         * gnulib-tool: Rearrange space-tab sequences, since some editors
64241         like to eat them.
64242
64243 2007-03-23  Eric Blake  <ebb9@byu.net>
64244
64245         * lib/version-etc.c (version_etc_va): Update license wording to
64246         be more concise.  Recommended by Richard Stallman.
64247
64248 2007-03-22  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/poll.c (MSG_PEEK): New fallback definition.
64251
64252 2007-03-22  Bruno Haible  <bruno@clisp.org>
64253
64254         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64255         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64256         (main): Update.
64257         Fixes a compilation error on BeOS.
64258
64259 2007-03-22  Bruno Haible  <bruno@clisp.org>
64260
64261         * modules/frexpl-tests: New file.
64262         * tests/test-frexpl.c: New file.
64263
64264         * modules/frexpl: New file.
64265         * m4/frexpl.m4: New file.
64266         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64267         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64269         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64270         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64271         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64272
64273 2007-03-22  Bruno Haible  <bruno@clisp.org>
64274
64275         * lib/frexpl.c: Share code with lib/frexp.c.
64276         * modules/mathl (Files): Add lib/frexp.c.
64277         (Depends-on): Add isnanl-nolibm.
64278
64279 2007-03-22  Bruno Haible  <bruno@clisp.org>
64280
64281         * modules/printf-frexp (Files): Add m4/frexp.m4.
64282         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64283         only if the found frexp function actually works.
64284
64285 2007-03-22  Bruno Haible  <bruno@clisp.org>
64286
64287         * lib/frexp.c: Remove older implementation that uses divisions.
64288
64289 2007-03-21  Bruno Haible  <bruno@clisp.org>
64290
64291         * modules/frexp-tests: New file.
64292         * tests/test-frexp.c: New file.
64293
64294         * modules/frexp: New file.
64295         * lib/frexp.c: New file.
64296         * m4/frexp.m4: New file.
64297         * lib/math_.h (frexp): New declaration.
64298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64299         REPLACE_FREXP.
64300         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64301
64302 2007-03-21  Bruno Haible  <bruno@clisp.org>
64303
64304         * modules/isnanl-tests: New file.
64305         * tests/test-isnanl.c: New file.
64306
64307         * modules/isnanl: New file.
64308         * lib/isnanl.h: New file.
64309         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64310         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64311         gl_FUNC_ISNANL_WORKS.
64312         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64313         New macros.
64314
64315 2007-03-21  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64318         lib/isnanl.h.
64319         (Include): Update.
64320         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64321         * lib/vasnprintf.c: Update.
64322         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64323         tests/test-isnanl.h, remove tests/test-isnanl.c.
64324         (Makefile.am): Update.
64325         * tests/test-isnanl-nolibm.c: New file.
64326         * tests/test-isnanl.h: New file.
64327         * tests/test-isnanl.c: Remove file.
64328
64329 2007-03-21  Jim Meyering  <jim@meyering.net>
64330
64331         When trying to open ".", treat ESTALE like EACCES.
64332         * lib/savewd.c (savewd_save): Resort to forking not just upon
64333         failure with EACCES, but also when errno is ESTALE.
64334
64335 2007-03-20  Bruno Haible  <bruno@clisp.org>
64336
64337         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64338         Needed on AIX 5.1. Reported by Matthew Woehlke.
64339
64340 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         Suggestions by Bruno Haible:
64343         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64344         our own.
64345         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64346         * modules/acl (Depends-on): Add gettext.
64347
64348 2007-03-19  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/iconvme: Remove file.
64351         * lib/iconvme.h: Remove file.
64352         * lib/iconvme.c: Remove file.
64353         * m4/iconvme.m4: Remove file.
64354
64355 2007-03-19  Bruno Haible  <bruno@clisp.org>
64356
64357         * doc/relocatable-maint.texi: Break long shell script line.
64358         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64359
64360 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64361
64362         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64363         handle file_has_acl.
64364         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64365         * lib/acl.c: Move header inclusions and related macro defns into
64366         lib/acl-internal.h.
64367         (S_ISLNK): Remove defn, since that's now done for us.
64368         (file_has_acl): Move to lib/file-has-acl.c.
64369         Call acl_trivial if available.  This is the crucial part of the fix.
64370         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64371         shared within the library.  Rewrite a bit, partly to make it compatible
64372         with the GNU coding style.
64373         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64374         Remove unnecessary double-quotes.
64375         Don't test for acl_to_text; the build will catch that.
64376         Replace acl_entries if it doesn't exist and it is needed.
64377         Check for -lsec and acl_trivial (as used on Solaris 10).
64378         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64379         lib/file-has-acl.c.
64380         (Depends-on): Add sys_stat, for S_ISLNK.
64381
64382 2007-03-19  Ben Pfaff  <blp@gnu.org>
64383
64384         * doc/gnulib.texi: Fix typos.
64385         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64386
64387 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64388
64389         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64390         If size is zero here, buf must be zero.
64391
64392 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64393
64394         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64395         <bruno@clisp.org>.
64396
64397 2007-03-18  Bruno Haible  <bruno@clisp.org>
64398
64399         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64400         Suggested by Eric Blake.
64401
64402 2007-03-18  Ben Pfaff  <blp@gnu.org>
64403
64404         * doc/relocatable.texi: Recommend using as prefix a directory
64405         that does not exist and will never be created.  Based on
64406         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64407         and others.
64408
64409 2007-03-17  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/fchownat.c: Include lchown.h.
64412
64413 2007-03-17  Bruno Haible  <bruno@clisp.org>
64414
64415         Fix endless loop when the given allocated size was > INT_MAX.
64416         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64417         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64418         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64419         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64420         * lib/sprintf.c (sprintf): Likewise.
64421
64422 2007-03-17  Bruno Haible  <bruno@clisp.org>
64423
64424         * tests/test-argp-2.sh (func_compare): Output a context diff.
64425
64426 2007-03-17  Bruno Haible  <bruno@clisp.org>
64427
64428         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64429         locale's decimal-point character.
64430
64431 2007-03-17  Bruno Haible  <bruno@clisp.org>
64432
64433         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64434         before comparing it. Needed because on some platforms (e.g. x86) a
64435         'long double' occupies less bytes than sizeof (long double).
64436
64437 2007-03-17  Bruno Haible  <bruno@clisp.org>
64438
64439         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64440         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64441         * tests/test-getaddrinfo.c (simple): Likewise.
64442         * tests/test-read-file.c (main): Likewise.
64443
64444 2007-03-17  Bruno Haible  <bruno@clisp.org>
64445
64446         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64447
64448 2007-03-17  Bruno Haible  <bruno@clisp.org>
64449
64450         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64451         unused variable.
64452
64453 2007-03-17  Bruno Haible  <bruno@clisp.org>
64454
64455         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64456         * tests/test-c-strncasecmp.c: Likewise.
64457
64458 2007-03-17  Bruno Haible  <bruno@clisp.org>
64459
64460         * modules/stdlib (Depends-on): Add unistd.
64461         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64462         Needed for MacOS X 10.3.
64463
64464 2007-03-17  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64467
64468 2007-03-17  Bruno Haible  <bruno@clisp.org>
64469
64470         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64471
64472 2007-03-17  Bruno Haible  <bruno@clisp.org>
64473
64474         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64475         to reflect files copied from gnulib (with or without modifications).
64476         Suggested by Jim Meyering.
64477
64478 2007-03-17  Eric Blake  <ebb9@byu.net>
64479
64480         * NEWS: Document stdlib change from 2007-02-18.
64481
64482 2007-03-17  Jim Meyering  <jim@meyering.net>
64483
64484         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64485         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64486         someone uses a name containing shell meta-characters.
64487         Reported by Alfred M. Szmidt.
64488
64489         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64490
64491 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64492
64493         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64494         and copy gettext configuration files only if configure.ac contains
64495         a use of AM_GNU_GETTEXT_VERSION.
64496
64497 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64498
64499         * build-aux/bootstrap (gnulib_name): New variable.
64500         (gnulib_tool_options): Use it.
64501
64502 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64503
64504         * tests/test-des.c: Use new namespace.
64505
64506 2007-03-15  Bruno Haible  <bruno@clisp.org>
64507
64508         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64509         Reported by James Youngman <jay@gnu.org>.
64510
64511 2007-03-15  Bruno Haible  <bruno@clisp.org>
64512
64513         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64514         declared prototype. Needed with cc on OSF/1 5.1.
64515
64516 2007-03-15  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64519         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64520         (struct gl_list_implementation): Add dispose_fn argument to the
64521         'create_empty', 'create' methods.
64522         (struct gl_list_impl_base): Add field 'dispose_fn'.
64523         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64524         argument.
64525         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64526         dispose_fn argument.
64527         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64528         dispose_fn on the dropped values.
64529         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64530         dispose_fn argument.
64531         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64532         dropped values.
64533         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64534         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64535         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64536         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64537         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64538         argument.
64539         (gl_tree_list_free): Call dispose_fn on the dropped values.
64540         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64541         the dropped values.
64542         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64543         Add dispose_fn argument.
64544         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64545         Call dispose_fn on the dropped values.
64546         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64547         Add dispose_fn argument.
64548         (gl_sublist_create): Initialize the 'dispose_fn' field.
64549         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64550         * tests/test-array_list.c (main): Update.
64551         * tests/test-carray_list.c (main): Update.
64552         * tests/test-avltree_list.c (main): Update.
64553         * tests/test-rbtree_list.c (main): Update.
64554         * tests/test-avltreehash_list.c (main): Update.
64555         * tests/test-rbtreehash_list.c (main): Update.
64556         * tests/test-linked_list.c (main): Update.
64557         * tests/test-linkedhash_list.c (main): Update.
64558         * tests/test-array_oset.c (main): Update.
64559
64560 2007-03-15  Bruno Haible  <bruno@clisp.org>
64561
64562         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64563         (gl_oset_create_empty): Add dispose_fn argument.
64564         (struct gl_oset_implementation): Add dispose_fn argument to
64565         'create_empty' method.
64566         (struct gl_oset_impl_base): Add dispose_fn field.
64567         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64568         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64569         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64570         values.
64571         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64572         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64573         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64574         dropped value.
64575         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64576         dropped value.
64577         * tests/test-array_oset.c (main): Update.
64578         * tests/test-avltree_oset.c (main): Update.
64579         * tests/test-rbtree_oset.c (main): Update.
64580         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64581
64582 2007-03-13  Bruno Haible  <bruno@clisp.org>
64583
64584         * tests/test-stdbool.c (i): Update after last patch.
64585
64586 2007-03-12  Bruno Haible  <bruno@clisp.org>
64587
64588         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64589         the iswprint macro. Needed on Solaris 2.5.1.
64590
64591 2007-03-12  Bruno Haible  <bruno@clisp.org>
64592
64593         * tests/test-printf-frexp.c (main): Declare x as volatile.
64594
64595 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64596
64597         * doc/gnulib.texi (Build robot for gnulib): New section.
64598
64599 2007-03-12  Jim Meyering  <jim@meyering.net>
64600
64601         * build-aux/bootstrap: New file.
64602         * build-aux/bootstrap.conf: New file, from coreutils.
64603
64604 2007-03-11  Bruno Haible  <bruno@clisp.org>
64605
64606         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64607
64608 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64609
64610         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64611         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64612         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64613
64614 2007-03-11  Bruno Haible  <bruno@clisp.org>
64615
64616         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64617         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64618
64619 2007-03-11  Bruno Haible  <bruno@clisp.org>
64620
64621         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64622         formula. Needed for SunPRO C 5.0.
64623
64624 2007-03-11  Bruno Haible  <bruno@clisp.org>
64625
64626         * modules/long-options (Depends-on): Add getopt.
64627
64628 2007-03-11  Bruno Haible  <bruno@clisp.org>
64629
64630         * modules/modechange (Depends-on): Add stdbool.
64631
64632 2007-03-11  Bruno Haible  <bruno@clisp.org>
64633
64634         * modules/i-ring (Depends-on): Add stdbool.
64635
64636 2007-03-11  Bruno Haible  <bruno@clisp.org>
64637
64638         * modules/gc-des (Depends-on): Add stdbool.
64639
64640 2007-03-11  Bruno Haible  <bruno@clisp.org>
64641
64642         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64643
64644 2007-03-11  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64647
64648 2007-03-11  Bruno Haible  <bruno@clisp.org>
64649
64650         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64651
64652 2007-03-11  Bruno Haible  <bruno@clisp.org>
64653
64654         * lib/vasnprintf.c (sprintf): Undefine.
64655
64656 2007-03-11  Bruno Haible  <bruno@clisp.org>
64657
64658         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64659         initializers in SunPRO C and Compaq C compilers.
64660
64661 2007-03-11  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64664         decrementing code ANSI C compliant.
64665
64666 2007-03-11  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64669         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64670
64671 2007-03-11  Bruno Haible  <bruno@clisp.org>
64672
64673         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64674         <stdbool.h> substitute doesn't pass.
64675
64676 2007-03-11  Bruno Haible  <bruno@clisp.org>
64677
64678         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64679
64680 2007-03-11  Bruno Haible  <bruno@clisp.org>
64681
64682         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64683         script, for submission to autobuild.josefsson.org.
64684
64685 2007-03-10  Bruno Haible  <bruno@clisp.org>
64686
64687         * modules/canonicalize-lgpl-tests: New file.
64688         * tests/test-canonicalize-lgpl.sh: New file.
64689         * tests/test-canonicalize-lgpl.c: New file.
64690
64691         * modules/c-strcase-tests: New file.
64692         * tests/test-c-strcase.sh: New file.
64693         * tests/test-c-strcasecmp.c: New file.
64694         * tests/test-c-strncasecmp.c: New file.
64695
64696         * modules/atexit-tests: New file.
64697         * tests/test-atexit.sh: New file.
64698         * tests/test-atexit.c: New file.
64699
64700 2007-03-10  Bruno Haible  <bruno@clisp.org>
64701
64702         * tests/test-binary-io.sh: Use temporary filenames that are not so
64703         likely to clash with those of other tests (in a parallel make).
64704         * tests/test-binary-io.c: Likewise.
64705
64706 2007-03-10  Bruno Haible  <bruno@clisp.org>
64707
64708         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64709         fallback; use #error instead.
64710         Suggested by Simon Josefsson.
64711
64712 2007-03-10  Bruno Haible  <bruno@clisp.org>
64713
64714         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64715         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64716         first and the last.
64717
64718 2007-03-10  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64721
64722 2007-03-10  Bruno Haible  <bruno@clisp.org>
64723
64724         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64725         "make distcheck".
64726         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64727         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64728         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64729
64730 2007-03-10  Bruno Haible  <bruno@clisp.org>
64731
64732         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64733         variable.
64734         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64735         variable.
64736
64737 2007-03-09  Eric Blake  <ebb9@byu.net>
64738         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64739
64740         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64741         types are not being provided by gnulib.
64742         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64743         types are supported.
64744
64745 2007-03-10  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/stdio_.h (__attribute__): New macro.
64748         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64749         vsprintf): Specify __attribute__ __format__ for GCC.
64750         Suggested by Eric Blake.
64751
64752 2007-03-09  Bruno Haible  <bruno@clisp.org>
64753
64754         * modules/printf-posix-tests: New file.
64755         * tests/test-printf-posix.sh: New file.
64756         * tests/test-printf-posix.c: New file.
64757
64758         * modules/printf-posix: New file.
64759         * lib/printf.c: New file.
64760         * m4/printf-posix-rpl.m4: New file.
64761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64762         REPLACE_PRINTF.
64763         * lib/stdio_.h (printf): New declaration.
64764         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64765         ____strfmon____): New macros.
64766         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64767         REPLACE_PRINTF.
64768
64769 2007-03-09  Bruno Haible  <bruno@clisp.org>
64770
64771         * tests/test-vasnprintf-posix2.sh: New file.
64772         * tests/test-vasnprintf-posix2.c: New file.
64773         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64774         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64775         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64776
64777         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64778         a locale dependent decimal point, rather than always '.'.
64779
64780 2007-03-09  Eric Blake  <ebb9@byu.net>
64781
64782         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64783         spite of platforms like Tandem/NSK that define it to -1.
64784
64785 2007-03-08  Bruno Haible  <bruno@clisp.org>
64786
64787         * modules/vprintf-posix-tests: New file.
64788         * tests/test-vprintf-posix.sh: New file.
64789         * tests/test-vprintf-posix.c: New file.
64790         * tests/test-printf-posix.h: New file.
64791
64792         * modules/vprintf-posix: New file.
64793         * lib/vprintf.c: New file.
64794         * m4/vprintf-posix.m4: New file.
64795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64796         REPLACE_VPRINTF.
64797         * lib/stdio_.h (vprintf): New declaration.
64798         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64799         REPLACE_VPRINTF.
64800
64801 2007-03-08  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/fprintf-posix-tests: New file.
64804         * tests/test-fprintf-posix.sh: New file.
64805         * tests/test-fprintf-posix.c: New file.
64806
64807         * modules/fprintf-posix: New file.
64808         * lib/fprintf.c: New file.
64809         * m4/fprintf-posix.m4: New file.
64810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64811         REPLACE_FPRINTF.
64812         * lib/stdio_.h (fprintf): New declaration.
64813         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64814         REPLACE_FPRINTF.
64815
64816 2007-03-08  Bruno Haible  <bruno@clisp.org>
64817
64818         * modules/vfprintf-posix-tests: New file.
64819         * tests/test-vfprintf-posix.sh: New file.
64820         * tests/test-vfprintf-posix.c: New file.
64821         * tests/test-fprintf-posix.h: New file.
64822         * tests/test-fprintf-posix.out: New file.
64823
64824         * modules/vfprintf-posix: New file.
64825         * lib/vfprintf.c: New file.
64826         * m4/vfprintf-posix.m4: New file.
64827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64828         REPLACE_VFPRINTF.
64829         * lib/stdio_.h (vfprintf): New declaration.
64830         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64831         REPLACE_VFPRINTF.
64832
64833 2007-03-08  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64836
64837 2007-03-08  Bruno Haible  <bruno@clisp.org>
64838
64839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64840         instead of 'expr' invocations.
64841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64844         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64846         Suggested by Paul Eggert.
64847
64848 2007-03-08  Bruno Haible  <bruno@clisp.org>
64849
64850         * modules/fseterr-tests: New file.
64851         * tests/test-fseterr.c: New file.
64852
64853         * modules/fseterr: New file.
64854         * lib/fseterr.h: New file.
64855         * lib/fseterr.c: New file.
64856
64857 2007-03-08  Bruno Haible  <bruno@clisp.org>
64858
64859         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64860         * lib/getopt_.h: Likewise.
64861         * lib/mbswidth.h: Likewise.
64862         * lib/setenv.h: Likewise.
64863         * lib/vasnprintf.h: Likewise.
64864         * lib/vasprintf.h: Likewise.
64865         * lib/verror.h: Likewise.
64866         * lib/xsetenv.h: Likewise.
64867         * lib/xvasprintf.h: Likewise.
64868
64869 2007-03-08  Jim Meyering  <jim@meyering.net>
64870
64871         * users.txt: Add parted.
64872
64873         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64874
64875 2007-03-07  Bruno Haible  <bruno@clisp.org>
64876
64877         * m4/printf.m4: Make the shell script snippets copy&pastable.
64878
64879 2007-03-02  Bruno Haible  <bruno@clisp.org>
64880
64881         * lib/netinet_in_.h: New file.
64882         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64883         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64884         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64885         (Depends-on): Add absolute-header.
64886         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64887         into netinet/in.h.
64888
64889 2007-03-03  Bruno Haible  <bruno@clisp.org>
64890
64891         * lib/sys_select_.h: New file.
64892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64893         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64894         * modules/sys_select (Files): Add lib/sys_select_.h.
64895         (Depends-on): Add absolute-header.
64896         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64897         into sys/select.h.
64898
64899 2007-03-02  Bruno Haible  <bruno@clisp.org>
64900
64901         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64902         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64903         values.
64904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64905         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64906         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64907         * modules/sys_socket (Depends-on): Add absolute-header.
64908         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64909         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64910         (Include): Remove requirement of inclusion of <sys/types.h>.
64911
64912 2007-03-02  Bruno Haible  <bruno@clisp.org>
64913
64914         * lib/byteswap_.h (bswap_32): Fix formula.
64915
64916 2007-03-06  Bruno Haible  <bruno@clisp.org>
64917
64918         * modules/sprintf-posix-tests: New file.
64919         * tests/test-sprintf-posix.c: New file.
64920
64921         * modules/sprintf-posix: New file.
64922         * lib/sprintf.c: New file.
64923         * m4/sprintf-posix.m4: New file.
64924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64925         REPLACE_SPRINTF.
64926         * lib/stdio_.h (sprintf): New declaration.
64927         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64928         REPLACE_SPRINTF.
64929
64930 2007-03-06  Bruno Haible  <bruno@clisp.org>
64931
64932         * modules/vsprintf-posix-tests: New file.
64933         * tests/test-vsprintf-posix.c: New file.
64934         * tests/test-sprintf-posix.h: New file.
64935
64936         * modules/vsprintf-posix: New file.
64937         * lib/vsprintf.c: New file.
64938         * m4/vsprintf-posix.m4: New file.
64939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64940         REPLACE_VSPRINTF.
64941         * lib/stdio_.h (vsprintf): New declaration.
64942         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64943         REPLACE_VSPRINTF.
64944
64945 2007-03-06  Bruno Haible  <bruno@clisp.org>
64946
64947         * modules/vsnprintf (Depend-on): Remove minmax.
64948
64949 2007-03-06  Bruno Haible  <bruno@clisp.org>
64950
64951         * modules/snprintf-posix-tests: New file.
64952         * tests/test-snprintf-posix.c: New file.
64953
64954         * modules/snprintf-posix: New file.
64955         * m4/snprintf-posix.m4: New file.
64956         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64957         gl_FUNC_SNPRINTF.
64958         (gl_FUNC_SNPRINTF): Invoke it.
64959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64960         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64961         is set.
64962         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64963
64964 2007-03-06  Bruno Haible  <bruno@clisp.org>
64965
64966         * modules/vsnprintf-posix-tests: New file.
64967         * tests/test-vsnprintf-posix.c: New file.
64968         * tests/test-snprintf-posix.h: New file.
64969
64970         * modules/vsnprintf-posix: New file.
64971         * m4/vsnprintf-posix.m4: New file.
64972         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64973         gl_FUNC_VSNPRINTF.
64974         (gl_FUNC_VSNPRINTF): Invoke it.
64975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64976         * lib/stdio_.h (vsnprintf): Define as a replacement if
64977         REPLACE_VSNPRINTF is set.
64978         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64979
64980 2007-03-06  Bruno Haible  <bruno@clisp.org>
64981
64982         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64984
64985 2007-03-06  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64988         (asinl): Declare also if HAVE_DECL_ASINL is set.
64989         (atanl): Declare also if HAVE_DECL_ATANL is set.
64990         (ceill): Declare also if HAVE_DECL_CEILL is set.
64991         (cosl): Declare also if HAVE_DECL_COSL is set.
64992         (expl): Declare also if HAVE_DECL_EXPL is set.
64993         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64994         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64995         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64996         (logl): Declare also if HAVE_DECL_LOGL is set.
64997         (sinl): Declare also if HAVE_DECL_SINL is set.
64998         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64999         (tanl): Declare also if HAVE_DECL_TANL is set.
65000         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
65001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
65002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
65003         declaration of frexpl, ldexpl.
65004         * modules/printf-frexpl (Depends-on): Add math.
65005         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
65006
65007 2007-03-05  Bruno Haible  <bruno@clisp.org>
65008
65009         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
65010         frexpl and ldexpl are declared.
65011         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65012
65013 2007-03-05  Bruno Haible  <bruno@clisp.org>
65014
65015         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65016         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65017
65018 2007-03-05  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/stdio_.h: Include <stddef.h>.
65021
65022 2007-03-05  Bruno Haible  <bruno@clisp.org>
65023
65024         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65025
65026 2007-03-05  Bruno Haible  <bruno@clisp.org>
65027
65028         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65029         NetBSD 4, from Ralf Wildenhues.
65030
65031 2007-03-04  Bruno Haible  <bruno@clisp.org>
65032
65033         * lib/vasprintf.h: Update #if logic for the case when the functions
65034         exist but are overridden.
65035
65036 2007-03-04  Bruno Haible  <bruno@clisp.org>
65037
65038         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65039         implementations: glibc-2.4 and MacOS X 10.3.
65040         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65041         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65042         * tests/test-vasprintf-posix.c (test_function): Likewise.
65043
65044 2007-03-04  Bruno Haible  <bruno@clisp.org>
65045
65046         * modules/vasprintf-posix-tests: New file.
65047         * tests/test-vasprintf-posix.c: New file.
65048
65049         * modules/vasprintf-posix: New file.
65050         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65051         defined.
65052         * m4/vasprintf-posix.m4: New file.
65053         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65054         gl_FUNC_VASPRINTF.
65055         (gl_FUNC_VASPRINTF): Invoke it.
65056         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65057         here.
65058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65059
65060 2007-03-04  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65063         REPLACE_GETTIMEOFDAY.
65064         * modules/sys_time (Makefile.am): Likewise.
65065         * m4/sys_time_h.m4: Likewise.
65066         * m4/gettimeofday.m4: Likewise.
65067
65068 2007-03-04  Bruno Haible  <bruno@clisp.org>
65069
65070         * modules/vasnprintf-posix-tests: New file.
65071         * tests/test-vasnprintf-posix.c: New file.
65072
65073         * modules/vasnprintf-posix: New file.
65074         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65075         printf-frexpl.h.
65076         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65077         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65078         REPLACE_VASNPRINTF is defined.
65079         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65080         gl_FUNC_VASNPRINTF.
65081         (gl_FUNC_VASNPRINTF): Invoke it.
65082         * m4/vasnprintf-posix.m4: New file.
65083         * m4/printf.m4: New file.
65084
65085 2007-03-04  Bruno Haible  <bruno@clisp.org>
65086
65087         Compile progreloc.c only if --enable-relocatable is specified.
65088         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65089         if --enable-relocatable was specified.
65090         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65091         lib_SOURCES.
65092
65093 2007-03-04  Jim Meyering  <jim@meyering.net>
65094
65095         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65096         Use it consistently, rather than enumerating errno constants.
65097
65098 2007-03-04  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/xvasprintf-tests: New file.
65101         * tests/test-xvasprintf.c: New file.
65102
65103         * modules/vasprintf-tests: New file.
65104         * tests/test-vasprintf.c: New file.
65105
65106         * modules/vasnprintf-tests: New file.
65107         * tests/test-vasnprintf.c: New file.
65108
65109         * modules/vsnprintf-tests: New file.
65110         * tests/test-vsnprintf.c: New file.
65111
65112         * modules/snprintf-tests: New file.
65113         * tests/test-snprintf.c: New file.
65114
65115 2007-03-04  Bruno Haible  <bruno@clisp.org>
65116
65117         Compile relocatable.c only if --enable-relocatable is specified.
65118         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65119         gl_RELOCATABLE_LIBRARY.
65120         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65121         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65122         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65123         gl_RELOCATABLE_LIBRARY.
65124         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65125         (Makefile.am): Remove lib_SOURCES.
65126         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65127         gl_RELOCATABLE_LIBRARY.
65128         (Makefile.am): Remove lib_SOURCES.
65129         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65130         always.
65131         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65132         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65133
65134 2007-03-04  Bruno Haible  <bruno@clisp.org>
65135
65136         * modules/argmatch-tests: New file.
65137         * tests/test-argmatch.c: New file.
65138
65139         * tests/test-allocsa.c (main): Halve the number of loop runs.
65140
65141         * modules/alloca-opt-tests: New file.
65142         * tests/test-alloca-opt.c: New file.
65143
65144 2007-03-04  Jim Meyering  <jim@meyering.net>
65145
65146         Work around difference between Linux ACLs and Solaris 10 ZFS.
65147         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65148         for EINVAL.
65149
65150 2007-03-03  Bruno Haible  <bruno@clisp.org>
65151
65152         * modules/relocatable-prog (Depends-on): Add back progreloc's
65153         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65154
65155 2007-03-03  Bruno Haible  <bruno@clisp.org>
65156
65157         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65158         * modules/relocatable-lib: New file.
65159
65160 2007-03-03  Bruno Haible  <bruno@clisp.org>
65161
65162         * modules/relocatable-prog: Renamed from modules/relocatable.
65163         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65164
65165 2007-03-03  Bruno Haible  <bruno@clisp.org>
65166
65167         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65168         m4/relocatable-lib.m4.
65169         (Depends-on): Remove 'relocatable'.
65170         (configure.ac): Add gl_RELOCATABLE_NOP.
65171
65172 2007-03-03  Bruno Haible  <bruno@clisp.org>
65173
65174         * modules/relocatable-prog-wrapper: New file.
65175         * modules/relocatable (Depends-on): Add it. Remove all other
65176         dependencies except progname.
65177         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65178
65179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65180         (gl_FUNC_STRERROR): Nop.
65181         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65182
65183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65184         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65185
65186         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65187         (gl_FUNC_READLINK): Update.
65188
65189         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65190
65191 2007-03-03  Bruno Haible  <bruno@clisp.org>
65192
65193         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65194         * modules/xreadlink (Depends-on): Add unistd.
65195         * modules/xreadlink-with-size (Depends-on): Likewise.
65196
65197 2007-03-03  Bruno Haible  <bruno@clisp.org>
65198
65199         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65200         extracted from gt_FUNC_SETENV.
65201         (gt_FUNC_SETENV): Remove macro.
65202         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65203         remove gt_FUNC_SETENV.
65204
65205 2007-03-03  Bruno Haible  <bruno@clisp.org>
65206
65207         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65208         ENABLE_RELOCATABLE here.
65209         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65210
65211 2007-03-03  Bruno Haible  <bruno@clisp.org>
65212
65213         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65214         * tests/test-rbtreehash_list.c: Include progname.h.
65215         (main): Call set_program_name.
65216
65217         * modules/rbtree-oset-tests (Depends-on): Add progname.
65218         * tests/test-rbtree_oset.c: Include progname.h.
65219         (main): Call set_program_name.
65220
65221         * modules/rbtree-list-tests (Depends-on): Add progname.
65222         * tests/test-rbtree_list.c: Include progname.h.
65223         (main): Call set_program_name.
65224
65225         * modules/linked-list-tests (Depends-on): Add progname.
65226         * tests/test-linked_list.c: Include progname.h.
65227         (main): Call set_program_name.
65228
65229 2007-03-03  Bruno Haible  <bruno@clisp.org>
65230
65231         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65232         All uses of __restrict changed to _Restrict_.
65233         * lib/glob_.h (__restrict): Remove macro.
65234
65235 2007-03-02  Bruno Haible  <bruno@clisp.org>
65236
65237         * modules/gettext (configure.ac): Require gettext infrastructure
65238         from version 0.16.1.
65239
65240 2007-03-02  Bruno Haible  <bruno@clisp.org>
65241
65242         * modules/linkedhash-list-tests (Depends-on): Add progname.
65243         * tests/test-linkedhash_list.c: Include progname.h.
65244         (main): Call set_program_name.
65245
65246         * modules/carray-list-tests (Depends-on): Add progname.
65247         * tests/test-carray_list.c: Include progname.h.
65248         (main): Call set_program_name.
65249
65250         * modules/avltreehash-list-tests (Depends-on): Add progname.
65251         * tests/test-avltreehash_list.c: Include progname.h.
65252         (main): Call set_program_name.
65253
65254         * modules/avltree-oset-tests (Depends-on): Add progname.
65255         * tests/test-avltree_oset.c: Include progname.h.
65256         (main): Call set_program_name.
65257
65258         * modules/avltree-list-tests (Depends-on): Add progname.
65259         * tests/test-avltree_list.c: Include progname.h.
65260         (main): Call set_program_name.
65261
65262         * modules/array-oset-tests (Depends-on): Add progname.
65263         * tests/test-array_oset.c: Include progname.h.
65264         (main): Call set_program_name.
65265
65266         * modules/array-list-tests (Depends-on): Add progname.
65267         * tests/test-array_list.c: Include progname.h.
65268         (main): Call set_program_name.
65269
65270         * modules/argp-tests (Depends-on): Add progname.
65271         * tests/test-argp.c: Include argp.h first. Include progname.h.
65272         (main): Call set_program_name.
65273
65274 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * doc/gnulib-tool.texi (Initial import): Reword description of
65277         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65278         limited effect even if defined after the first system include.
65279
65280 2007-03-01  Bruno Haible  <bruno@clisp.org>
65281
65282         * build-aux/config.libpath: Update to libtool-1.5.22.
65283         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65284
65285 2007-03-01  Bruno Haible  <bruno@clisp.org>
65286
65287         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65288         foo_CFLAGS.
65289         Reported by Ralf Wildenhues.
65290
65291 2007-03-01  Bruno Haible  <bruno@clisp.org>
65292
65293         * build-aux/install-reloc: Remove object files left over by some
65294         compilers.
65295         Reported by Ralf Wildenhues.
65296
65297 2007-03-01  Bruno Haible  <bruno@clisp.org>
65298
65299         * build-aux/install-reloc: Break long lines.
65300
65301 2007-03-01  Bruno Haible  <bruno@clisp.org>
65302
65303         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65304         Reported by Ralf Wildenhues.
65305
65306 2007-03-01  Bruno Haible  <bruno@clisp.org>
65307
65308         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65309         include ordering constraints.
65310
65311 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65315         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65316         as another example.
65317         * lib/time_.h: Fix misspelling.
65318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65319         Require gl_HEADER_TIME_H_DEFAULTS.
65320         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65321         * m4/time_r.m4 (gl_TIME_R): Likewise.
65322         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65323
65324 2007-03-01  Bruno Haible  <bruno@clisp.org>
65325
65326         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65327         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65328
65329 2007-03-01  Jim Meyering  <jim@meyering.net>
65330
65331         * modules/xreadlink (Maintainer): Add my name.
65332         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65333
65334 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65335             Bruno Haible  <bruno@clisp.org>
65336
65337         * build-aux/install-reloc: Compile also c-ctype.c.
65338         * build-aux/relocatable.sh.in: New file.
65339         * doc/relocatable.texi: New file.
65340         * doc/relocatable-maint.texi: New file.
65341         * doc/gnulib.texi: Include relocatable-maint.texi.
65342         * lib/progreloc.c: Include unistd.h unconditionally.
65343         * lib/relocwrapper.c: Include unistd.h unconditionally.
65344         Include c-ctype.h.
65345         (add_dotbin): Use c_tolower.
65346         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65347         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65348         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65349         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65350         to m4/relocatable-lib.m4.
65351         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65352         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65353         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65354         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65355         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65356         * modules/relocatable: New file.
65357         * modules/relocatable-lib: New file.
65358         * modules/relocatable-script: New file.
65359
65360 2007-02-28  Bruno Haible  <bruno@clisp.org>
65361
65362         Import --enable-relocatable infrastructure.
65363         * build-aux/config.libpath: New file, from GNU gettext.
65364         * build-aux/install-reloc: New file, from GNU gettext.
65365         * build-aux/reloc-ldflags: New file, from GNU gettext.
65366         * lib/relocatable.h: New file, from GNU gettext.
65367         * lib/relocatable.c: New file, from GNU gettext.
65368         * lib/relocwrapper.c: New file, from GNU gettext.
65369         * m4/relocatable.m4: New file, from GNU gettext.
65370
65371 2007-02-28  Bruno Haible  <bruno@clisp.org>
65372
65373         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65374
65375         * modules/xreadlink: New file, from GNU gettext with modifications.
65376         * lib/xreadlink.c: New file, from GNU gettext.
65377         * lib/xreadlink.h: Add comments.
65378         (xreadlink): New declaration.
65379
65380         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65381         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65382         lib/xreadlink-with-size.c.
65383         (configure.ac): Remove gl_XREADLINK invocation.
65384         (Makefile.am): Augment lib_SOURCES.
65385         * m4/xreadlink.m4: Remove file.
65386         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65387         (xreadlink_with_size): Renamed from xreadink.
65388         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65389         * modules/canonicalize (Depends-on): Replace xreadlink with
65390         xreadlink-with-size.
65391         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65392
65393 2007-02-25  Jim Meyering  <jim@meyering.net>
65394
65395         * build-aux/announce-gen: When complaining about excess arguments,
65396         list them.
65397
65398 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * README: Document signed integer overflow situation more
65401         accurately.
65402
65403 2007-02-25  Bruno Haible  <bruno@clisp.org>
65404
65405         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65406         'a' or 'A' conversion.
65407
65408 2007-02-25  Bruno Haible  <bruno@clisp.org>
65409
65410         * modules/filename: Renamed from modules/pathname.
65411         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65412         lib/concatpath.c with lib/concat-filename.c.
65413         (Makefile.am): Update.
65414         (Include): Replace pathname.h with filename.h.
65415         * lib/filename.h: Renamed from lib/pathname.h.
65416         (concatenated_filename): Renamed from concatenated_pathname.
65417         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65418         (concatenated_filename): Renamed from concatenated_pathname.
65419         * lib/findprog.c: Include filename.h instead of pathname.h.
65420         (find_in_path): Update.
65421         * lib/javacomp.c: Include filename.h instead of pathname.h.
65422         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65423         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65424         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65425         is_oldgcj_14_13_usable, is_javac_usable): Update.
65426         * lib/javaexec.c: Include filename.h instead of pathname.h.
65427         (execute_java_class): Update.
65428         * modules/findprog: Update.
65429         * modules/javacomp: Update.
65430         * modules/javaexec: Update.
65431         * MODULES.html.sh (File system functions): Add 'filename', remove
65432         'pathname'.
65433
65434 2007-02-25  Bruno Haible  <bruno@clisp.org>
65435
65436         * modules/printf-frexpl-tests: New file.
65437         * tests/test-printf-frexpl.c: New file.
65438
65439         * modules/printf-frexpl: New file.
65440         * lib/printf-frexpl.h: New file.
65441         * lib/printf-frexpl.c: New file.
65442         * m4/printf-frexpl.m4: New file.
65443
65444 2007-02-25  Bruno Haible  <bruno@clisp.org>
65445
65446         * modules/printf-frexp-tests: New file.
65447         * tests/test-printf-frexp.c: New file.
65448
65449         * modules/printf-frexp: New file.
65450         * lib/printf-frexp.h: New file.
65451         * lib/printf-frexp.c: New file.
65452         * m4/printf-frexp.m4: New file.
65453
65454 2007-02-25  Bruno Haible  <bruno@clisp.org>
65455
65456         Assume automake >= 1.10 for the tests.
65457         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65458         * modules/arctwo-tests: Likewise.
65459         * modules/argp-tests: Likewise.
65460         * modules/avltree-list-tests: Likewise.
65461         * modules/avltree-oset-tests: Likewise.
65462         * modules/avltreehash-list-tests: Likewise.
65463         * modules/carray-list-tests: Likewise.
65464         * modules/crc-tests: Likewise.
65465         * modules/des-tests: Likewise.
65466         * modules/gc-arcfour-tests: Likewise.
65467         * modules/gc-arctwo-tests: Likewise.
65468         * modules/gc-des-tests: Likewise.
65469         * modules/gc-hmac-md5-tests: Likewise.
65470         * modules/gc-hmac-sha1-tests: Likewise.
65471         * modules/gc-md2-tests: Likewise.
65472         * modules/gc-md4-tests: Likewise.
65473         * modules/gc-md5-tests: Likewise.
65474         * modules/gc-pbkdf2-sha1-tests: Likewise.
65475         * modules/gc-rijndael-tests: Likewise.
65476         * modules/gc-sha1-tests: Likewise.
65477         * modules/gc-tests: Likewise.
65478         * modules/getaddrinfo-tests: Likewise.
65479         * modules/hmac-md5-tests: Likewise.
65480         * modules/hmac-sha1-tests: Likewise.
65481         * modules/linked-list-tests: Likewise.
65482         * modules/linkedhash-list-tests: Likewise.
65483         * modules/lock-tests: Likewise.
65484         * modules/md2-tests: Likewise.
65485         * modules/md4-tests: Likewise.
65486         * modules/md5-tests: Likewise.
65487         * modules/rbtree-list-tests: Likewise.
65488         * modules/rbtree-oset-tests: Likewise.
65489         * modules/rbtreehash-list-tests: Likewise.
65490         * modules/read-file-tests: Likewise.
65491         * modules/rijndael-tests: Likewise.
65492         * modules/stdint-tests: Likewise.
65493         * modules/tls-tests: Likewise.
65494
65495 2007-02-24  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65498         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65499         function; instead check whether isnan with a double argument links.
65500         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65501         function; instead check whether isnan with a 'long double' argument
65502         links.
65503         Reported by Eric Blake <ebb9@byu.net>.
65504
65505 2007-02-24  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65508         defined.
65509         * lib/isnanl.c: Remove all code. Just include isnan.c.
65510         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65511
65512 2007-02-25  Jim Meyering  <jim@meyering.net>
65513
65514         Avoid conflicting types for 'unsetenv' on FreeBSD.
65515         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65516         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65517         in stdlib.h.
65518
65519 2007-02-24  Bruno Haible  <bruno@clisp.org>
65520
65521         * modules/isnanl-nolibm-tests: New file.
65522         * tests/test-isnanl.c: New file.
65523
65524         * modules/isnanl-nolibm: New file.
65525         * lib/isnanl.h: New file.
65526         * lib/isnanl.c: New file.
65527         * m4/isnanl.m4: New file.
65528
65529 2007-02-24  Bruno Haible  <bruno@clisp.org>
65530
65531         * modules/isnan-nolibm-tests: New file.
65532         * tests/test-isnan.c: New file.
65533
65534         * modules/isnan-nolibm: New file.
65535         * lib/isnan.h: New file.
65536         * lib/isnan.c: New file.
65537         * m4/isnan.m4: New file.
65538
65539 2007-02-24  Bruno Haible  <bruno@clisp.org>
65540
65541         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65542         assume that an exponent fits in 20 bits.
65543
65544 2007-02-24  Jim Meyering  <jim@meyering.net>
65545
65546         * m4/regex.m4: Update the description of the configure-time option,
65547         --without-included-regex, to state accurately what the defaults are,
65548         and perhaps to give people an idea why using this option is risky.
65549
65550 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65553         loops on small arguments.  This attempts to avoid the problem
65554         Bruno Haible reported for AIX 4.3.2 in
65555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65556
65557 2007-02-23  Bruno Haible  <bruno@clisp.org>
65558
65559         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65560         Needed for help2man.
65561
65562 2007-02-23  Karl Berry  <karl@gnu.org>
65563
65564         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65565         exists, foo.h should be cvs-ignored, not committed.
65566
65567 2007-02-23  Eric Blake  <ebb9@byu.net>
65568
65569         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65570         * lib/stat-time.h (includes): Likewise.
65571         * lib/utimecmp.c (includes): Likewise.
65572         * lib/utimens.h (includes): Likewise.
65573         * lib/getdate.y (includes): Also include "timespec.h" for use
65574         internal to the module.
65575         * modules/utimens (Depends-on): Revert yesterday's patch.
65576         * modules/nanosleep (Depends-on): Add missing dependency.
65577
65578 2007-02-22  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/glob.c: Don't include getlogin_r.h.
65581
65582 2007-02-22  Jim Meyering  <jim@meyering.net>
65583
65584         * modules/utimens (Depends-on): Add timespec, required for
65585         utimens.h's inclusion of timespec.h.
65586
65587 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65590         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65591         Schwab in
65592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65593         I'll try to think of a better way to fix the Solaris problem.
65594
65595         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65596         like glibc; on Solaris 10, it fails with errno == EINVAL.
65597         POSIX says the behavior is unspecified if the first argument is NULL,
65598         so play it safe and never pass NULL to the system getcwd.
65599
65600 2007-02-21  Jim Meyering  <jim@meyering.net>
65601
65602         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65603         of gettimeofday.  It would conflict with the one now always
65604         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65605         an IRIX 6.5 build failure.
65606
65607 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65608
65609         Minor fixups to port to Solaris 10 with Sun C 5.8.
65610         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65611         * modules/getcwd (Depends-on): Add dirfd.
65612         * lib/putenv.c (putenv): #undef it.
65613         (rpl_putenv): New decl.
65614         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65615
65616 2007-02-20  Bruno Haible  <bruno@clisp.org>
65617
65618         * modules/stdio-tests: New file.
65619         * tests/test-stdio.c: New file.
65620
65621         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65622         (Depends-on): Add stdio.
65623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65624         (Include): Use <stdio.h> instead of vsnprintf.h.
65625         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65626         HAVE_DECL_VSNPRINTF.
65627         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65628
65629         * modules/snprintf (Files): Remove lib/snprintf.h.
65630         (Depends-on): Add stdio.
65631         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65632         (Include): Use <stdio.h> instead of snprintf.h.
65633         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65634         HAVE_DECL_SNPRINTF.
65635         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65636         * lib/getaddrinfo.c: Likewise.
65637
65638         * modules/stdio: New file.
65639         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65640         * lib/snprintf.h: Remove file.
65641         * lib/vsnprintf.h: Remove file.
65642         * lib/.cppi-disable: Remove snprintf.h.
65643         * m4/stdio_h.m4: New file.
65644         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65645
65646 2007-02-20  Jim Meyering  <jim@meyering.net>
65647
65648         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65649         used by e.g., mingw.  From Bruno Haible.
65650
65651 2007-02-19  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65654         warnings.
65655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65656
65657 2007-02-19  Bruno Haible  <bruno@clisp.org>
65658
65659         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65660         from mingw users.
65661
65662 2007-02-19  Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65665         warnings.
65666         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65667
65668 2007-02-19  Jim Meyering  <jim@meyering.net>
65669
65670         Don't use FD after a successful "fdopendir (fd)".
65671         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65672         Reset it by calling dirfd on the just-obtained DIR*.
65673
65674         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65675         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65676
65677 2007-02-18  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/readlink.c: Include <unistd.h>.
65680         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65681         HAVE_READLINK.
65682         * modules/readlink (Depends-on): Add unistd.
65683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65684         (Include): Add <unistd.h>.
65685
65686         * lib/getlogin_r.h: Remove file.
65687         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65688         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65689         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65690         HAVE_DECL_GETLOGIN_R.
65691         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65693         (Include): Use <unistd.h> instead of getlogin_r.h.
65694
65695         * lib/getcwd.h: Remove file.
65696         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65697         * lib/xgetcwd.c: Likewise.
65698         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65699         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65700         * modules/getcwd (Files): Remove lib/getcwd.h.
65701         (Depends-on): Add unistd.
65702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65703         (Include): Use <unistd.h> instad of getcwd.h.
65704
65705         * lib/ftruncate.c: Include <unistd.h> first.
65706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65707         Set HAVE_FTRUNCATE.
65708         * modules/ftruncate (Depends-on): Add unistd.
65709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65710
65711         * lib/fchdir.c: Include <unistd.h> first.
65712         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65714         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65715         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65716         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65717
65718         * lib/dup2.c: Include <unistd.h> first.
65719         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65720         HAVE_DUP2.
65721         * modules/dup2 (Depends-on): Add unistd.
65722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65723
65724         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65725         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65726         REPLACE_CHOWN. Don't define chown as a macro here.
65727         * modules/chown (Depends-on): Add unistd.
65728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65729
65730         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65731         Add definition for GL_LINK_WARNING.
65732         (chown, dup2): New declarations.
65733         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65734         link warning.
65735         (ftruncate): New declaration.
65736         (getcwd): New declaration, taken from old getcwd.h.
65737         (getlogin_r): New declaration, taken from old getlogin_r.h.
65738         (readlink): New declaration.
65739         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65740         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65741         (gl_PREREQ_UNISTD): Remove macro.
65742         (gl_UNISTD_MODULE_INDICATOR): New macro.
65743         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65744         many new variables. Don't set UNISTD_H.
65745         * modules/unistd (Description): Change.
65746         (Depends-on): Add link-warning.
65747         (configure.ac): Update.
65748         (Makefile.am): Create unistd.h always. Substitute many new variables
65749         into it.
65750
65751 2007-02-18  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65754         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65755         HAVE_GETSUBOPT.
65756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65757         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65758         * lib/getsubopt.h: Remove file.
65759         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65760         (Depends-on): Add stdlib.
65761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65762         (Includes): Use <stdlib.h> instead of getsubopt.h.
65763         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65764         Set HAVE_GETSUBOPT.
65765         * lib/getsubopt.c: Don't include getsubopt.h.
65766
65767 2007-02-18  Bruno Haible  <bruno@clisp.org>
65768
65769         * modules/fchdir (Depends-on): Add dup2.
65770
65771 2007-02-18  Bruno Haible  <bruno@clisp.org>
65772
65773         * lib/stdlib_.h: Handle glibc's special invocation convention
65774         specially.
65775
65776 2007-02-18  Bruno Haible  <bruno@clisp.org>
65777
65778         * modules/stdlib-tests: New file.
65779         * tests/test-stdlib.c: New file.
65780
65781         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65782         (Depends-on): Add stdlib.
65783         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65784         (Includes): Use <stdlib.h> instead of mkstemp.h.
65785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65786         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65787         * lib/mkstemp.c: Don't include mkstemp.h.
65788         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65789         * lib/stdlib--.h: Don't include mkstemp.h.
65790
65791         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65792         (Depends-on): Add stdlib.
65793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65794         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65795         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65796         HAVE_MKDTEMP.
65797         * lib/mkdtemp.c: Don't include mkdtemp.h.
65798         * lib/clean-temp.c: Don't include mkdtemp.h.
65799
65800         * modules/exit (Files): Remove lib/exit.h.
65801         (Depends-on): Add stdlib.
65802         (Makefile.am): Remove lib_SOURCES.
65803         (Include): Use <stdlib.h> instead of exit.h.
65804         * lib/argmatch.c: Don't include exit.h.
65805         * lib/execute.c: Likewise.
65806         * lib/pagealign_alloc.c: Likewise.
65807         * lib/pipe.c: Likewise.
65808         * lib/wait-process.c: Likewise.
65809         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65810         * lib/exitfail.c: Likewise.
65811         * lib/savewd.c: Likewise.
65812         * lib/xsetenv.c: Likewise.
65813
65814         * modules/stdlib: New file.
65815         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65816         and extra comments about mkstemp().
65817         * lib/exit.h: Remove file.
65818         * lib/mkdtemp.h: Remove file.
65819         * lib/mkstemp.h: Remove file.
65820         * m4/stdlib_h.m4: New file.
65821         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65822
65823 2007-02-18  Bruno Haible  <bruno@clisp.org>
65824
65825         * modules/math-tests: New file.
65826         * tests/test-math.c: New file.
65827
65828         * modules/math: New file.
65829         * modules/mathl (Files): Remove lib/mathl.h.
65830         (Depends-on): Add math.
65831         (Makefile.am): Don't mention mathl.h.
65832         (Include): Use <math.h> instead of mathl.h.
65833         * lib/math_.h: New file.
65834         * lib/mathl.h: Remove file.
65835         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65836         mathl.h.
65837         * lib/asinl.c: Likewise.
65838         * lib/atanl.c: Likewise.
65839         * lib/ceill.c: Likewise.
65840         * lib/cosl.c: Likewise.
65841         * lib/expl.c: Likewise.
65842         * lib/floorl.c: Likewise.
65843         * lib/frexpl.c: Likewise.
65844         * lib/ldexpl.c: Likewise.
65845         * lib/logl.c: Likewise.
65846         * lib/sincosl.c: Likewise.
65847         * lib/sinl.c: Likewise.
65848         * lib/sqrtl.c: Likewise.
65849         * lib/tanl.c: Likewise.
65850         * lib/trigl.c: Likewise.
65851         * m4/math_h.m4: New file.
65852         * MODULES.html.sh (Mathematics): Add math.
65853
65854 2007-02-17  Bruno Haible  <bruno@clisp.org>
65855
65856         * modules/wctype-tests: New file.
65857         * tests/test-wctype.c: New file.
65858
65859         * modules/wchar-tests: New file.
65860         * tests/test-wchar.c: New file.
65861
65862         * modules/unistd-tests: New file.
65863         * tests/test-unistd.c: New file.
65864
65865         * modules/time-tests: New file.
65866         * tests/test-time.c: New file.
65867
65868         * modules/sysexits-tests: New file.
65869         * tests/test-sysexits.c: New file.
65870
65871         * modules/sys_time-tests: New file.
65872         * tests/test-sys_time.c: New file.
65873
65874         * modules/sys_stat-tests: New file.
65875         * tests/test-sys_stat.c: New file.
65876
65877         * modules/sys_socket-tests: New file.
65878         * tests/test-sys_socket.c: New file.
65879
65880         * modules/sys_select-tests: New file.
65881         * tests/test-sys_select.c: New file.
65882
65883         * modules/string-tests: New file.
65884         * tests/test-string.c: New file.
65885
65886         * modules/stdbool-tests: New file.
65887         * tests/test-stdbool.c: New file.
65888
65889         * modules/netinet_in-tests: New file.
65890         * tests/test-netinet_in.c: New file.
65891
65892         * modules/inttypes-tests: New file.
65893         * tests/test-inttypes.c: New file.
65894
65895         * modules/fcntl-tests: New file.
65896         * tests/test-fcntl.c: New file.
65897
65898         * modules/byteswap-tests: New file.
65899         * tests/test-byteswap.c: New file.
65900
65901         * modules/arpa_inet-tests: New file.
65902         * tests/test-arpa_inet.c: New file.
65903
65904 2007-02-17  Bruno Haible  <bruno@clisp.org>
65905
65906         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65907         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65908         if the corresponding module is not enabled. Emit link warnings if
65909         the function is used nevertheless.
65910         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65911         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65912         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65913         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65914         * modules/inttypes (Depends-on): Add link-warning.
65915         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65916         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65917         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65918         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65919         * modules/imaxdiv (configure.ac): Likewise.
65920         * modules/strtoimax (configure.ac): Likewise.
65921         * modules/strtoumax (configure.ac): Likewise.
65922
65923 2007-02-17  Bruno Haible  <bruno@clisp.org>
65924
65925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65926         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65928         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65929
65930 2007-02-17  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/link-warning: New file.
65933         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65934         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65935         * modules/string (Depends-on): Add link-warning.
65936         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65937         string.h.
65938         * MODULES.html.sh (Support for building libraries and executables): Add
65939         link-warning.
65940
65941 2007-02-17  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65944         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65945         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65946         long lines.
65947
65948 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65949             Bruno Haible  <bruno@clisp.org>
65950
65951         * modules/tmpfile: New file.
65952         * lib/tmpfile.c: New file.
65953         * m4/tmpfile.m4: New file.
65954         * MODULES.html.sh (func_all_modules): New section "Input/output".
65955
65956 2007-02-15  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65959         (supports_delete_on_close): New function.
65960         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65961
65962 2007-02-14  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/mbspcasecmp-tests: New file.
65965         * tests/test-mbspcasecmp.sh: New file.
65966         * tests/test-mbspcasecmp.c: New file.
65967
65968         New module mbspcasecmp.
65969         * modules/mbspcasecmp: New file.
65970         * lib/mbspcasecmp.c: New file.
65971         * lib/string_.h (strncasecmp): Change warning message.
65972         (mbspcasecmp): New declaration.
65973         * m4/mbspcasecmp.m4: New file.
65974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65975         GNULIB_MBSPCASECMP.
65976         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65977         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65978
65979 2007-02-14  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/mbsncasecmp-tests: New file.
65982         * tests/test-mbsncasecmp.sh: New file.
65983         * tests/test-mbsncasecmp.c: New file.
65984
65985         New module mbsncasecmp.
65986         * modules/mbsncasecmp: New file.
65987         * lib/mbsncasecmp.c: New file.
65988         * lib/string_.h (mbsncasecmp): New declaration.
65989         * m4/mbsncasecmp.m4: New file.
65990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65991         GNULIB_MBSNCASECMP.
65992         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65993         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65994
65995 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65996
65997         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65998         Verify that it doesn't overlap with our flags.
65999         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
66000         do not have the desired effect in multibyte locales; instead, use
66001         mbscasecmp.
66002         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
66003         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
66004         we don't require GNU fnmatch ourselves (if our users require it, they
66005         should do so explicitly).
66006
66007         Fix regex code so it doesn't rely on strcasecmp.
66008         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
66009         Otherwise, include gnulib's langinfo.h.
66010         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66011         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66012         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66013         * modules/regex (FILES): Remove m4/codeset.m4.
66014         (Depends-on): Add localcharset.  Remove strcase.
66015
66016 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66017
66018         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66019         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66020
66021 2007-02-13  Bruno Haible  <bruno@clisp.org>
66022
66023         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66025
66026 2007-02-12  Bruno Haible  <bruno@clisp.org>
66027
66028         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66029         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66030         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66031         time warning rather than a link error.
66032
66033 2007-02-12  Bruno Haible  <bruno@clisp.org>
66034
66035         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66036         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66038
66039 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66042         args, not 2.
66043
66044 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66045
66046         New module 'time', so that apps can include <time.h> as per
66047         POSIX and GNU instead of separate include files like time_r.h
66048         and timegm.h.  This implementation tries out a simpler approach
66049         for replacing decls in standard include files (as compared to
66050         the string module), somewhat as an experiment.
66051
66052         * config/srclist.txt: Comment out mktime.c for now.
66053         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66054         since it doesn't apply any more.  Use generic wording instead.
66055         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66056         'time'.
66057         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66058         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66059         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66060         Don't include <sys/types.h>; no longer needed since we assume C89.
66061         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66062         * lib/strftime.c: Likewise.
66063         * lib/time_r.c: Likewise.
66064         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66065         * lib/nanosleep.c: Include <time.h> first, to check interface.
66066         * lib/strptime.c: Likewise.
66067         * lib/time_r.c: Likewise.
66068         * lib/timegm.c: Likewise.
66069         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66070         needed.
66071         * lib/timegm.c: Don't include timegm.h; no longer needed.
66072         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66073         time.h now handles any problems in that area.
66074         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66075         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66076         that time.h defines struct timespec.
66077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66078         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66079         handles that.
66080         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66081         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66082         needed.  Set REPLACE_LOCALTIME.
66083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66084         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66085         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66086         nanosleep; time_h.m4 now does that.  Don't require
66087         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66088         module handles this now.
66089         * modules/getdate (Depends-on): Remove timespec.  Add time.
66090         * modules/nanosleep (Depends-on): Likewise.
66091         * modules/stat-time (Depends-on): Likewise.
66092         * modules/nanosleep (Include): Include time.h, not timespec.h.
66093         * modules/strptime (Files): Remove lib/strptime.h.
66094         (Depends-on): Add extensions, time.
66095         (Include): Include time.h, not strptime.h.
66096         * modules/time_r (Files): Remove lib/time_r.h.
66097         (Depends-on): Add time.
66098         (Include): Include time.h, not time_r.h.
66099         * modules/timegm: Likewise.
66100         * modules/timespec (Description): Now does timespec-related decls
66101         of our own, instead of struct timespec itself.
66102         (Depends-on): Add time; remove extensions.
66103         (Maintainer): Add self.
66104         * modules/utimecmp (Depends-on): Add time; remove timespec.
66105         * modules/utimens (Depends-on): Likewise.
66106         * modules/xnanosleep (Depends-on): Likewise.
66107
66108 2007-02-11  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/c-strstr.c: Include allocsa.h.
66111         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66112         * lib/c-strcasestr.c: Include allocsa.h.
66113         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66114         * lib/strcasestr.c: Include allocsa.h.
66115         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66116         * lib/mbsstr.c: Include allocsa.h.
66117         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66118         allocsa/freesa instead of malloc/free.
66119         * lib/mbscasestr.c: Include allocsa.h.
66120         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66121         allocsa/freesa instead of malloc/free.
66122         * modules/c-strstr (Depends-on): Add allocsa.
66123         * modules/c-strcasestr (Depends-on): Likewise.
66124         * modules/strcasestr (Depends-on): Likewise.
66125         * modules/mbsstr (Depends-on): Likewise.
66126         * modules/mbscasestr (Depends-on): Likewise.
66127
66128 2007-02-11  Bruno Haible  <bruno@clisp.org>
66129
66130         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66131
66132         * modules/mbsspn-tests: New file.
66133         * tests/test-mbsspn.sh: New file.
66134         * tests/test-mbsspn.c: New file.
66135
66136 2007-02-11  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66139
66140         * modules/mbspbrk-tests: New file.
66141         * tests/test-mbspbrk.sh: New file.
66142         * tests/test-mbspbrk.c: New file.
66143
66144 2007-02-11  Bruno Haible  <bruno@clisp.org>
66145
66146         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66147         unneeded cast.
66148
66149         * modules/mbscspn-tests: New file.
66150         * tests/test-mbscspn.sh: New file.
66151         * tests/test-mbscspn.c: New file.
66152
66153 2007-02-11  Bruno Haible  <bruno@clisp.org>
66154
66155         * modules/mbscasecmp-tests: New file.
66156         * tests/test-mbscasecmp.sh: New file.
66157         * tests/test-mbscasecmp.c: New file.
66158
66159 2007-02-11  Bruno Haible  <bruno@clisp.org>
66160
66161         Ensure O(n) worst-case complexity of mbscasestr.
66162         * lib/mbscasestr.c: Include stdbool.h.
66163         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66164         functions.
66165         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66166         the bookkeeping indicates that it's worth it.
66167         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66168
66169         * modules/mbscasestr-tests: New file.
66170         * tests/test-mbscasestr1.c: New file.
66171         * tests/test-mbscasestr2.sh: New file.
66172         * tests/test-mbscasestr2.c: New file.
66173         * tests/test-mbscasestr3.sh: New file.
66174         * tests/test-mbscasestr3.c: New file.
66175         * tests/test-mbscasestr4.sh: New file.
66176         * tests/test-mbscasestr4.c: New file.
66177         * m4/locale-tr.m4: New file.
66178
66179 2007-02-11  Bruno Haible  <bruno@clisp.org>
66180
66181         Ensure O(n) worst-case complexity of mbsstr.
66182         * lib/mbsstr.c: Include stdbool.h.
66183         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66184         functions.
66185         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66186         bookkeeping indicates that it's worth it.
66187         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66188
66189         * modules/mbsstr-tests: New file.
66190         * tests/test-mbsstr1.c: New file.
66191         * tests/test-mbsstr2.sh: New file.
66192         * tests/test-mbsstr2.c: New file.
66193         * tests/test-mbsstr3.sh: New file.
66194         * tests/test-mbsstr3.c: New file.
66195         * m4/locale-fr.m4: New file.
66196
66197 2007-02-11  Bruno Haible  <bruno@clisp.org>
66198
66199         * lib/mbsrchr.c (mbsrchr): Fix bug.
66200
66201         * modules/mbsrchr-tests: New file.
66202         * tests/test-mbsrchr.sh: New file.
66203         * tests/test-mbsrchr.c: New file.
66204
66205 2007-02-11  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/mbschr.c (mbschr): Fix bug.
66208
66209         * modules/mbschr-tests: New file.
66210         * tests/test-mbschr.sh: New file.
66211         * tests/test-mbschr.c: New file.
66212         * m4/locale-zh.m4: New file.
66213
66214 2007-02-11  Bruno Haible  <bruno@clisp.org>
66215
66216         Support for copying multibyte string iterators.
66217         * lib/mbiter.h: Include <string.h>.
66218         (mbiter_multi_copy): New function.
66219         (mbi_copy): New macro.
66220         * lib/mbuiter.h: Include <string.h>.
66221         (mbuiter_multi_copy): New function.
66222         (mbui_copy): New macro.
66223
66224 2007-02-11  Bruno Haible  <bruno@clisp.org>
66225
66226         New module mbslen.
66227         * modules/mbslen: New file.
66228         * lib/mbslen.c: New file.
66229         * lib/string_.h (mbslen): New declaration.
66230         * m4/mbslen.m4: New file.
66231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66232         GNULIB_MBSLEN.
66233         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66234         * MODULES.html.sh (Internationalization functions): Add mbslen.
66235
66236 2007-02-11  Bruno Haible  <bruno@clisp.org>
66237
66238         Ensure O(n) worst-case complexity of strcasestr substitute.
66239         * lib/strcasestr.c: Include stdbool.h.
66240         (knuth_morris_pratt): New function.
66241         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66242         bookkeeping indicates that it's worth it.
66243         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66244
66245         * modules/strcasestr-tests: New file.
66246         * tests/test-strcasestr.c: New file.
66247
66248 2007-02-11  Bruno Haible  <bruno@clisp.org>
66249
66250         Ensure O(n) worst-case complexity of c_strcasestr.
66251         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66252         (knuth_morris_pratt): New function.
66253         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66254         the bookkeeping indicates that it's worth it.
66255         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66256
66257         * modules/c-strcasestr-tests: New file.
66258         * tests/test-c-strcasestr.c: New file.
66259
66260 2007-02-11  Bruno Haible  <bruno@clisp.org>
66261
66262         Ensure O(n) worst-case complexity of c_strstr.
66263         * lib/c-strstr.c: Include stdbool.h, string.h.
66264         (knuth_morris_pratt): New function.
66265         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66266         bookkeeping indicates that it's worth it.
66267         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66268
66269         * lib/c-strstr.c: Complete rewrite for maintainability.
66270
66271         * modules/c-strstr-tests: New file.
66272         * tests/test-c-strstr.c: New file.
66273
66274 2007-02-11  Bruno Haible  <bruno@clisp.org>
66275
66276         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66277         5.2.1 and earlier, whereby \055 was treated just like the range
66278         delimiter '-'.
66279         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66280
66281 2007-02-08  Bruno Haible  <bruno@clisp.org>
66282
66283         * modules/regex (Depends-on): Add stdbool.
66284         Reported by Dalibor Topic <robilad@kaffe.org>.
66285
66286 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
66289         Prefer returning from main to exiting from it.
66290         Remove unnecessary parens after sizeof.
66291
66292 2007-02-05  Bruno Haible  <bruno@clisp.org>
66293
66294         New module mbssep.
66295         * modules/mbssep: New file.
66296         * lib/mbssep.c: New file.
66297         * lib/string_.h (strsep): Add a conditional link warning.
66298         (mbssep): New declaration.
66299         * m4/mbssep.m4: New file.
66300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66301         GNULIB_MBSSEP.
66302         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66303         * MODULES.html.sh (Internationalization functions): Add mbssep.
66304
66305 2007-02-05  Bruno Haible  <bruno@clisp.org>
66306
66307         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66308         Optimize search in case of 1 delimiter.
66309
66310 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66311
66312         * lib/acl.h: Include sys/types.h before sys/acl.h.
66313
66314 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66315
66316         Merge upstream fix for glibc bugzilla #3957:
66317
66318         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66319
66320         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66321         bit for RE_HAT_LISTS_NOT_NEWLINE.
66322         (build_charclass_op): Remove bogus comment.
66323
66324 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66325
66326         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66327
66328 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66331         * lib/memmem.c [!defined _LIBC]: Include config.h.
66332
66333 2007-02-04  Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66336         warning message.
66337
66338 2007-02-04  Bruno Haible  <bruno@clisp.org>
66339
66340         New module mbstok_r.
66341         * modules/mbstok_r: New file.
66342         * lib/mbstok_r.c: New file.
66343         * lib/string_.h (strtok_r): Change argument names to match the
66344         comments. Add a conditional link warning.
66345         (mbstok_r): New declaration.
66346         * m4/mbstok_r.m4: New file.
66347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66348         GNULIB_MBSTOK_R.
66349         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66350         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66351
66352 2007-02-04  Bruno Haible  <bruno@clisp.org>
66353
66354         New module mbsspn.
66355         * modules/mbsspn: New file.
66356         * lib/mbsspn.c: New file.
66357         * lib/string_.h (strspn): Add a conditional link warning.
66358         (mbsspn): New declaration.
66359         * m4/mbsspn.m4: New file.
66360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66361         GNULIB_MBSSPN.
66362         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66363         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66364
66365 2007-02-04  Bruno Haible  <bruno@clisp.org>
66366
66367         New module mbspbrk.
66368         * modules/mbspbrk: New file.
66369         * lib/mbspbrk.c: New file.
66370         * lib/string_.h (strpbrk): Add a conditional link warning.
66371         (mbspbrk): New declaration.
66372         * m4/mbspbrk.m4: New file.
66373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66374         GNULIB_MBSPBRK.
66375         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66376         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66377
66378 2007-02-04  Bruno Haible  <bruno@clisp.org>
66379
66380         New module mbscspn.
66381         * modules/mbscspn: New file.
66382         * lib/mbscspn.c: New file.
66383         * lib/string_.h (strcspn): Add a conditional link warning.
66384         (mbscspn): New declaration.
66385         * m4/mbscspn.m4: New file.
66386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66387         GNULIB_MBSCSPN.
66388         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66389         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66390
66391 2007-02-04  Bruno Haible  <bruno@clisp.org>
66392
66393         New module mbscasestr, reduced goal of strcasestr.
66394         * modules/mbscasestr: New file.
66395         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66396         (mbscasestr): Renamed from strcasestr.
66397         * lib/strcasestr.c: Don't include mbuiter.h.
66398         (strcasestr): Remove support for multibyte locales.
66399         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66400         Change the conditional link warning.
66401         (mbscasestr): New declaration.
66402         * m4/mbscasestr.m4: New file.
66403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66404         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66405         REPLACE_STRCASESTR.
66406         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66408         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66409         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66410         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66411         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66412         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66413         (Depends-on): Remove mbuiter.
66414         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66415
66416 2007-02-04  Bruno Haible  <bruno@clisp.org>
66417
66418         Simplify handling of strncasecmp.
66419         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66420         the conditional link warning.
66421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66422         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66423         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66424         * modules/strcase (configure.ac): Don't invoke
66425         gl_STRING_MODULE_INDICATOR.
66426         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66427
66428 2007-02-04  Bruno Haible  <bruno@clisp.org>
66429
66430         New module mbscasecmp, reduced goal of strcasecmp.
66431         * modules/mbscasecmp: New file.
66432         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66433         (mbscasecmp): Renamed from strcasecmp.
66434         * lib/strcasecmp.c: Don't include mbuiter.h.
66435         (strcasecmp): Remove support for multibyte locales.
66436         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66437         Change the conditional link warning.
66438         (mbscasecmp): New declaration.
66439         * m4/mbscasecmp.m4: New file.
66440         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66441         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66442         REPLACE_STRCASECMP.
66443         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66445         GNULIB_MBSCASECMP.
66446         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66447         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66448         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66449         (Depends-on): Remove mbuiter.
66450         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66451
66452 2007-02-04  Bruno Haible  <bruno@clisp.org>
66453
66454         New module mbsstr. Remove module strstr.
66455         * modules/mbsstr: New file.
66456         * modules/strstr: Remove file.
66457         * lib/mbsstr.c: Renamed from lib/strstr.c.
66458         (mbsstr): Renamed from strstr.
66459         * lib/string_.h (strstr): Remove declaration. Change the conditional
66460         link warning.
66461         (mbsstr): New declaration.
66462         * m4/mbsstr.m4: New file.
66463         * m4/strstr.m4: Remove file.
66464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66465         REPLACE_STRSTR.
66466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66467         Don't initialize GNULIB_STRSTR.
66468         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66469         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66470         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66471         (Support for systems lacking ANSI C 89): Remove strstr.
66472
66473 2007-02-04  Bruno Haible  <bruno@clisp.org>
66474
66475         New module mbsrchr.
66476         * modules/mbsrchr: New file.
66477         * lib/mbsrchr.c: New file.
66478         * lib/string_.h (strrchr): Add a conditional link warning.
66479         (mbsrchr): New declaration.
66480         * m4/mbsrchr.m4: New file.
66481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66482         GNULIB_MBSRCHR.
66483         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66484         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66485
66486 2007-02-04  Bruno Haible  <bruno@clisp.org>
66487
66488         New module mbschr.
66489         * modules/mbschr: New file.
66490         * lib/mbschr.c: New file.
66491         * lib/string_.h (strchr): Add a conditional link warning.
66492         (mbschr): New declaration.
66493         * m4/mbschr.m4: New file.
66494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66495         GNULIB_MBSCHR.
66496         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66497         * MODULES.html.sh (Internationalization functions): Add mbschr.
66498
66499 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66502
66503         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66504
66505 2007-02-04  Bruno Haible  <bruno@clisp.org>
66506
66507         New module description section 'configure.ac-early'.
66508         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66509         (func_get_autoconf_early_snippet): New function.
66510         (func_import, func_create_testdir): Use it. Remove special cases for
66511         modules 'extensions' and 'lock'.
66512         * modules/extensions (configure.ac-early): Require
66513         gl_USE_SYSTEM_EXTENSIONS.
66514         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66515
66516 2007-02-04  Bruno Haible  <bruno@clisp.org>
66517
66518         Make use of gcj-4.3's -fsource and -ftarget option.
66519         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66520         and if so try the options -fsource and -ftarget.
66521         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66522         source_version, ftarget_option, target_version arguments.
66523         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66524         (is_envjavac_oldgcj_14_14_usable): Renamed from
66525         is_envjavac_gcj_14_14_usable.
66526         (is_envjavac_oldgcj_14_13_usable): Renamed from
66527         is_envjavac_gcj_14_13_usable.
66528         (is_gcj_present): Update.
66529         (is_gcj_43, is_gcj43_usable): New functions.
66530         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66531         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66532         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66533         try the options -fsource and -ftarget.
66534
66535 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66538         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66539         larger value.
66540
66541 2007-02-03  Jim Meyering  <jim@meyering.net>
66542
66543         Give tools a better chance to allocate space for very large buffers.
66544         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66545
66546         Make pwd and readlink work also when run with an unreadable parent dir
66547         on systems with openat support.
66548         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66549         provided getcwd function, even when we have openat support.
66550         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66551
66552 2007-02-02  Bruno Haible  <bruno@clisp.org>
66553
66554         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66555         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66556         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66557         portability problems if one of these functions is only used on specific
66558         platforms.
66559         Reported by Paul Eggert.
66560
66561 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66562
66563         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66564         is causing more trouble than it's curing.
66565         * lib/regex_internal.h (__mempcpy): Remove.
66566         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66567         (and make the code a tad smaller to boot).
66568         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66569
66570 2007-02-02  Jim Meyering  <jim@meyering.net>
66571
66572         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66573         section, not in the Makefile.am: one.
66574
66575 2007-02-02  Eric Blake  <ebb9@byu.net>
66576
66577         * lib/strchrnul.c: Always include config.h first.
66578
66579         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66580         gnulib strstr is not necessary here.
66581
66582 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66583
66584         * m4/socklen.m4: Fix typo.
66585
66586 2007-02-02  Eric Blake  <ebb9@byu.net>
66587
66588         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66589         * modules/netinet_in (Makefile.am): Likewise.
66590
66591 2007-02-01  Bruno Haible  <bruno@clisp.org>
66592
66593         * lib/string_.h (GL_LINK_WARNING): New macro.
66594         (strcasecmp, strstr, strcasestr): If provided by the system,
66595         conditionally define as a macro that leads to a warning instead of to
66596         an error.
66597         (strncasecmp): Conditionally define as a macro that leads to a warning.
66598
66599 2007-02-01  Karl Berry  <karl@gnu.org>
66600
66601         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66602
66603 2007-02-01  Bruno Haible  <bruno@clisp.org>
66604
66605         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66606         renamings.
66607
66608 2007-02-01  Eric Blake  <ebb9@byu.net>
66609
66610         * modules/regex (Depends-on): Revert dependence on mempcpy.
66611         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66612         module's definition of mempcpy.
66613         Reported by Paul Eggert.
66614
66615 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66616
66617         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66618         the symbol XYZ before redefining it.  This fixes a problem with
66619         programs that don't use XYZ, when compiled on systems that define
66620         XYZ to something else.
66621
66622 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66625         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66626         writeable to group or other and (2) is intended to have a special
66627         mode bit that is set or cleared.  In such a case, the directory
66628         should be neither group- nor other-writeable until the special
66629         mode bits are right.
66630
66631 2007-01-31  Eric Blake  <ebb9@byu.net>
66632
66633         * modules/mountlist (Depends-on): Add strstr.
66634
66635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66636         bug.
66637         * modules/string (Makefile.am): Remove redundant replacement.
66638         * modules/regex (Depends-on): Add mempcpy.
66639
66640 2007-01-31  Bruno Haible  <bruno@clisp.org>
66641
66642         New module description field 'Link'.
66643         * gnulib-tool (func_usage): Document --extract-link-directive.
66644         (sed_extract_prog): Recognize 'Link' directive.
66645         (func_get_link_directive): New function.
66646         (func_import): Show summary of link directives.
66647         Handle --extract-link-directive option.
66648         * modules/acl (Link): New section.
66649         * modules/clock-time (Link): New section.
66650         * modules/euidaccess (Link): New section.
66651         * modules/gettext (Link): New section.
66652         * modules/iconv (Link): New section.
66653         * modules/lock (Link): New section.
66654         * modules/nanosleep (Link): New section.
66655         * modules/readline (Link): New section.
66656
66657 2007-01-27  Bruno Haible  <bruno@clisp.org>
66658
66659         Enforce the use of gnulib modules for unportable <string.h> functions.
66660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66661         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66662         (gl_HEADER_STRING_H_BODY): Require it.
66663         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66664         the symbol XYZ to one that gives a link error.
66665         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66666         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66667         * modules/mempcpy (configure.ac): Likewise.
66668         * modules/memrchr (configure.ac): Likewise.
66669         * modules/stpcpy (configure.ac): Likewise.
66670         * modules/stpncpy (configure.ac): Likewise.
66671         * modules/strcase (configure.ac): Likewise.
66672         * modules/strcasestr (configure.ac): Likewise.
66673         * modules/strchrnul (configure.ac): Likewise.
66674         * modules/strdup (configure.ac): Likewise.
66675         * modules/strndup (configure.ac): Likewise.
66676         * modules/strnlen (configure.ac): Likewise.
66677         * modules/strpbrk (configure.ac): Likewise.
66678         * modules/strsep (configure.ac): Likewise.
66679         * modules/strstr (configure.ac): Likewise.
66680         * modules/strtok_r (configure.ac): Likewise.
66681
66682 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66683
66684         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66685
66686 2007-01-30  Jim Meyering  <jim@meyering.net>
66687
66688         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66689
66690 2007-01-29  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66693         * lib/execute.c: Likewise.
66694         * lib/pipe.c: Likewise.
66695         * lib/printf-args.h: Likewise.
66696         * lib/printf-args.c: Likewise.
66697         * lib/printf-parse.c: Likewise.
66698         * lib/vasnprintf.c: Likewise.
66699
66700 2007-01-29  Eric Blake  <ebb9@byu.net>
66701
66702         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66703         declaration.
66704
66705 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         * lib/strptime.h (strptime): Use 'restrict' for args where
66708         POSIX requires this.
66709         * lib/strptime.c (strptime): Likewise.
66710         Change license notice from LGPL to GPL, since gnulib-tool will
66711         change this as needed.
66712         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66713         defined.
66714         Include "strptime.h" first, to check interface.
66715         Do not #undef _LIBC and _NL_CURRENT.
66716         Do not include <stdlib.h>; no longer needed.
66717         Include "time_r.h" and declare ptime_locale_status
66718         only if _LIBC is not defined.
66719         (__P): Remove unused macro.
66720         (match_string): Bring back glibc version, but use it only if _LIBC
66721         is defined.
66722         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66723         Remove unnecessary assertion and abort() call.
66724         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66725         * m4/strptime.m4: Fix serial number comment.
66726         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66727         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66728         (Depends-on): Add time_r.
66729
66730 2007-01-29  Bruno Haible  <bruno@clisp.org>
66731
66732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66733         strptime.
66734         * modules/strptime (Depends-on): Add stdbool.
66735         * lib/strptime.h: Include <time.h> always. Add comments.
66736
66737 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66738
66739         * modules/strptime: New file.
66740         * lib/strptime.h: New file.
66741         * lib/strptime.c: New file.
66742         * m4/strptime.m4: New file.
66743
66744 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66745
66746         * MODULES.html.sh: New module mpsort.
66747         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66748
66749         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66750         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66752         All uses changed.
66753         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66754         All uses changed.
66755         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66756         to _Restrict_.
66757         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66758         the parameter matches the prototype.
66759
66760 2007-01-28  Jim Meyering  <jim@meyering.net>
66761
66762         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66763         sys/time.h here, reverting that part of the previous patch:
66764         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66765
66766 2007-01-28  Bruno Haible  <bruno@clisp.org>
66767
66768         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66769         value of $(SYS_TIME_H).
66770         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66771         remove it conditionally, too. [added by Jim Meyering]
66772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66774         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66775         GETTIMEOFDAY_REPLACEMENT to 1.
66776
66777 2007-01-28  Bruno Haible  <bruno@clisp.org>
66778
66779         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66780         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66782         Set UNISTD_H instead of UNISTD_H2.
66783         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66784
66785 2007-01-28  Bruno Haible  <bruno@clisp.org>
66786
66787         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66788         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66789
66790 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66791
66792         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66793         (func_create_testdir): Ensure C locale for `grep' and `tr'
66794         character ranges.
66795         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66796         ACLOCAL_AMFLAGS parsing state machine.
66797
66798 2007-01-27  Bruno Haible  <bruno@clisp.org>
66799
66800         * modules/unistr/base: Update.
66801
66802 2007-01-27  Bruno Haible  <bruno@clisp.org>
66803
66804         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66805         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66806         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66807         modules/unistr/u32-mbtouc.
66808         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66809         * lib/unistr.h: Update.
66810         * lib/linebreak.c: Update.
66811         * modules/unistr/u32-mbtouc: Renamed from
66812         modules/unistr/u32-mbtouc-safe.
66813         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66814         * lib/unistr.h: Update.
66815         * lib/unistr/u32-to-u8.c: Update.
66816         * lib/unistr/u32-to-u16.c: Update.
66817
66818 2007-01-27  Bruno Haible  <bruno@clisp.org>
66819
66820         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66821         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66822         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66823         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66824         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66825         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66826         modules/unistr/u16-mbtouc.
66827         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66828         * lib/unistr.h: Update.
66829         * lib/linebreak.c: Update.
66830         * modules/linebreak: Update.
66831         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66832         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66833         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66834         * modules/unistr/u16-mbtouc: Renamed from
66835         modules/unistr/u16-mbtouc-safe.
66836         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66837         * lib/unistr.h: Update.
66838         * lib/unistr/u16-to-u8.c: Update.
66839         * modules/unistr/u16-to-u8: Update.
66840         * lib/unistr/u16-to-u32.c: Update.
66841         * modules/unistr/u16-to-u32: Update.
66842
66843 2007-01-27  Bruno Haible  <bruno@clisp.org>
66844
66845         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66846         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66847         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66848         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66849         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66850         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66851         modules/unistr/u8-mbtouc.
66852         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66853         * lib/unistr.h: Update.
66854         * lib/striconveh.c: Update.
66855         * modules/striconveh: Update.
66856         * lib/linebreak.c: Update.
66857         * modules/linebreak: Update.
66858         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66859         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66860         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66861         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66862         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66863         * lib/unistr.h: Update.
66864         * lib/striconveh.c: Update.
66865         * modules/striconveh: Update.
66866         * lib/unistr/u8-to-u16.c: Update.
66867         * modules/unistr/u8-to-u16: Update.
66868         * lib/unistr/u8-to-u32.c: Update.
66869         * modules/unistr/u8-to-u32: Update.
66870
66871 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66872
66873         Sync from Libtool.
66874         * lib/argz.c: Do not include strings.h nor memory.h, include
66875         string.h unconditionally.  Patch by Simon Josefsson.
66876
66877 2007-01-27  Bruno Haible  <bruno@clisp.org>
66878
66879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66880         from gl_HEADER_STRING_H_BODY.
66881         (gl_HEADER_STRING_H_BODY): Require it.
66882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66885         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66887         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66889         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66890         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66891         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66892         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66893         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66894         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66896         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66897
66898 2007-01-27  Bruno Haible  <bruno@clisp.org>
66899
66900         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66901         check_PROGRAMS into noinst_PROGRAMS.
66902         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66903         check_PROGRAMS in this case.
66904         (func_import): Set for_test to false.
66905         (func_create_testdir): Set for_test to true.
66906
66907 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66908             Bruno Haible  <bruno@clisp.org>
66909
66910         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66911         (Depends-on): Add string.
66912         (Includes): Use <string.h> instead of strcasestr.h.
66913         * modules/string (Makefile.am): Also substitute the value of
66914         REPLACE_STRCASESTR.
66915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66916         assume strcasestr is declared in <string.h> not <strings.h>. Also
66917         set REPLACE_STRCASESTR.
66918         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66919         REPLACE_STRCASESTR.
66920         * lib/strcasestr.h: Remove file.
66921         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66922         * lib/string_.h (strcasestr): New declaration.
66923
66924 2007-01-27  Bruno Haible  <bruno@clisp.org>
66925
66926         * lib/string_.h: Use 'extern'.
66927
66928 2007-01-27  Jim Meyering  <jim@meyering.net>
66929
66930         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66931         of set-but-not-used local, "q".
66932
66933         * lib/mempcpy.c: Include <config.h> before <string.h>.
66934         This fixes a compilation error on HP-UX, due to the system's
66935         "restrict"-using mempcpy prototype.
66936
66937 2007-01-26  Bruno Haible  <bruno@clisp.org>
66938
66939         Small optimization.
66940         * lib/javacomp.c: Include c-strstr.h.
66941          (is_envjavac_gcj): Use c_strstr instead of strstr.
66942         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66943
66944 2007-01-26  Bruno Haible  <bruno@clisp.org>
66945
66946         * MODULES.html.sh (Unicode string functions): Add the new modules.
66947
66948         * modules/uniconv/u32-strconv-to-locale: New file.
66949         * lib/uniconv/u32-strconv-to-locale.c: New file.
66950
66951         * modules/uniconv/u16-strconv-to-locale: New file.
66952         * lib/uniconv/u16-strconv-to-locale.c: New file.
66953
66954         * modules/uniconv/u8-strconv-to-locale: New file.
66955         * lib/uniconv/u8-strconv-to-locale.c: New file.
66956
66957         * modules/uniconv/u32-strconv-from-locale: New file.
66958         * lib/uniconv/u32-strconv-from-locale.c: New file.
66959
66960         * modules/uniconv/u16-strconv-from-locale: New file.
66961         * lib/uniconv/u16-strconv-from-locale.c: New file.
66962
66963         * modules/uniconv/u8-strconv-from-locale: New file.
66964         * lib/uniconv/u8-strconv-from-locale.c: New file.
66965
66966         * modules/uniconv/u32-strconv-to-enc: New file.
66967         * lib/uniconv/u32-strconv-to-enc.c: New file.
66968         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66969         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66970
66971         * modules/uniconv/u16-strconv-to-enc: New file.
66972         * lib/uniconv/u16-strconv-to-enc.c: New file.
66973         * lib/uniconv/u-strconv-to-enc.h: New file.
66974         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66975         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66976
66977         * modules/uniconv/u8-strconv-to-enc: New file.
66978         * lib/uniconv/u8-strconv-to-enc.c: New file.
66979         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66980         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66981
66982         * modules/uniconv/u32-strconv-from-enc: New file.
66983         * lib/uniconv/u32-strconv-from-enc.c: New file.
66984         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66985         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66986
66987         * modules/uniconv/u16-strconv-from-enc: New file.
66988         * lib/uniconv/u16-strconv-from-enc.c: New file.
66989         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66990         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66991
66992         * modules/uniconv/u8-strconv-from-enc: New file.
66993         * lib/uniconv/u8-strconv-from-enc.c: New file.
66994         * lib/uniconv/u-strconv-from-enc.h: New file.
66995         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66996         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66997
66998         * modules/uniconv/u32-conv-from-enc: New file.
66999         * lib/uniconv/u32-conv-from-enc.c: New file.
67000         * modules/uniconv/u32-conv-from-enc-tests: New file.
67001         * tests/uniconv/test-u32-conv-from-enc.c: New file.
67002
67003         * modules/uniconv/u16-conv-from-enc: New file.
67004         * lib/uniconv/u16-conv-from-enc.c: New file.
67005         * lib/uniconv/u-conv-from-enc.h: New file.
67006         * modules/uniconv/u16-conv-from-enc-tests: New file.
67007         * tests/uniconv/test-u16-conv-from-enc.c: New file.
67008
67009         * modules/uniconv/u8-conv-from-enc: New file.
67010         * lib/uniconv/u8-conv-from-enc.c: New file.
67011         * modules/uniconv/u8-conv-from-enc-tests: New file.
67012         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67013
67014         * modules/uniconv/base: New file.
67015         * lib/uniconv.h: New file.
67016
67017 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * doc/gnulib-tool.texi (Initial import): Update to match current
67020         behavior with strdup module.
67021         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67022         * lib/memmem.h: Remove; all uses removed.  This is now done
67023         by <string.h>.
67024         * lib/mempcpy.h: Likewise.
67025         * lib/memrchr.h: Likewise.
67026         * lib/stpcpy.h: Likewise.
67027         * lib/stpncpy.h: Likewise.
67028         * lib/strcase.h: Likewise.
67029         * lib/strchrnul.h: Likewise.
67030         * lib/strdup.h: Likewise.
67031         * lib/strndup.h: Likewise.
67032         * lib/strnlen.h: Likewise.
67033         * lib/strpbrk.h: Likewise.
67034         * lib/strsep.h: Likewise.
67035         * lib/strstr.h: Likewise.
67036         * lib/strtok_r.h: Likewise.
67037         * lib/string_.h: New file.
67038         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67039         Rely on <string.h> instead.
67040         * lib/canon-host.c: Likewise.
67041         * lib/chdir-long.c: Likewise.
67042         * lib/concatpath.c: Likewise.
67043         * lib/exclude.c: Likewise.
67044         * lib/fchdir.c: Likewise.
67045         * lib/getaddrinfo.c: Likewise.
67046         * lib/getcwd.c: Likewise.
67047         * lib/getsubopt.c: Likewise.
67048         * lib/glob.c: Likewise.
67049         * lib/hard-locale.c: Likewise.
67050         * lib/iconvme.c: Likewise.
67051         * lib/javacomp.c: Likewise.
67052         * lib/mempcpy.c: Likewise.
67053         * lib/memrchr.c: Likewise.
67054         * lib/regex_internal.h: Likewise.
67055         * lib/stpncpy.c: Likewise.
67056         * lib/strcasecmp.c: Likewise.
67057         * lib/strchrnul.c: Likewise.
67058         * lib/strdup.c: Likewise.
67059         * lib/striconv.c: Likewise.
67060         * lib/striconveh.c: Likewise.
67061         * lib/striconveha.c: Likewise.
67062         * lib/strncasecmp.c: Likewise.
67063         * lib/strndup.c: Likewise.
67064         * lib/strnlen.c: Likewise.
67065         * lib/strsep.c: Likewise.
67066         * lib/strstr.c: Likewise.
67067         * lib/strtok_r.c: Likewise.
67068         * lib/userspec.c: Likewise.
67069         * lib/w32spawn.h: Likewise.
67070         * lib/xstrndup.c: Likewise.
67071         * lib/mountlist.c (strstr): Remove decl.
67072         * m4/string_h.m4: New file.
67073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67074         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67076         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67077         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67078         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67079         Set REPLACE_STRCASECMP if necessary.
67080         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67081         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67082         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67083         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67084         HAVE_DECL_STRDUP if necessary.
67085         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67086         since gl_FUNC_STRNDUP does that now.
67087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67088         Check for decl here...
67089         (gl_PREREQ_STRNLEN): ... not here.
67090         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67091         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67092         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67094         necessary.
67095         * modules/string: New file.
67096         * modules/memmem (Files): Remove special-purpose include file.
67097         (Depends-on): Add string.
67098         (Include): Include <string.h>, not the removed file.
67099         * modules/mempcpy: Likewise.
67100         * modules/memrchr: Likewise.
67101         * modules/stpcpy: Likewise.
67102         * modules/stpncpy: Likewise.
67103         * modules/strcase: Likewise.
67104         * modules/strchrnul: Likewise.
67105         * modules/strdup: Likewise.
67106         * modules/strndup: Likewise.
67107         * modules/strnlen: Likewise.
67108         * modules/strpbrk: Likewise.
67109         * modules/strsep: Likewise.
67110         * modules/strstr: Likewise.
67111         * modules/strtok_r: Likewise.
67112         * tests/test-dirname.c: Don't include "strdup.h", since
67113         <string.h> now suffices.
67114         * tests/test-memmem.c: Don't include "memmem.h", since
67115         <string.h> now suffices.
67116
67117 2007-01-25  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67120         *resultp is 0.
67121
67122         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67123         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67124         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67125         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67126
67127         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67128         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67129         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67130         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67131         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67132         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67133
67134 2007-01-24  Bruno Haible  <bruno@clisp.org>
67135
67136         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67138         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67139         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67140         gl_FUNC_FTS_CORE.
67141         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67142         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67144         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67145         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67146         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67147         gl_FUNC_FCHOWNAT.
67148         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67149         gl_FUNC_STRFTIME.
67150         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67151         Reported by Ralf Wildenhues.
67152
67153 2007-01-24  Bruno Haible  <bruno@clisp.org>
67154
67155         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67156         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67157         gl_GETADDRINFO.
67158         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67159         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67160         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67161
67162 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67165         Don't use 'exit'; just return from 'main'.
67166         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67167
67168         * lib/fnmatch_.h: Readjust white space and comments to match
67169         glibc, to avoid spurious diffs.
67170
67171 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67172
67173         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67174         2004-12-01 change by Jakub Jelinek, since this code won't compile
67175         if !LIBC.  Problem reported by Bob Proulx.
67176
67177 2007-01-23  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/striconveh.c: Include c-strcaseeq.h.
67180         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67181         * modules/striconveh (Depends-on): Add c-strcaseeq.
67182
67183 2007-01-23  Bruno Haible  <bruno@clisp.org>
67184
67185         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67186
67187         * modules/c-strcaseeq: New file.
67188         * lib/c-strcaseeq.h: New file.
67189
67190         * modules/streq: New file.
67191         * lib/streq.h: New file.
67192
67193 2007-01-23  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/striconveha-tests: New file.
67196         * tests/test-striconveha.c: New file.
67197
67198         * lib/striconveha.h: Include <stdbool.h>.
67199         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67200         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67201         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67202         (mem_iconveha): New function.
67203         (str_iconveha_notranslit): Renamed from str_iconveha.
67204         (str_iconveha): New function.
67205         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67206         c-strcase.
67207
67208 2007-01-23  Bruno Haible  <bruno@clisp.org>
67209
67210         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67211         encodings without forgiving before trying any encoding with handler.
67212         (str_iconveha): Try all encodings without forgiving before trying any
67213         encoding with handler.
67214
67215 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67216
67217         Import the following changes from libc.
67218
67219         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67220
67221         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67222
67223         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67224
67225         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67226         normal_bracket label.
67227
67228         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67229
67230         [BZ #361]
67231         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67232         to normal_bracket after fetching the next character.
67233
67234 2007-01-22  Bruno Haible  <bruno@clisp.org>
67235
67236         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67237         argument.
67238         * lib/striconveh.c (iconv_carefully_1): New function.
67239         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67240         argument.
67241         (str_cd_iconveh): Update.
67242         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67243         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67244         * tests/test-striconveh.c (MAGIC): New macro.
67245         (new_offsets): New function.
67246         (main): Test call with and without offsets.
67247
67248 2007-01-22  Bruno Haible  <bruno@clisp.org>
67249
67250         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67251         * modules/sys_select (Makefile.am): Likewise.
67252         * modules/sys_socket (Makefile.am): Likewise.
67253         * modules/sys_time (Makefile.am): Likewise.
67254
67255 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * modules/gettimeofday (License): Change from GPL to LGPL, since
67258         gettimeofday is a library function.
67259
67260 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67261
67262         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67263
67264 2007-01-21  Bruno Haible  <bruno@clisp.org>
67265
67266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67267
67268 2007-01-21  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/striconveha: New file.
67271         * lib/striconveha.h: New file.
67272         * lib/striconveha.c: New file.
67273         * MODULES.html.sh (Internationalization functions): Add striconveha.
67274         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67275         string.
67276         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67277
67278 2007-01-21  Bruno Haible  <bruno@clisp.org>
67279
67280         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67281         * lib/striconveh.c (str_iconveh): Likewise.
67282
67283 2007-01-21  Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/striconveh.h (mem_iconveh): New declaration.
67286         * lib/striconveh.c (mem_iconveh): New function.
67287         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67288
67289 2007-01-21  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
67292
67293         * lib/striconveh.h (mem_cd_iconveh): Change specification.
67294         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
67295         original result buffer.
67296         (str_cd_iconveh): Update.
67297         * tests/test-striconveh.c (main): Update.
67298
67299         * lib/striconv.h (mem_cd_iconv): Change specification.
67300         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67301         result buffer.
67302         (str_cd_iconv): Update.
67303         * tests/test-striconv.c (main): Update.
67304
67305 2007-01-21  Bruno Haible  <bruno@clisp.org>
67306
67307         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67308
67309 2007-01-20  Jim Meyering  <jim@meyering.net>
67310
67311         * lib/userspec.c (parse_with_separator): If a user or group string
67312         starts with "+", skip the corresponding name-to-ID look-up, since
67313         such a look-up must fail: user and group names may not include "+".
67314
67315 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67316
67317         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67318         since we now assume the sys_time module.
67319         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67320         check for sys/time.h; no longer needed.
67321         * modules/poll (Depends-on): Depend on sys_time.
67322
67323 2007-01-18  Bruno Haible  <bruno@clisp.org>
67324
67325         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67326         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67327
67328         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67329         gettimeofday.
67330
67331         * tests/test-gettimeofday.c: Include <time.h>.
67332         (dummy): Remove variable.
67333
67334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67335         gl_HEADER_SYS_TIME_H.
67336         (gl_HEADER_SYS_TIME_H): New macro.
67337
67338         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67339         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67341         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67342         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67344         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67345         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67346         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67347         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67348         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67349
67350         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67351         last change; it caused a compilation error when cross-compiling to
67352         Cygwin.
67353
67354 2007-01-18  Jim Meyering  <jim@meyering.net>
67355
67356         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67357         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67358         than the race-prone "test -d sys || mkdir sys".
67359         (configure.ac): Use AC_PROG_MKDIR_P.
67360         * modules/sys_select: Likewise.
67361         * modules/sys_socket: Likewise.
67362         * modules/sys_time: Likewise.
67363
67364 2007-01-18  Eric Blake  <ebb9@byu.net>
67365
67366         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67367         replace gettimeofday.
67368         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67369         name, to avoid infinite recursion.
67370
67371 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67374         module sys_time.
67375         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67376         assume timespec.h defines struct timeval.
67377         * lib/settime.c: Likewise.
67378         * lib/utimens.c: Likewise.
67379         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67380         since we now assume the gettimeofday module.
67381         * lib/tempname.c (__gen_tempname): Likewise.
67382         * lib/gettimeofday.h: Remove.
67383         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67384         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67385         Include <time.h>, for 'time()'.
67386         (localtime_buffer_addr): Also use this workaround if
67387         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67388         to simplify the uses.  All uses changed.
67389         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67390         that #undef is inside {}, and 'const' follows type name consistently.
67391         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67392         (gettimeofday): Do not use the maximum possible value for
67393         tv->tv_usec, since that might break usages other than ls.c.
67394         Instead, we'll leave ls.c alone.  This undoes today's patch
67395         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67396         we've never observed the problem but might as well keep the
67397         canary.
67398         * lib/nanosleep.c: Include timespec.h first, for interface check.
67399         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67400         now assume the sys_time module.
67401         * lib/tempname.c: Likewise.
67402         * lib/timespec.h: Likewise.
67403         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67404         needed.
67405         * lib/strftime.c: Likewise.
67406         * lib/timespec.h: Likewise.
67407         * lib/posixtm.c: Include posixtm.h first, for interface check.
67408         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67409         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67410         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67411         * lib/sys_time_.h: New file.
67412         * lib/timespec.h (struct timespec): Use long int, not long.
67413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67414         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67415         Remove obsolescent call to AC_HEADER_TIME.
67416         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67418         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67419         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67420         Likewise.
67421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67422         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67424         into the sys_time module.  Check for gettimeofday just once.
67425         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67426         for gettimeofday signature to just check the signature.  Merely
67427         compile it, since linking doesn't test signature.  Improve test for
67428         whether gettimeofday.o is actually needed.
67429         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67430         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67431         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67432         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67433         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67434         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67435         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67436         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67437         than worrying about sys/time.h.
67438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67439         Don't bother worrying about TIME_WITH_SYS_TIME.
67440         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67441         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67442         * m4/sys_time_h.m4: New file.
67443         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67444         Don't include sys/time.h.  Return from main rather than exiting.
67445         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67446         all uses changed.
67447         * modules/gethrxtime (Depends-on): Add sys_time.
67448         * modules/gettime (Depends-on): Likewise.
67449         * modules/gettimeofday (Depends-on): Likewise.
67450         * modules/nanosleep (Depends-on): Likewise.
67451         * modules/settime (Depends-on): Likewise.
67452         * modules/tempname (Depends-on): Likewise.
67453         * modules/utimens (Depends-on): Likewise.
67454         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67455         (Include): Change back to <sys/time.h>.
67456         (Maintainer): Add self.
67457         * modules/sys_time: New file.
67458         * modules/tempname (Depends-on): Add gettimeofday.
67459         * tests/test-gettimeofday.c: Include <sys/time.h>
67460         rather than gettimeofday.h.
67461
67462 2007-01-17  Bruno Haible  <bruno@clisp.org>
67463
67464         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67465         the license default to GPL.
67466         (func_create_testdir): Don't complain if a module is LGPL and its
67467         tests module depends on GPLed modules.
67468
67469 2007-01-17  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/gettimeofday.c (gettimeofday): Add code for the case
67472         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67473         maximum possible value for tv->tv_usec, rather than the minimum one.
67474
67475 2005-10-08  Martin Lambers  <marlam@marlam.de>
67476 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67477 2007-01-16  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67480         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67481         gl_FUNC_GETTIMEOFDAY.
67482         (Include): Add gettimeofday.h.
67483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67484         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67485         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67486         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67487         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67488         * lib/gettimeofday.h: New file.
67489         * lib/gettimeofday.c: Include <sys/timeb.h>.
67490         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67491         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67492         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67493         fall back on time().
67494
67495         * tests/test-gettimeofday.c: New file.
67496         * modules/gettimeofday-tests: New file.
67497
67498 2007-01-16  Eric Blake  <ebb9@byu.net>
67499
67500         * modules/fnmatch (Depends-on): Depend on wchar.
67501         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67502         * m4/fnmatch.m4: Likewise.
67503         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67504         * m4/mbchar.m4: Likewise.
67505         * modules/mbswidth (Depends-on): Depend on wchar.
67506         * lib/mbswidth.c: Assume <wchar.h>.
67507         * m4/mbswidth.m4: Likewise.
67508         * modules/quotearg (Depends-on): Depend on wchar.
67509         * lib/quotearg.c: Assume <wchar.h>.
67510         * m4/quotearg.m4: Likewise.
67511         * modules/regex (Depends-on): Depend on wchar.
67512         * lib/regex_internal.h: Assume <wchar.h>.
67513         * m4/regex.m4: Likewise.
67514         * modules/stdint (Depends-on): Depend on wchar.
67515         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67516         * m4/stdint.m4: Likewise.
67517         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67518         * modules/strftime (Depends-on): Depend on wchar.
67519         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67520         * modules/strtol (Depends-on): Depend on wchar.
67521         * lib/strtol.c: Assume <wchar.h>.
67522         * modules/wcwidth (Depends-on): Depend on wchar.
67523         * lib/wcwidth.h: Assume <wchar.h>.
67524         * m4/wcwidth.m4: Likewise.
67525
67526 2007-01-16  Bruno Haible  <bruno@clisp.org>
67527
67528         * modules/csharpexec-script: New, created from...
67529         * modules/csharpexec: ... this.
67530
67531 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67532
67533         * modules/javaexec-script: New, created from...
67534         * modules/javaexec: ... this.
67535
67536 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67537
67538         * modules/poll (Dependencies): Add sys_select.
67539
67540 2007-01-15  Jim Meyering  <jim@meyering.net>
67541
67542         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67543         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67544         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67545         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67546
67547 2007-01-15  Bruno Haible  <bruno@clisp.org>
67548
67549         * modules/striconveh: New file.
67550         * lib/striconveh.h: New file.
67551         * lib/striconveh.c: New file.
67552         * MODULES.html.sh (Internationalization functions): Add striconveh.
67553
67554         * modules/striconveh-tests: New file.
67555         * tests/test-striconveh.c: New file.
67556
67557 2007-01-15  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67560         not from GNU libiconv or GNU libc.
67561
67562 2007-01-15  Bruno Haible  <bruno@clisp.org>
67563
67564         * doc/gnulib-intro.texi (Copyright): Explain the different license
67565         terms for module descriptions, autoconf macros, tests, documentation.
67566
67567 2007-01-14  Bruno Haible  <bruno@clisp.org>
67568
67569         * modules/striconv-tests: New file.
67570         * tests/test-striconv.c: New file.
67571
67572 2007-01-14  Bruno Haible  <bruno@clisp.org>
67573
67574         * modules/iconv-tests: New file.
67575         * tests/test-iconv.c: New file.
67576
67577 2007-01-14  Bruno Haible  <bruno@clisp.org>
67578
67579         * gnulib-tool (func_get_license): For test modules, use the license of
67580         the main module.
67581
67582 2007-01-14  Bruno Haible  <bruno@clisp.org>
67583
67584         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67585         if iconv is found to exist.
67586
67587 2007-01-14  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/c-ctype-tests: New file.
67590         * tests/test-c-ctype.c: New file.
67591
67592 2007-01-14  Bruno Haible  <bruno@clisp.org>
67593
67594         * modules/binary-io-tests: New file.
67595         * tests/test-binary-io.sh: New file.
67596         * tests/test-binary-io.c: New file.
67597
67598 2007-01-14  Bruno Haible  <bruno@clisp.org>
67599
67600         * modules/array-oset-tests: New file.
67601         * tests/test-array_oset.c: New file.
67602
67603 2007-01-14  Bruno Haible  <bruno@clisp.org>
67604
67605         * modules/array-list-tests: New file.
67606         * tests/test-array_list.c: New file.
67607
67608 2007-01-14  Bruno Haible  <bruno@clisp.org>
67609
67610         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67611         and make.
67612         Reported by Simon Josefsson in
67613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67614
67615 2007-01-14  Bruno Haible  <bruno@clisp.org>
67616
67617         * modules/allocsa-tests: New file.
67618         * tests/test-allocsa.c: New file.
67619
67620 2007-01-14  Bruno Haible  <bruno@clisp.org>
67621
67622         * modules/fchdir (Depends-on): Add absolute-header.
67623         * modules/unistd (Depends-on): Likewise.
67624
67625 2006-12-30  Bruno Haible  <bruno@clisp.org>
67626
67627         * modules/fchdir: New file.
67628         * modules/unistd (Files): Add lib/unistd_.h.
67629         (Makefile.am): Generate unistd.h from unistd_.h.
67630         * lib/fchdir.c: New file.
67631         * lib/dirent_.h: New file.
67632         * lib/unistd_.h: New file.
67633         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67634         * m4/fchdir.m4: New file.
67635         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67636         (gl_HEADER_UNISTD): Invoke it.
67637         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67638         function.
67639         * lib/backupfile.c (opendir, closedir): Undefine.
67640         * lib/chown.c (open, close): Undefine.
67641         * lib/clean-temp.c (open, close): Undefine.
67642         * lib/copy-file.c (open, close): Undefine.
67643         * lib/execute.c (open, close): Undefine.
67644         * lib/fsusage.c (open, close): Undefine.
67645         * lib/gc-gnulib.c (open, close): Undefine.
67646         * lib/getcwd.c (opendir, closedir): Undefine.
67647         * lib/glob.c (opendir, closedir): Undefine.
67648         * lib/javacomp.c (open, close): Undefine.
67649         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67650         * lib/openat-proc.c (open, close): Undefine.
67651         * lib/pagealign_alloc.c (open, close): Undefine.
67652         * lib/pipe.c (open, close): Undefine.
67653         * lib/progreloc.c (open, close): Undefine.
67654         * lib/savedir.c (opendir, closedir): Undefine.
67655         * lib/utime.c (open, close): Undefine.
67656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67657
67658 2007-01-10  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67661
67662 2007-01-12  Eric Blake  <ebb9@byu.net>
67663
67664         Provide a robust <wchar.h>.  Further simplifications are now
67665         possible in other modules, but not included here.
67666         * modules/wchar: New module.
67667         * m4/wchar.m4: New file.
67668         * lib/wchar_.h: Likewise.
67669         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67670         of the new module.
67671         * MODULES.html.sh (Extended multibyte and wide character utilities):
67672         New section.
67673
67674 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67675
67676         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67677         to a reasonable default for memory allocation.
67678         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67679         file system that reports garbage st_size values for symlinks.
67680         Problem reported by Liyang Hu.
67681
67682 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67683
67684         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67685         Emacs .#* auto-save files).
67686
67687 2007-01-11  Bruno Haible  <bruno@clisp.org>
67688
67689         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67690         directory.
67691
67692 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67693
67694         Use @...@ consistently in lib/wctype_.h.
67695         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67696         on it being set to 1 or 0.
67697         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67698         go back to AC_SUBSTing it.
67699         * modules/wctype (Makefile.am): Undo previous change.
67700
67701 2007-01-10  Eric Blake  <ebb9@byu.net>
67702
67703         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67704         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67705         * modules/wctype (Makefile.am): Likewise.
67706         Reported by Chris McGuire.
67707
67708 2007-01-10  Jim Meyering  <jim@meyering.net>
67709
67710         fts.c: a small readability/maintainability improvement
67711         * lib/fts.c (fts_read): Make this code slightly more readable and
67712         maintainable by hoisting the "sp->fts_cur = p" assignments to
67713         immediately follow the statements that set P.  Derived from
67714         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67715
67716 2007-01-10  Eric Blake  <ebb9@byu.net>
67717
67718         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67719         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67721         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67722         Reported by Chris McGuire.
67723
67724 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67725
67726         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67727         in sed script.
67728
67729 2007-01-09  Bruno Haible  <bruno@clisp.org>
67730
67731         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67732         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67733         variables.
67734         (func_module): Use them.
67735
67736 2007-01-09  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/unistr/base: New file.
67739         * lib/unistr.h: New file.
67740
67741         * modules/unistr/u8-to-u16: New file.
67742         * lib/unistr/u8-to-u16.c: New file.
67743
67744         * modules/unistr/u8-to-u32: New file.
67745         * lib/unistr/u8-to-u32.c: New file.
67746
67747         * modules/unistr/u16-to-u8: New file.
67748         * lib/unistr/u16-to-u8.c: New file.
67749
67750         * modules/unistr/u16-to-u32: New file.
67751         * lib/unistr/u16-to-u32.c: New file.
67752
67753         * modules/unistr/u32-to-u8: New file.
67754         * lib/unistr/u32-to-u8.c: New file.
67755
67756         * modules/unistr/u32-to-u16: New file.
67757         * lib/unistr/u32-to-u16.c: New file.
67758
67759         * modules/unistr/u8-check: New file.
67760         * modules/unistr/u16-check: New file.
67761         * modules/unistr/u32-check: New file.
67762         * lib/unistr/u8-check.c: New file.
67763         * lib/unistr/u16-check.c: New file.
67764         * lib/unistr/u32-check.c: New file.
67765
67766         * modules/unistr/u8-chr: New file.
67767         * modules/unistr/u16-chr: New file.
67768         * modules/unistr/u32-chr: New file.
67769         * lib/unistr/u8-chr.c: New file.
67770         * lib/unistr/u16-chr.c: New file.
67771         * lib/unistr/u32-chr.c: New file.
67772
67773         * modules/unistr/u8-cmp: New file.
67774         * modules/unistr/u16-cmp: New file.
67775         * modules/unistr/u32-cmp: New file.
67776         * lib/unistr/u8-cmp.c: New file.
67777         * lib/unistr/u16-cmp.c: New file.
67778         * lib/unistr/u32-cmp.c: New file.
67779
67780         * modules/unistr/u8-cpy: New file.
67781         * modules/unistr/u16-cpy: New file.
67782         * modules/unistr/u32-cpy: New file.
67783         * lib/unistr/u8-cpy.c: New file.
67784         * lib/unistr/u16-cpy.c: New file.
67785         * lib/unistr/u32-cpy.c: New file.
67786         * lib/unistr/u-cpy.h: New file.
67787
67788         * modules/unistr/u8-cpy-alloc: New file.
67789         * modules/unistr/u16-cpy-alloc: New file.
67790         * modules/unistr/u32-cpy-alloc: New file.
67791         * lib/unistr/u8-cpy-alloc.c: New file.
67792         * lib/unistr/u16-cpy-alloc.c: New file.
67793         * lib/unistr/u32-cpy-alloc.c: New file.
67794         * lib/unistr/u-cpy-alloc.h: New file.
67795
67796         * modules/unistr/u8-endswith: New file.
67797         * modules/unistr/u16-endswith: New file.
67798         * modules/unistr/u32-endswith: New file.
67799         * lib/unistr/u8-endswith.c: New file.
67800         * lib/unistr/u16-endswith.c: New file.
67801         * lib/unistr/u32-endswith.c: New file.
67802         * lib/unistr/u-endswith.h: New file.
67803
67804         * modules/unistr/u8-mblen: New file.
67805         * modules/unistr/u16-mblen: New file.
67806         * modules/unistr/u32-mblen: New file.
67807         * lib/unistr/u8-mblen.c: New file.
67808         * lib/unistr/u16-mblen.c: New file.
67809         * lib/unistr/u32-mblen.c: New file.
67810
67811         * modules/unistr/u8-mbtouc: New file.
67812         * modules/unistr/u16-mbtouc: New file.
67813         * modules/unistr/u32-mbtouc: New file.
67814         * lib/unistr/u8-mbtouc.c: New file.
67815         * lib/unistr/u16-mbtouc.c: New file.
67816         * lib/unistr/u32-mbtouc.c: New file.
67817
67818         * modules/unistr/u8-mbtouc-safe: New file.
67819         * modules/unistr/u16-mbtouc-safe: New file.
67820         * modules/unistr/u32-mbtouc-safe: New file.
67821         * lib/unistr/u8-mbtouc-safe.c: New file.
67822         * lib/unistr/u16-mbtouc-safe.c: New file.
67823         * lib/unistr/u32-mbtouc-safe.c: New file.
67824
67825         * modules/unistr/u8-move: New file.
67826         * modules/unistr/u16-move: New file.
67827         * modules/unistr/u32-move: New file.
67828         * lib/unistr/u8-move.c: New file.
67829         * lib/unistr/u16-move.c: New file.
67830         * lib/unistr/u32-move.c: New file.
67831         * lib/unistr/u-move.h: New file.
67832
67833         * modules/unistr/u8-next: New file.
67834         * modules/unistr/u16-next: New file.
67835         * modules/unistr/u32-next: New file.
67836         * lib/unistr/u8-next.c: New file.
67837         * lib/unistr/u16-next.c: New file.
67838         * lib/unistr/u32-next.c: New file.
67839
67840         * modules/unistr/u8-prev: New file.
67841         * modules/unistr/u16-prev: New file.
67842         * modules/unistr/u32-prev: New file.
67843         * lib/unistr/u8-prev.c: New file.
67844         * lib/unistr/u16-prev.c: New file.
67845         * lib/unistr/u32-prev.c: New file.
67846
67847         * modules/unistr/u8-set: New file.
67848         * modules/unistr/u16-set: New file.
67849         * modules/unistr/u32-set: New file.
67850         * lib/unistr/u8-set.c: New file.
67851         * lib/unistr/u16-set.c: New file.
67852         * lib/unistr/u32-set.c: New file.
67853         * lib/unistr/u-set.h: New file.
67854
67855         * modules/unistr/u8-startswith: New file.
67856         * modules/unistr/u16-startswith: New file.
67857         * modules/unistr/u32-startswith: New file.
67858         * lib/unistr/u8-startswith.c: New file.
67859         * lib/unistr/u16-startswith.c: New file.
67860         * lib/unistr/u32-startswith.c: New file.
67861         * lib/unistr/u-startswith.h: New file.
67862
67863         * modules/unistr/u8-stpcpy: New file.
67864         * modules/unistr/u16-stpcpy: New file.
67865         * modules/unistr/u32-stpcpy: New file.
67866         * lib/unistr/u8-stpcpy.c: New file.
67867         * lib/unistr/u16-stpcpy.c: New file.
67868         * lib/unistr/u32-stpcpy.c: New file.
67869         * lib/unistr/u-stpcpy.h: New file.
67870
67871         * modules/unistr/u8-stpncpy: New file.
67872         * modules/unistr/u16-stpncpy: New file.
67873         * modules/unistr/u32-stpncpy: New file.
67874         * lib/unistr/u8-stpncpy.c: New file.
67875         * lib/unistr/u16-stpncpy.c: New file.
67876         * lib/unistr/u32-stpncpy.c: New file.
67877         * lib/unistr/u-stpncpy.h: New file.
67878
67879         * modules/unistr/u8-strcat: New file.
67880         * modules/unistr/u16-strcat: New file.
67881         * modules/unistr/u32-strcat: New file.
67882         * lib/unistr/u8-strcat.c: New file.
67883         * lib/unistr/u16-strcat.c: New file.
67884         * lib/unistr/u32-strcat.c: New file.
67885         * lib/unistr/u-strcat.h: New file.
67886
67887         * modules/unistr/u8-strchr: New file.
67888         * modules/unistr/u16-strchr: New file.
67889         * modules/unistr/u32-strchr: New file.
67890         * lib/unistr/u8-strchr.c: New file.
67891         * lib/unistr/u16-strchr.c: New file.
67892         * lib/unistr/u32-strchr.c: New file.
67893
67894         * modules/unistr/u8-strcmp: New file.
67895         * modules/unistr/u16-strcmp: New file.
67896         * modules/unistr/u32-strcmp: New file.
67897         * lib/unistr/u8-strcmp.c: New file.
67898         * lib/unistr/u16-strcmp.c: New file.
67899         * lib/unistr/u32-strcmp.c: New file.
67900
67901         * modules/unistr/u8-strcpy: New file.
67902         * modules/unistr/u16-strcpy: New file.
67903         * modules/unistr/u32-strcpy: New file.
67904         * lib/unistr/u8-strcpy.c: New file.
67905         * lib/unistr/u16-strcpy.c: New file.
67906         * lib/unistr/u32-strcpy.c: New file.
67907         * lib/unistr/u-strcpy.h: New file.
67908
67909         * modules/unistr/u8-strcspn: New file.
67910         * modules/unistr/u16-strcspn: New file.
67911         * modules/unistr/u32-strcspn: New file.
67912         * lib/unistr/u8-strcspn.c: New file.
67913         * lib/unistr/u16-strcspn.c: New file.
67914         * lib/unistr/u32-strcspn.c: New file.
67915         * lib/unistr/u-strcspn.h: New file.
67916
67917         * modules/unistr/u8-strdup: New file.
67918         * modules/unistr/u16-strdup: New file.
67919         * modules/unistr/u32-strdup: New file.
67920         * lib/unistr/u8-strdup.c: New file.
67921         * lib/unistr/u16-strdup.c: New file.
67922         * lib/unistr/u32-strdup.c: New file.
67923         * lib/unistr/u-strdup.h: New file.
67924
67925         * modules/unistr/u8-strlen: New file.
67926         * modules/unistr/u16-strlen: New file.
67927         * modules/unistr/u32-strlen: New file.
67928         * lib/unistr/u8-strlen.c: New file.
67929         * lib/unistr/u16-strlen.c: New file.
67930         * lib/unistr/u32-strlen.c: New file.
67931         * lib/unistr/u-strlen.h: New file.
67932
67933         * modules/unistr/u8-strmblen: New file.
67934         * modules/unistr/u16-strmblen: New file.
67935         * modules/unistr/u32-strmblen: New file.
67936         * lib/unistr/u8-strmblen.c: New file.
67937         * lib/unistr/u16-strmblen.c: New file.
67938         * lib/unistr/u32-strmblen.c: New file.
67939
67940         * modules/unistr/u8-strmbtouc: New file.
67941         * modules/unistr/u16-strmbtouc: New file.
67942         * modules/unistr/u32-strmbtouc: New file.
67943         * lib/unistr/u8-strmbtouc.c: New file.
67944         * lib/unistr/u16-strmbtouc.c: New file.
67945         * lib/unistr/u32-strmbtouc.c: New file.
67946
67947         * modules/unistr/u8-strncat: New file.
67948         * modules/unistr/u16-strncat: New file.
67949         * modules/unistr/u32-strncat: New file.
67950         * lib/unistr/u8-strncat.c: New file.
67951         * lib/unistr/u16-strncat.c: New file.
67952         * lib/unistr/u32-strncat.c: New file.
67953         * lib/unistr/u-strncat.h: New file.
67954
67955         * modules/unistr/u8-strncmp: New file.
67956         * modules/unistr/u16-strncmp: New file.
67957         * modules/unistr/u32-strncmp: New file.
67958         * lib/unistr/u8-strncmp.c: New file.
67959         * lib/unistr/u16-strncmp.c: New file.
67960         * lib/unistr/u32-strncmp.c: New file.
67961
67962         * modules/unistr/u8-strncpy: New file.
67963         * modules/unistr/u16-strncpy: New file.
67964         * modules/unistr/u32-strncpy: New file.
67965         * lib/unistr/u8-strncpy.c: New file.
67966         * lib/unistr/u16-strncpy.c: New file.
67967         * lib/unistr/u32-strncpy.c: New file.
67968         * lib/unistr/u-strncpy.h: New file.
67969
67970         * modules/unistr/u8-strnlen: New file.
67971         * modules/unistr/u16-strnlen: New file.
67972         * modules/unistr/u32-strnlen: New file.
67973         * lib/unistr/u8-strnlen.c: New file.
67974         * lib/unistr/u16-strnlen.c: New file.
67975         * lib/unistr/u32-strnlen.c: New file.
67976         * lib/unistr/u-strnlen.h: New file.
67977
67978         * modules/unistr/u8-strpbrk: New file.
67979         * modules/unistr/u16-strpbrk: New file.
67980         * modules/unistr/u32-strpbrk: New file.
67981         * lib/unistr/u8-strpbrk.c: New file.
67982         * lib/unistr/u16-strpbrk.c: New file.
67983         * lib/unistr/u32-strpbrk.c: New file.
67984         * lib/unistr/u-strpbrk.h: New file.
67985
67986         * modules/unistr/u8-strrchr: New file.
67987         * modules/unistr/u16-strrchr: New file.
67988         * modules/unistr/u32-strrchr: New file.
67989         * lib/unistr/u8-strrchr.c: New file.
67990         * lib/unistr/u16-strrchr.c: New file.
67991         * lib/unistr/u32-strrchr.c: New file.
67992
67993         * modules/unistr/u8-strspn: New file.
67994         * modules/unistr/u16-strspn: New file.
67995         * modules/unistr/u32-strspn: New file.
67996         * lib/unistr/u8-strspn.c: New file.
67997         * lib/unistr/u16-strspn.c: New file.
67998         * lib/unistr/u32-strspn.c: New file.
67999         * lib/unistr/u-strspn.h: New file.
68000
68001         * modules/unistr/u8-strstr: New file.
68002         * modules/unistr/u16-strstr: New file.
68003         * modules/unistr/u32-strstr: New file.
68004         * lib/unistr/u8-strstr.c: New file.
68005         * lib/unistr/u16-strstr.c: New file.
68006         * lib/unistr/u32-strstr.c: New file.
68007         * lib/unistr/u-strstr.h: New file.
68008
68009         * modules/unistr/u8-strtok: New file.
68010         * modules/unistr/u16-strtok: New file.
68011         * modules/unistr/u32-strtok: New file.
68012         * lib/unistr/u8-strtok.c: New file.
68013         * lib/unistr/u16-strtok.c: New file.
68014         * lib/unistr/u32-strtok.c: New file.
68015         * lib/unistr/u-strtok.h: New file.
68016
68017         * modules/unistr/u8-uctomb: New file.
68018         * modules/unistr/u16-uctomb: New file.
68019         * modules/unistr/u32-uctomb: New file.
68020         * lib/unistr/u8-uctomb.c: New file.
68021         * lib/unistr/u16-uctomb.c: New file.
68022         * lib/unistr/u32-uctomb.c: New file.
68023
68024         * MODULES.html.sh (Unicode string functions): Add the new modules.
68025
68026 2007-01-08  Bruno Haible  <bruno@clisp.org>
68027
68028         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68029         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68030         subdirectories.
68031
68032 2007-01-08  Karl Berry  <karl@gnu.org>
68033
68034         * doc/error.texi: mention that main() fns must set program_name
68035         when progname is used.
68036
68037 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68040         WCTYPE_H is empty, for the benefit of builds from non-distclean
68041         directories.  Problem reported by Eric Blake in
68042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68043
68044 2007-01-08  Bruno Haible  <bruno@clisp.org>
68045
68046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68047         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68048         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68049         PROVIDE_CANONICALIZE_FILENAME_MODE.
68050         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68051
68052 2007-01-08  Bruno Haible  <bruno@clisp.org>
68053
68054         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68055         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68056         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68057         * lib/fts.c: Likewise.
68058         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68059
68060 2006-12-25  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/utf8-ucs4-safe: New file.
68063         * lib/utf8-ucs4-safe.h: New file.
68064         * lib/unistr/utf8-ucs4-safe.c: New file.
68065
68066         * modules/utf16-ucs4-safe: New file.
68067         * lib/utf16-ucs4-safe.h: New file.
68068         * lib/unistr/utf16-ucs4-safe.c: New file.
68069
68070         * MODULES.html.sh (Unicode string functions): Add the new modules.
68071
68072 2007-01-08  Bruno Haible  <bruno@clisp.org>
68073
68074         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68075         (Depends-on): Add unitypes.
68076         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68077         (u8_mbtouc_aux): Move out to separate file.
68078         (u8_mbtouc): Use ucs4_t, uint8_t types.
68079         * lib/unistr/utf8-ucs4.c: New file.
68080
68081         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68082         (Depends-on): Add unitypes.
68083         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68084         (u16_mbtouc_aux): Move out to separate file.
68085         (u16_mbtouc): Use ucs4_t, uint16_t types.
68086         * lib/unistr/utf16-ucs4.c: New file.
68087
68088         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68089         (Depends-on): Add unitypes.
68090         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68091         (u8_uctomb_aux): Move out to separate file.
68092         (u8_uctomb): Use ucs4_t, uint8_t types.
68093         * lib/unistr/ucs4-utf8.c: New file.
68094
68095         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68096         (Depends-on): Add unitypes.
68097         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68098         (u16_uctomb_aux): Move out to separate file.
68099         (u16_uctomb): Use ucs4_t, uint16_t types.
68100         * lib/unistr/ucs4-utf16.c: New file.
68101
68102 2006-12-25  Bruno Haible  <bruno@clisp.org>
68103
68104         * modules/unitypes: New file.
68105         * lib/unitypes.h: New file.
68106         * MODULES.html.sh (func_all_modules): New section "Unicode string
68107         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68108         this section. Add unitypes.
68109
68110 2007-01-08  Bruno Haible  <bruno@clisp.org>
68111
68112         Avoid variable names that conflict with those from libtool.
68113         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68114         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68115         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68116         library_names_spec to acl_library_names_spec, hardcode_* to
68117         acl_hardcode_*.
68118         Reported by Ralf Wildenhues.
68119
68120 2007-01-08  Bruno Haible  <bruno@clisp.org>
68121
68122         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68123         definition.
68124         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68125         definition.
68126         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68127         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68128         definition.
68129         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68130         definition.
68131         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68132         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68133         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68134         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68135         definition.
68136         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68137         definition.
68138         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68139         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68140         GC_USE_<algorithm>.
68141         * lib/gc-libgcrypt.c: Likewise.
68142         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68143         * modules/gc-arctwo (configure.ac): Likewise.
68144         * modules/gc-des (configure.ac): Likewise.
68145         * modules/gc-hmac-md5 (configure.ac): Likewise.
68146         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68147         * modules/gc-md2 (configure.ac): Likewise.
68148         * modules/gc-md4 (configure.ac): Likewise.
68149         * modules/gc-md5 (configure.ac): Likewise.
68150         * modules/gc-random (configure.ac): Likewise.
68151         * modules/gc-rijndael (configure.ac): Likewise.
68152         * modules/gc-sha1 (configure.ac): Likewise.
68153
68154 2007-01-08  Bruno Haible  <bruno@clisp.org>
68155
68156         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68157         macro definition.
68158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68159         definition.
68160         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68161         definition.
68162         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68163         * modules/fcntl-safer (configure.ac): Likewise.
68164         * modules/fopen-safer (configure.ac): Likewise.
68165         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68166         GNULIB_FWRITEERROR macro definition.
68167
68168 2007-01-08  Bruno Haible  <bruno@clisp.org>
68169
68170         * m4/gnulib-common.m4: New file.
68171         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68172         (func_get_filelist): Add m4/gnulib-common.m4.
68173
68174 2007-01-08  Bruno Haible  <bruno@clisp.org>
68175
68176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68177         command.
68178
68179 2007-01-08  Jim Meyering  <jim@meyering.net>
68180
68181         Use a more robust test for a "can't happen" condition.
68182         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68183         narrowed the st_size value.  Presuming the "can't happen" condition
68184         is true, that narrowing could conceivably convert an invalid st_size
68185         value into a valid one.  Instead, use a change based on Matthew
68186         Woehlke's original patch.
68187
68188         Slight readability improvement: use an assert-like macro
68189         in place of literal "abort ()" uses.
68190         * lib/fts.c (fts_assert): Define.
68191         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68192         Use this macro instead of a bare 'abort'.
68193
68194 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68197         simply work around them.
68198         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68199         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68200         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68201         declaring.
68202         Don't bother to define as macros, since the standard doesn't require it.
68203         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68204         longer worry about IRIX 5.3.
68205         (HAVE_WCTYPE_CTMP_BUG): Remove.
68206
68207 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68210         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68211         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68212         Problems reported by Georg Schwarz for IRIX 5.3.
68213
68214         * gnulib-tool (autoconf_minversion): Take the maximum version number
68215         found, not the minimum.  Problem reported by James Youngman.
68216
68217 2007-01-03  Karl Berry  <karl@gnu.org>
68218
68219         * doc/error.texi: new file, explaining interaction with progname.
68220         * doc/gnulib.texi: include it.  Update copyright.
68221
68222 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68223
68224         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68225         AC_CANONICAL_HOST, to improve autobuild outputs.
68226
68227 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68228             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68229
68230         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68231         sockets, server sockets, and other file descriptors.  Count errors
68232         to compute the return value.  Reorder the code a bit to be easier
68233         to follow.  Don't set event bits that were not requested (except
68234         POLLERR and POLLHUP).
68235
68236 2007-01-01  Bruno Haible  <bruno@clisp.org>
68237
68238         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68239
68240 2007-01-03  Jim Meyering  <jim@meyering.net>
68241
68242         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68243
68244 2007-01-02  Bruno Haible  <bruno@clisp.org>
68245
68246         * modules/settime (Include): Require timespec.h.
68247         * modules/nanosleep (Include): Likewise.
68248
68249 2007-01-01  Bruno Haible  <bruno@clisp.org>
68250
68251         * gnulib-tool (func_emit_copyright_notice): Bump year.
68252         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68253
68254 2007-01-01  Bruno Haible  <bruno@clisp.org>
68255
68256         Improve support for OpenBSD.
68257         * build-aux/config.rpath (libname_spec): Export.
68258         (library_names_spec): New variable. Export.
68259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68260         library_names_spec from the config.rpath output. Locate shared library
68261         through the name pattern in library_names_spec.
68262
68263 2007-01-01  Eric Blake  <ebb9@byu.net>
68264
68265         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68266
68267 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68270         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68271         assume the C locale, and avoid an "eval" that could cause trouble.
68272         Problem with SORT reported by Bob Proulx.
68273
68274         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68275         Define.  Trivial patch from Henning Nielsen Lund, originally
68276         sent to bug-grep@gnu.org today.
68277
68278 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68281         struct stat.  Problem reported by Henning Nielsen Lund.
68282         * lib/acl.c: Include acl.h first, to check interface.  Don't
68283         bother to include sys/types.h and sys/stat.h again.
68284
68285 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68286
68287         Import the following change from libc; problem reported by
68288         Sven Verdoolaege.
68289
68290         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
68291
68292         [BZ #1373]
68293         * lib/argp.h: Remove __NTH for __argp_usage inline function.
68294
68295 2006-12-28  Jim Meyering  <jim@meyering.net>
68296
68297         * build-aux/announce-gen: Do not assume that the package
68298         builds any of tar.gz, tar.bz2, and .xdelta files.
68299         Suggestion from Simon Josefsson.
68300
68301 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68302
68303         * modules/announce-gen: New file.
68304
68305 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68306
68307         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68308         handles its gotchas now.
68309         * lib/mbswidth.c: Likewise.
68310         * lib/wcwidth.h: Likewise.
68311         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68312         and iswcntrl; the wctype module does this stuff now.
68313         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68315         * modules/mbchar (Depends-on): Add wctype.
68316         * modules/mbswidth (Depends-on): Likewise.
68317         * modules/wcwidth (Depends-on): Likewise.
68318
68319 2006-12-27  Eric Blake  <ebb9@byu.net>
68320
68321         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68322         module uses more than what <wctype.h> is required to provide.
68323
68324 2006-12-26  Eric Blake  <ebb9@byu.net>
68325
68326         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68327
68328 2006-12-26  Eric Blake  <ebb9@byu.net>
68329
68330         * modules/absolute-header: New module.
68331         * modules/fcntl (Depends-on): Depend on it.
68332         * modules/inttypes (Depends-on): Likewise.
68333         * modules/stdint (Depends-on): Likewise.
68334         * modules/sys_stat (Depends-on): Likewise.
68335         * modules/wctype (Depends-on): Likewise.
68336         * MODULES.html.sh (Support for building libraries and
68337         executables): Document it.
68338
68339 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68340
68341         * gnulib-tool (SED): Remove, undoing previous change.
68342         The problem was that it broke coreutils on Solaris, because
68343         "sed --posix" leaked into a makefile.
68344         (sed): New alias, if 'alias' and GNU sed.
68345
68346 2006-12-24  Jim Meyering  <jim@meyering.net>
68347
68348         Work around an fchownat bug in glibc-2.4:
68349         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68350         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68351         in spite of the -P option.
68352         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68353         New macros.
68354         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68355         * modules/openat (Files): Add lib/fchownat.c.
68356         * lib/openat.c (fchownat): Don't define here.  Move to...
68357         * lib/fchownat.c: ...this new file.
68358
68359 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         Fix bug reported by Bruno Haible in
68362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68363         where quotearg.c didn't compile on Mac OS X 10.2 because it
68364         lacks <wchar.h> and wint_t.
68365         * lib/wctype_.h (__wctype_wint_t): New type.
68366         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68367         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68368         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68369         Arg is now of type __wctype_wint_t, not wint_t.
68370         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68371         substitute HAVE_WINT_T.
68372         * modules/wctype (Files): Add m4/wint_t.m4.
68373         (wctype.h): Substitute HAVE_WINT_T.
68374
68375 2006-12-23  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68378
68379 2006-12-23  Bruno Haible  <bruno@clisp.org>
68380
68381         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68382         S_ISLNK.
68383         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68384         mingw.
68385
68386 2006-12-22  Bruno Haible  <bruno@clisp.org>
68387
68388         * lib/copy-file.c: Include acl.h.
68389         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68390         Close the file descriptors only after being done with copy_acl.
68391         * modules/copy-file (Depends-on): Add acl.
68392
68393 2006-12-22  Bruno Haible  <bruno@clisp.org>
68394
68395         * gnulib-tool (SED): New variable.
68396         Use $SED instead of sed everywhere.
68397
68398 2006-12-22  Bruno Haible  <bruno@clisp.org>
68399
68400         * modules/no-c++: New file.
68401         * m4/no-c++.m4: New file.
68402         * MODULES.html.sh (Support for building libraries and executables):
68403         Add no-c++.
68404
68405 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68408         Include <limits.h>, and use its INT_MAX to rewrite the
68409         j loop so that it does not overflow 'int'.  Problem reported by
68410         Ralf Wildenhues in
68411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68412         Play it safe by shifting left by 1 rather than multiplying by 2,
68413         as GCC is less likely to optimize this away when the value
68414         is signed (when it assumes overflow leads to undefined behavior).
68415         Also, don't assume time_t uses two's complement.
68416
68417 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * MODULES.html.sh: New module wctype.
68420         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68421         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68422         <wctype.h>, since the new wctype module should fix this.
68423         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68424         the wctype module should arrange for it.
68425         * lib/regex_internal.h: Likewise.
68426         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68427         since the wctype module should handle this now.
68428         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68429         * modules/fnmatch (Depends-on): Add wctype.
68430         * modules/quotearg (Depends-on): Likewise.
68431         * modules/regex (Depends-on): Likewise.
68432
68433 2006-12-19  Bruno Haible  <bruno@clisp.org>
68434
68435         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68436         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68437
68438 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68439
68440         * modules/savewd (Depends-on): Fix dependency on fcntl.
68441
68442 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68443
68444         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68445         conforms to C99, rather than relying on the user's environment
68446         setting of STDINT_H.
68447
68448 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68449         and Eric Blake  <ebb9@byu.net>
68450
68451         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68452         This is more consistent with the other defines here.
68453         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68454         Port to z/OS.  Problem reported by Paul Gilmartin.
68455         Change local vars to use gl_ prefix rather than ac_.
68456         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68457         with other defines.
68458         * modules/double-slash-root: New module.
68459         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68460         (Depends-on): Add double-slash-root.
68461         * MODULES.html.sh (File system functions): Mention new module.
68462
68463 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68464
68465         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68466         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68467         This is for the benefit of gzip, which doesn't do i18n.
68468
68469 2006-12-12  Jim Meyering  <jim@meyering.net>
68470
68471         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68472         Reported by Andreas Schwab <schwab@suse.de>.
68473
68474 2006-12-12  Bruno Haible  <bruno@clisp.org>
68475
68476         Merge these changes.
68477         2006-09-05  Bruno Haible  <bruno@clisp.org>
68478         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68479         iconv_alloc succeeded.
68480         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68481         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68482         test for " && dest " at the end - dest is always != NULL there. Call
68483         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68484         with 2xNULL arguments, also to flush the state storage. Handle the
68485         IRIX iconv behaviour. Realloc the final result, to throw away unused
68486         memory.
68487
68488 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68491         and fchmodat unconditionally, since glibc 2.4 has them.
68492         Problem reported by Arkadiusz Miskiewicz.
68493
68494 2006-12-10  Bruno Haible  <bruno@clisp.org>
68495
68496         * gnulib-tool (func_import): Show the include files only for those
68497         modules that are copied and specified.
68498         Reported by Karl Berry.
68499
68500 2006-12-08  Jim Meyering  <jim@meyering.net>
68501
68502         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68503         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68504
68505         * build-aux/announce-gen: Add two new options, both optional:
68506         --bootstrap-tools=TOOL_LIST
68507               a comma-separated list of tools, e.g.,
68508               autoconf,automake,bison,gnulib
68509         --gnulib-snapshot-date=DATE
68510               if gnulib is in the bootstrap tool list,
68511               then report this as the snapshot date.
68512               If not specified, use the current date/time.
68513               If you specify a date here, be sure it's UTC.
68514
68515 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68516
68517         * tests/test-argp-2.sh: Fix test to match actual output.
68518         (func_compare): Fix sed script to be portable.
68519
68520 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68523         workaround for this case.  It is not autoconfigured now; offhand
68524         it's hard to see how to autoconfigure it.
68525
68526 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68529         a directory that is about to be chowned.  Such a directory's
68530         initial file permissions should permit the owner only and this
68531         should not be changed until after the chown, since the group and
68532         other bits would be incorrect if they granted permission before
68533         the chown.
68534
68535         Fix porting problem for iswctype reported by Georg Schwarz in:
68536         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68537         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68538         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68539         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68540         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68541
68542 2006-12-03  Jim Meyering  <jim@meyering.net>
68543
68544         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68545         p->fts_statp may not yet be defined.
68546         (fts_read): Instead, set it in the caller, once p->fts_statp is
68547         sure to be defined, and corresponds to a top-level directory.
68548         This bug made du -x fail.  Here's the coreutils test case:
68549         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68550         Reported by Mike Frysinger.
68551
68552 2006-12-01  Jim Meyering  <jim@meyering.net>
68553
68554         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68555         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68556         Reported by Simon Josefsson.
68557
68558 2006-11-30  Jim Meyering  <jim@meyering.net>
68559
68560         * m4/warning.m4: Use the all-permissive copyright notice
68561         recommended by RMS (rather than LGPL).
68562         * m4/vararrays.m4: Likewise.
68563         * m4/flexmember.m4: Likewise.
68564
68565 2006-11-29  Bruno Haible  <bruno@clisp.org>
68566
68567         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68568         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68569         using +=.
68570         Reported by Simon Josefsson <simon@josefsson.org>.
68571
68572 2006-11-28  James Youngman <jay@gnu.org>
68573
68574         * README: Advise users that they might find the bug-gnulib@gnu.org
68575         and autotools-announce@gnu.org mailing lists useful.
68576
68577 2006-11-28  Bruno Haible  <bruno@clisp.org>
68578
68579         * m4/ptrdiff_max.m4: Remove file.
68580
68581 2006-11-21  Bruno Haible  <bruno@clisp.org>
68582
68583         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68584         _AC_COMPUTE_INT.
68585         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68586         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68587         _AC_COMPUTE_INT.
68588         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68589         * m4/size_max.m4 (gl_SIZE_MAX): 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-28  Jim Meyering  <jim@meyering.net>
68594
68595         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68596         warning from "gcc -Wshadow" about shadowing the builtin.
68597
68598 2006-11-27  Bruno Haible  <bruno@clisp.org>
68599
68600         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68601         _AC_COMPUTE_INT.
68602         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68603
68604 2006-11-27  Bruno Haible  <bruno@clisp.org>
68605             Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68608
68609 2006-11-26  Bruno Haible  <bruno@clisp.org>
68610
68611         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68612         noinst_LTLIBRARIES.
68613
68614 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68615             Bruno Haible  <bruno@clisp.org>
68616
68617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68618         if compiling with "gcc -ansi".
68619
68620 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         Fix some incompatibilities with gcc -ansi -pedantic.
68623         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68624         if compiling pedantically with GCC, unless it's C99 or later.
68625         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68626         it mishandles gcc -ansi -pedantic as well.
68627         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68628         if gcc -pedantic.
68629         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68630         initializers for struct if -pedantic, unless it's C99 or later.
68631
68632 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68633
68634         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68635         Don't close an fd more than once. Identical atimes indicate
68636         success, not failure.
68637
68638 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68639
68640         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68641
68642 2006-11-23  Jim Meyering  <jim@meyering.net>
68643
68644         * build-aux/announce-gen: New file.  From coreutils.
68645
68646 2006-11-22  Jim Meyering  <jim@meyering.net>
68647
68648         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68649         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68650         (fts_read): Use a temporary to narrow the overused st_size member
68651         before using it in a switch statement.  Reported by Matthew Woehlke.
68652
68653         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68655
68656 2006-11-20  Bruno Haible  <bruno@clisp.org>
68657
68658         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68659         changequote instead of pairs of brackets.
68660         Reported by Andreas Schwab <schwab@suse.de>.
68661
68662 2006-11-21  Jim Meyering  <jim@meyering.net>
68663
68664         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68665         so as to remain compatible with older compilers.
68666         Patch from Michael Deutschmann.
68667
68668 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * MODULES.html.sh (File system functions): Add openat.
68671
68672         * lib/openat.h (rpl_fstatat): New macro, if
68673         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68674         (fstatat): Define to rpl_fstatat under the same conditions,
68675         unless COMPILING_FSTATAT.
68676         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68677         seems to have the bug.
68678         * lib/fstatat.c: New file.
68679         * modules/openat (Files): Add it.
68680
68681 2006-11-20  Bruno Haible  <bruno@clisp.org>
68682
68683         * Makefile: New file.
68684
68685 2006-11-20  Jim Meyering  <jim@meyering.net>
68686
68687         The beginnings of syntax-related checks for gnulib.
68688         * lib/Makefile: New file.
68689         * lib/t-idcache: New script.  Ensure that the two halves of
68690         idcache.c stay in sync.
68691
68692         * lib/idcache.c: Adjust comments in user- and group- portions to
68693         be more accurate, and to be consistent with one another.
68694
68695 2006-11-20  Jim Meyering  <jim@meyering.net>
68696
68697         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68698         continue using the flexible array member (thus, this module performs
68699         half as many malloc calls), with the addition that...
68700         (getgroup, getuser): Consistently record a non-match via an empty
68701         "name" string, and map an empty string match to a NULL return value.
68702         * modules/idcache (Depends-on): Re-add flexmember.
68703
68704         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68705         (getuidbyname, getgroup, getgidbyname): Likewise.
68706
68707         Use cleaner syntax: NULL rather than 0.
68708         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68709
68710 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68713         It mishandled the case where the group was missing.
68714         Problem reported by Greg Schafer.
68715         * modules/idcache: Likewise.
68716
68717 2006-11-18  Jim Meyering  <jim@meyering.net>
68718
68719         * check-module (%exempt_header): Add exception for some
68720         conditionally-included headers.
68721
68722         * modules/i-ring (Depends-on): Add verify.
68723         (License): Change to LGPL.
68724
68725 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68726
68727         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68728         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68729         and inttostr.h.  Use snprintf rather than uinttostr, so that
68730         LGPLed code doesn't depend on GPLed.
68731
68732 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68733
68734         * modules/inline (License): Change from GPL to LGPL.
68735
68736 2006-11-17  Jim Meyering  <jim@meyering.net>
68737
68738         * modules/d-type (License): Switch to LGPL.
68739
68740 2006-11-15  Bruno Haible  <bruno@clisp.org>
68741
68742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68743
68744 2006-11-15  Eric Blake  <ebb9@byu.net>
68745
68746         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68747         the module dependency.
68748
68749 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68750             Bruno Haible  <bruno@clisp.org>
68751
68752         * gnulib-tool (func_create_testdir): Add license consistency check.
68753
68754 2006-11-15  Eric Blake  <ebb9@byu.net>
68755
68756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68757         random "(cached)" in configure output.
68758
68759 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68760
68761         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68762         test for conforming inttypes.h is both announced and cached.
68763
68764         * MODULES.html.sh (seen_modules, seen_files): New variables.
68765         (func_module): Rewrite to use a few less gnulib-tool and sed
68766         invocations.  Avoid a couple of quadratic algorithms for ...
68767         (missed_modules, missed_files): ... these, with ...
68768         (func_append, func_tmpdir): ... these new functions, from
68769         gnulib-tool.  Analogously, install traps for cleanup.
68770
68771         * tests/test-gc.c (main): Remove unused variables.
68772         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68773
68774 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         * modules/inttostr (License): Change to LGPL.
68777
68778 2006-11-14  Eric Blake  <ebb9@byu.net>
68779
68780         * modules/tempname (License): Change to LGPL.
68781
68782 2006-11-14  Eric Blake  <ebb9@byu.net>
68783
68784         * doc/functions.texi (Function Portability): *printf functions on
68785         Cygwin now understand all POSIX size specifiers.
68786
68787 2006-11-14  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/c-ctype (License): Change to LGPL.
68790
68791 2006-11-12  Bruno Haible  <bruno@clisp.org>
68792
68793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68794         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68795         for GNOME libraries, for which the include files are installed in
68796         subdirectories of $prefix/include.
68797
68798 2006-11-12  Bruno Haible  <bruno@clisp.org>
68799
68800         * m4/lib-link.m4: Require at least autoconf-2.54.
68801         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68802         name to underscores for the --with option.
68803
68804 2006-11-13  Bruno Haible  <bruno@clisp.org>
68805
68806         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68807         the tests directory.
68808         Reported by Ralf Wildenhues.
68809
68810 2006-11-13  Bruno Haible  <bruno@clisp.org>
68811
68812         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68813         (func_emit_initmacro_end): Undo the override here.
68814         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68815         Works around the famous automake error in coreutils.
68816
68817 2006-11-13  Eric Blake  <ebb9@byu.net>
68818
68819         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68820         element, not its node.
68821
68822 2006-11-12  Bruno Haible  <bruno@clisp.org>
68823
68824         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68825         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68826
68827 2006-11-12  Bruno Haible  <bruno@clisp.org>
68828
68829         * gnulib-tool: New option --local-symlink.
68830         (func_usage): Document it.
68831         (lsymbolic): New variable.
68832         (func_import, func_create_testdir): If --symlink was not specified,
68833         test whether --local-symlink was specified and the file comes from
68834         the local_gnulib_dir.
68835
68836 2006-11-12  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool (func_ln): New function.
68839         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68840
68841 2006-11-12  Bruno Haible  <bruno@clisp.org>
68842
68843         Finish support for source files in subdirectories.
68844         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68845         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68846         AUTOMAKE_OPTIONS.
68847         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68848
68849 2006-11-12  Bruno Haible  <bruno@clisp.org>
68850
68851         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68852         EXTRA_lib_SOURCES augmentation.
68853         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68854
68855 2006-11-12  Jim Meyering  <jim@meyering.net>
68856
68857         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68858         file descriptors.  This also averts a failure on systems with
68859         native openat support when a traversed directory lacks "x" access.
68860         * lib/fts_.h: Include "i-ring.h"
68861         (struct FTS) [fts_fd_ring]: New member.
68862         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68863         (FCHDIR): Add parentheses.
68864         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68865         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68866         When descending, rather than simply closing the previous
68867         fts_cwd_fd value, push that file descriptor onto the ring.
68868         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68869         (fts_open): Initialize the new fd_ring member.
68870         (fts_close): Clear the ring.
68871         (fts_safe_changedir): When possible, use our new fd_ring to skip
68872         the diropen and fstat and dev/ino comparison that would normally
68873         accompany a virtual `chdir ("..")'.
68874
68875         * modules/fts (Depends-on): Add i-ring.
68876         * modules/i-ring: New module.
68877         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68878         * m4/i-ring.m4: New file.
68879
68880 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68881
68882         * gnulib-tool (func_create_testdir): Fix replacement of
68883         `build-aux' in configure.ac.  Run autotools in gltests
68884         subdirectory.
68885         (func_create_testdir, func_create_megatestdir, test): There is
68886         no need for '--force' in most autotool invocations in a new
68887         tree.  Actually fail the whole test if any of the tools, or the
68888         configure or make stages fail.
68889
68890         Sync from Automake.
68891         * build-aux/gnupload: Revert last change.  Add pointer to upload
68892         instructions of the GNU Maintenance Instructions.
68893         Suggestion by Karl Berry.
68894
68895 2006-11-10  Jim Meyering  <jim@meyering.net>
68896
68897         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68898
68899 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68902         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68903         (bind_textdomain_codeset) [! ENABLE_NLS]:
68904         Evaluate all the arguments.  That way, callers get compatible behavior
68905         if the arguments have side effects.  Also, it avoids some GCC
68906         diagnostics in some cases; Joel E. Denny reported problems when Bison
68907         was configured with --enable-gcc-warnigs.
68908
68909 2006-11-10  Jim Meyering  <jim@meyering.net>
68910
68911         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68912         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68913         account.
68914
68915 2006-11-10  Jim Meyering  <jim@meyering.net>
68916
68917         * modules/inline: New file/module.
68918         * modules/xalloc (Files): Remove m4/inline.m4.
68919         (Depends-on): Add inline, instead.
68920         * modules/oset: Likewise.
68921         * modules/list: Likewise.
68922
68923 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68926         Problem reported by Matthew Woehlke.
68927
68928 2006-11-09  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/tempname.c (gen_tempname): Remove variant that invokes
68931         __gen_tempname.
68932         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68933         __gen_tempname.
68934
68935 2006-11-08  Bruno Haible  <bruno@clisp.org>
68936
68937         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68938         to 'yes' instead of 'cross-compiling'.
68939
68940 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         * lib/quotearg.h (quotearg_free): New decl.
68943         * lib/quotearg.c (quotearg_free): New function.
68944         (slot0, nslots, slotvec0, slotvec):
68945         Now file-scope so that quotearg_free can get at them.
68946
68947 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68948
68949         Sync from Automake.
68950         * build-aux/gnupload: Add missing 'gnu' to example URL.
68951         Report by Karl Berry.
68952
68953 2006-11-08  Bruno Haible  <bruno@clisp.org>
68954
68955         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68956         Suggested by Paul Eggert.
68957
68958 2006-11-08  Jim Meyering  <jim@meyering.net>
68959
68960         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68961         It's already included if !_LIBC.
68962         (fts_safe_changedir): Add a comment.
68963
68964 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68965
68966         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68967         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68968         Matthew Woehlke.
68969
68970         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68971         definitions up, to avoid colliding with change below.
68972         (static_inline) [HAVE_INLINE]: New macro.
68973         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68974         Provide extern decls when !HAVE_INLINE.  Do not define unless
68975         static_inline is defined, either by us or by xmalloc.c.  Use
68976         static_inline rather than static inline.
68977         (XCALLOC): Optimize sizeof(T) = 1 case.
68978         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68979
68980 2006-11-07  Bruno Haible  <bruno@clisp.org>
68981
68982         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68984         AC_C_INLINE.
68985         * modules/xalloc (Files): Add m4/inline.m4.
68986
68987 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68988
68989         * README: Fix typo.
68990         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68991         (Miscellanous Notes): ...from this.
68992
68993 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68994
68995         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68996         Mention that offsetof should be used instead of sizeof.
68997         From Bruno Haible.
68998
68999 2006-11-07  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
69002
69003 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69006         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
69007         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69008         (gl_tree_add_before, gl_tree_add_after):
69009         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
69010         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69011         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69012         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69013         (gl_linked_add_after, gl_linked_add_at): Likewise.
69014         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69015         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69016         (gl_tree_add_before, gl_tree_add_after): Likewise.
69017         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69018         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69019         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69020
69021 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69022
69023         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69024
69025 2006-11-06  Bruno Haible  <bruno@clisp.org>
69026
69027         * m4/inline.m4: New file.
69028         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69029         * modules/list (Files): Add m4/inline.m4.
69030         * modules/oset (Files): Likewise.
69031
69032 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * lib/idcache.c: Include <stddef.h>, for offsetof.
69035         (struct userid.name): Change from char * to a flexible array member.
69036         All uses changed.
69037         * modules/idcache (Depends-on): Add flexmember.
69038
69039         * MODULES.html.sh (Core language properties): New module flexmember.
69040         * modules/flexmember, m4/flexmember.m4: New files.
69041
69042         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69043         inline functions that are identical with the old xnmalloc_inline,
69044         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69045         that we can avoid some unnecessary integer multiplications and
69046         divisions in the common case where the element size is known at
69047         compile time.
69048         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69049         needed.
69050         (xnboundedmalloc): Remove.
69051         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69052         arguments, for consistency with rest of this header.
69053         (xcharalloc): Rewrite using XNMALLOC.
69054         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69055         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69056         versions have been moved to lib/xalloc.h and renamed to be the
69057         non-*_inline versions.
69058         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69059         and xnrealloc functions, since those functions are now inline and
69060         now call us.
69061         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69062         renaming described above.
69063         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69064         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69065         captures the dependency in AC_C_INLINE.
69066
69067         New module canonicalize-lgpl, proposed by Charles Wilson in
69068         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69069         with a few small changes afterwards.
69070         * MODULES.html.sh (File system functions): New module
69071         canonicalize-lgpl.
69072         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69073         and canonicalize_file_name.
69074         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69075         * modules/canonicalize-lgpl: New files.
69076
69077 2006-11-05  Bruno Haible  <bruno@clisp.org>
69078
69079         * gnulib-tool (func_import, func_create_testdir): Create directories
69080         also for files in subdirectories of lib/.
69081
69082 2006-11-05  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69085         ANSI C compliant.
69086
69087 2006-11-03  Bruno Haible  <bruno@clisp.org>
69088
69089         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69090         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69091         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69092         (xnboundedmalloc): New inline function.
69093         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69094         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69095         xmalloc.
69096         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69097         xmalloc.
69098         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69099         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69100         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69101         xmalloc.
69102         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69103         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69104         xmalloc.
69105         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69106         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69107         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69108         xmalloc.
69109         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69110         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69111         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69112         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69113         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69114         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69115         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69116
69117 2006-11-03  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/c-ctype.h [C++]: Define functions without name mangling.
69120         * lib/fwriteerror.h [C++]: Likewise.
69121         * lib/gcd.h [C++]: Likewise.
69122         * lib/linebreak.h [C++]: Likewise.
69123
69124 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69125
69126         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69127         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69128         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69130         Check for functions and headers just once.
69131         Check for declaration of canonicalize_file_name.
69132         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69133
69134 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69135
69136         * gnulib-tool (func_import): Fix typo in actioncmd.
69137
69138 2006-11-02  Bruno Haible  <bruno@clisp.org>
69139
69140         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69141         newline sequence in the Makefile.am snippet as a space, like "make"
69142         does.
69143         Reported by Roger Persson <perrog@gmail.com>.
69144
69145 2006-11-01  Bruno Haible  <bruno@clisp.org>
69146
69147         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69148         already declared in <string.h>.
69149         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69150
69151 2006-11-01  Bruno Haible  <bruno@clisp.org>
69152
69153         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69154         * lib/strcase.h: Include <string.h>.
69155         (strcasecmp): Define to rpl_strcasecmp here.
69156
69157 2006-11-01  Bruno Haible  <bruno@clisp.org>
69158
69159         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69160
69161 2006-11-01  Eric Blake  <ebb9@byu.net>
69162
69163         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69164
69165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69166
69167 2006-10-29  Bruno Haible  <bruno@clisp.org>
69168
69169         Make it compile in C++ mode.
69170         * lib/full-write.c (full_rw): Add a cast.
69171
69172 2006-11-01  Bruno Haible  <bruno@clisp.org>
69173
69174         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69175         be POSIX compliant.
69176         Reported by Roger Persson <perrog@gmail.com>.
69177
69178 2006-11-01  Eric Blake  <ebb9@byu.net>
69179
69180         * lib/getopt_.h: Fix comments.
69181
69182 2006-10-31  Eric Blake  <ebb9@byu.net>
69183
69184         * modules/tmpdir (Depends-on): Add sys_stat.
69185         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69186         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69187         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69188         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69189         tempname.
69190
69191 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69192
69193         Avoid some C++ diagnostics reported by Bruno Haible.
69194         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69195         xmalloc.
69196         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69197         (struct slotvec): Move to top level.
69198         (quotearg_n_options): Rewrite to avoid xmalloc.
69199         * lib/xalloc.h (xcharalloc): New function.
69200         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69201         [defined __cplusplus]: Add function template that provides result
69202         type propagation.  This part of the change is from Bruno Haible.
69203
69204 2006-10-29  Bruno Haible  <bruno@clisp.org>
69205
69206         Make it compile in C++ mode.
69207         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69208         * lib/strnlen1.c (strnlen1): Cast memchr result.
69209         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69210         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69211         (create_temp_dir): Rename local variable 'template'.
69212         (compile_csharp_using_sscli): Add cast.
69213         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69214         * lib/findprog.c (find_in_path): Likewise.
69215         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69216         * lib/wait-process.c (register_slave_subprocess): Likewise.
69217
69218 2006-10-22  Bruno Haible  <bruno@clisp.org>
69219
69220         * modules/tsearch: New file.
69221         * lib/tsearch.h: New file.
69222         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69223         * m4/tsearch.m4: New file.
69224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69225
69226 2006-10-29  Eric Blake  <ebb9@byu.net>
69227
69228         * lib/arcfour.c: Assume config.h.
69229         * lib/arctwo.c: Likewise.
69230         * lib/base64.c: Likewise.
69231         * lib/check-version.c: Likewise.
69232         * lib/crc.c: Likewise.
69233         * lib/des.c: Likewise.
69234         * lib/gc-gnulib.c: Likewise.
69235         * lib/gc-libgcrypt.c: Likewise.
69236         * lib/gc-pbkdf2-sha1.c: Likewise.
69237         * lib/getaddrinfo.c: Likewise.
69238         * lib/getdelim.c: Likewise.
69239         * lib/getline.c: Likewise.
69240         * lib/hmac-md5.c: Likewise.
69241         * lib/hmac-sha1.c: Likewise.
69242         * lib/iconvme.c: Likewise.
69243         * lib/md2.c: Likewise.
69244         * lib/md4.c: Likewise.
69245         * lib/memxor.c: Likewise.
69246         * lib/read-file.c: Likewise.
69247         * lib/readline.c: Likewise.
69248         * lib/rijndael-alg-fst.c: Likewise.
69249         * lib/rijndael-api-fst.c: Likewise.
69250         * lib/xgetdomainname.c: Likewise.
69251
69252 2006-10-28  Eric Blake  <ebb9@byu.net>
69253
69254         * lib/xstrndup.c: Assume config.h.
69255
69256 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69259         stat-macros.h is now for our own macros, whereas stat_h is for
69260         macros in the <sys/stat.h> name space.
69261         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69262         (STAT_MACROS_H): Remove.
69263         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69264         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69265         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69266         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69267         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69268         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69269         Move these macros to ...
69270         * lib/stat_.h: here.  Don't include stat-macros.h.
69271         * lib/canonicalize.c: Don't include stat-macros.h.
69272         * lib/chown.c: Likewise.
69273         * lib/euidaccess.c: Likewise.
69274         * lib/file-type.c: Likewise.
69275         * lib/filemode.c: Likewise.
69276         * lib/glob.c: Likewise.
69277         * lib/isapipe.c: Likewise.
69278         * lib/lchown.c: Likewise.
69279         * lib/lstat.c: Likewise.
69280         * lib/mkdir-p.c: Likewise.
69281         * lib/rmdir.c: Likewise.
69282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69284         unless mkdir isn't declared, to speed up 'configure'.
69285         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69286         would define all the S_* symbols.
69287         * modules/canonicalize (Depends-on):
69288         Depend on sys_stat, not stat-macros.
69289         * modules/chown: Likewise.
69290         * modules/euidaccess: Likewise.
69291         * modules/filemode: Likewise.
69292         * modules/file-type: Likewise.
69293         * modules/glob: Likewise.
69294         * modules/isapipe: Likewise.
69295         * modules/lchown: Likewise.
69296         * modules/lstat: Likewise.
69297         * modules/mkancesdirs: Likewise.
69298         * modules/rmdir: Likewise.
69299         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69300         * modules/modechange: Likewise.
69301         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69302         (configure.ac): Remove gl_STAT_MACROS.
69303         * modules/sys_stat (Depends-on): Remove stat-macros.
69304
69305 2006-10-27  Bruno Haible  <bruno@clisp.org>
69306
69307         * m4/signed.m4: Remove file.
69308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69309         invocation.
69310         * modules/vasnprintf (Files): Remove m4/signed.m4.
69311
69312 2006-10-27  Bruno Haible  <bruno@clisp.org>
69313
69314         Update to GNU gettext 0.16.
69315         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69316         m4/inttypes-h.m4, m4/signed.m4.
69317         * m4/gettext.m4: Update to GNU gettext 0.16.
69318         * m4/intl.m4: New file, from GNU gettext.
69319         * m4/intldir.m4: New file, from GNU gettext.
69320         * config/srclist.txt: Update
69321
69322 2006-10-27  Eric Blake  <ebb9@byu.net>
69323
69324         * MODULES.html.sh: Document tempname.
69325         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69326         dependencies.
69327         (Files): Move lib/tempname.c...
69328         * modules/tempname: ...to this new module.
69329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69330         (gl_PREREQ_TEMPNAME): Move...
69331         * m4/tempname.m4: ...to this new file.
69332         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69333         * modules/sys_stat (Depends-on): Add stat-macros.
69334         * lib/stat_.h (includes): Pick up stat macros.
69335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69336         if stat macros are broken.
69337         * lib/tempname.c (includes): No need to include "stat-macros.h".
69338         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69339         (direxists, __path_search) [!_LIBC]: Don't compile these in
69340         gnulib; the tmpdir module covers that.
69341         * lib/tempname.h: New file.
69342
69343 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69344
69345         * COPYING: Explain how gnulib-tool converts licence headers.
69346         Almost all wording by Eric Blake.
69347
69348 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * lib/mbchar.h (is_basic_table): Make read-only.
69351         * lib/mbchar.c (is_basic_table): Likewise.
69352         Reported by John Darrington.
69353
69354 2006-10-25  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/progname.h (set_program_name): Undefine before defining.
69357
69358 2006-10-25  Bruno Haible  <bruno@clisp.org>
69359
69360         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69361         false for non-gcc C++ compilers.
69362         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69363
69364 2006-10-24  Bruno Haible  <bruno@clisp.org>
69365
69366         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69367         iconv implementations like Irix iconv.
69368
69369 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * modules/vararrays: New file.
69372         * m4/vararrays.m4: New file, taken from diffutils.
69373         * MODULES.html.sh: New module vararrays.
69374
69375 2006-10-24  Karl Berry  <karl@gnu.org>
69376
69377         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69378         Don't call GNU Unix.
69379
69380 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69381
69382         * users.txt: Add Libtool.
69383
69384         Sync from Libtool:
69385
69386         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69389         to gnulib's policy of including config.h unconditionally.
69390
69391 2006-10-24  Bruno Haible  <bruno@clisp.org>
69392
69393         * modules/wcwidth (Files): Add m4/wint_t.m4.
69394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69395         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69396
69397 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69400         to pacify GCC with some -W flags enabled.  Problem reported by
69401         Bruno Haible.
69402
69403 2006-10-24  Jim Meyering  <jim@meyering.net>
69404
69405         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69406         Reported by Karl Berry.
69407
69408 2006-10-23  Bruno Haible  <bruno@clisp.org>
69409
69410         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69411
69412 2006-10-24  Bruno Haible  <bruno@clisp.org>
69413
69414         * lib/gl_list.h: Use C comment style, not C++ comment style.
69415
69416 2006-10-23  Eric Blake  <ebb9@byu.net>
69417
69418         * lib/getaddrinfo.c (includes): Add missing include.
69419
69420 2006-10-23  Bruno Haible  <bruno@clisp.org>
69421             Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         Ability to rename obstack_free.
69424         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69425         obstack_free.
69426         (obstack_free): Invoke the __obstack_free macro.
69427         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69428
69429 2006-10-23  Bruno Haible  <bruno@clisp.org>
69430             Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69433         __argc, __argv from the declaration. (They are defined as macros on
69434         mingw.)
69435
69436 2006-10-22  Bruno Haible  <bruno@clisp.org>
69437
69438         * doc/gnulib-intro.texi: New file.
69439         * doc/gnulib.texi: Include it.
69440
69441 2006-10-21  Bruno Haible  <bruno@clisp.org>
69442
69443         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69444         "Introduction", "Miscellanous Notes", "Particular Modules".
69445
69446 2006-10-21  Bruno Haible  <bruno@clisp.org>
69447
69448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69449         Change mostlyclean-local rule to avoid sh syntax error from bash
69450         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69451
69452 2006-10-23  Jim Meyering  <jim@meyering.net>
69453
69454         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69455         in place of snprintf.
69456
69457         * modules/inttostr (Files): Add lib/uinttostr.c.
69458         * lib/uinttostr.c (inttostr): New file/function.
69459         * lib/inttostr.h (uinttostr): Declare.
69460         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69461         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69462         Add uinttostr.
69463         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69464
69465 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         * lib/canonicalize.c (ELOOP): Define if not already defined.
69468         Problem reported by Bruno Haible in
69469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69470
69471 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69474         Problem reported by Perry Smith and Ville Laurikari.
69475
69476         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69477         uses.
69478
69479 2006-10-19  Bruno Haible  <bruno@clisp.org>
69480
69481         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69482         for mingw.
69483
69484 2006-10-19  Bruno Haible  <bruno@clisp.org>
69485
69486         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69487         Needed for mingw.
69488
69489 2006-10-19  Bruno Haible  <bruno@clisp.org>
69490
69491         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69492
69493 2006-10-19  Bruno Haible  <bruno@clisp.org>
69494
69495         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69496         it.
69497
69498 2006-10-19  Bruno Haible  <bruno@clisp.org>
69499
69500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69501         invocation.
69502
69503 2006-10-19  Bruno Haible  <bruno@clisp.org>
69504
69505         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69506         mountlist by default.
69507
69508 2006-10-16  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/c-strstr.c: Include c-strstr.h.
69511
69512 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69513
69514         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69515         in a slash.
69516
69517 2006-10-18  Bruno Haible  <bruno@clisp.org>
69518
69519         * lib/lock.h [C++]: Wrap definitions in extern "C".
69520
69521 2006-10-18  Bruno Haible  <bruno@clisp.org>
69522
69523         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69524         gl_LIBOBJS list.
69525
69526 2006-10-18  Bruno Haible  <bruno@clisp.org>
69527
69528         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69529
69530 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * lib/xstrtol.h: Include gettext.h.
69533         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69534         Problem reported by Eric Blake.
69535         * modules/xstrtol (Depends-on): Add gettext-h.
69536
69537 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69538
69539         * lib/strftime.c (advance): New macro.
69540         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69541         incomplete type, so you can't add 0 to it.  Problem and patch
69542         reported by Eelco Dolstra for dietlibc.
69543
69544 2006-10-18  Jim Meyering  <jim@meyering.net>
69545
69546         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69547         type for a local, and rename it: s/up/user_proc/.
69548
69549 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69550
69551         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69552         READ_UTMP_USER_PROCESS.
69553         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69554
69555 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69558         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69559
69560 2006-10-17  Eric Blake  <ebb9@byu.net>
69561
69562         * lib/sigprocmask.c (sigprocmask): Fix typo.
69563
69564         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69565
69566         * modules/clean-temp (Makefile.am): Don't add to make output...
69567         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69568         config.h.
69569
69570 2006-10-17  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69573         differently if DEFAULT_TEXT_DOMAIN is set.
69574
69575 2006-10-16  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/clean-temp.c: Include fwriteerror.h.
69578
69579 2006-10-16  Bruno Haible  <bruno@clisp.org>
69580
69581         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69582
69583 2006-10-16  Bruno Haible  <bruno@clisp.org>
69584
69585         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69586         * lib/sigprocmask.h: Include <sys/types.h>.
69587         (sigset_t): Use the system's definition if present.
69588
69589 2006-10-17  Eric Blake  <ebb9@byu.net>
69590
69591         * lib/xvasprintf.c (includes): Assume config.h.
69592         * lib/xasprintf.c (includes): Likewise.
69593
69594 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69597         at least as wide as intmax_t.
69598
69599 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69600
69601         (Imported from Automake.)
69602         * build-aux/gnupload: Update to version 1.1 of directive file.
69603
69604 2006-10-16  Eric Blake  <ebb9@byu.net>
69605
69606         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69607         match Automake 1.10a.
69608
69609 2006-10-14  Bruno Haible  <bruno@clisp.org>
69610
69611         * modules/sigprocmask: New file.
69612         * lib/sigprocmask.h: New file.
69613         * lib/sigprocmask.c: New file.
69614         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69615         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69616         request sigprocmask.o.
69617         (gl_PREREQ_SIGPROCMASK): New macro.
69618         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69619         (Depends-on): Add sigprocmask.
69620         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69621         gt_SIGNALBLOCKING. Test for 'raise' only once.
69622         * lib/fatal-signal.c: Include sigprocmask.h.
69623         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69624         unblock_fatal_signals): Define always.
69625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69626         sigprocmask.
69627
69628 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         Sync from Automake.
69631         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69632         which incorrectly sets the mode of an existing destination
69633         directory.  In some cases the unpatched install-sh could do the
69634         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69635         system.  We hope this is rare in practice, but it's clearly worth
69636         fixing.  Problem reported by Alex Unleashed in
69637         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69638         Also, don't bother to check for -m bugs unless we're using -m;
69639         suggested by Stepan Kasal.
69640
69641 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69642
69643         Sync from Automake.
69644         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69645         `-c' flag, so they appear at the same position as in %FASTDEP%
69646         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69647         which ignores unknown options only after the first non-option.
69648         Bug report against M4 by Nelson H. F. Beebe.
69649
69650 2006-10-13  Jim Meyering  <jim@meyering.net>
69651
69652         Fix a bug in yesterday's change.
69653         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69654         p->fts_statp->st_dev would be used uninitialized.
69655         Ensures that we always call fts_stat on the very first entry.
69656         Miklos Szeredi reported that find -xdev stopped working.
69657
69658 2006-10-12  Bruno Haible  <bruno@clisp.org>
69659
69660         * gnulib-tool (func_get_automake_snippet): Append an automatically
69661         computed EXTRA_DIST augmentation.
69662         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69663         * modules/alloca-opt (Makefile.am): Likewise.
69664         * modules/allocsa (Makefile.am): Likewise.
69665         * modules/arcfour (Makefile.am): Likewise.
69666         * modules/arctwo (Makefile.am): Likewise.
69667         * modules/argmatch (Makefile.am): Likewise.
69668         * modules/argz (Makefile.am): Likewise.
69669         * modules/atexit (Makefile.am): Likewise.
69670         * modules/backupfile (Makefile.am): Likewise.
69671         * modules/byteswap (Makefile.am): Likewise.
69672         * modules/c-strtod (Makefile.am): Likewise.
69673         * modules/c-strtold (Makefile.am): Likewise.
69674         * modules/calloc (Makefile.am): Likewise.
69675         * modules/canon-host (Makefile.am): Likewise.
69676         * modules/canonicalize (Makefile.am): Likewise.
69677         * modules/chdir-long (Makefile.am): Likewise.
69678         * modules/chdir-safer (Makefile.am): Likewise.
69679         * modules/check-version (Makefile.am): Likewise.
69680         * modules/chown (Makefile.am): Likewise.
69681         * modules/cloexec (Makefile.am): Likewise.
69682         * modules/close-stream (Makefile.am): Likewise.
69683         * modules/closeout (Makefile.am): Likewise.
69684         * modules/crc (Makefile.am): Likewise.
69685         * modules/csharpexec (Makefile.am): Likewise.
69686         * modules/cycle-check (Makefile.am): Likewise.
69687         * modules/des (Makefile.am): Likewise.
69688         * modules/dev-ino (Makefile.am): Likewise.
69689         * modules/dirfd (Makefile.am): Likewise.
69690         * modules/dirname (Makefile.am): Likewise.
69691         * modules/dup2 (Makefile.am): Likewise.
69692         * modules/eealloc (Makefile.am): Likewise.
69693         * modules/error (Makefile.am): Likewise.
69694         * modules/euidaccess (Makefile.am): Likewise.
69695         * modules/exclude (Makefile.am): Likewise.
69696         * modules/exitfail (Makefile.am): Likewise.
69697         * modules/fcntl-safer (Makefile.am): Likewise.
69698         * modules/fcntl (Makefile.am): Likewise.
69699         * modules/file-type (Makefile.am): Likewise.
69700         * modules/fileblocks (Makefile.am): Likewise.
69701         * modules/filemode (Makefile.am): Likewise.
69702         * modules/filenamecat (Makefile.am): Likewise.
69703         * modules/fnmatch (Makefile.am): Likewise.
69704         * modules/fopen-safer (Makefile.am): Likewise.
69705         * modules/fpending (Makefile.am): Likewise.
69706         * modules/fprintftime (Makefile.am): Likewise.
69707         * modules/free (Makefile.am): Likewise.
69708         * modules/fsusage (Makefile.am): Likewise.
69709         * modules/ftruncate (Makefile.am): Likewise.
69710         * modules/fts (Makefile.am): Likewise.
69711         * modules/gc-arcfour (Makefile.am): Likewise.
69712         * modules/gc-des (Makefile.am): Likewise.
69713         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69714         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69715         * modules/gc-md4 (Makefile.am): Likewise.
69716         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69717         * modules/gc-sha1 (Makefile.am): Likewise.
69718         * modules/gc (Makefile.am): Likewise.
69719         * modules/getaddrinfo (Makefile.am): Likewise.
69720         * modules/getcwd (Makefile.am): Likewise.
69721         * modules/getdelim (Makefile.am): Likewise.
69722         * modules/getdomainname (Makefile.am): Likewise.
69723         * modules/getgroups (Makefile.am): Likewise.
69724         * modules/gethostname (Makefile.am): Likewise.
69725         * modules/gethrxtime (Makefile.am): Likewise.
69726         * modules/getline (Makefile.am): Likewise.
69727         * modules/getloadavg (Makefile.am): Likewise.
69728         * modules/getlogin_r (Makefile.am): Likewise.
69729         * modules/getndelim2 (Makefile.am): Likewise.
69730         * modules/getopt (Makefile.am): Likewise.
69731         * modules/getpagesize (Makefile.am): Likewise.
69732         * modules/getpass-gnu (Makefile.am): Likewise.
69733         * modules/getpass (Makefile.am): Likewise.
69734         * modules/getsubopt (Makefile.am): Likewise.
69735         * modules/gettime (Makefile.am): Likewise.
69736         * modules/gettimeofday (Makefile.am): Likewise.
69737         * modules/getugroups (Makefile.am): Likewise.
69738         * modules/getusershell (Makefile.am): Likewise.
69739         * modules/glob (Makefile.am): Likewise.
69740         * modules/group-member (Makefile.am): Likewise.
69741         * modules/hard-locale (Makefile.am): Likewise.
69742         * modules/hash (Makefile.am): Likewise.
69743         * modules/hmac-md5 (Makefile.am): Likewise.
69744         * modules/hmac-sha1 (Makefile.am): Likewise.
69745         * modules/human (Makefile.am): Likewise.
69746         * modules/idcache (Makefile.am): Likewise.
69747         * modules/imaxabs (Makefile.am): Likewise.
69748         * modules/imaxdiv (Makefile.am): Likewise.
69749         * modules/inet_ntop (Makefile.am): Likewise.
69750         * modules/inet_pton (Makefile.am): Likewise.
69751         * modules/intprops (Makefile.am): Likewise.
69752         * modules/inttostr (Makefile.am): Likewise.
69753         * modules/inttypes (Makefile.am): Likewise.
69754         * modules/isapipe (Makefile.am): Likewise.
69755         * modules/javaversion (Makefile.am): Likewise.
69756         * modules/lchmod (Makefile.am): Likewise.
69757         * modules/lchown (Makefile.am): Likewise.
69758         * modules/localcharset (Makefile.am): Likewise.
69759         * modules/long-options (Makefile.am): Likewise.
69760         * modules/lstat (Makefile.am): Likewise.
69761         * modules/malloc (Makefile.am): Likewise.
69762         * modules/mathl (Makefile.am): Likewise.
69763         * modules/mbchar (Makefile.am): Likewise.
69764         * modules/md2 (Makefile.am): Likewise.
69765         * modules/md4 (Makefile.am): Likewise.
69766         * modules/md5 (Makefile.am): Likewise.
69767         * modules/memcasecmp (Makefile.am): Likewise.
69768         * modules/memchr (Makefile.am): Likewise.
69769         * modules/memcmp (Makefile.am): Likewise.
69770         * modules/memcoll (Makefile.am): Likewise.
69771         * modules/memcpy (Makefile.am): Likewise.
69772         * modules/memmem (Makefile.am): Likewise.
69773         * modules/memmove (Makefile.am): Likewise.
69774         * modules/mempcpy (Makefile.am): Likewise.
69775         * modules/memrchr (Makefile.am): Likewise.
69776         * modules/memset (Makefile.am): Likewise.
69777         * modules/memxor (Makefile.am): Likewise.
69778         * modules/mkancesdirs (Makefile.am): Likewise.
69779         * modules/mkdir-p (Makefile.am): Likewise.
69780         * modules/mkdir (Makefile.am): Likewise.
69781         * modules/mkdtemp (Makefile.am): Likewise.
69782         * modules/mkstemp (Makefile.am): Likewise.
69783         * modules/mktime (Makefile.am): Likewise.
69784         * modules/modechange (Makefile.am): Likewise.
69785         * modules/mountlist (Makefile.am): Likewise.
69786         * modules/nanosleep (Makefile.am): Likewise.
69787         * modules/obstack (Makefile.am): Likewise.
69788         * modules/openat (Makefile.am): Likewise.
69789         * modules/pagealign_alloc (Makefile.am): Likewise.
69790         * modules/pathmax (Makefile.am): Likewise.
69791         * modules/physmem (Makefile.am): Likewise.
69792         * modules/poll (Makefile.am): Likewise.
69793         * modules/posixtm (Makefile.am): Likewise.
69794         * modules/posixver (Makefile.am): Likewise.
69795         * modules/putenv (Makefile.am): Likewise.
69796         * modules/quote (Makefile.am): Likewise.
69797         * modules/quotearg (Makefile.am): Likewise.
69798         * modules/raise (Makefile.am): Likewise.
69799         * modules/read-file (Makefile.am): Likewise.
69800         * modules/readline (Makefile.am): Likewise.
69801         * modules/readlink (Makefile.am): Likewise.
69802         * modules/readtokens (Makefile.am): Likewise.
69803         * modules/readutmp (Makefile.am): Likewise.
69804         * modules/realloc (Makefile.am): Likewise.
69805         * modules/regex (Makefile.am): Likewise.
69806         * modules/rename-dest-slash (Makefile.am): Likewise.
69807         * modules/rename (Makefile.am): Likewise.
69808         * modules/rijndael (Makefile.am): Likewise.
69809         * modules/rmdir (Makefile.am): Likewise.
69810         * modules/rpmatch (Makefile.am): Likewise.
69811         * modules/safe-read (Makefile.am): Likewise.
69812         * modules/safe-write (Makefile.am): Likewise.
69813         * modules/same-inode (Makefile.am): Likewise.
69814         * modules/same (Makefile.am): Likewise.
69815         * modules/save-cwd (Makefile.am): Likewise.
69816         * modules/savedir (Makefile.am): Likewise.
69817         * modules/setenv (Makefile.am): Likewise.
69818         * modules/settime (Makefile.am): Likewise.
69819         * modules/sha1 (Makefile.am): Likewise.
69820         * modules/sig2str (Makefile.am): Likewise.
69821         * modules/snprintf (Makefile.am): Likewise.
69822         * modules/stat-macros (Makefile.am): Likewise.
69823         * modules/stat-time (Makefile.am): Likewise.
69824         * modules/stdbool (Makefile.am): Likewise.
69825         * modules/stdint (Makefile.am): Likewise.
69826         * modules/stdlib-safer (Makefile.am): Likewise.
69827         * modules/stpcpy (Makefile.am): Likewise.
69828         * modules/stpncpy (Makefile.am): Likewise.
69829         * modules/strcase (Makefile.am): Likewise.
69830         * modules/strcasestr (Makefile.am): Likewise.
69831         * modules/strchrnul (Makefile.am): Likewise.
69832         * modules/strcspn (Makefile.am): Likewise.
69833         * modules/strdup (Makefile.am): Likewise.
69834         * modules/strerror (Makefile.am): Likewise.
69835         * modules/strftime (Makefile.am): Likewise.
69836         * modules/strndup (Makefile.am): Likewise.
69837         * modules/strnlen (Makefile.am): Likewise.
69838         * modules/strpbrk (Makefile.am): Likewise.
69839         * modules/strsep (Makefile.am): Likewise.
69840         * modules/strstr (Makefile.am): Likewise.
69841         * modules/strtod (Makefile.am): Likewise.
69842         * modules/strtoimax (Makefile.am): Likewise.
69843         * modules/strtok_r (Makefile.am): Likewise.
69844         * modules/strtol (Makefile.am): Likewise.
69845         * modules/strtoll (Makefile.am): Likewise.
69846         * modules/strtoul (Makefile.am): Likewise.
69847         * modules/strtoull (Makefile.am): Likewise.
69848         * modules/strtoumax (Makefile.am): Likewise.
69849         * modules/strverscmp (Makefile.am): Likewise.
69850         * modules/sys_socket (Makefile.am): Likewise.
69851         * modules/sys_stat (Makefile.am): Likewise.
69852         * modules/sysexits (Makefile.am): Likewise.
69853         * modules/time_r (Makefile.am): Likewise.
69854         * modules/timegm (Makefile.am): Likewise.
69855         * modules/timespec (Makefile.am): Likewise.
69856         * modules/tmpfile-safer (Makefile.am): Likewise.
69857         * modules/trim (Makefile.am): Likewise.
69858         * modules/unistd-safer (Makefile.am): Likewise.
69859         * modules/unlinkdir (Makefile.am): Likewise.
69860         * modules/unlocked-io (Makefile.am): Likewise.
69861         * modules/userspec (Makefile.am): Likewise.
69862         * modules/utime (Makefile.am): Likewise.
69863         * modules/utimecmp (Makefile.am): Likewise.
69864         * modules/utimens (Makefile.am): Likewise.
69865         * modules/vasnprintf (Makefile.am): Likewise.
69866         * modules/vasprintf (Makefile.am): Likewise.
69867         * modules/vsnprintf (Makefile.am): Likewise.
69868         * modules/xalloc (Makefile.am): Likewise.
69869         * modules/xgetcwd (Makefile.am): Likewise.
69870         * modules/xnanosleep (Makefile.am): Likewise.
69871         * modules/xreadlink (Makefile.am): Likewise.
69872         * modules/xstrtod (Makefile.am): Likewise.
69873         * modules/xstrtol (Makefile.am): Likewise.
69874         * modules/xstrtold (Makefile.am): Likewise.
69875         * modules/yesno (Makefile.am): Likewise.
69876         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69877
69878 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * modules/error (Makefile.am): Distribute files through
69881         EXTRA_DIST, not lib_SOURCES.
69882
69883 2006-10-12  Eric Blake  <ebb9@byu.net>
69884
69885         * modules/error (Makefile.am): Distribute files in /lib.
69886         * modules/obstack (Makefile.am): Likewise.
69887
69888 2006-10-12  Bruno Haible  <bruno@clisp.org>
69889
69890         * modules/acl (Makefile.am): Distribute all files in lib/ through
69891         EXTRA_DIST.
69892         * modules/arcfour (Makefile.am): Likewise.
69893         * modules/arctwo (Makefile.am): Likewise.
69894         * modules/argmatch (Makefile.am): Likewise.
69895         * modules/argz (Makefile.am): Likewise.
69896         * modules/atexit (Makefile.am): Likewise.
69897         * modules/backupfile (Makefile.am): Likewise.
69898         * modules/c-strtod (Makefile.am): Likewise.
69899         * modules/c-strtold (Makefile.am): Likewise.
69900         * modules/calloc (Makefile.am): Likewise.
69901         * modules/canon-host (Makefile.am): Likewise.
69902         * modules/canonicalize (Makefile.am): Likewise.
69903         * modules/chdir-long (Makefile.am): Likewise.
69904         * modules/chdir-safer (Makefile.am): Likewise.
69905         * modules/check-version (Makefile.am): Likewise.
69906         * modules/chown (Makefile.am): Likewise.
69907         * modules/cloexec (Makefile.am): Likewise.
69908         * modules/close-stream (Makefile.am): Likewise.
69909         * modules/closeout (Makefile.am): Likewise.
69910         * modules/crc (Makefile.am): Likewise.
69911         * modules/cycle-check (Makefile.am): Likewise.
69912         * modules/des (Makefile.am): Likewise.
69913         * modules/dirfd (Makefile.am): Likewise.
69914         * modules/dirname (Makefile.am): Likewise.
69915         * modules/dup2 (Makefile.am): Likewise.
69916         * modules/euidaccess (Makefile.am): Likewise.
69917         * modules/exclude (Makefile.am): Likewise.
69918         * modules/exitfail (Makefile.am): Likewise.
69919         * modules/fcntl-safer (Makefile.am): Likewise.
69920         * modules/file-type (Makefile.am): Likewise.
69921         * modules/fileblocks (Makefile.am): Likewise.
69922         * modules/filemode (Makefile.am): Likewise.
69923         * modules/filenamecat (Makefile.am): Likewise.
69924         * modules/fnmatch (Makefile.am): Likewise.
69925         * modules/fopen-safer (Makefile.am): Likewise.
69926         * modules/fpending (Makefile.am): Likewise.
69927         * modules/fprintftime (Makefile.am): Likewise.
69928         * modules/free (Makefile.am): Likewise.
69929         * modules/fsusage (Makefile.am): Likewise.
69930         * modules/ftruncate (Makefile.am): Likewise.
69931         * modules/fts (Makefile.am): Likewise.
69932         * modules/gc (Makefile.am): Likewise.
69933         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69934         * modules/getaddrinfo (Makefile.am): Likewise.
69935         * modules/getcwd (Makefile.am): Likewise.
69936         * modules/getdelim (Makefile.am): Likewise.
69937         * modules/getdomainname (Makefile.am): Likewise.
69938         * modules/getgroups (Makefile.am): Likewise.
69939         * modules/gethostname (Makefile.am): Likewise.
69940         * modules/gethrxtime (Makefile.am): Likewise.
69941         * modules/getline (Makefile.am): Likewise.
69942         * modules/getloadavg (Makefile.am): Likewise.
69943         * modules/getlogin_r (Makefile.am): Likewise.
69944         * modules/getopt (Makefile.am): Likewise.
69945         * modules/getpass (Makefile.am): Likewise.
69946         * modules/getpass-gnu (Makefile.am): Likewise.
69947         * modules/getsubopt (Makefile.am): Likewise.
69948         * modules/gettime (Makefile.am): Likewise.
69949         * modules/gettimeofday (Makefile.am): Likewise.
69950         * modules/getugroups (Makefile.am): Likewise.
69951         * modules/getusershell (Makefile.am): Likewise.
69952         * modules/glob (Makefile.am): Likewise.
69953         * modules/group-member (Makefile.am): Likewise.
69954         * modules/hard-locale (Makefile.am): Likewise.
69955         * modules/hash (Makefile.am): Likewise.
69956         * modules/hmac-md5 (Makefile.am): Likewise.
69957         * modules/hmac-sha1 (Makefile.am): Likewise.
69958         * modules/human (Makefile.am): Likewise.
69959         * modules/idcache (Makefile.am): Likewise.
69960         * modules/imaxabs (Makefile.am): Likewise.
69961         * modules/imaxdiv (Makefile.am): Likewise.
69962         * modules/inet_ntop (Makefile.am): Likewise.
69963         * modules/inet_pton (Makefile.am): Likewise.
69964         * modules/inttostr (Makefile.am): Likewise.
69965         * modules/isapipe (Makefile.am): Likewise.
69966         * modules/lchown (Makefile.am): Likewise.
69967         * modules/long-options (Makefile.am): Likewise.
69968         * modules/lstat (Makefile.am): Likewise.
69969         * modules/malloc (Makefile.am): Likewise.
69970         * modules/mathl (Makefile.am): Likewise.
69971         * modules/mbchar (Makefile.am): Likewise.
69972         * modules/md2 (Makefile.am): Likewise.
69973         * modules/md4 (Makefile.am): Likewise.
69974         * modules/md5 (Makefile.am): Likewise.
69975         * modules/memcasecmp (Makefile.am): Likewise.
69976         * modules/memchr (Makefile.am): Likewise.
69977         * modules/memcmp (Makefile.am): Likewise.
69978         * modules/memcoll (Makefile.am): Likewise.
69979         * modules/memcpy (Makefile.am): Likewise.
69980         * modules/memmem (Makefile.am): Likewise.
69981         * modules/memmove (Makefile.am): Likewise.
69982         * modules/mempcpy (Makefile.am): Likewise.
69983         * modules/memrchr (Makefile.am): Likewise.
69984         * modules/memset (Makefile.am): Likewise.
69985         * modules/memxor (Makefile.am): Likewise.
69986         * modules/mkancesdirs (Makefile.am): Likewise.
69987         * modules/mkdir (Makefile.am): Likewise.
69988         * modules/mkdir-p (Makefile.am): Likewise.
69989         * modules/mkdtemp (Makefile.am): Likewise.
69990         * modules/mkstemp (Makefile.am): Likewise.
69991         * modules/mktime (Makefile.am): Likewise.
69992         * modules/modechange (Makefile.am): Likewise.
69993         * modules/mountlist (Makefile.am): Likewise.
69994         * modules/nanosleep (Makefile.am): Likewise.
69995         * modules/openat (Makefile.am): Likewise.
69996         * modules/pagealign_alloc (Makefile.am): Likewise.
69997         * modules/physmem (Makefile.am): Likewise.
69998         * modules/poll (Makefile.am): Likewise.
69999         * modules/posixtm (Makefile.am): Likewise.
70000         * modules/posixver (Makefile.am): Likewise.
70001         * modules/putenv (Makefile.am): Likewise.
70002         * modules/quote (Makefile.am): Likewise.
70003         * modules/quotearg (Makefile.am): Likewise.
70004         * modules/raise (Makefile.am): Likewise.
70005         * modules/read-file (Makefile.am): Likewise.
70006         * modules/readline (Makefile.am): Likewise.
70007         * modules/readlink (Makefile.am): Likewise.
70008         * modules/readtokens (Makefile.am): Likewise.
70009         * modules/readutmp (Makefile.am): Likewise.
70010         * modules/realloc (Makefile.am): Likewise.
70011         * modules/regex (Makefile.am): Likewise.
70012         * modules/rename (Makefile.am): Likewise.
70013         * modules/rename-dest-slash (Makefile.am): Likewise.
70014         * modules/rijndael (Makefile.am): Likewise.
70015         * modules/rmdir (Makefile.am): Likewise.
70016         * modules/rpmatch (Makefile.am): Likewise.
70017         * modules/safe-read (Makefile.am): Likewise.
70018         * modules/safe-write (Makefile.am): Likewise.
70019         * modules/same (Makefile.am): Likewise.
70020         * modules/save-cwd (Makefile.am): Likewise.
70021         * modules/savedir (Makefile.am): Likewise.
70022         * modules/setenv (Makefile.am): Likewise.
70023         * modules/settime (Makefile.am): Likewise.
70024         * modules/sha1 (Makefile.am): Likewise.
70025         * modules/sig2str (Makefile.am): Likewise.
70026         * modules/snprintf (Makefile.am): Likewise.
70027         * modules/stdlib-safer (Makefile.am): Likewise.
70028         * modules/stpcpy (Makefile.am): Likewise.
70029         * modules/stpncpy (Makefile.am): Likewise.
70030         * modules/strcase (Makefile.am): Likewise.
70031         * modules/strcasestr (Makefile.am): Likewise.
70032         * modules/strchrnul (Makefile.am): Likewise.
70033         * modules/strcspn (Makefile.am): Likewise.
70034         * modules/strdup (Makefile.am): Likewise.
70035         * modules/strerror (Makefile.am): Likewise.
70036         * modules/strftime (Makefile.am): Likewise.
70037         * modules/strndup (Makefile.am): Likewise.
70038         * modules/strnlen (Makefile.am): Likewise.
70039         * modules/strpbrk (Makefile.am): Likewise.
70040         * modules/strsep (Makefile.am): Likewise.
70041         * modules/strstr (Makefile.am): Likewise.
70042         * modules/strtod (Makefile.am): Likewise.
70043         * modules/strtoimax (Makefile.am): Likewise.
70044         * modules/strtok_r (Makefile.am): Likewise.
70045         * modules/strtol (Makefile.am): Likewise.
70046         * modules/strtoll (Makefile.am): Likewise.
70047         * modules/strtoul (Makefile.am): Likewise.
70048         * modules/strtoull (Makefile.am): Likewise.
70049         * modules/strtoumax (Makefile.am): Likewise.
70050         * modules/strverscmp (Makefile.am): Likewise.
70051         * modules/time_r (Makefile.am): Likewise.
70052         * modules/timegm (Makefile.am): Likewise.
70053         * modules/tmpfile-safer (Makefile.am): Likewise.
70054         * modules/unistd-safer (Makefile.am): Likewise.
70055         * modules/unlinkdir (Makefile.am): Likewise.
70056         * modules/userspec (Makefile.am): Likewise.
70057         * modules/utime (Makefile.am): Likewise.
70058         * modules/utimecmp (Makefile.am): Likewise.
70059         * modules/utimens (Makefile.am): Likewise.
70060         * modules/vasnprintf (Makefile.am): Likewise.
70061         * modules/vasprintf (Makefile.am): Likewise.
70062         * modules/vsnprintf (Makefile.am): Likewise.
70063         * modules/xalloc (Makefile.am): Likewise.
70064         * modules/xgetcwd (Makefile.am): Likewise.
70065         * modules/xnanosleep (Makefile.am): Likewise.
70066         * modules/xreadlink (Makefile.am): Likewise.
70067         * modules/xstrtod (Makefile.am): Likewise.
70068         * modules/xstrtol (Makefile.am): Likewise.
70069         * modules/xstrtold (Makefile.am): Likewise.
70070         * modules/yesno (Makefile.am): Likewise.
70071
70072 2006-10-12  Jim Meyering  <jim@meyering.net>
70073
70074         * m4/getloadavg.m4: Revert the change below.
70075
70076         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70077         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70078         fail with a symlink, which is what coreutils' ./bootstrap now
70079         creates by default.
70080
70081 2006-10-12  Bruno Haible  <bruno@clisp.org>
70082
70083         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70084         mingw.
70085         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70086         MSVC and mingw explicitly.
70087
70088 2006-10-11  Simon Josefsson  <jas@extundo.com>
70089             Bruno Haible  <bruno@clisp.org>
70090
70091         Add support for multiple gnulib-tool invocations in the scope of a
70092         single configure.ac file.
70093         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70094         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70095         with the same contents as the _LIBADD variable.
70096         (func_emit_initmacro_start, func_emit_initmacro_end,
70097         func_emit_initmacro_done): New functions.
70098         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70099         gl_LIBOBJS and gl_LTLIBOBJS.
70100
70101 2006-10-11  Bruno Haible  <bruno@clisp.org>
70102
70103         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70104         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70105         autoreconf. Instead, invoke autopoint explicitly but move back the
70106         *.m4 files from gnulib.
70107
70108 2006-10-11  Bruno Haible  <bruno@clisp.org>
70109
70110         * gnulib-tool (func_usage): Make module names after --create-testdir
70111         optional.
70112         (func_create_testdir): If no module was specified, use nearly all
70113         modules.
70114
70115 2006-10-12  Jim Meyering  <jim@meyering.net>
70116
70117         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70118         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70119         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70120         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70121         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70122         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70123         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70124         (fts_set_stat_required): New function.
70125         (fts_open): Defer the calls to fts_stat, if possible or requested.
70126         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70127         into fts_stat itself.
70128         (fts_read): Perform any required (deferred) fts_stat call.
70129         (fts_build): Likewise, for the directory we're about to open and read.
70130         In the readdir loop, carefully decide whether each entry will require
70131         an eventual call to fts_stat, using dirent.d_type info if available.
70132         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70133         a command line argument into this function.  Update all callers.
70134         Map a return value of FTS_DOT to FTS_D for a command line argument.
70135         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70136         Thanks to Miklos Szeredi for his tenacity and for the initial
70137         bug report about "find" failing on a FUSE-based file system.
70138
70139         * lib/fts.c (fts_open): Use consistent indentation.
70140
70141 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70142
70143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70144         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70145         reported by Jim Meyering.  All uses of cache variables renamed
70146         to match Autoconf's.
70147         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70148         the other one.
70149
70150         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70151         Fix misspelling in diagnostic.
70152
70153 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70154
70155         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70156         defined.  Problem reported by Matthew Woehlke.
70157
70158         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70159         Add support for Tandem NonStop R series.
70160         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70161         Use new macro.
70162
70163         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70164         (has_trailing_slash): Omit size arg; all callers changed.
70165         Omit 'inline', since it doesn't help performance and we'd
70166         need to configure it.
70167         Don't count //, ///, etc. as having a trailing slash.
70168         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70169         (rpl_rename_dest_slash): On failure, use rename's errno rather
70170         than (in some cases) an incorrect or junk errno.
70171         Simplify code by removing need to compute length; this does
70172         cause it to make two passes instead of one over the file name,
70173         but it's worth it.
70174
70175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70176         change, since Autoconf's version may no longer be appropriate now
70177         that we are using CVS Autoconf's version.  Add support for Tandem.
70178
70179 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70180             Bruno Haible  <bruno@clisp.org>
70181
70182         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70183         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70184         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70185         gl_AC_TYPE_LONG_LONG.
70186
70187         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70188         instead of HAVE_LONG_LONG.
70189         * lib/printf-args.c (printf_fetchargs): Likewise.
70190         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70191         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70192         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70193         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70194         gl_AC_TYPE_LONG_LONG.
70195
70196 2006-10-11  Bruno Haible  <bruno@clisp.org>
70197
70198         * m4/longlong.m4: Add comments.
70199         * m4/ulonglong.m4: Likewise.
70200
70201 2006-10-10  Bruno Haible  <bruno@clisp.org>
70202
70203         Make it possible to #define stpcpy, strdup to aliases.
70204         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70205         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70206
70207 2006-10-10  Bruno Haible  <bruno@clisp.org>
70208
70209         Make it possible to #define gcd to an alias.
70210         * lib/gcd.c: Include config.h.
70211
70212 2006-10-10  Bruno Haible  <bruno@clisp.org>
70213
70214         Make it possible to #define c_isascii to an alias.
70215         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70216         defined. Undefine the macros before defining them, to avoid gcc
70217         warnings.
70218         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70219         define NO_C_CTYPE_MACROS early.
70220
70221 2006-10-10  Bruno Haible  <bruno@clisp.org>
70222
70223         Make it possible to #define set_program_name to an alias.
70224         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70225         ENABLE_RELOCATABLE early.
70226
70227 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70228
70229         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70230         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70231         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70232         More generally, don't assume that 64-bit signed int is available
70233         if unsigned int is, and vice versa.
70234         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70235         unsigned symbols, not on their signed counterparts.
70236         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70237         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70238         (UINT64_C, UINTMAX_C):
70239         Likewise.
70240         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70241         unsigned counterparts.
70242         (Have_long_long, Unsigned): New macros.
70243         (Int): Renamed from INT.
70244         (strtoimax): Use the new macros.
70245         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70246         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70247         * modules/inttypes (inttypes.h): Substitute
70248         HAVE_UNSIGNED_LONG_LONG_INT.
70249         * modules/stdint (stdint.h): Likewise.
70250         (Files): Add m4/ulonglong.m4.
70251
70252 2006-10-10  Bruno Haible  <bruno@clisp.org>
70253
70254         Fix a gcc -Wshadow warning.
70255         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70256         to 'bucket'.
70257         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70258         gl_linked_indexof_from_to): Likewise.
70259         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70260         Likewise.
70261         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70262         Likewise.
70263         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70264         Reported by Eric Blake.
70265
70266 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70269         for NetBSD.  Problem reported by Bruno Haible.
70270
70271 2006-10-09  Jim Meyering  <jim@meyering.net>
70272
70273         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70274         Patch from Bruno Haible.
70275
70276 2006-10-09  Jim Meyering  <jim@meyering.net>
70277
70278         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70279         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70280         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70281
70282 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         Don't include <config.h> twice; this doesn't work in some cases,
70285         e.g., when config.h has "#define intmax_t long long int" and
70286         we include <config.h>, <inttypes.h>, <config.h> in that order.
70287         Problem reported by Matthew Woehlke in:
70288         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
70289         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
70290         * lib/fts-cycle.c: Don't include config.h.
70291         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
70292         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
70293         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
70294         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
70295         inttypes.h.
70296         * lib/xstrtoumax.c: Likewise.
70297         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70298         __strtol and the like, so that this module is more like its siblings.
70299         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70300         Remove; no longer needed now that we assume gnulib inttypes.h.
70301
70302 2006-10-08  Bruno Haible  <bruno@clisp.org>
70303
70304         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70305         option.
70306
70307 2006-10-07  Jim Meyering  <jim@meyering.net>
70308
70309         * modules/inttypes (inttypes.h): Revert what seems to have been
70310         an inadvertent part of today's change: use "|", not "/" in the
70311         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70312
70313 2006-10-07  Bruno Haible  <bruno@clisp.org>
70314
70315         * modules/sublist: New file.
70316
70317 2006-10-07  Bruno Haible  <bruno@clisp.org>
70318
70319         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70320         * modules/argz (argz.h): Likewise.
70321         * modules/arpa_inet (arpa/inet.h): Likewise.
70322         * modules/byteswap (byteswap.h): Likewise.
70323         * modules/configmake (configmake.h): Likewise.
70324         * modules/fcntl (fcntl.h): Likewise.
70325         * modules/fnmatch (fnmatch.h): Likewise.
70326         * modules/getopt (getopt.h): Likewise.
70327         * modules/glob (glob.h): Likewise.
70328         * modules/inttypes (inttypes.h): Likewise.
70329         * modules/netinet_in (netinet/in.h): Likewise.
70330         * modules/poll (poll.h): Likewise.
70331         * modules/stdbool (stdbool.h): Likewise.
70332         * modules/stdint (stdint.h): Likewise.
70333         * modules/sys_select (sys/select.h): Likewise.
70334         * modules/sys_socket (sys/socket.h): Likewise.
70335         * modules/sys_stat (sys/stat.h): Likewise.
70336         * modules/sysexits (sysexits.h): Likewise.
70337         * modules/unistd (unistd.h): Likewise.
70338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70339         Add a "DO NOT EDIT" comment to the generated file.
70340         (func_import): Likewise for gnulib-comp.m4.
70341
70342 2006-10-07  Bruno Haible  <bruno@clisp.org>
70343
70344         * lib/gl_sublist.h: New file.
70345         * lib/gl_sublist.c: New file.
70346
70347 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70350         name (relative to the original working directory) and the file
70351         name component (relative to the temporary working directory).  All
70352         callers changed.
70353         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70354         * lib/mkdir-p.c (make_dir_parents): Likewise.
70355         * lib/mkdir-p.h (make_dir_parents): Likewise.
70356
70357 2006-10-06  Eric Blake  <ebb9@byu.net>
70358
70359         Define several macros for use by the clean-temp module.
70360         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70362         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70363
70364         * lib/clean-temp.h (close_stream_temp): New declaration.
70365         * lib/clean-temp.c (includes): Pull in headers according to what
70366         other modules are in use.
70367         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70368
70369 2006-10-06  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70372         instead of fopen, fwriteerror.
70373
70374 2006-10-06  Bruno Haible  <bruno@clisp.org>
70375
70376         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70377         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70378         int.
70379         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70380         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70381         Return an error indicator.
70382         Suggested by Eric Blake.
70383
70384 2006-10-06  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70387         Reported by Eric Blake.
70388
70389 2006-10-06  Bruno Haible  <bruno@clisp.org>
70390
70391         * modules/closeout (Description): Mention stderr too.
70392
70393 2006-10-06  Bruno Haible  <bruno@clisp.org>
70394         and Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * lib/closeout.c (close_stdout): Also close stderr.
70397         * lib/closeout.h: Update comment.
70398
70399 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70403         * lib/dirchownmod.c: Include lchown.h.
70404         * lib/lchown.c: Don't include files that lchown.h now includes.
70405         Don't declare chown, since lchown.h now does that.
70406         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70407         (lchown): Define to rpl_chown if lchown is declared but
70408         does not exist.  Declare using a prototype if lchown is not
70409         declared.  Add a copyright notice.
70410         * lib/mkstemp.h: Include <unistd.h>.
70411         * lib/openat.c: Include lchown.h.
70412
70413         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70414         we now test for that separately.
70415         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70416         rather than O_NOFOLLOW, when testing whether it's possible to
70417         avoid a race condition reliably.
70418         * lib/savewd.c (savewd_chdir): Likewise.
70419
70420         Remove macros that are no longer needed now that stdint.h is
70421         reliable.
70422         * lib/fsusage.c (UINTMAX_MAX): Remove.
70423         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70424         * lib/utimecmp.c (SIZE_MAX): Remove.
70425
70426         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70427
70428         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70429         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70430         O_NOATIME works.
70431
70432 2006-10-05  Bruno Haible  <bruno@clisp.org>
70433
70434         * lib/gl_list.h (gl_sortedlist_search_from_to,
70435         gl_sortedlist_indexof_from_to): New declarations.
70436         (gl_list_implementation): New fields sortedlist_search_from_to,
70437         sortedlist_indexof_from_to.
70438         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70439         inline functions.
70440         * lib/gl_list.c (gl_sortedlist_search_from_to,
70441         gl_sortedlist_indexof_from_to): New functions.
70442         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70443         function.
70444         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70445         (gl_array_sortedlist_search_from_to): New function.
70446         (gl_array_list_implementation): Update.
70447         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70448         function.
70449         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70450         (gl_carray_sortedlist_search_from_to): New function.
70451         (gl_carray_list_implementation): Update.
70452         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70453         gl_linked_sortedlist_indexof_from_to): New functions.
70454         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70455         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70456         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70457         gl_tree_sortedlist_indexof_from_to): New functions.
70458         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70459         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70460         Update.
70461         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70462         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70463         Update.
70464
70465 2006-10-05  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70468         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70469         (struct gl_list_implementation): Add fields search_from_to,
70470         indexof_from_to. Remove fields search, indexof.
70471         (gl_list_search): Use the search_from_to method.
70472         (gl_list_search_from, gl_list_search_from_to): New functions.
70473         (gl_list_indexof): Use the indexof_from_to method.
70474         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70475         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70476         (gl_list_search_from, gl_list_search_from_to): New functions.
70477         (gl_list_indexof): Use the indexof_from_to method.
70478         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70479         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70480         gl_array_indexof. Add start_index, end_index arguments.
70481         (gl_array_search_from_to): Renamed from gl_array_search. Add
70482         start_index, end_index arguments.
70483         (gl_array_remove, gl_array_list_implementation): Update.
70484         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70485         gl_carray_indexof. Add start_index, end_index arguments.
70486         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70487         start_index, end_index arguments.
70488         (gl_carray_remove, gl_carray_list_implementation): Update.
70489         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70490         gl_linked_search. Add start_index, end_index arguments.
70491         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70492         start_index, end_index arguments.
70493         (gl_linked_remove): Update.
70494         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70495         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70496         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70497         field to 'size_t'.
70498         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70499         gl_tree_search. Add start_index, end_index arguments.
70500         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70501         start_index, end_index arguments.
70502         (gl_tree_remove): Update.
70503         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70504         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70505         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70506         function.
70507         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70508         gl_tree_search. Add start_index, end_index arguments.
70509         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70510         start_index, end_index arguments.
70511         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70512         Update.
70513         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70514
70515 2006-10-05  Bruno Haible  <bruno@clisp.org>
70516
70517         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70518
70519         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70520         fwriteerror_temp): New declarations.
70521         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70522         (descriptors): New variable.
70523         (cleanup): First, close the descriptors.
70524         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70525         fclose_temp, fwriteerror_temp): New functions.
70526
70527 2006-10-04  Jim Meyering  <jim@meyering.net>
70528
70529         * lib/fts.c (fts_open): Tiny comment change.
70530
70531 2006-10-04  Bruno Haible  <bruno@clisp.org>
70532
70533         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70534         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70535         gl_LOCK_BODY.
70536         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70537         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70538         gl_LOCK_EARLY_BODY.
70539         (gl_LOCK): Require gl_LOCK_BODY.
70540
70541 2006-10-04  Bruno Haible  <bruno@clisp.org>
70542
70543         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70544         (gl_oset_search_atleast): New declaration.
70545         (struct gl_oset_implementation): Add field 'search_atleast'.
70546         (gl_oset_search_atleast): New inline function.
70547         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70548         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70549         (gl_array_oset_implementation): Update.
70550         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70551         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70552         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70553
70554 2006-10-04  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70557
70558 2006-10-03  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70561         from gl_avltreehash_list_implementation.
70562
70563 2006-10-03  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/gl_oset.c (gl_oset_add): Fix return type.
70566
70567 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70568
70569         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70570
70571 2006-10-02  Eric Blake  <ebb9@byu.net>
70572
70573         * modules/strnlen (Depends-on): Add extensions.
70574
70575 2006-10-02  Eric Blake  <ebb9@byu.net>
70576
70577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70578         definition in 2.60+.
70579
70580 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70581
70582         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70583         checks.
70584
70585 2006-10-02  Bruno Haible  <bruno@clisp.org>
70586
70587         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70588         to the AUTOMAKE_OPTIONS.
70589         Reported by Jim Meyering.
70590
70591 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         Work around bug in Solaris 10 /proc file system:
70594         /proc/self/fd/NNN/.. isn't the parent directory of
70595         the directory whose file descriptor is NNN.  This needs to
70596         be worked around at run time, not compile time, since a
70597         program might be built on Solaris 8, where things work, and
70598         run on Solaris 10.
70599         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70600         to use the following interface instead:
70601         (OPENAT_BUFFER_SIZE): New macro.
70602         (openat_proc_name): New function.
70603         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70604         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70605         Likewise.
70606         * lib/openat-proc.c: New file.
70607         * modules/openat (Files): Add lib/openat-proc.c.
70608         (Depends-on): Add same-inode, stdbool.
70609         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70610
70611 2006-09-29  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70614         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70615         argument. Set stdout_closed before testing for ferror, not after.
70616         (fwriteerror, fwriteerror_no_ebadf): New functions.
70617
70618 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70619
70620         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70621
70622 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70623
70624         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70625         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70626
70627 2006-09-28  Jim Meyering  <jim@meyering.net>
70628
70629         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70630         Include <unistd.h>.
70631
70632 2006-09-28  Bruno Haible  <bruno@clisp.org>
70633
70634         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70635         * modules/linkedhash-list (Depends-on): Likewise.
70636         * modules/rbtreehash-list (Depends-on): Likewise.
70637
70638 2006-09-28  Bruno Haible  <bruno@clisp.org>
70639
70640         * lib/strndup.h: Simplify the redefinition of strndup.
70641         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70643
70644 2006-09-28  Bruno Haible  <bruno@clisp.org>
70645
70646         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70647         * lib/gl_linkedhash_list.c: Likewise.
70648         * lib/gl_rbtreehash_list.c: Likewise.
70649
70650 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70653         getaddrinfo.
70654
70655         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70656         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70657         it causes <stdio_ext.h> to cause a compile-time error.
70658         Problem reported by Nelson H. F. Beebe.
70659         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70660         of HAVE_DECL___PENDING.
70661
70662         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70663         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70664         declaration.
70665
70666 2006-09-27  Jim Meyering  <jim@meyering.net>
70667
70668         This file could end up with a definition for a function
70669         named __strndup, rather than rpl_strndup on a system with
70670         incomplete weak_alias support.
70671         * lib/strndup.c (strndup): Rename from __strndup.
70672         Remove #defines that used to map __strndup to strndup.
70673         Don't use K&R prototypes.
70674         Remove LIBC-related code, since this file is not sync'd with glibc.
70675         * lib/strndup.h: Revamp, accordingly.
70676         * m4/strndup.m4: Modernize.
70677
70678 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         * modules/savewd (Depends-on): Add 'raise'.
70681         * lib/savewd.c: Include <signal.h>, for 'raise'.
70682
70683 2006-09-26  Jim Meyering  <jim@meyering.net>
70684
70685         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70686         when we detect Darwin 8.7.0's acl_get_file bug.
70687         Rearrange to perform the new (below) run-test while $LIBS
70688         contains any acl-related library.  Set USE_ACL at the end.
70689         (gl_ACL_GET_FILE): New function.
70690
70691 2006-09-26  Eric Blake  <ebb9@byu.net>
70692
70693         * lib/verror.c: Include <config.h> unconditionally.
70694
70695 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * modules/clock-time (Maintainer): Add self.
70698         * modules/getlogin_r (Depends-on): Add extensions.
70699
70700 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70701
70702         * modules/clock-time: New module.
70703         * modules/nanosleep (Depends-on): Add clock-time.
70704         * modules/gethrxtime (Depends-on): Likewise.
70705         * modules/gettime (Depends-on): Likewise.
70706         * modules/settime (Depends-on): Likewise.
70707
70708         * modules/fts-lgpl: Depend on openat.
70709         * modules/mkancesdirs: Depend on savewd.
70710         * modules/mkdir-p: Likewise.
70711
70712 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70713
70714         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70715
70716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70717         `gl_have_arbitrary_file_name_length_limit' to
70718         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70719         actually works between configure runs.
70720
70721 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70722             Bruno Haible  <bruno@clisp.org>
70723
70724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70725
70726 2006-09-25  Jim Meyering  <jim@meyering.net>
70727
70728         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70729         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70730
70731 2006-09-25  Eric Blake  <ebb9@byu.net>
70732
70733         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70734         exec's in 2006-09-18 patch when shuffling fds.
70735
70736 2006-09-25  Bruno Haible  <bruno@clisp.org>
70737
70738         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70739         Reported by Jim Meyering.
70740
70741 2006-09-24  Jim Meyering  <jim@meyering.net>
70742
70743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70744         compare a pointer against a literal "0".  That caused failures with
70745         at least HP-UX's hpcc.
70746
70747 2006-09-22  Simon Josefsson  <jas@extundo.com>
70748
70749         * modules/gc-sha1:
70750         * modules/gc-md4:
70751         * modules/gc-hmac-sha1:
70752         * modules/gc-hmac-md5:
70753         * modules/gc-des:
70754         * modules/gc-arcfour: Distribute more files.
70755
70756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70757
70758         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70759         (gl_linked_iterator_from_to): Initialize struct completely.
70760         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70761         (gl_tree_iterator_from_to): Likewise
70762         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70763         * lib/gl_array_list.c [lint] (gl_array_iterator)
70764         (gl_array_iterator_from_to): Likewise.
70765         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70766         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70767         (gl_carray_iterator_from_to): Likewise.
70768
70769         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70770         * lib/md4.c (md4_process_block): Remove unused variable.
70771         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70772         parentheses for clarity.
70773
70774 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70775
70776         * modules/bison-i18n (Depends-on): Add gettext.
70777
70778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70779
70780         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70781         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70782         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70783         also add missing comma that caused broken test.
70784         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70785         stdlib.h, for `abort'.
70786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70787         variables.
70788         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70789         include unistd.h if present, for `rmdir'.
70790         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70791         variables.
70792         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70793         in the process include standard headers for prototypes.
70794         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70795         gets declared on GNU/Linux.
70796         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70797         unistd.h, for `rmdir'.
70798         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70799
70800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70801         always true.
70802         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70803
70804         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70805
70806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70807
70808         * gnulib-tool (func_version): Create output all at once.  This
70809         may help avoid triggering unnecessary SIGPIPEs, and at any
70810         rate it doesn't hurt.
70811
70812 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70813             Bruno Haible  <bruno@clisp.org>
70814
70815         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70816         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70817         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70818
70819         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70820         (gl_FUNC_VASPRINTF): Invoke it.
70821
70822 2006-09-22  Bruno Haible  <bruno@clisp.org>
70823
70824         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70825         getloadavg.c as first argument.
70826
70827 2006-09-22  Bruno Haible  <bruno@clisp.org>
70828
70829         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70830         at the beginning of the gl_INIT macro.
70831         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70832         gl_GETLOADAVG.
70833
70834 2006-09-22  Bruno Haible  <bruno@clisp.org>
70835
70836         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70837         module.
70838         Suggested by Ralf Wildenhues.
70839
70840 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         Import this patch from libc:
70843
70844         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70845
70846         * lib/regex_internal.c (re_string_reconstruct): Handle
70847         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70848         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70849         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70850         re_string_context_at.
70851
70852         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70853         now requires it.
70854         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70855         gl_REGEX now does it for us.
70856         (gl_REGEX): Add test taken from
70857         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70858
70859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70860         Check that large offsets work.  Modernize Autoconf usages.
70861         Prefer "yes" to mean a good thing rather than a bad.
70862         Don't put "#define mkstemp" in config.h, as this might interfere
70863         with standard system headers that "#define mkstemp mkstemp64".
70864
70865         * modules/mkstemp (Depends-on): Add extensions, so that
70866         mkstemp is visible on some platforms.
70867         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70868         (Include): Change to "mkstemp.h" from <stdlib.h>.
70869         (Files): Add mkstemp.h.
70870
70871         * lib/mkstemp.h: New file, since some standard headers
70872         #define mkstemp.
70873         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70874         Include "mkstemp.h".
70875         Make the _LIBC code resemble glibc original more,
70876         e.g., use K&R style.
70877         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70878         (mkstemp): Remove, since mkstemp.h does this for us.
70879         * lib/stdlib--.h: Include mkstemp.h.
70880
70881         Import this patch from libc:
70882
70883         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70884
70885         * lib/tempname.c (__gen_tempname): Change attempts_min
70886         into a macro.  Use preprocessor to decide how to initialize
70887         attempts [Coverity CID 67].
70888
70889 2006-09-20  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/mkdtemp.c: Import from libc.
70892         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70893                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70894                 attempts_min into a macro.  Use preprocessor to decide how to
70895                 initialize attempts [Coverity CID 67].
70896         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70897                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70898                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70899
70900 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70901
70902         * gnulib-tool (func_exit): New function, to allow to pass the
70903         exit status portably through the trap.  Use everywhere.
70904         (--help, --version): Signal a write error.
70905         (trap): catch SIGPIPE, for write errors.
70906         Exit at the end of the trap, with the correct exit status.
70907
70908 2006-09-19  Karl Berry  <karl@gnu.org>
70909
70910         * doc/gnulib.texi: note about the license texinfo files.
70911
70912 2006-09-19  Eric Blake  <ebb9@byu.net>
70913
70914         * gnulib-tool: Avoid space-tab.
70915
70916 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70919         that prevented coreutils 6.1 from building.  Problem reported
70920         by Petter Reinholdtsen.
70921
70922 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * gnulib-tool (avoidlist): Fix typo that broke options like
70925         --avoid=lock that are used by coreutils bootstrap.
70926
70927 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70928
70929         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70930         more systematically.
70931
70932 2006-09-18  Jim Meyering  <jim@meyering.net>
70933
70934         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70935
70936 2006-09-18  Bruno Haible  <bruno@clisp.org>
70937
70938         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70939
70940 2006-09-18  Bruno Haible  <bruno@clisp.org>
70941
70942         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70943         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70944         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70945         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70946         * m4/gettext.m4: Require autoconf >= 2.52.
70947         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70948         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70949         of gl_cv_header_inttypes_h.
70950
70951 2006-09-18  Bruno Haible  <bruno@clisp.org>
70952
70953         * lib/javaversion.c: Include configmake.h.
70954
70955 2006-09-18  Bruno Haible  <bruno@clisp.org>
70956
70957         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70958         avoid that the while loops be executed in a subshell.
70959
70960 2006-09-18  Bruno Haible  <bruno@clisp.org>
70961
70962         * MODULES.html.sh (func_module): Break long lines.
70963         Suggested by Bruce Korb <bkorb@gnu.org>.
70964
70965 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70966
70967         Speed up by a factor of 1.12.
70968         * gnulib-tool (nl): New variable.
70969         (func_import): Rewrite include directive extraction to only read each
70970         directive once.
70971
70972 2006-09-17  Bruno Haible  <bruno@clisp.org>
70973
70974         * modules/javaversion (Makefile.am): Remove DEFS setting.
70975         (Depends-on): Add configmake, for PKGDATADIR definition.
70976
70977 2006-09-17  Bruno Haible  <bruno@clisp.org>
70978
70979         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70980
70981 2006-09-17  Bruno Haible  <bruno@clisp.org>
70982
70983         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70984         (func_modules_transitive_closure, func_modules_add_dummy,
70985         func_modules_to_filelist, func_import, func_create_testdir,
70986         func_create_megatestdir, ...): Use it wherever possible.
70987         Suggested by Ralf Wildenhues.
70988
70989 2006-09-16  Karl Berry  <karl@gnu.org>
70990
70991         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70992         to avoid sectioning errors.
70993         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70994         [ifinfo]: blank line after @center-ed titles.
70995         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70996         Spell FSF address consistently with others.
70997         (These changes approved by rms.)
70998
70999 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71000
71001         Speed up by a factor of 1.61.
71002         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
71003         already checked module names again.
71004
71005 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71006
71007         Speed up by a factor of 1.13.
71008         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
71009         for new_files, and the input to func_add_or_update.
71010
71011 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71012
71013         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71014         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71015
71016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * modules/mkancesdirs (Depends-on): Add fcntl.
71019         * modules/savewd: New file.
71020         * MODULES.html.sh (File system functions): Add savewd.
71021
71022         * modules/configmake (Makefile.am): Add support for the
71023         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71024
71025 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71026
71027         * m4/savewd.m4: New file.
71028
71029 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71032         (dirchownmod): New arg FD.  All callers changed.
71033         Use FD rather than opening the directory ourself, as opening is
71034         now the caller's responsibility.
71035         * lib/dirchownmod.h: Likewise.
71036         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71037         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71038         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71039         (test_dir): Remove.
71040         (mkancesdirs): Return length of prefix of FILE that has already
71041         been made, or -2 if there is a child doing the work.  Redo
71042         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71043         ".", and treat ".." specially since it might stray back into
71044         already-created areas.  Use a subprocess if necessary.  New arg
71045         WD; all users changed.  MAKE_DIR function should now return 1
71046         if it creates a directory that is not readable.  Return -2 if
71047         a child process is spun off.
71048         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71049         Adjust signature to match code.
71050         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71051         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71052         all users changed.
71053         * lib/savewd.c, lib/savewd.h: New files.
71054
71055 2006-09-15  Jim Meyering  <jim@meyering.net>
71056
71057         * modules/rename-dest-slash: New module.
71058         * MODULES.html.sh (posix_compat): Add it here.
71059
71060         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71061
71062 2006-09-15  Jim Meyering  <jim@meyering.net>
71063
71064         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71065         file.
71066
71067         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71068
71069 2006-09-15  Jim Meyering  <jim@meyering.net>
71070
71071         * lib/rename-dest-slash.c (has_trailing_slash): Use
71072         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71073         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71074         test before testing whether SRC is a directory.
71075         Suggestions from Bruno Haible.
71076
71077         Avoid a warning about an unused variable.
71078         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71079         into the #ifdef block where it's used.
71080
71081         * lib/rename-dest-slash.c: New file.
71082
71083 2006-09-14  Bruno Haible  <bruno@clisp.org>
71084
71085         * lib/allocsa.c: Include <config.h> unconditionally.
71086         * lib/asnprintf.c: Likewise.
71087         * lib/asprintf.c: Likewise.
71088         * lib/c-strcasecmp.c: Likewise.
71089         * lib/c-strcasestr.c: Likewise.
71090         * lib/c-strncasecmp.c: Likewise.
71091         * lib/c-strstr.c: Likewise.
71092         * lib/classpath.c: Likewise.
71093         * lib/clean-temp.c: Likewise.
71094         * lib/concatpath.c: Likewise.
71095         * lib/copy-file.c: Likewise.
71096         * lib/csharpcomp.c: Likewise.
71097         * lib/csharpexec.c: Likewise.
71098         * lib/execute.c: Likewise.
71099         * lib/fatal-signal.c: Likewise.
71100         * lib/findprog.c: Likewise.
71101         * lib/fwriteerror.c: Likewise.
71102         * lib/gl_array_list.c: Likewise.
71103         * lib/gl_array_oset.c: Likewise.
71104         * lib/gl_avltree_list.c: Likewise.
71105         * lib/gl_avltree_oset.c: Likewise.
71106         * lib/gl_avltreehash_list.c: Likewise.
71107         * lib/gl_carray_list.c: Likewise.
71108         * lib/gl_linked_list.c: Likewise.
71109         * lib/gl_linkedhash_list.c: Likewise.
71110         * lib/gl_list.c: Likewise.
71111         * lib/gl_oset.c: Likewise.
71112         * lib/gl_rbtree_list.c: Likewise.
71113         * lib/gl_rbtree_oset.c: Likewise.
71114         * lib/gl_rbtreehash_list.c: Likewise.
71115         * lib/imaxabs.c: Likewise.
71116         * lib/imaxdiv.c: Likewise.
71117         * lib/javacomp.c: Likewise.
71118         * lib/javaexec.c: Likewise.
71119         * lib/javaversion.c: Likewise.
71120         * lib/linebreak.c: Likewise.
71121         * lib/localcharset.c: Likewise.
71122         * lib/lock.c: Likewise.
71123         * lib/mbchar.c: Likewise.
71124         * lib/mbswidth.c: Likewise.
71125         * lib/mkdtemp.c: Likewise.
71126         * lib/pipe.c: Likewise.
71127         * lib/printf-args.c: Likewise.
71128         * lib/printf-parse.c: Likewise.
71129         * lib/progname.c: Likewise.
71130         * lib/progreloc.c: Likewise.
71131         * lib/readlink.c: Likewise.
71132         * lib/sh-quote.c: Likewise.
71133         * lib/stpcpy.c: Likewise.
71134         * lib/stpncpy.c: Likewise.
71135         * lib/strcasecmp.c: Likewise.
71136         * lib/strcasestr.c: Likewise.
71137         * lib/strcspn.c: Likewise.
71138         * lib/striconv.c: Likewise.
71139         * lib/strncasecmp.c: Likewise.
71140         * lib/strnlen1.c: Likewise.
71141         * lib/strstr.c: Likewise.
71142         * lib/strtok_r.c: Likewise.
71143         * lib/tls.c: Likewise.
71144         * lib/tmpdir.c: Likewise.
71145         * lib/unicodeio.c: Likewise.
71146         * lib/unsetenv.c: Likewise.
71147         * lib/vasnprintf.c: Likewise.
71148         * lib/vasprintf.c: Likewise.
71149         * lib/wait-process.c: Likewise.
71150         * lib/xallocsa.c: Likewise.
71151         * lib/xsetenv.c: Likewise.
71152         * lib/xstriconv.c: Likewise.
71153
71154 2006-09-13  Simon Josefsson  <jas@extundo.com>
71155
71156         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71157         that internally, suggested by Ralf Wildenhues
71158         <Ralf.Wildenhues@gmx.de>.
71159
71160 2006-09-13  Simon Josefsson  <jas@extundo.com>
71161
71162         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71163         @LIBOBJS@.
71164         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71165
71166 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71169         longer worry about uses that don't define HAVE_CONFIG_H.
71170         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71171         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71172         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71173         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71174         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71175         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71176         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71177         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71178         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71179         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71180         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71181         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71182         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71183         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71184         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71185         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71186         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71187         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71188         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71189         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71190         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71191         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71192         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71193         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71194         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71195         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71196         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71197         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71198         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71199         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71200         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71201         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71202         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71203         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71204         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71205         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71206         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71207         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71208         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71209         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71210         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71211         Likewise.
71212
71213 2006-09-13  Eric Blake  <ebb9@byu.net>
71214
71215         * lib/getopt.c: Fix typo in last commit.
71216
71217 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71218
71219         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71220         dgettext.
71221
71222 2006-09-12  Jim Meyering  <jim@meyering.net>
71223
71224         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71225         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71226         Reported by Nelson H. F. Beebe.
71227
71228 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71229
71230         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71231         program_invocation_name and program_invocation_short_name are
71232         initialized.
71233         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71234         and program_invocation_short_name to argp.h, so they are visible
71235         to user programs.
71236         * lib/argp.h: Likewise
71237
71238 2006-09-10  Bruno Haible  <bruno@clisp.org>
71239
71240         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71241         m4/inttypes_h.m4, m4/uintmax_t.m4.
71242
71243 2006-09-10  Bruno Haible  <bruno@clisp.org>
71244
71245         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71246         gl_AC_TYPE_UINTMAX_T.
71247
71248 2006-09-10  Bruno Haible  <bruno@clisp.org>
71249
71250         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71251
71252 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71253
71254         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71255         convention.  Text proposed by Bruno Haible.
71256         (struct argp_option): Document the use of N_() wrappers.
71257
71258         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71259         '\v', and translate the two parts separately, instead of feeding
71260         the whole string to gettext.  This allows to exclude
71261         '\v' from the strings visible to the translator by writing doc
71262         strings as N_("..") "\v" N_("..").
71263
71264 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * config/srclist.txt: Undo latest change; the bug was fixed.
71267
71268 2006-09-09  Bruno Haible  <bruno@clisp.org>
71269
71270         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71271         assignments if building a library without libtool.
71272         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71273         in func_emit_lib_Makefile_am.
71274         (func_import): When building a static library libfoo.a, arrange to
71275         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71276         (func_create_testdir): Likewise.
71277         * modules/gc (configure.ac, Makefile.am): If building statically,
71278         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71279         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71280         * modules/striconv (configure.ac, Makefile.am): Likewise.
71281         Based on a suggestion by Ralf Wildenhues.
71282
71283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71286         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71287         Also:
71288
71289         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71290         Add year_2050_test to catch glibc bug 2821
71291         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71292
71293         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71294         Prefer #ifdef to #if.
71295
71296         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71297         Return from 'main' instead of calling 'exit'.
71298
71299 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71302         returned the maximum time_t value rather than (time_t) -1.
71303         Problem originally reported by William Bardwell
71304         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71305
71306         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71307         Moved to here ...
71308         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71309         ... from here.
71310
71311 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71314         2821 is fixed.
71315
71316 2006-09-08  Jim Meyering  <jim@meyering.net>
71317
71318         Don't make generated files read-only.  That would bother too many
71319         people.  However, do retain the ability to work when targets are
71320         read-only: remove the destination and temporary files before writing
71321         them (when generated via sed or echo), or by using the -f option for
71322         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71324         * modules/byteswap, modules/configmake, modules/fcntl:
71325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71326         * modules/localcharset, modules/netinet_in, modules/poll:
71327         * modules/stdbool, modules/stdint, modules/sys_select:
71328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71329
71330 2006-09-08  Jim Meyering  <jim@meyering.net>
71331
71332         Avoid new build failure on FreeBSD 6.0.
71333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71334         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71335         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71336
71337 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71338
71339         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71340
71341 2006-09-07  Jim Meyering  <jim@meyering.net>
71342
71343         Fix global typo in last change: use chmod u-w, not chmod u-x.
71344         Spotted by Paul Eggert and Bruce Korb.
71345         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71346         * modules/byteswap, modules/configmake, modules/fcntl:
71347         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71348         * modules/localcharset, modules/netinet_in, modules/poll:
71349         * modules/stdbool, modules/stdint, modules/sys_select:
71350         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71351
71352 2006-09-06  Jim Meyering  <jim@meyering.net>
71353
71354         Make generated files be read-only.
71355         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71356         Ensure that each generated file is now read-only.
71357         * modules/argz: Likewise.
71358         * modules/arpa_inet: Likewise.
71359         * modules/byteswap: Likewise.
71360         * modules/configmake: Likewise.
71361         * modules/fcntl: Likewise.
71362         * modules/fnmatch: Likewise.
71363         * modules/getopt: Likewise.
71364         * modules/glob: Likewise.
71365         * modules/inttypes: Likewise.
71366         * modules/netinet_in: Likewise.
71367         * modules/poll: Likewise.
71368         * modules/stdbool: Likewise.
71369         * modules/stdint: Likewise.
71370         * modules/sys_select: Likewise.
71371         * modules/sys_socket: Likewise.
71372         * modules/sys_stat: Likewise.
71373         * modules/sysexits: Likewise.
71374         * modules/localcharset: Same as above, but continue using temporary
71375         file named "t-$@" (why different?) rather than the "$@-t" used
71376         everywhere else.
71377
71378         * modules/sysexits (Makefile.am): Replace literal occurrences
71379         of "sysexit.h" more readable, and more consistent, "$@".
71380
71381 2006-09-06  Bruno Haible  <bruno@clisp.org>
71382
71383         * modules/striconv: New file.
71384         * modules/xstriconv: New file.
71385         * MODULES.html.sh (Internationalization functions): Add striconv,
71386         xstriconv.
71387
71388 2006-09-06  Bruno Haible  <bruno@clisp.org>
71389
71390         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71391         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71392         not using libtool correctly.
71393
71394 2006-09-06  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/striconv.h: New file.
71397         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71398         iconvstring.c.
71399         * lib/xstriconv.h: New file.
71400         * lib/xstriconv.c: New file.
71401
71402 2006-09-06  Bruno Haible  <bruno@clisp.org>
71403
71404         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71405         lib_..._LDFLAGS.
71406
71407 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71408
71409         * lib/argz_.h: Sync from Libtool.
71410
71411         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71412                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71413
71414         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71415
71416 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71417
71418         * modules/trim: New file.
71419
71420 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71421
71422         * lib/trim.h: New file.
71423         * lib/trim.c: New file.
71424
71425 2006-09-05  Bruno Haible  <bruno@clisp.org>
71426
71427         * MODULES.html.sh (String handling): Add trim.
71428
71429 2006-09-04  Karl Berry  <karl@gnu.org>
71430
71431         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71432         until next release.
71433
71434 2006-09-03  Bruno Haible  <bruno@clisp.org>
71435
71436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71437         correctly.
71438
71439 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71442         not gl_GETLOADAVG.  Omit unneeded semicolons.
71443         Problems reported by Ralf Wildenhues in
71444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71445         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71446         at the end, which is the usual gnulib style.
71447
71448         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71449         of doing all the work ourselves.
71450         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71451         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71452
71453 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71456         Problem reported by Ralf Wildenhues in
71457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71458
71459         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71460         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71461
71462 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71465         yesterday's patch by changing test -n to test -z.
71466
71467 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71470         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71471         the former is now obsolescent.
71472
71473         * modules/chdir-long (Depends-on): Add fcntl.
71474
71475 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71478         obsolescent, and programs should use gnulib instead.
71479         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71480         but with prefixes changed.
71481
71482 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71485         or stdbool.h, because they might not exist while configuring.
71486
71487         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71488         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71489         does that for us.
71490         (O_DIRECTORY): Remove.
71491
71492 2006-08-31  Eric Blake  <ebb9@byu.net>
71493
71494         * gnulib-tool: Don't let emacs change spaces to TAB.
71495
71496 2006-08-31  Bruno Haible  <bruno@clisp.org>
71497
71498         * gnulib-tool: When calling func_import more than once, do it in a
71499         subshell.
71500         Reported by Eric Blake <ebb9@byu.net>.
71501
71502 2006-08-31  Bruno Haible  <bruno@clisp.org>
71503
71504         * gnulib-tool (nl): Remove variable.
71505         (sed_transform_lib_file): Use more robust test for config-h module.
71506         (func_import): Fix typo in 2006-08-25 patch.
71507
71508 2006-08-31  Bruno Haible  <bruno@clisp.org>
71509
71510         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71511         specified, augment Makefile.am variables instead of assigning them.
71512
71513 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         Work around a bug in both the Linux and SunOS 64-bit kernels:
71516         nanosleep mishandles sleeps for longer than 2**31 seconds.
71517         Problem reported by Frank v Waveren in
71518         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71520         Check for nanosleep bug.
71521         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71522
71523 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         Work around a bug in both the Linux and SunOS 64-bit kernels:
71526         nanosleep mishandles sleeps for longer than 2**31 seconds.
71527         Problem reported by Frank v Waveren in
71528         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71529         * lib/nanosleep.c (BILLION): New constant.
71530         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71531         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71532         implementation.
71533
71534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * modules/nanosleep (Depends-on): Add gettime.
71537
71538 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71539         and Simon Josefsson  <jas@extundo.com>
71540         and Oskar Liljeblad  <oskar@osk.mine.nu>
71541
71542         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71543         * gnulib-tool (func_import): New license type 'unmodifiable license
71544         text'.
71545         * modules/fdl: Use it.  Longer description.
71546         * module/gpl, module/lgpl: New files.
71547
71548 2006-08-30  Jim Meyering  <jim@meyering.net>
71549
71550         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71551         shadowing the parameter.
71552
71553 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71554
71555         Sync from Libtool:
71556
71557         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71558
71559         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71560         sharing with gnulib.  Report by Eric Blake.
71561
71562 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * modules/isapipe: New file.
71565         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71566
71567 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71568
71569         * modules/configmake (Makefile.am): Add a comment, and omit
71570         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71571         by Bruno Haible.
71572
71573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71574
71575         * m4/isapipe.m4: New file.
71576
71577 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         * lib/isapipe.c, lib/isapipe.h: New files.
71580
71581 2006-08-29  Jim Meyering  <jim@meyering.net>
71582
71583         * modules/configmake (Makefile.am): Make configmake.h depend on
71584         Makefile.  Otherwise, a stale configmake.h could hang around.
71585
71586 2006-08-29  Eric Blake  <ebb9@byu.net>
71587
71588         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71589         resolution of upstream bug 3044.
71590
71591 2006-08-29  Bruno Haible  <bruno@clisp.org>
71592
71593         * modules/localcharset (Depends-on): Add configmake.
71594         (Makefile.am): Remove setting of LIBDIR through DEFS.
71595
71596 2006-08-29  Bruno Haible  <bruno@clisp.org>
71597
71598         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71599         defined.
71600
71601 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * modules/fcntl: New file.
71604         * modules/chdir-safer (Depends-on): Add fcntl.
71605         * modules/fts: Likewise.
71606         * modules/mkdir-p: Likewise.
71607
71608         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71609         This undoes the most recent change, since we're now addressing the
71610         problem in a different way.
71611
71612         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71613         into output, since the output might be called Makefile.am even
71614         if $makefile_name is something different.
71615         (func_import): Use $makefile_am rather than
71616         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71617         empty.
71618
71619         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71620
71621 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71624         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71625         recent change to stdint.m4, since we're now addressing the problem in a
71626         different way.
71627
71628 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * m4/fcntl_h.m4: New file.
71631
71632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * lib/fcntl_.h: New file.
71635         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71636         the fcntl module.
71637         * lib/dirchownmod.c: Likewise.
71638         * lib/fts.c: Likewise.
71639
71640         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71641         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71642         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71643         just before including <inttypes.h>, to avoid circular inclusion.
71644
71645 2006-08-28  Jim Meyering  <jim@meyering.net>
71646
71647         * doc/visibility.texi: Actually read and correct the grammar of the
71648         sentence affected by yesterday's change.
71649
71650 2006-08-28  Eric Blake  <ebb9@byu.net>
71651
71652         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71653         needs wrapper.
71654
71655 2006-08-28  Eric Blake  <ebb9@byu.net>
71656
71657         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71658
71659 2006-08-28  Eric Blake  <ebb9@byu.net>
71660
71661         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71662
71663 2006-08-28  Bruno Haible  <bruno@clisp.org>
71664
71665         * modules/c-strstr: New file, from GNU gettext.
71666         * MODULES.html.sh (String handling): Add c-strstr.
71667
71668 2006-08-28  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71671         macros.
71672         Reported by Eric Blake.
71673
71674 2006-08-28  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71677         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71678         * lib/vasprintf.c: Include errno.h, limits.h.
71679         (EOVERFLOW): New fallback definition.
71680         (vasprintf): Test here whether the string length is > INT_MAX.
71681         * lib/vsnprintf.c: Include errno.h, limits.h.
71682         (EOVERFLOW): New fallback definition.
71683         (vsnprintf): Fix bug when generated string was too long for the buffer.
71684         Test here whether the string length is > INT_MAX.
71685
71686 2006-08-28  Bruno Haible  <bruno@clisp.org>
71687
71688         * lib/inttypes_.h (SCNX*): Remove definitions.
71689         Reported by Eric Blake.
71690
71691 2006-08-28  Bruno Haible  <bruno@clisp.org>
71692
71693         * lib/c-strstr.h: New file, from GNU gettext.
71694         * lib/c-strstr.c: New file, from GNU gettext.
71695
71696 2006-08-28  Bruno Haible  <bruno@clisp.org>
71697
71698         * gnulib-tool: Reorder some statements.
71699
71700 2006-08-28  Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool: New option --makefile-name.
71703         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71704         $makefile_name.
71705         (func_import): Write $makefile_name to the cache file, and read it from
71706         there unless explicitly specified. Use $makefile_name as file name
71707         instead of Makefile.am. Adjust the recommendations accordingly.
71708
71709 2006-08-28  Bruno Haible  <bruno@clisp.org>
71710
71711         * gnulib-tool (func_verify_module): Check against misapplying patch.
71712
71713 2006-08-28  Bruno Haible  <bruno@clisp.org>
71714
71715         * gnulib-tool (func_relativize, func_relconcat): New functions.
71716         Give an error if --local-dir is given with --update.
71717         Remove trailing slashes from $local_gnulib_dir.
71718         (func_import): Store the relativized $local_gnulib_dir in
71719         gnulib-cache.m4, and read it from there if not specified explicitly.
71720
71721 2006-08-28  Bruno Haible  <bruno@clisp.org>
71722
71723         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71724         is the current directory. Respect also $local_gnulib_dir.
71725
71726 2006-08-28  Bruno Haible  <bruno@clisp.org>
71727             Simon Josefsson  <jas@extundo.com>
71728
71729         BeOS portability.
71730         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71731
71732 2006-08-27  Jim Meyering  <jim@meyering.net>
71733
71734         * doc/visibility.texi: Remove duplicate word: "pointer".
71735
71736 2006-08-26  Bruno Haible  <bruno@clisp.org>
71737
71738         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71739         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71740         (Makefile.am): Create inttypes.h from inttypes_.h.
71741         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71742
71743         * modules/imaxabs: New file.
71744
71745         * modules/imaxdiv: New file.
71746
71747 2006-08-26  Bruno Haible  <bruno@clisp.org>
71748
71749         * m4/inttypes.m4: New file.
71750         * m4/_inttypes_h.m4: Remove file.
71751         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71752         PRI_MACROS_BROKEN.
71753         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71754
71755         * m4/imaxabs.m4: New file.
71756
71757         * m4/imaxdiv.m4: New file.
71758
71759 2006-08-26  Bruno Haible  <bruno@clisp.org>
71760
71761         * lib/inttypes_.h: New file.
71762         * lib/inttypes.h: Remove file.
71763         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71764
71765         * lib/imaxabs.c: New file.
71766
71767         * lib/imaxdiv.c: New file.
71768
71769 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         New config-h module, so that "make" output needn't be cluttered
71772         by -DHAVE_CONFIG_H.
71773         * MODULES.html.sh (Support for building libraries and executables):
71774         Add config-h.
71775         * modules/config-h: New file.
71776         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71777         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71778         the config-h module is used.
71779
71780         New configmake module, so that "make" output needn't be cluttered
71781         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71782         * MODULES.html.sh (Support for building libraries and executables):
71783         Add configmake.
71784         * modules/configmake: New file.
71785
71786 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * m4/config-h.m4: New file.
71789
71790 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * config/srclist.txt: Add elisp-comp.
71793
71794 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         * MODULES.html.sh (Support for building libraries and executables):
71797         Add elisp-comp.
71798         * build-aux/elisp-comp: New file.
71799         * modules/elisp-comp: New file.
71800
71801 2006-08-24  Bruno Haible  <bruno@clisp.org>
71802
71803         * gnulib-tool (func_create_testdir): Use non-default values of
71804         sourcebase and m4base.
71805
71806 2006-08-24  Bruno Haible  <bruno@clisp.org>
71807
71808         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71809         HTML structure.
71810
71811 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71812
71813         * modules/openat (Depends-on): Add lchown.
71814
71815 2006-08-23  Bruno Haible  <bruno@clisp.org>
71816
71817         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71818         of gl_LOCK_EARLY instead of gl_LOCK.
71819
71820 2006-08-23  Bruno Haible  <bruno@clisp.org>
71821
71822         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71823         on OSF/1 to no.
71824         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71825
71826 2006-08-23  Bruno Haible  <bruno@clisp.org>
71827
71828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71829         as unusable.
71830
71831         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71832         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71833         (gl_LOCK): New macro.
71834
71835 2006-08-22  Simon Josefsson  <jas@extundo.com>
71836
71837         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71838         to md5 module.
71839
71840 2006-08-22  Simon Josefsson  <jas@extundo.com>
71841
71842         * MODULES.html.sh: Add "Support for maintaining and release
71843         projects".
71844
71845         * build-aux/gnupload: New file, from coreutils.
71846
71847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71848
71849         Avoid the need for AC_LIBSOURCES in m4 macros.
71850         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71851         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71852         * modules/check-version (EXTRA_DIST): Add check-version.h.
71853         * modules/crc (EXTRA_DIST): Add crc.h.
71854         * modules/des (EXTRA_DIST): Add des.h.
71855         * modules/gc (EXTRA_DIST): Add gc.h.
71856         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71857         * modules/getline (EXTRA_DIST): Add getline.h.
71858         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71859         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71860         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71861         * modules/md2 (EXTRA_DIST): Add md2.h.
71862         * modules/md4 (EXTRA_DIST): Add md4.h.
71863         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71864         * modules/read-file (EXTRA_DIST): Add read-file.h.
71865         * modules/readline (EXTRA_DIST): Add readline.h.
71866         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71867         rijndael-api-fst.h.
71868
71869 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * m4/rijndael.m4 (gl_ARCFOUR):
71872         * m4/arctwo.m4 (gl_ARCTWO):
71873         * m4/check-version.m4 (gl_CHECK_VERSION):
71874         * m4/crc.m4 (gl_CRC):
71875         * m4/des.m4 (gl_DES):
71876         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71877         * m4/gc.m4 (gl_GC):
71878         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71879         * m4/getline.m4 (gl_FUNC_GETLINE):
71880         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71881         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71882         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71883         * m4/md2.m4 (gl_MD2):
71884         * m4/md4.m4 (gl_MD4):
71885         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71886         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71887         * m4/readline.m4 (gl_FUNC_READLINE):
71888         * m4/rijndael.m4 (gl_RIJNDAEL):
71889         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71890         to get the necessary .h files and whatnot.
71891
71892 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71893
71894         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71895         gnulib rather than the other way around.
71896         * config/srclistvars.sh (COREUTILS): Remove.
71897
71898 2006-08-22  Jim Meyering  <jim@meyering.net>
71899
71900         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71901
71902         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71903
71904 2006-08-22  Eric Blake  <ebb9@byu.net>
71905
71906         * modules/regexprops-generic: New file.
71907         * MODULES.html.sh (Support for building documentation): List it.
71908
71909 2006-08-22  Eric Blake  <ebb9@byu.net>
71910
71911         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71912         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71913         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71914         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71915
71916 2006-08-22  Bruno Haible  <bruno@clisp.org>
71917
71918         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71919         and lib_LTLIBRARIES like the other lib_* variables.
71920
71921 2006-08-22  Bruno Haible  <bruno@clisp.org>
71922
71923         * build-aux/x-to-1.in: New file, from GNU gettext.
71924
71925 2006-08-22  Bruno Haible  <bruno@clisp.org>
71926
71927         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71928         <utmpx.h> exists.
71929
71930 2006-08-22  Bruno Haible  <bruno@clisp.org>
71931
71932         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71933         <utmpx.h> exists.
71934
71935 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         BeOS portability.
71938         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71939         exist.
71940         Problem reported by Bruno Haible.
71941
71942 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71943
71944         Avoid the need for AC_LIBSOURCES in m4 macros.
71945         * modules/acl (EXTRA_DIST): Add acl.h.
71946         * modules/argmatch (Files): Add m4/argmatch.m4.
71947         (configure.ac): Add gl_ARGMATCH.
71948         (EXTRA_DIST): Renamed from lib_SOURCES, for
71949         consistency with the other modules.  Remove argmatch.c.
71950         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71951         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71952         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71953         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71954         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71955         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71956         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71957         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71958         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71959         * modules/closeout (EXTRA_DIST): Add closeout.h.
71960         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71961         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71962         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71963         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71964         dirname.h; remove basename.c and stripslash.c.
71965         * modules/exclude (EXTRA_DIST): Add exclude.h.
71966         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71967         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71968         * modules/file-type (EXTRA_DIST): Add file-type.h.
71969         * modules/filemode (EXTRA_DIST): Add filemode.h.
71970         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71971         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71972         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71973         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71974         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71975         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71976         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71977         * modules/getdate (EXTRA_DIST): Add getdate.c.
71978         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71979         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71980         * modules/getpass (EXTRA_DIST): Add getpass.h.
71981         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71982         * modules/group-member (EXTRA_DIST): Add group-member.h.
71983         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71984         * modules/hash (EXTRA_DIST): Add hash.h.
71985         * modules/human (EXTRA_DIST): Add human.h.
71986         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71987         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71988         * modules/lchown (EXTRA_DIST): Add lchown.h.
71989         * modules/long-options (EXTRA_DIST): Add long-options.h.
71990         * modules/lstat (EXTRA_DIST): Add lstat.h.
71991         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71992         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71993         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71994         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71995         * modules/memxor (EXTRA_DIST): Add memxor.h.
71996         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71997         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71998         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71999         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
72000         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
72001         * modules/physmem (EXTRA_DIST): Add physmem.h.
72002         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
72003         * modules/posixver (EXTRA_DIST): Add posixver.h.
72004         * modules/quote (EXTRA_DIST): Add quote.h.
72005         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
72006         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
72007         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
72008         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
72009         regex_internal.h regexec.c.
72010         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72011         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72012         * modules/same (EXTRA_DIST): Add same.h.
72013         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72014         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72015         * modules/savedir (EXTRA_DIST): Add savedir.h.
72016         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72017         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72018         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72019         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72020         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72021         * modules/strdup (EXTRA_DIST): Add strdup.h.
72022         * modules/strftime (EXTRA_DIST): Add strftime.h.
72023         * modules/strndup (EXTRA_DIST): Add strndup.h.
72024         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72025         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72026         * modules/time_r (EXTRA_DIST): Add time_r.h.
72027         * modules/timespec (EXTRA_DIST): Add timespec.h.
72028         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72029         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72030         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72031         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72032         * modules/userspec (EXTRA_DIST): Add userspec.h.
72033         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72034         * modules/utimens (EXTRA_DIST): Add utimens.h.
72035         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72036         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72037         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72038         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72039         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72040         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72041         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72042         * modules/yesno (EXTRA_DIST): Add yesno.h.
72043
72044 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72047
72048         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72049         * m4/dev-ino.m4, same-inode.m4: Remove.
72050
72051         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72052         * m4/acl.m4 (AC_FUNC_ACL):
72053         * m4/backupfile.m4 (gl_BACKUPFILE):
72054         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72055         * m4/canon-host.m4 (gl_CANON_HOST):
72056         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72058         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72059         * m4/cloexec.m4 (gl_CLOEXEC):
72060         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72061         * m4/closeout.m4 (gl_CLOSEOUT):
72062         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72063         * m4/dirname.m4 (gl_DIRNAME):
72064         * m4/exclude.m4 (gl_EXCLUDE):
72065         * m4/exitfail.m4 (gl_EXITFAIL):
72066         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72067         * m4/file-type.m4 (gl_FILE_TYPE):
72068         * m4/filemode.m4 (gl_FILEMODE):
72069         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72070         * m4/fpending.m4 (gl_FUNC_FPENDING):
72071         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72072         * m4/fts.m4 (gl_FUNC_FTS):
72073         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72074         * m4/getdate.m4 (gl_GETDATE):
72075         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72076         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72077         * m4/getpass.m4 (gl_FUNC_GETPASS):
72078         * m4/gettime.m4 (gl_GETTIME):
72079         * m4/getugroups.m4 (gl_GETUGROUPS):
72080         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72081         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72082         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72083         * m4/hash.m4 (gl_HASH):
72084         * m4/idcache.m4 (gl_IDCACHE):
72085         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72086         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72087         * m4/long-options.m4 (gl_LONG_OPTIONS):
72088         * m4/lstat.m4 (gl_FUNC_LSTAT):
72089         * m4/md5.m4 (gl_MD5):
72090         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72091         * m4/memcoll.m4 (gl_MEMCOLL):
72092         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72093         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72094         * m4/memxor.m4 (gl_MEMXOR):
72095         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72096         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72097         * m4/modechange.m4 (gl_MODECHANGE):
72098         * m4/mountlist.m4 (gl_MOUNTLIST):
72099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72100         * m4/openat.m4 (gl_FUNC_OPENAT):
72101         * m4/pathmax.m4 (gl_PATHMAX):
72102         * m4/physmem.m4 (gl_PHYSMEM):
72103         * m4/posixtm.m4 (gl_POSIXTM):
72104         * m4/posixver.m4 (gl_POSIXVER):
72105         * m4/quote.m4 (gl_QUOTE):
72106         * m4/quotearg.m4 (gl_QUOTEARG):
72107         * m4/readtokens.m4 (gl_READTOKENS):
72108         * m4/readutmp.m4 (gl_READUTMP):
72109         * m4/regex.m4 (gl_REGEX):
72110         * m4/safe-read.m4 (gl_SAFE_READ):
72111         * m4/safe-write.m4 (gl_SAFE_WRITE):
72112         * m4/same.m4 (gl_SAME):
72113         * m4/save-cwd.m4 (gl_SAVE_CWD):
72114         * m4/savedir.m4 (gl_SAVEDIR):
72115         * m4/settime.m4 (gl_SETTIME):
72116         * m4/sha1.m4 (gl_SHA1):
72117         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72118         * m4/stat-macros.m4 (gl_STAT_MACROS):
72119         * m4/stat-time.m4 (gl_STAT_TIME):
72120         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72121         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72122         * m4/strdup.m4 (gl_FUNC_STRDUP):
72123         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72124         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72125         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72126         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72127         * m4/time_r.m4 (gl_TIME_R):
72128         * m4/timespec.m4 (gl_TIMESPEC):
72129         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72130         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72131         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72132         * m4/userspec.m4 (gl_USERSPEC):
72133         * m4/utimecmp.m4 (gl_UTIMECMP):
72134         * m4/utimens.m4 (gl_UTIMENS):
72135         * m4/xalloc.m4 (gl_XALLOC):
72136         * m4/xgetcwd.m4 (gl_XGETCWD):
72137         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72138         * m4/xreadlink.m4 (gl_XREADLINK):
72139         * m4/xstrtod.m4 (gl_XSTRTOD):
72140         * m4/yesno.m4 (gl_YESNO):
72141         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72142         to get the necessary .h files and whatnot.
72143
72144 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72145             Bruno Haible  <bruno@clisp.org>
72146
72147         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72148         /bin/sh understanding of '!' conditional negation.
72149
72150 2006-08-21  Jim Meyering  <jim@meyering.net>
72151
72152         * modules/openat (Depends-on): Really alphabetize.
72153
72154         * modules/acl (Depends-on): Add error and quote.
72155
72156         * check-module (find_included_lib_files): Add at-func.c to the
72157         ok-to-include-more-than-once white list.
72158
72159         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72160
72161 2006-08-21  Bruno Haible  <bruno@clisp.org>
72162
72163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72164         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72165         Reported by Martin Lambers <marlam@marlam.de>.
72166
72167 2006-08-21  Bruno Haible  <bruno@clisp.org>
72168
72169         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72170         specify an installation location, don't emit a noinst_LIBRARIES or
72171         noinst_LTLIBRARIES assignment.
72172
72173 2006-08-21  Bruno Haible  <bruno@clisp.org>
72174
72175         BeOS portability.
72176         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72177         BeOS has mbrtowc() but no <wctype.h>.
72178
72179 2006-08-21  Bruno Haible  <bruno@clisp.org>
72180
72181         BeOS portability.
72182         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72183         exist.
72184
72185 2006-08-21  Bruno Haible  <bruno@clisp.org>
72186
72187         BeOS portability.
72188         * lib/mbchar.h: Include <wctype.h> only if it exists.
72189
72190 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         Remove files that are no longer needed by their respective modules.
72193         * m4/obstack.m4: Remove.
72194         * m4/strerror_r.m4: Remove.
72195         * m4/uint32_t.m4: Remove.
72196         * m4/uintptr_t.m4: Remove.
72197         * m4/ullong_max.m4: Remove.
72198         * m4/xstrtoimax.m4: Remove.
72199         * m4/xstrtoumax.m4: Remove.
72200
72201         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72202         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72203         dependencies now capture this.
72204
72205         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72206         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72207         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72208         * m4/human.m4 (gl_HUMAN): Likewise.
72209         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72210         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72211
72212         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72213
72214         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72215         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72216         stdint.
72217         * m4/human.m4 (gl_HUMAN): Likewise.
72218         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72219         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72220         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72222         * m4/xstrtol (gl_XSTRTOL): Likewise.
72223
72224         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72225         AC_TYPE_LONG_LONG_INT.
72226         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72227         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72228         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72229         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72230
72231         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72232         on stdbool.
72233
72234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72235         (gl_PREREQ_XSTRTOUL): Remove.
72236
72237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72238
72239         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72240         mode.
72241
72242 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         Add and change modules to make it easier for coreutils to use
72245         gnulib-tool.
72246         * modules/backupfile (Files): Remove m4/d-ino.m4.
72247         (Depends-on): Add d-ino.
72248         * modules/cycle-check (Depends-on): Add stdint.
72249         (lib_SOURCES): Add cycle-check.h.
72250         * modules/d-ino: New module.
72251         * modules/d-type: New module.
72252         * modules/error (Files): Remove m4/strerror_r.m4.
72253         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72254         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72255         m4/inttypes_h.m4, m4/uintmax_t.m4.
72256         (Depends-on): Add stdint.
72257         (lib_SOURCES): Add fsusage.h.
72258         * modules/getcwd (Files): Remove d-ino.m4.
72259         (Depends-on): Add d-ino.
72260         * modules/getndelim2 (Depends-on): Add stdint.
72261         * modules/glob (Files): Remove m4/d-type.m4.
72262         (Depends-on): Add d-type.
72263         * modules/host-os: New module.
72264         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72265         m4/inttypes_h.m4, m4/uintmax_t.m4.
72266         * Depends-on: Add stdint.
72267         (lib_SOURCES): Add human.h.
72268         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72269         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72270         m4/uintmax_t.m4, m4/ulonglong.m4.
72271         (Depends-on): Add stdint.
72272         (EXTRA_DIST): Add inttostr.h.
72273         * modules/lchmod: New module.
72274         * modules/link-follow: New module.
72275         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72276         (Depends-on): Add lchmod.
72277         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72278         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72279         (Depends-on): Add stdint.
72280         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72281         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72282         (Depends-on): Add stdint.
72283         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72284         * modules/perl: New module.
72285         * modules/regex (Depends-on): Add stdint.
72286         * modules/rmdir-errno: New module.
72287         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72288         m4/intmax_t.m4.
72289         (Depends-on): Add stdint.
72290         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72291         m4/uintmax_t.m4.
72292         (Depends-on): Add stdint.
72293         * modules/unlink-busy: New module.
72294         * modules/utimecmp (Depends-on): Add stdint.
72295         * modules/uptime: New module.
72296         * modules/winsz-ioctl: New module.
72297         * modules/winsz-termios: New module.
72298         * modules/xnanosleep (Depends-on): Add nanosleep.
72299         * modules/ullong_max: Remove.
72300         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72301         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72302         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72303         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72304         (Depends-on): Add inttypes.
72305         (lib_SOURCES): Add xstrtol.h.
72306         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72307         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72308         * MODULES.html.sh: Move 'assert' into the assert section.
72309         Move 'dummy' into the linking section.
72310         Remove ullong_max.
72311         Add section for compatibility checks for POSIX:2001 functions,
72312         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72313         winsz-ioctl, and winsz-termios into it.
72314         Add lchmod.
72315         Add top-level Misc section and put host-os, perl, and uptime
72316         into it.
72317
72318 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72321         now assume the stdint module.  Do not include inttypes.h.
72322         * lib/fsusage.h: Likewise.
72323         * lib/getndelim2.c: Likewise.
72324         * lib/human.h: Likewise.
72325         * lib/inttostr.h: Likewise.
72326         * lib/obstack.c: Likewise.
72327         * lib/regex_internal.h: Likewise.
72328         * lib/tempname.c: Likewise.
72329         * lib/utimecmp.c: Likewise.
72330         * lib/xstrtol.h: Likewise.
72331
72332         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72333
72334         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72335         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72336         * lib/xtime.h: Likewise.
72337
72338 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * modules/openat (Files): Add lib/fchmodat.c.
72341         Fixes problem reported by Jay Youngman.
72342
72343 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72346         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72347
72348 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72349             Bruno Haible  <bruno@clisp.org>
72350
72351         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72352         and is a script that invokes bison. Tighten the code. Add comments.
72353
72354 2006-08-18  Jim Meyering  <jim@meyering.net>
72355
72356         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72357         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72358         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72359         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72360
72361 2006-08-18  Bruno Haible  <bruno@clisp.org>
72362
72363         * modules/bison-i18n: New file.
72364         * MODULES.html.sh (Internationalization functions): Add it.
72365
72366 2006-08-18  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72369         sys/statvfs.h. When getmntinfo was found, check its declaration and
72370         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72371
72372 2006-08-18  Bruno Haible  <bruno@clisp.org>
72373
72374         * m4/bison-i18n.m4: New file, from bison.
72375
72376 2006-08-18  Bruno Haible  <bruno@clisp.org>
72377
72378         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72379         (ME_DUMMY): Treat "kernfs" as a dummy.
72380         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72381
72382 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         Update from coreutils.
72385
72386         2006-08-15  Jim Meyering  <jim@meyering.net>
72387
72388         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72389
72390         2006-01-17  Jim Meyering  <jim@meyering.net>
72391
72392         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72393
72394         2006-01-11  Jim Meyering  <jim@meyering.net>
72395
72396         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72397         Check for the lchmod function.
72398
72399 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         Update from coreutils.
72402
72403         * lib/__fpending.h: Add copyright notice.
72404         * lib/fprintftime.h: Likewise.
72405         * lib/savedir.c: Use (C) in copyright notice.
72406         * lib/savedir.h: Likewise.
72407
72408         2006-08-15  Jim Meyering  <jim@meyering.net>
72409
72410         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72411         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72412         in support of the EXPECTED_ERRNO macro.
72413         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72414         definitions.  Instead, define the appropriate symbols and include
72415         "at-func.c".
72416         * lib/mkdirat.c (mkdirat): Likewise.
72417         * lib/fchmodat.c (fchmodat): Likewise.
72418         (ENOSYS): Remove definition.
72419         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72420         it.  Don't include "unistd--.h" -- it wasn't ever used.
72421
72422         2006-01-17  Jim Meyering  <jim@meyering.net>
72423
72424         Rewrite fts.c not to change the current working directory,
72425         by using openat, fstatat, fdopendir, etc..
72426
72427         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72428         (HAVE_OPENAT_SUPPORT): Define.
72429         [_LIBC] (fchdir): Don't undef or define; no longer used.
72430         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72431         Now, this `function' always succeeds, and consumes its file descriptor
72432         parameter -- so callers must not close such FDs.  Update callers.
72433         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72434         (diropen): Add parameter, SP.  Adjust all callers.
72435         Implement using diropen_fd, rather than open.
72436         (fts_open): Initialize new member, fts_cwd_fd.
72437         Remove fts_rft-setting code.
72438         (fts_close): Close fts_cwd_fd, if necessary.
72439         (__opendir2): Define in terms of opendir or opendirat,
72440         depending on whether the FST_NOCHDIR flag is set.
72441         (fts_build): Since fts_safe_changedir consumes its FD, and since
72442         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72443         and close the dup'd file descriptor upon failure.
72444         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72445         (fts_safe_changedir): Tweak semantics to reflect that this function
72446         now calls cwd_advance_fd and hence consumes its FD argument.
72447         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72448         [struct FTS] (fts_rft): Remove now-unused member.
72449         [struct FTS] (fts_cycle.state): Improve comment.
72450
72451         * lib/openat.c (openat_needs_fchdir): New function.
72452         * lib/openat.h (openat_needs_fchdir): Declare it.
72453
72454 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72457         Problem and fix reported by Pádraig Brady in
72458         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72459
72460 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72463
72464 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * lib/memcoll.c (memcoll): Optimize for the common case where the
72467         arguments are bytewise equal.
72468
72469 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * doc/regexprops-generic.texi: Add a copyright notice.
72472
72473 2006-08-15  Bruno Haible  <bruno@clisp.org>
72474
72475         * modules/tmpdir (License): Change to LGPL.
72476
72477 2006-08-15  Bruno Haible  <bruno@clisp.org>
72478
72479         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72480         module.
72481
72482 2006-08-14  Simon Josefsson  <jas@extundo.com>
72483
72484         * config/srclist.txt: Add gnupload.
72485
72486 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         Change copyright notice from LGPL 2 to GPL 2, since that's the
72489         standard form used in the gnulib repository.
72490         * tests/test-lock.c: Likewise.
72491         * tests/test-stdint.c: Likewise.
72492         * tests/test-tls.c: Likewise.
72493
72494         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72495         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72496         Add copyright notice.
72497
72498         * check-module: Add copyright notice.  Output a copyright
72499         notice if "--version" is specified.
72500         * modules/COPYING: New file.
72501         * tests/test-getaddrinfo.c: Add copyright notice.
72502         * tests/test-verify.c: Likewise.
72503
72504 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         Change copyright notice from LGPL 2 to GPL 2, since that's the
72507         standard form used in the gnulib repository.
72508         * lib/lock.c: LGPL -> GPL.
72509         * lib/lock.h: Likewise.
72510         * lib/strnlen1.c: Likewise.
72511         * lib/strnlen1.h: Likewise.
72512         * lib/tls.c: Likewise.
72513         * lib/tls.h: Likewise.
72514         * lib/tmpdir.c: Likewise.
72515
72516         * lib/TODO: Remove; this belongs only in coreutils.
72517
72518 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         Add copyright notices to long-enough files that lack them, since
72521         otherwise the files aren't clearly free.  Use the same notice that
72522         getdate.texi already uses.
72523         * doc/alloca-opt.texi: Add copyright notice.
72524         * doc/alloca.texi: Likewise.
72525         * doc/ctime.texi: Likewise.
72526         * doc/functions.texi: Likewise.
72527         * doc/gcd.texi: Likewise.
72528         * doc/gnulib-tool.texi: Likewise.
72529         * doc/inet_ntoa.texi: Likewise.
72530         * doc/visibility.texi: Likewise.
72531
72532         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72533         * doc/quote.texi: Add copyright notice.
72534
72535         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72536         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72537         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72538         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72539         is now obsolete, and give a pointer to the Sun list.
72540         Add copyright notice.
72541
72542 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * config/srclistvars.sh: Add copyright notice.
72545
72546 2006-08-14  Eric Blake  <ebb9@byu.net>
72547
72548         Import the following change from libc:
72549
72550         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72551
72552         Upstream bug 2997.
72553         * lib/misc/error.c: Add space between program name and message if file
72554         name is missing.
72555
72556 2006-08-12  Karl Berry  <karl@gnu.org>
72557
72558         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72559         remove, these originate in gnulib now.
72560
72561 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72562
72563         * doc/Makefile (standards.info standards.html standards.dvi):
72564         Also depend on make-stds.texi.
72565
72566 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72569         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72570
72571         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72572         in wchar_t.  Problem reported by Eric Blake.
72573
72574         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72575         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72576         Also, help the compiler to keep LEN in a register.
72577
72578 2006-08-11  Eric Blake  <ebb9@byu.net>
72579
72580         * users.txt: Sort.  Add tar.
72581
72582 2006-08-11  Bruno Haible  <bruno@clisp.org>
72583
72584         * users.txt: New file.
72585
72586 2006-08-11  Bruno Haible  <bruno@clisp.org>
72587
72588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72589         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72590
72591 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         * modules/snprintf (Depends-on): Remove minmax.
72594         (Maintainer): Add self and Bruno.
72595
72596 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72599         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72600         (EOVERFLOW): Define if the system does not.
72601         Do not include "minmax.h"; it wasn't used.
72602         (snprintf): Don't assume size_t promotes to an unsigned type.
72603         Fix bug when generated string was too long for the buffer: the
72604         buffer's contents are supposed to be the initial prefix of the
72605         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72606         exceeds INT_MAX; do the check ourselves.
72607
72608         Import the following changes from libc:
72609
72610         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72611
72612         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72613         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72614         set wc to the byte which couldn't be converted.
72615         (re_string_reconstruct): Don't clear valid_raw_len before calling
72616         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72617         tip_context using re_string_context_at.
72618
72619         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72620
72621         * lib/posix/regex.h: g++ still cannot handled [restrict].
72622
72623         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72624
72625         * lib/posix/regex.h: Remove special handling for VMS.
72626
72627 2006-08-10  Jim Meyering  <jim@meyering.net>
72628
72629         * modules/same-inode: New module.
72630         * modules/dev-ino: New module.
72631         * modules/cycle-check: Depend on these modules, rather than simply
72632         including their .h files.
72633         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72634         required via m4/cycle-check.m4.
72635         * modules/same: Depend on new same-inode module, rather than
72636         including same-inode.h.
72637         * modules/chdir-safer: New file.
72638
72639         * modules/chown (Depends-on): Add stat-macros.
72640
72641 2006-08-10  Jim Meyering  <jim@meyering.net>
72642
72643         * m4/cycle-check.m4: New file.
72644         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72645         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72646
72647 2006-08-10  Eric Blake  <ebb9@byu.net>
72648
72649         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72650         in from original proposal.
72651
72652 2006-08-10  Eric Blake  <ebb9@byu.net>
72653         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72654
72655         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72656         namespace.
72657
72658 2006-08-10  Bruno Haible  <bruno@clisp.org>
72659
72660         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72661         as well.
72662
72663 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         Sync from coreutils.
72666
72667         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72668
72669         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72670         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72671
72672 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * modules/restrict: Remove; no longer needed now that we assume
72675         Autoconf 2.59 or later.
72676         * MODULES.html.sh: Remove 'restrict'.
72677         * modules/argp (Depends-on): Remove 'restrict'.
72678         * modules/base64 (Depends-on): Likewise.
72679         * modules/gc (Depends-on): Likewise.
72680         * modules/getaddrinfo (Depends-on): Likewise.
72681         * modules/glob (Depends-on): Likewise.
72682         * modules/inet_ntop (Depends-on): Likewise.
72683         * modules/inet_pton (Depends-on): Likewise.
72684         * modules/memxor (Depends-on): Likewise.
72685         * modules/regex (Depends-on): Likewise.
72686         * modules/strtok_r (Depends-on): Likewise.
72687         * modules/time_r (Depends-on): Likewise.
72688
72689 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72692         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72693         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72694         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72695         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72696         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72697         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72698         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72699
72700         Merge from coreutils.
72701         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72702         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72703         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72704         * m4/time_r.m4 (gl_TIME_R): Likewise.
72705
72706 2006-08-09  Karl Berry  <karl@gnu.org>
72707
72708         * config/srclist.txt: no more gettext-tools, per Bruno.
72709
72710 2006-08-08  Eric Blake  <ebb9@byu.net>
72711
72712         * modules/verror: New module.
72713         * MODULES.html.sh: Document it.
72714
72715 2006-08-08  Eric Blake  <ebb9@byu.net>
72716
72717         * lib/verror.h, lib/verror.c: New files.
72718
72719 2006-08-08  Eric Blake  <ebb9@byu.net>
72720
72721         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72722         verror_at_line output complies with GNU Coding Standards even when
72723         file is NULL.
72724
72725 2006-08-07  Bruno Haible  <bruno@clisp.org>
72726
72727         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72728         versions of AIX.
72729         Reported by Ralf Wildenhues.
72730
72731 2006-08-07  Bruno Haible  <bruno@clisp.org>
72732
72733         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72734         in an AC_DEFUN. Needed so that the autoconf snippets can use
72735         AC_REQUIRE.
72736
72737 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72738
72739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72740         Initialize pkgdata_DATA.
72741         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72742         overriding it.
72743
72744 2006-08-06  Eric Blake  <ebb9@byu.net>
72745
72746         * lib/error.h: Fold in some upstream changes from glibc.
72747         * lib/error.c: Likewise.
72748
72749 2006-08-04  Bruno Haible  <bruno@clisp.org>
72750
72751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72752         Make the mostlyclean-local rule depend on mostlyclean-generic.
72753         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72754
72755 2006-07-31  Bruno Haible  <bruno@clisp.org>
72756
72757         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72758         <stdlib.h>, <string.h>.
72759
72760 2006-07-30  Bruno Haible  <bruno@clisp.org>
72761
72762         * modules/readlink (License): Change to LGPL.
72763
72764 2006-07-30  Bruno Haible  <bruno@clisp.org>
72765
72766         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72767         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72768         set PKGDATADIR to point to it.
72769
72770 2006-07-30  Bruno Haible  <bruno@clisp.org>
72771
72772         * modules/csharpexec (configure.ac): Comment out macro invocation.
72773         * modules/javaexec (configure.ac): Likewise.
72774         * modules/javacomp-script (configure.ac): Likewise.
72775
72776         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72777
72778 2006-07-30  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72781         linked-list.
72782
72783 2006-07-30  Bruno Haible  <bruno@clisp.org>
72784
72785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72786
72787 2006-07-30  Bruno Haible  <bruno@clisp.org>
72788
72789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72790         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72791         get removed.
72792
72793 2006-07-29  Bruno Haible  <bruno@clisp.org>
72794
72795         Make it possible for gnulib-tool to work with locally modified or
72796         augmented gnulib repositories.
72797         * gnulib-tool (func_usage): Document --local-dir option.
72798         (local_gnulib_dir): New variable.
72799         Handle --local-dir option.
72800         (func_lookup_file): New function.
72801         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72802         (func_get_description, func_get_filelist, func_get_description,
72803         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72804         func_get_automake_snippet, func_get_include_directive,
72805         func_get_license, func_get_maintainer): Use func_lookup_file.
72806         (func_import, func_create_testdir): Use func_lookup_file.
72807
72808 2006-07-29  Bruno Haible  <bruno@clisp.org>
72809
72810         * modules/setenv (Depends-on): Add unistd.
72811
72812 2006-07-29  Bruno Haible  <bruno@clisp.org>
72813
72814         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72815
72816 2006-07-29  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72819
72820 2006-07-29  Bruno Haible  <bruno@clisp.org>
72821
72822         * gnulib-tool (import, update): If there is no Makefile.am, look at
72823         aclocal.m4, instead of bailing out.
72824
72825 2006-07-29  Bruno Haible  <bruno@clisp.org>
72826
72827         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72828         Categorize the options by when they are useful.
72829
72830 2006-07-29  Bruno Haible  <bruno@clisp.org>
72831
72832         * gnulib-tool (func_usage): Document option --no-libtool.
72833         Handle option --no-libtool.
72834         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72835         for changed semantics of $libtool variable.
72836         (func_import): Likewise. If libtool is not used, show this through
72837         an option --no-libtool.
72838         (func_create_testdir): Update.
72839
72840 2006-07-29  Bruno Haible  <bruno@clisp.org>
72841
72842         * gnulib-tool (func_import): Extend error message about missing
72843         --doc-base.
72844
72845 2006-07-29  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool (func_import): Don't create the $docbase directory if
72848         there is no file to store there.
72849
72850 2006-07-29  Bruno Haible  <bruno@clisp.org>
72851
72852         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72853         relevant, look for configure.ac there, not in the current directory.
72854         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72855
72856 2006-07-29  Bruno Haible  <bruno@clisp.org>
72857
72858         * gnulib-tool (SORT): New variable.
72859         (func_usage): Undocument --assume-autoconf option.
72860         Remove --assume-autoconf option handling.
72861         (autoconf_minversion): Determine from the contents of configure.ac.
72862         (func_import): Remove autoconf_minversion handling.
72863         Suggested by Eric Blake.
72864
72865 2006-07-29  Bruno Haible  <bruno@clisp.org>
72866
72867         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72868
72869 2006-07-29  Bruno Haible  <bruno@clisp.org>
72870
72871         * config/srclist.txt (*setenv.[ch]): Remove rules.
72872
72873 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72874
72875         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72876
72877 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72878
72879         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72880         arpa/inet.h.
72881
72882 2006-07-28  Simon Josefsson  <jas@extundo.com>
72883
72884         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72885         * modules/inet_pton (Depends-on): Likewise.
72886
72887 2006-07-28  Simon Josefsson  <jas@extundo.com>
72888
72889         * m4/netinet_in_h.m4: New file.
72890
72891 2006-07-28  Simon Josefsson  <jas@extundo.com>
72892
72893         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72894         #include's.
72895
72896 2006-07-28  Simon Josefsson  <jas@extundo.com>
72897
72898         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72899         #include's.
72900
72901 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72902
72903         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72904         setgid on directories only if they set these bits.
72905         * lib/modechange.h: Remove obsolete comment about masks.
72906
72907 2006-07-28  Eric Blake  <ebb9@byu.net>
72908
72909         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72910         macro expansion.
72911
72912 2006-07-28  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72915
72916 2006-07-28  Bruno Haible  <bruno@clisp.org>
72917
72918         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72919
72920 2006-07-28  Bruno Haible  <bruno@clisp.org>
72921
72922         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72923         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72924         Define fallbacks.
72925         Avoids link error on FreeBSD 4.x.
72926         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72927
72928         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72929         encoding.
72930         * lib/mbswidth.c (iswcntrl): Likewise.
72931
72932 2006-07-27  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72935         test.
72936
72937 2006-07-27  Bruno Haible  <bruno@clisp.org>
72938
72939         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72940         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72941         defined.
72942
72943 2006-07-26  Eric Blake  <ebb9@byu.net>
72944
72945         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72946
72947 2006-07-26  Eric Blake  <ebb9@byu.net>
72948
72949         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72950         like mingw that lack mkstemp.
72951         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72952         avoid compilation warning on mingw.
72953
72954 2006-07-26  Bruno Haible  <bruno@clisp.org>
72955
72956         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72957         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72958         INT_FAST*_MIN, INTPTR_MIN.
72959
72960 2006-07-25  Bruno Haible  <bruno@clisp.org>
72961
72962         * modules/version-etc (Depends-on): Add stdarg.
72963
72964 2006-07-25  Bruno Haible  <bruno@clisp.org>
72965
72966         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72967         complex commands.
72968
72969 2006-07-25  Bruno Haible  <bruno@clisp.org>
72970
72971         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72972         defined in <stdarg.h> or config.h.
72973
72974 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72977         (gl_STDIO_SAFER): Remove.
72978
72979 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * MODULES.html.sh (File stream based Input/Output):
72982         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72983         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72984         * modules/fopen-safer, modules/tmpfile-safer: New files.
72985         * modules/stdio-safer: Remove.
72986
72987 2006-07-24  Bruno Haible  <bruno@clisp.org>
72988
72989         * modules/tmpdir: New file.
72990         * MODULES.html.sh (File system functions): Add it.
72991
72992 2006-07-24  Bruno Haible  <bruno@clisp.org>
72993
72994         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72995         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72996
72997 2006-07-24  Bruno Haible  <bruno@clisp.org>
72998
72999         * modules/clean-temp: New file.
73000
73001 2006-07-24  Bruno Haible  <bruno@clisp.org>
73002
73003         * m4/tmpdir.m4: New file, from GNU gettext.
73004
73005 2006-07-24  Bruno Haible  <bruno@clisp.org>
73006
73007         * lib/tmpdir.h: New file, from GNU gettext.
73008         * lib/tmpdir.c: New file, from GNU gettext.
73009
73010 2006-07-24  Bruno Haible  <bruno@clisp.org>
73011
73012         * lib/clean-temp.h: New file, from GNU gettext.
73013         * lib/clean-temp.c: New file, from GNU gettext.
73014
73015 2006-07-23  Eric Blake  <ebb9@byu.net>
73016
73017         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73018         (Depends-on): Add binary-io.
73019
73020 2006-07-23  Eric Blake  <ebb9@byu.net>
73021
73022         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73023
73024 2006-07-23  Eric Blake  <ebb9@byu.net>
73025
73026         * lib/tmpfile-safer.c: New file.
73027         * lib/stdio-safer.h (fopen_safer): Add prototype.
73028         * lib/stdio--.h (tmpfile): Make safer.
73029
73030 2006-07-23  Bruno Haible  <bruno@clisp.org>
73031
73032         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73033         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73034         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73035         gl_linked_remove_at): Use it.
73036
73037 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73038         and Simon Josefsson <jas@extundo.com>
73039
73040         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73041
73042         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73043
73044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * modules/close-stream: New file.
73047         * modules/closeout (Description): Make it clear that it exits
73048         with a diagnostic on error.
73049         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73050         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73051
73052 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * m4/close-stream.m4: New file.
73055
73056 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * lib/close-stream.c, lib/close-stream.h: New files.
73059
73060 2006-07-22  Bruno Haible  <bruno@clisp.org>
73061
73062         Merge from GNU gettext 0.15.
73063
73064         2006-05-01  Bruno Haible  <bruno@clisp.org>
73065
73066                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73067
73068         2006-07-22  Bruno Haible  <bruno@clisp.org>
73069
73070                 * modules/javaversion: New file.
73071                 * MODULES.html.sh (Java): Add javaversion.
73072
73073         2006-03-12  Bruno Haible  <bruno@clisp.org>
73074
73075                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73076
73077         2005-12-04  Bruno Haible  <bruno@clisp.org>
73078
73079                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73080                 (untested).
73081
73082         2006-06-21  Bruno Haible  <bruno@clisp.org>
73083
73084                 Avoid warnings from recent versions of mcs.
73085                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73086                 -o, -L, -r any more. Use options documented since mcs-1.0
73087                 instead. Similarly for -g.
73088
73089         2005-12-04  Bruno Haible  <bruno@clisp.org>
73090
73091                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73092                 .resources, not .resource.
73093
73094         2005-07-09  Bruno Haible  <bruno@clisp.org>
73095
73096                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73097                 add a .dll suffix.
73098                 Reported by Mark Junker <mjscod@gmx.de>.
73099
73100         2006-07-22  Bruno Haible  <bruno@clisp.org>
73101
73102                 * modules/gettext: Upgrade to gettext-0.15.
73103                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73104                 m4/visibility.m4.
73105                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73106
73107 2006-07-22  Bruno Haible  <bruno@clisp.org>
73108
73109         Merge from GNU gettext 0.15.
73110
73111         2006-03-25  Bruno Haible  <bruno@clisp.org>
73112
73113                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73114
73115         2006-07-21  Bruno Haible  <bruno@clisp.org>
73116
73117                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73118                 "1.1".
73119
73120         2006-05-09  Bruno Haible  <bruno@clisp.org>
73121
73122                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73123                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73124                 for the conftestver execution.
73125
73126         2006-05-01  Bruno Haible  <bruno@clisp.org>
73127
73128                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73129                 optional target-version argument. Verify that the compiler
73130                 groks source of the specified source-version, or add -source
73131                 option as necessary. Verify that the compiler produces
73132                 bytecode in the specified target-version, or add -target and
73133                 -source options as necessary. Make the result of the test
73134                 available as variable CONF_JAVAC. Also log error output in
73135                 config.log.
73136
73137         2006-03-11  Bruno Haible  <bruno@clisp.org>
73138
73139                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73140
73141         2006-05-09  Bruno Haible  <bruno@clisp.org>
73142
73143                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73144                 CLASSPATH_SEPARATOR to a semicolon.
73145
73146         2006-03-12  Bruno Haible  <bruno@clisp.org>
73147
73148                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73149                 available as variable CONF_JAVA, for subsequent autoconf
73150                 tests. Also log error output in config.log.
73151
73152         2006-07-19  Bruno Haible  <bruno@clisp.org>
73153
73154                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73155                 that getline works on glibc2 systems. Needed to avoid trouble
73156                 in relocatable.c.
73157                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73158
73159         2005-12-04  Bruno Haible  <bruno@clisp.org>
73160
73161                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73162                 launcher (untested).
73163
73164         2005-12-04  Bruno Haible  <bruno@clisp.org>
73165
73166                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73167
73168         2006-07-22  Bruno Haible  <bruno@clisp.org>
73169
73170                 * gettext.m4: Update from GNU gettext-0.15.
73171                 * nls.m4: Likewise.
73172                 * po.m4: Likewise.
73173                 * inttypes-pri.m4: Likewise.
73174                 * inttypes-h.m4: Renamed from inttypes.m4.
73175                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73176
73177 2006-07-22  Bruno Haible  <bruno@clisp.org>
73178
73179         Merge from GNU gettext 0.15.
73180
73181         2005-07-05  Bruno Haible  <bruno@clisp.org>
73182
73183                 * printf-args.c (printf_fetchargs): Work around broken
73184                 definition of wint_t on mingw.
73185
73186         2005-02-12  Bruno Haible  <bruno@clisp.org>
73187
73188                 * xallocsa.h: Add extern "C" for C++.
73189
73190         2006-05-17  Bruno Haible  <bruno@clisp.org>
73191
73192                 Cygwin portability.
73193                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73194
73195         2006-04-30  Bruno Haible  <bruno@clisp.org>
73196
73197                 * progreloc.c: Include <mach-o/dyld.h> if available.
73198                 (find_executable): Use _NSGetExecutablePath when possible.
73199
73200         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73201
73202                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73203                 function.
73204
73205         2005-12-29  Bruno Haible  <bruno@clisp.org>
73206
73207                 * progreloc.c (set_program_name_and_installdir): Fix
73208                 compilation error.
73209
73210         2005-12-04  Bruno Haible  <bruno@clisp.org>
73211
73212                 Cygwin portability.
73213                 * progreloc.c: Include <windows.h> also on Cygwin.
73214                 (find_executable): Add support for Cygwin.
73215                 (set_program_name_and_installdir): Handle also platforms with
73216                 nonempty EXEEXT.
73217
73218         2006-07-11  Bruno Haible  <bruno@clisp.org>
73219
73220                 * javacomp.c: Fix a comment.
73221                 Reported by Jim Meyering.
73222
73223         2006-04-30  Bruno Haible  <bruno@clisp.org>
73224
73225                 * javacomp.h (compile_java_class): Add source_version,
73226                 target_version arguments.
73227                 * javacomp.c: Rewritten to choose only a compiler that
73228                 respects the specified source_version and target_version.
73229
73230         2006-06-27  Bruno Haible  <bruno@clisp.org>
73231
73232                 Assume correct S_ISDIR macro.
73233                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73234
73235         2006-07-22  Bruno Haible  <bruno@clisp.org>
73236
73237                 * javaversion.h: New file, from GNU gettext.
73238                 * javaversion.c: New file, from GNU gettext.
73239                 * javaversion.java: New file, from GNU gettext.
73240                 * javaversion.class: New file, from GNU gettext.
73241
73242         2006-05-17  Bruno Haible  <bruno@clisp.org>
73243
73244                 Cygwin portability.
73245                 * javaexec.c (execute_java_class): Test for jview program
73246                 also on Cygwin.
73247
73248         2006-04-09  Bruno Haible  <bruno@clisp.org>
73249
73250                 * fatal-signal.c: Don't include string.h.
73251                 (at_fatal_signal): Use a copying loop instead of memcpy.
73252
73253         2005-12-04  Bruno Haible  <bruno@clisp.org>
73254
73255                 * csharpexec.c: Add support for 'clix' launcher (untested).
73256                 (execute_csharp_using_sscli): New function.
73257                 (execute_csharp_program): Call it.
73258
73259         2006-06-21  Bruno Haible  <bruno@clisp.org>
73260
73261                 Avoid warnings from recent versions of mcs.
73262                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73263                 -o, -L, -r any more. Use options documented since mcs-1.0
73264                 instead. Similarly for -g.
73265
73266         2005-07-09  Bruno Haible  <bruno@clisp.org>
73267
73268                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73269                 add a .dll suffix.
73270                 Reported by Mark Junker <mjscod@gmx.de>.
73271
73272         2006-06-17  Bruno Haible  <bruno@clisp.org>
73273
73274                 * config.charset: Update for NetBSD 3.0.
73275
73276         2006-05-17  Bruno Haible  <bruno@clisp.org>
73277
73278                 Cygwin portability.
73279                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73280
73281         2006-05-16  Bruno Haible  <bruno@clisp.org>
73282
73283                 * localcharset.c [CYGWIN]: Include <windows.h>.
73284                 (get_charset_aliases): For Cygwin, return the same CPxxx
73285                 aliases list as under WIN32.
73286                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73287                 the environment variables. Fall back to GetACP().
73288
73289         2006-04-05  Bruno Haible  <bruno@clisp.org>
73290
73291                 * config.charset: Update Juan Manuel Guerrero's address.
73292
73293         2005-02-12  Bruno Haible  <bruno@clisp.org>
73294
73295                 * allocsa.h: Add extern "C" for C++.
73296
73297         2005-02-10  Bruno Haible  <bruno@clisp.org>
73298
73299                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73300                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73301
73302         2006-07-22  Bruno Haible  <bruno@clisp.org>
73303
73304                 * gettext.h: Update to GNU gettext-0.15.
73305
73306 2006-07-22  Bruno Haible  <bruno@clisp.org>
73307
73308         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73309         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73310         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73311
73312 2006-07-21  Eric Blake  <ebb9@byu.net>
73313
73314         * modules/stdlib-safer: New file.
73315         * MODULES.html.sh (File stream based Input/Output): Add
73316         stdlib-safer.
73317
73318 2006-07-21  Eric Blake  <ebb9@byu.net>
73319
73320         * lib/stdlib-safer.h: New file from coreutils, required by
73321         stdlib--.h.
73322
73323 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73324
73325         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73326
73327 2006-07-20  Bruno Haible  <bruno@clisp.org>
73328
73329         * gnulib-tool: Recognize new option --assume-autoconf.
73330         (autoconf_minversion): New variable.
73331         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73332
73333 2006-07-20  Bruno Haible  <bruno@clisp.org>
73334
73335         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73336
73337 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73338
73339         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73340         Reindent and repaginate.
73341
73342 2006-07-19  Derek Price  <derek@ximbiot.com>
73343
73344         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73345         Correct grammar.
73346
73347 2006-07-17  Bruno Haible  <bruno@clisp.org>
73348
73349         * modules/list: New file.
73350         * modules/array-list: New file.
73351         * modules/carray-list, modules/carray-list-tests: New files.
73352         * modules/linked-list, modules/linked-list-tests: New files.
73353         * modules/avltree-list, modules/avltree-list-tests: New files.
73354         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73355         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73356         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73357         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73358         * modules/oset: New file.
73359         * modules/array-oset: New file.
73360         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73361         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73362         * tests/test-carray_list.c: New file.
73363         * tests/test-linked_list.c: New file.
73364         * tests/test-avltree_list.c: New file.
73365         * tests/test-rbtree_list.c: New file.
73366         * tests/test-linkedhash_list.c: New file.
73367         * tests/test-avltreehash_list.c: New file.
73368         * tests/test-rbtreehash_list.c: New file.
73369         * tests/test-avltree_oset.c: New file.
73370         * tests/test-rbtree_oset.c: New file.
73371         * MODULES.html.sh (Container data structures): New section.
73372
73373 2006-07-17  Bruno Haible  <bruno@clisp.org>
73374
73375         * m4/gl_list.m4: New file.
73376
73377 2006-07-17  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/gl_list.h: New file.
73380         * lib/gl_list.c: New file.
73381         * lib/gl_array_list.h: New file.
73382         * lib/gl_array_list.c: New file.
73383         * lib/gl_carray_list.h: New file.
73384         * lib/gl_carray_list.c: New file.
73385         * lib/gl_linked_list.h: New file.
73386         * lib/gl_linked_list.c: New file.
73387         * lib/gl_anylinked_list1.h: New file.
73388         * lib/gl_anylinked_list2.h: New file.
73389         * lib/gl_avltree_list.h: New file.
73390         * lib/gl_avltree_list.c: New file.
73391         * lib/gl_anyavltree_list1.h: New file.
73392         * lib/gl_anyavltree_list2.h: New file.
73393         * lib/gl_rbtree_list.h: New file.
73394         * lib/gl_rbtree_list.c: New file.
73395         * lib/gl_anyrbtree_list1.h: New file.
73396         * lib/gl_anyrbtree_list2.h: New file.
73397         * lib/gl_anytree_list1.h: New file.
73398         * lib/gl_anytree_list2.h: New file.
73399         * lib/gl_linkedhash_list.h: New file.
73400         * lib/gl_linkedhash_list.c: New file.
73401         * lib/gl_anyhash_list1.h: New file.
73402         * lib/gl_anyhash_list2.h: New file.
73403         * lib/gl_avltreehash_list.h: New file.
73404         * lib/gl_avltreehash_list.c: New file.
73405         * lib/gl_rbtreehash_list.h: New file.
73406         * lib/gl_rbtreehash_list.c: New file.
73407         * lib/gl_anytreehash_list1.h: New file.
73408         * lib/gl_anytreehash_list2.h: New file.
73409
73410         * lib/gl_oset.h: New file.
73411         * lib/gl_oset.c: New file.
73412         * lib/gl_array_oset.h: New file.
73413         * lib/gl_array_oset.c: New file.
73414         * lib/gl_avltree_oset.h: New file.
73415         * lib/gl_avltree_oset.c: New file.
73416         * lib/gl_rbtree_oset.h: New file.
73417         * lib/gl_rbtree_oset.c: New file.
73418         * lib/gl_anytree_oset.h: New file.
73419
73420 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * m4/mkancesdirs.m4: New file.
73423         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73424         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73425         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73426         it.
73427
73428 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73431         * lib/mkancesdirs.h: New files.
73432         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73433         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73434         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73435         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73436         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73437         callers changed.  Revamp internals significantly, by not
73438         attempting to create directories that are temporarily more
73439         permissive than the final results.  Do not attempt to use
73440         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73441         This removes some race conditions, fixes some bugs, and simplifies
73442         things.  Use new dirchownmod function to do owner and mode changes.
73443         * lib/mkdir-p.h: Likewise.
73444         * lib/modechange.c (octal_to_mode): New function.
73445         (struct mode_change): New member mentioned.
73446         (make_node_op_equals): New arg mentioned.  All callers changed.
73447         (mode_compile): Keep track of which mode bits the user has explicitly
73448         mentioned.
73449         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73450         New arg PMODE_BITS, to keep track of which mode bits the user
73451         mentioned; it treats S_ISUID and S_ISGID speciall.
73452         All callers changed.
73453         * lib/modechange.h: Likewise.
73454
73455 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * MODULES.html.sh: Add mkancestors.
73458         * modules/mkancesdirs: New module.
73459         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73460         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73461         The chdir-safer and afs files are now orphans; I'll remove them
73462         unless someone speaks up.
73463         Add lib/dirchownmod.c, lib/dirchownmod.h.
73464         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73465         Add lchown, mkancesdirs.
73466         (Maintainer): Add self.
73467
73468 2006-07-15  Karl Berry  <karl@gnu.org>
73469
73470         * gnulib-tool: help message wording/arrangement.
73471
73472 2006-07-14  Simon Josefsson  <jas@extundo.com>
73473
73474         * doc/gnulib.texi (Libtool and Windows): New section.
73475
73476 2006-07-12  Simon Josefsson  <jas@extundo.com>
73477
73478         * modules/gendocs (License): Fix license, approved by Karl.
73479
73480 2006-07-12  Eric Blake  <ebb9@byu.net>
73481
73482         * MODULES.html.sh: Add gendocs.
73483
73484 2006-07-11  Eric Blake  <ebb9@byu.net>
73485
73486         * modules/fdl: New module, to install doc/fdl.texi.
73487         * MODULES.html.sh: Add new section for documentation modules.
73488         * gnulib-tool: Avoid space-tab.
73489         (--doc-base): New option, to manage files from doc.
73490
73491 2006-07-11  Eric Blake  <ebb9@byu.net>
73492
73493         * m4/absolute-header.m4: Fix comments to match recent change.
73494
73495 2006-07-11  Eric Blake  <ebb9@byu.net>
73496
73497         * gnulib-tool: List --doc-base before --tests-base.
73498
73499 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73500
73501         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73502
73503 2006-07-11  Bruno Haible  <bruno@clisp.org>
73504
73505         * README: Mention where to put documentation.
73506
73507 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73508
73509         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73510
73511 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73512
73513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73514         to stdint.m4.
73515
73516 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73519         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73520         "no/such/file/stdint.h" when there is no such file, so that
73521         the resulting C code can be parsed by dodgy compilers.
73522         Problems reported by Bob Proulx.
73523
73524 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73525
73526         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73527         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73528         macros into the GNU _D_EXACT_NAMLEN.
73529         * lib/savedir.c:  Likewise.
73530         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73531
73532 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73533         and Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73536         * m4/savedir.m4:
73537         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73538         macros into the GNU _D_EXACT_NAMLEN.
73539
73540 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73543         around the absolute name, to work around a problem with the HP-UX
73544         11.23 native C compiler, reported by Bob Proulx.
73545
73546 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * doc/maintain.texi, make-stds.texi: Sync from
73549         <http://savannah.gnu.org/projects/gnustandards>.
73550
73551 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73552
73553         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73554
73555 2006-07-09  Jim Meyering  <jim@meyering.net>
73556
73557         * m4/glob.m4: Remove a doubled word in a comment.
73558
73559 2006-07-09  Jim Meyering  <jim@meyering.net>
73560
73561         * lib/argp-pv.c: Remove a doubled word in a comment.
73562         * lib/check-version.c (check_version): Likewise.
73563         * lib/javacomp.c (compile_java_class): Likewise.
73564
73565 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73568         for the benefit of people using Autoconf 2.60.  If you want to
73569         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73570         (or m4/onceonly.m4, if pre-2.57) manually.
73571
73572 2006-07-08  Jim Meyering  <jim@meyering.net>
73573
73574         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73575         comment.
73576         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73577         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73578         comment.
73579
73580 2006-07-08  Jim Meyering  <jim@meyering.net>
73581
73582         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73583
73584 2006-07-07  Simon Josefsson  <jas@extundo.com>
73585
73586         * tests/test-crc.c: Change expected crc value, the test vector
73587         were probably computed using the old broken crc.c?
73588
73589 2006-07-06  Simon Josefsson  <jas@extundo.com>
73590
73591         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73592         now the canonical place for the M4 file).
73593
73594         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73595         from the sys_socket dependency now.
73596
73597         * modules/inet_pton (Files): Ditto.
73598
73599         * modules/inet_ntop (Files): Ditto.
73600
73601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73602
73603         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73604         not gl_PREREQ_GETUSERSHELL.
73605
73606 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73607
73608         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73609         with only one argument, for Autoconf 2.60.
73610         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73611         expand to nothing, so add a shell command to avoid syntax error.
73612         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73613
73614 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73615
73616         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73617
73618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73621         no longer needed.  Check for isblank decl.
73622         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73623         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73624         of existence.
73625
73626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * lib/getloadavg.c: Use __VMS, not VMS.
73629         * lib/getopt.c: Likewise.
73630         * lib/getpagesize.h: Likewise.
73631         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73632         and probably does not work.
73633
73634 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * lib/.cppi-disable: Add wcwidth.
73637         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73638         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73639         (ISGRAPH): Remove.  All uses changed to isgraph.
73640         (FOLD) [!defined _LIBC]: Remove special case.
73641         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73642         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73643         HAVE_ISBLANK.
73644         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73645         case.
73646
73647 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73648
73649         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73650         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73651         brackets.  Other minor changes to suppress some compiler
73652         warnings.
73653
73654 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73655         and Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73658         of invoking obsolescent AC_HEADER_DIRENT macro.
73659         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73660         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73663         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73664         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73665         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73666         * m4/readdir.m4: Remove; no longer needed.
73667
73668 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73669         and Paul Eggert  <eggert@cs.ucla.edu>
73670
73671         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73672         Don't worry about this obsolete case any more.
73673         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73674         directories.
73675         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73676         worry about this obsolete case any more.
73677         * lib/fts.c: Likewise.
73678         * lib/getcwd.c: Likewise.
73679         * lib/glob.h: Likewise.
73680         * lib/savedir.c: Likewise.
73681
73682 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73685         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73687         needed.
73688         All uses removed.
73689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73690         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73691         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73692         needed.
73693         * m4/getdate.m4 (gl_GETDATE): Likewise.
73694         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73695         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73696         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73697         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73698         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73700         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73701         needed.
73702
73703 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * lib/memcasecmp.c: Include <limits.h>.
73706         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73707         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73708         Don't assume isdigit succeeds only on '0' through '9'.
73709
73710 2006-07-05  Eric Blake  <ebb9@byu.net>
73711
73712         * modules/getaddrinfo (Depends-on): Add snprintf.
73713
73714 2006-07-05  Eric Blake  <ebb9@byu.net>
73715
73716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73717         to avoid 'header present but could not be compiled' on cygwin.
73718
73719 2006-07-05  Eric Blake  <ebb9@byu.net>
73720
73721         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73722         missing from netdb.h.
73723         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73724
73725 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73726
73727         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73728         no longer needed.
73729         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73730         * m4/getdate.m4 (gl_GETDATE): Likewise.
73731         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73732         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73733         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73734         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73735         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73736
73737 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73738
73739         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73740         All uses of is_space replaced by isspace.
73741         * lib/exit.h: Don't talk about STDC_HEADERS.
73742         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73743         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73744         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73745         replaced by isprint etc.
73746         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73747         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73748         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73749         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73750         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73751         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73752
73753 2006-07-05  Bruno Haible  <bruno@clisp.org>
73754
73755         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73756         the function exists, before testing against AIX.
73757         Reported by Martin Lambers <marlam@marlam.de>.
73758
73759 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73762         From Mark D. Baushke.
73763
73764 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73767         to the absolute name, not just one, to bypass Sun C 5.8's
73768         "warning: #include of /usr/include/... may be non-portable".
73769
73770 2006-07-04  Eric Blake  <ebb9@byu.net>
73771
73772         * modules/dirname-tests: New test module.
73773         * tests/test-dirname.c: New file, replacing dirname.c
73774         TEST_DIRNAME section that was recently deleted.
73775
73776 2006-07-04  Bruno Haible  <bruno@clisp.org>
73777
73778         Assume ANSI C header files and <ctype.h> functions.
73779         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73780         (mbsnwidth): Use isprint, iscntrl instead.
73781
73782 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         Merge from coreutils.
73785         * MODULES.html.sh: Add xstrtold.
73786         * modules/xstrtold: New file.
73787         * modules/cycle-check (Files): Add lib/same-inode.h.
73788         * modules/dirname (Files): Add m4/double-slash-root.m4.
73789         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73790         * modules/mkdir-p (Files): Add lib/same-inode.h.
73791         * modules/same (Files): Add lib/same-inode.h.
73792
73793 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73796         This is to keep the terminology clean; POSIX talks about
73797         "absolute pathnames", not "full pathnames", but the GNU
73798         Coding Standards say to use "path" for something else;
73799         so use "absolute" to keep both sides happy.
73800         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73801         Set gl_absolute_header, not gl_full_header_path.
73802         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73803         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73804         All uses changed.
73805
73806         Merge from coreutils.
73807
73808         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73809
73810         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73811         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73812         want to require the building of c-strtod.o.
73813         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73814         needs -lm directly.
73815         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73816
73817         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73818
73819         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73820         --as-needed option if available.  Problem reported by Albert Chin in
73821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73822         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73823         cc merely issues a bunch of annoying warnings for --as-needed
73824         (this problem was reported by Bob Proulx).  Also, try linking with
73825         -lm to detect a bug in binutils 2.16 (this problem was reported
73826         by Ralf Wildenhues).
73827
73828         2006-06-18  Jim Meyering  <jim@meyering.net>
73829
73830         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73831         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73832         macro.
73833         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73834         also check for glibc-2.4's abort-inducing bug.
73835
73836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73837         Low-probability clean-up should be to use rmdir to get rid of
73838         the just-created directory, not unlink.
73839
73840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73841         configure fail, and request a bug report to inform us about it.
73842         Add a comment that, barring reports to the contrary, in 2007 we'll
73843         assume ftruncate is universally available.
73844
73845         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73848
73849         2006-03-12  Jim Meyering  <jim@meyering.net>
73850
73851         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73852         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73853         * m4/same.m4 (gl_SAME): Likewise.
73854         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73855
73856         2006-03-11  Eric Blake  <ebb9@byu.net>
73857
73858         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73859         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73860         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73861         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73862
73863 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73866         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73867         reported by Mark D. Baushke, one in
73868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73869
73870         Merge from coreutils.
73871
73872         * lib/.cppi-disable: Add stdint_.h.
73873         * lib/.cvsignore: Add stdint.h.
73874
73875         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73878         both double and long double versions.
73879         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73880         * lib/xstrtold.c: New file.
73881         * lib/xstrtod.h (xstrtold): New decl.
73882
73883         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * lib/filemode.c (setst): Remove.
73886         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73887         (arguably) clearer, and the generated code is a bit smaller on my
73888         Debian GNU/Linux stable x86 host.
73889
73890         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73893         Assume that filemode.h includes sys/types.h and sys/stat.h.
73894         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73895         (ftypelet): Reorder to put common cases first, for efficiency.
73896         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73897         to do 'M'.
73898         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73899         of 10, for compatibility with FreeBSD.  All callers changed.
73900         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73901         types that can't be deduced solely from st_mode.  First arg is now a
73902         const pointer.
73903         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73904         (strmode): Renamed from mode_string.
73905         (filemodestring): New decl.
73906         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73907         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73908         needed.
73909         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73910
73911         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73912
73913         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73914         fsusage.h now does that.  Include fsusage.h first, to test interface.
73915         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73916         at most one method (the old code could have generated decls that
73917         didn't conform to C89, not that this was ever exercised).
73918         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73919
73920         2006-03-19  Jim Meyering  <jim@meyering.net>
73921
73922         Work even in a chroot where d_ino values for entries in "/"
73923         don't match the stat.st_ino values for the same names.
73924         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73925         number, iterate through all entries again, using lstat instead.
73926         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73927         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73928
73929         * lib/getcwd.c (__getcwd): Clarify a comment.
73930         Use memcpy in place of a call to strcpy.
73931
73932         2006-03-12  Jim Meyering  <jim@meyering.net>
73933
73934         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73935         matches that of the current directory (which we're about to chdir ".."
73936         out of), then save the dev-ino of the parent, instead.
73937
73938         * lib/same-inode.h (SAME_INODE): New file/macro.
73939         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73940         Include "same-inode.h", instead.
73941         * lib/same.c: Likewise.
73942         * lib/cycle-check.h: Include "same-inode.h".
73943         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73944         * lib/cycle-check.c (SAME_INODE): Remove definition.
73945         * lib/root-dev-ino.h: Include "same-inode.h".
73946
73947         2006-03-11  Eric Blake  <ebb9@byu.net>
73948
73949         * lib/same.c (same_name): s/base_name/last_component/
73950         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73951         * lib/filenamecat.c (file_name_concat): Likewise.
73952
73953         2006-03-11  Eric Blake  <ebb9@byu.net>,
73954                     Paul Eggert  <eggert@cs.ucla.edu>
73955
73956         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73957         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73958         drive prefix.
73959         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73960         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73961         (last_component): New method.
73962         * lib/dirname.c (dir_len): Determine when drive letters need a
73963         subsequent slash.  Preserve // when it is special.
73964         (dir_name): Don't append dot when drive letter is absolute.
73965         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73966         * lib/basename.c (base_name): New semantics - malloc the result.
73967         Preserve // when it is special.  Preserve relative files that look
73968         like drive letters.
73969         (base_len): Preserve // when it is special.
73970         (last_component): New method, similar to old base_name semantics.
73971         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73972         base_name.  Strip redundant slashes from ///.
73973
73974 2006-07-03  Jim Meyering  <jim@meyering.net>
73975
73976         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73977         macro is used before the first cycle_check call.
73978
73979 2006-07-03  Eric Blake  <ebb9@byu.net>
73980
73981         * modules/dirname (Depends-on): Add xstrndup.
73982
73983 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73984
73985         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73986         test cases, so that config.log is a bit easier to follow.
73987
73988 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73991         both are 64 bits, since this seems to be the tradition, and this
73992         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73993         we ever run into a host that prefers long long to long in this
73994         case, we'll need another configure-time test.  Problem reported by
73995         Jim Meyering.
73996
73997 2006-07-02  Eric Blake  <ebb9@byu.net>
73998
73999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
74000
74001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * modules/inttypes (Depends-on): No longer depends on stdint.
74004         * modules/stdint (Description): Say more about assumptions.
74005         Say that the fast types might differ.  Say macros are used.
74006         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
74007         (Makefile.am): Revise list of substituted symbols to match
74008         new stdint.m4.
74009         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
74010         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74011         * tests/test-stdint.c (verify_same_types)
74012         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74013         the code conforms to C99/C89.
74014         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74015         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74016
74017 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74018
74019         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74020         but fix a bug, by requiring at least 64 bits.
74021         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74022         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74023         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74024         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74025
74026         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74027         changes.  Make 2.59 a prerequisite.  Check and substitute for
74028         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74029         inttypes.h.  Do not use special include files; just use the
74030         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74031         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74032         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74033         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74034         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74035         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74036         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74037         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74038         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74039         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74040         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74041         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74042         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74043         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74044         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74045         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74046         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74047         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74048         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74049         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74050         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74051         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74052         not check for things that C99 does not require, e.g., int8_t.  If
74053         a test isn't needed unless <stdint.h> isn't working, and is
74054         unlikely to be needed for any other reason, then don't do it
74055         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74056         size_t, since we assume C89 freestanding at least.  Do not check
74057         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74058         the right thing even if the types are not defined.  Instead use:
74059         (gl_STDINT_TYPE_PROPERTIES): New macro.
74060         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74061         testing whether <sys/types.h> clashes, as Autoconf does this for
74062         us now.  All uses removed.
74063         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74064         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74065         (gl_CHECK_TYPE_SAME):
74066         Remove; no longer needed.
74067         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74068         exists, since we'll return 0 anyway in that case.
74069         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74070
74071 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74074         possible collision with system files.
74075         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74076         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74077         WCHAR_MIN and WCHAR_MAX in this case.
74078         (<stddef.h>): Do not include; no longer needed.
74079         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74080         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74081         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74082         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74083         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74084         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74085         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74086         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74087         !defined(__c99))]: Include in this case too, since it's harmless
74088         now.
74089         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74090         dangerous to do so.
74091         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74092         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74093         (_STDINT_MIN, _STDINT_MAX): New macros.
74094         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74095         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74096         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74097         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74098         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74099         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74100         macros, not typedefs; this simplifies things quite a bit.
74101         Use long int for all types narrower than int64_t.
74102         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74103         Define in terms of long long int or int64_t or long int,
74104         not int64_t or int32_t.  This saves some compile-time testing.
74105         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74106         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74107         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74108         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74109         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74110         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74111         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74112         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74113         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74114         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74115         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74116         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74117         undef any previous version and define our own version, for
74118         simplicity and consistency with the new macros for types.
74119         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74120         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74121         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74122         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74123         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74124         @WINT_T_SUFFIX@ to keep things simple here.
74125         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74126         Simplify by assuming typical 8/16/32/64 host, since we're
74127         already doing that elsewhere anyway.
74128         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74129         and assume long long int is 64 bits if available.  This
74130         speeds up 'configure'.
74131
74132 2006-07-01  Eric Blake  <ebb9@byu.net>
74133
74134         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74135         Reported by Andreas Buening.
74136
74137 2006-07-01  Eric Blake  <ebb9@byu.net>
74138
74139         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74140
74141 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74142
74143         * lib/getaddrinfo.c: fixed typo
74144
74145 2006-06-29  Jim Meyering  <jim@meyering.net>
74146
74147         * modules/strftime (Maintainer): Add my name, since with the
74148         FPRINTFTIME changes strftime.c has forked from glibc.
74149
74150 2006-06-29  Eric Blake  <ebb9@byu.net>
74151
74152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74153
74154 2006-06-29  Eric Blake  <ebb9@byu.net>
74155
74156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74157
74158 2006-06-29  Eric Blake  <ebb9@byu.net>
74159
74160         * lib/stat_.h: New file.
74161
74162 2006-06-29  Eric Blake  <ebb9@byu.net>
74163
74164         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74165         unused static function.
74166
74167 2006-06-29  Eric Blake  <ebb9@byu.net>
74168
74169         * doc/functions.texi (Function Portability): Document missing lstat
74170         on mingw.
74171
74172 2006-06-29  Eric Blake  <ebb9@byu.net>
74173
74174         * MODULES.html.sh: Add sys_stat.
74175         * modules/sys_stat: New module.
74176         * modules/mkstemp (Depends-on): Add sys_stat.
74177
74178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74179
74180         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74181
74182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74183
74184         * m4/c-bs-a.m4: Removed.
74185
74186 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74187
74188         * lib/strftime.c: Assume strftime() exists.
74189
74190 2006-06-29  Derek Price  <derek@ximbiot.com>
74191
74192         * modules/c-bs-a: Removed - \a is C89.
74193         * MODULES.html.sh: Remove c-bs-a.
74194
74195 2006-06-29  Bruno Haible  <bruno@clisp.org>
74196
74197         * modules/wcwidth (License): Change to LGPL.
74198
74199 2006-06-28  Simon Josefsson  <jas@extundo.com>
74200
74201         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74202         on _WIN32.
74203
74204         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74205         getnameinfo.
74206
74207 2006-06-28  Simon Josefsson  <jas@extundo.com>
74208
74209         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74210
74211 2006-06-28  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74214         functions there.  It will succeed on Windows XP, but on Windows
74215         2000 and (presumably) earlier, it will fail, and use the internal
74216         re-implementation.
74217         (use_win32_p): New function.
74218         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74219         Support AI_NUMERICSERV to disable getservbyname.
74220         (getnameinfo): New function, only supports
74221         NI_NUMERICHOST|NI_NUMERICSERV for now.
74222
74223         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74224         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74225         getnameinfo.
74226
74227 2006-06-28  Eric Blake  <ebb9@byu.net>
74228
74229         * modules/wcwidth: New file.
74230         * modules/mbchar (Depends-on): Add wcwidth.
74231         * modules/mbswidth (Depends-on): Add wcwidth.
74232         * MODULES.html.sh: Add wcwidth.
74233
74234 2006-06-28  Eric Blake  <ebb9@byu.net>
74235
74236         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74238
74239 2006-06-28  Eric Blake  <ebb9@byu.net>
74240
74241         * lib/xvasprintf.h: Fix comments.
74242
74243 2006-06-28  Eric Blake  <ebb9@byu.net>
74244
74245         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74246         * lib/mbswidth.c (wcwidth): Move from here...
74247         * lib/wcwidth.h: ...to this new file.
74248
74249 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74250
74251         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74252
74253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74254         it's obsolete.
74255         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74256
74257 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74258
74259         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74260         Autoconf 2.60 says this stuff was obsolete.
74261
74262 2006-06-28  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74265
74266 2006-06-28  Bruno Haible  <bruno@clisp.org>
74267
74268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74269         gt_TYPE_WCHAR_T.
74270
74271 2006-06-28  Bruno Haible  <bruno@clisp.org>
74272
74273         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74274         declaration for wcwidth.
74275         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74276
74277 2006-06-28  Bruno Haible  <bruno@clisp.org>
74278
74279         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74280         (mkdir): Define using _mkdir.
74281
74282 2006-06-28  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/getaddrinfo.h: Fix POSIX URL.
74285         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74286         _WIN32.
74287         (use_win32_p): Make static.
74288         (getaddrinfo): Reject service name if it is empty or does not consist
74289         solely of decimal digits, or if its value is > 65535.
74290         (getnameinfo): Remove useless casts.
74291
74292 2006-06-27  Simon Josefsson  <jas@extundo.com>
74293
74294         * modules/sys_select: New file, suggested by Bruno Haible, Paul
74295         Eggert and Martin Lambers.
74296
74297 2006-06-27  Simon Josefsson  <jas@extundo.com>
74298
74299         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74300         Eggert and Martin Lambers.
74301
74302 2006-06-27  Bruno Haible  <bruno@clisp.org>
74303
74304         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74305         result to 0, not to empty.
74306         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74307
74308 2006-06-27  Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74311
74312 2006-06-26  Simon Josefsson  <jas@extundo.com>
74313
74314         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74315         present.
74316
74317 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74320         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74322
74323 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74324
74325         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74326
74327 2006-06-26  Bruno Haible  <bruno@clisp.org>
74328
74329         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74330
74331 2006-06-26  Bruno Haible  <bruno@clisp.org>
74332
74333         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74334
74335 2006-06-26  Bruno Haible  <bruno@clisp.org>
74336
74337         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74338         SGI C compiler in pre-C99 mode.
74339         Suggested by Mark D. Baushke and Larry Jones.
74340
74341 2006-06-26  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74344         WCHAR_MAX.
74345         Reported by Mark D. Baushke and Larry Jones.
74346
74347 2006-06-26  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74350         in pre-C99 mode.
74351         Suggested by Mark D. Baushke and Larry Jones.
74352
74353 2006-06-23  Simon Josefsson  <jas@extundo.com>
74354             Bruno Haible  <bruno@clisp.org>
74355
74356         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74357         Emit mostlyclean-local rule.
74358         (func_emit_tests_Makefile_am): Likewise.
74359         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74360
74361 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74362
74363         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74364
74365 2006-06-23  Bruno Haible  <bruno@clisp.org>
74366
74367         * tests/test-stdint.c: Update to match ISO C 99 Technical
74368         Corrigendum 1.
74369
74370 2006-06-23  Bruno Haible  <bruno@clisp.org>
74371
74372         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74373
74374 2006-06-23  Bruno Haible  <bruno@clisp.org>
74375
74376         * lib/stdint_.h: Treat IRIX like OpenBSD.
74377
74378 2006-06-23  Bruno Haible  <bruno@clisp.org>
74379
74380         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74381         ISO C 99 Technical Corrigendum 1.
74382
74383 2006-06-22  Simon Josefsson  <jas@extundo.com>
74384
74385         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74386         MinGW.
74387
74388 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74391         needed.  Some compiler complained about some of them.  Problem reported
74392         by Larry Jones in
74393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74394
74395 2006-06-21  Simon Josefsson  <jas@extundo.com>
74396
74397         * tests/test-getaddrinfo.c: New file.
74398
74399         * modules/getaddrinfo-tests: New file.
74400
74401         * MODULES.html.sh: Add inet_pton.
74402
74403         * modules/inet_pton: New file.
74404
74405 2006-06-21  Simon Josefsson  <jas@extundo.com>
74406
74407         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74408         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74409         of using the (limited) gnulib implementation on Windows XP.
74410
74411         * m4/inet_pton.m4: New file.
74412
74413 2006-06-21  Simon Josefsson  <jas@extundo.com>
74414
74415         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74416         variable.
74417
74418         * lib/socket_.h: Don't define WINVER.
74419
74420         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74421         slightly modified to work in gnulib.
74422
74423 2006-06-21  Simon Josefsson  <jas@extundo.com>
74424
74425         * doc/gnulib.texi (Windows sockets): Add.
74426
74427 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74428
74429         * lib/read-file.c (fread_file): Start with buffer allocation of
74430         0 bytes rather than 1 byte; this simplifies the code.
74431         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74432         code to free buffer and save/restore errno.
74433         (internal_read_file): Remove unused local.
74434
74435 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74438         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74439         Problem reported by Denis Excoffier in
74440         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74441
74442 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74443
74444         * modules/sys_socket, modules/socklen: Include sys/types since
74445         FreeBSD 4.x's sys/socket.h needs it.
74446
74447 2006-06-19  Simon Josefsson  <jas@extundo.com>
74448
74449         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74450
74451 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74454
74455 2006-06-19  Bruno Haible  <bruno@clisp.org>
74456
74457         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74458         and FULL_PATH_INTTYPES_H in angle brackets.
74459         Reported by Mark D. Baushke <mdb@gnu.org>.
74460
74461 2006-06-17  Eric Blake  <ebb9@byu.net>
74462
74463         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74464         errno.
74465
74466 2006-06-17  Bruno Haible  <bruno@clisp.org>
74467
74468         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74469         <sys/inttypes.h>.
74470
74471 2006-06-17  Bruno Haible  <bruno@clisp.org>
74472
74473         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74474         whether errno is declared. Assume <errno.h> declares errno.
74475
74476 2006-06-17  Bruno Haible  <bruno@clisp.org>
74477
74478         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74479
74480 2006-06-17  Bruno Haible  <bruno@clisp.org>
74481
74482         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74483         problem on Solaris 2.5.1.
74484
74485 2006-06-16  Eric Blake  <ebb9@byu.net>
74486
74487         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74488         * lib/unicodeio.c [!defined errno]: Likewise.
74489         * lib/strtol.c [!defined errno]: Likewise.
74490         * lib/strtod.c [!defined errno]: Likewise.
74491
74492 2006-06-15  Eric Blake  <ebb9@byu.net>
74493
74494         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74495
74496 2006-06-15  Eric Blake  <ebb9@byu.net>
74497
74498         * config/srclist.txt (ssize_t.m4): Lose sync.
74499
74500 2006-06-15  Bruno Haible  <bruno@clisp.org>
74501
74502         * modules/stdint (Files): Include m4/full-header-path.m4,
74503         m4/size_max.m4, m4/wchar_t.m4.
74504         (Makefile.am): Many more substitutions.
74505         * modules/stdint-tests: New file.
74506         * tests/test-stdint.c: New file.
74507
74508 2006-06-15  Bruno Haible  <bruno@clisp.org>
74509
74510         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74511         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74512         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74513         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74514         gl_CHECK_TYPE_SAME): New macros.
74515
74516 2006-06-15  Bruno Haible  <bruno@clisp.org>
74517
74518         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74519
74520 2006-06-15  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/stdint_.h: Rewritten to be fully auto-configured.
74523         Fixes bug on HP-UX/IA64.
74524
74525 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * lib/getdate.y (__attribute__): Don't define if already defined.
74528         Problem reported by Larry Jones.
74529         * lib/utimens.c (__attribute__): Likewise.
74530
74531 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74534         reported by Andreas Schwab.
74535
74536 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74537             Bruno Haible  <bruno@clisp.org>
74538
74539         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74540         check for the declaration of strnlen and a run test that exposes the
74541         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74542         rpl_strndup.
74543
74544 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74545             Bruno Haible  <bruno@clisp.org>
74546
74547         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74548
74549 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74550
74551         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74552         compile test, for Tru64 4.0D.
74553
74554 2006-05-28  Karl Berry  <karl@gnu.org>
74555
74556         * config/srclist.txt (printf-args.c): lose sync.
74557
74558 2006-05-26  Martin Lambers  <marlam@marlam.de>
74559
74560         * lib/getpass.c: Updates the test for the native W32 API, and adds
74561         missing includes, thus fixing compilation warnings.
74562
74563 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74564
74565         * lib/exclude.c (exclude_fnmatch): New function.
74566         (excluded_file_name): Call exclude_fnmatch.
74567         * lib/exclude.h (excluded_file_name): New prototype
74568
74569 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * lib/tempname.c (small_open, large_open): New macros.
74572         (__open, __open64) [!_LIBC]: Remove.
74573         (__gen_tempname): Use small_open and large_open instead of __open
74574         and __open64.  This fixes a portability bug on HP-UX 11.11i
74575         reported by Simon Wing-Tang in
74576         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74577
74578 2006-05-24  Bruno Haible  <bruno@clisp.org>
74579
74580         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74581         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74582         Reported by Thorsten Maerz <torte@netztorte.de> via
74583         Aaron Stone <aaron@serendipity.cx>.
74584
74585 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74588         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74589         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74590         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74591         not really conditional on the cache.
74592         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74593
74594 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74597         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74598         (my_usleep): Don't mishandle maximum value.
74599
74600 2006-05-19  Jim Meyering  <jim@meyering.net>
74601
74602         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74603
74604 2006-05-17  Bruno Haible  <bruno@clisp.org>
74605
74606         Cygwin portability.
74607         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74608
74609 2006-05-17  Bruno Haible  <bruno@clisp.org>
74610
74611         * lib/stdint_.h: Fix recognition of Cygwin.
74612
74613 2006-05-15  Bruno Haible  <bruno@clisp.org>
74614
74615         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74616         on libtool patch by Ralf Wildenhues.
74617
74618 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74621         test for C99 conformance; (bool) 0.5 is an integer constant
74622         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74623         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74624
74625 2006-05-11  Simon Josefsson  <jas@extundo.com>
74626
74627         * m4/xvasprintf.m4: Fix obvious typo.
74628
74629 2006-05-11  Jim Meyering  <jim@meyering.net>
74630
74631         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74632         James Lemley.
74633
74634 2006-05-10  Simon Josefsson  <jas@extundo.com>
74635
74636         * lib/md4.c: Typo fix, update copyright years.
74637         (K1, K2): Don't use L because it turn computations into 64-bit on
74638         64-bit platforms.
74639
74640 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74643         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74644         unwanted sign propagation, e.g., on hosts with 64-bit int.
74645         There still are some problems with reeelly weird theoretical hosts
74646         (e.g., 33-bit int) but it's not worth worrying about now.
74647         * lib/sha1.c (rol): Likewise.
74648         (K1, K2, K3, K4): Remove unnecessary L suffix.
74649
74650 2006-05-10  Bruno Haible  <bruno@clisp.org>
74651
74652         * lib/des.c: Cast to avoid warnings.
74653
74654 2006-05-09  Bruno Haible  <bruno@clisp.org>
74655
74656         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74657         (Depends-on): Depend also on xsize, stdarg.
74658         (configure.ac): Add gl_XVASPRINTF.
74659
74660 2006-05-09  Bruno Haible  <bruno@clisp.org>
74661
74662         * m4/xvasprintf.m4: New file.
74663
74664 2006-05-09  Bruno Haible  <bruno@clisp.org>
74665
74666         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74667         (EOVERFLOW): Define fallback value.
74668         (xstrcat): New function.
74669         (xvasprintf): Recognize the special case of a string concatenation.
74670
74671 2006-05-08  Eric Blake  <ebb9@byu.net>
74672
74673         * gnulib-tool (func_version): Base copyright year on CVS date.
74674         (func_emit_copyright_notice): New function.
74675         (func_emit_lib_Makefile_am): Use it.
74676         (func_emit_tests_Makefile_am): Likewise.
74677         (func_import): Likewise.
74678
74679 2006-05-08  Bruno Haible  <bruno@clisp.org>
74680
74681         * modules/stdarg: New file.
74682         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74683
74684 2006-05-08  Bruno Haible  <bruno@clisp.org>
74685
74686         * m4/stdarg.m4: New file, from GNU gettext.
74687
74688 2006-05-08  Bruno Haible  <bruno@clisp.org>
74689
74690         * config/srclist.txt (build-aux/config.rpath): different from latest
74691         release.
74692
74693 2006-05-08  Bruno Haible  <bruno@clisp.org>
74694
74695         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74696
74697 2006-05-05  Jim Meyering  <jim@meyering.net>
74698
74699         * m4/warning.m4: New file, derived from bison's file by the same name.
74700
74701 2006-05-03  Bruno Haible  <bruno@clisp.org>
74702
74703         * lib/stdint_.h: Shorter URL.
74704         * lib/inttypes.h: Likewise.
74705
74706 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74709
74710 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74711
74712         * lib/verify.h: Document the internals better.  Most of this change
74713         was written by Bruno Haible.
74714
74715 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * doc/verify.texi: New file, partly based on a proposal by
74718         Bruno Haible.
74719
74720 2006-05-02  Bruno Haible  <bruno@clisp.org>
74721
74722         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74723         test from here...
74724         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74725
74726 2006-04-29  Bruno Haible  <bruno@clisp.org>
74727
74728         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74729         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74730
74731 2006-04-29  Bruno Haible  <bruno@clisp.org>
74732
74733         * gnulib-tool: Make --update option actually work.
74734
74735 2006-04-29  Bruno Haible  <bruno@clisp.org>
74736
74737         * doc/gcd.texi: New file.
74738         * doc/gnulib.texi: Include it.
74739
74740 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * lib/getdate.y (get_date): When adding relative date, start with the
74743         initial time, not with the result of the first mktime call.
74744
74745 2006-04-25  Bruno Haible  <bruno@clisp.org>
74746
74747         * gnulib-tool (func_import): Output the include directives in three
74748         blocks, sorted separately.
74749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74750
74751 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74752
74753         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74754         to define main with arguments, for C++.  Reported by Eric Blake.
74755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74756         Prefer 'int main ()' to 'int main (void)', for C++.
74757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74759         for 'main', for C99 and C++.
74760
74761 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74764         Don't assume that exit status -1 is valid.
74765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74766         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74767         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74768         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74769         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74771         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74772         functions can be used without declaring them, or that you can
74773         exit with status -1.
74774         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74775
74776 2006-04-24  Karl Berry  <karl@gnu.org>
74777
74778         * config/srclist.txt (longdouble.m4): sync lost.
74779
74780 2006-04-24  Eric Blake  <ebb9@byu.net>
74781
74782         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74783
74784 2006-04-24  Bruno Haible  <bruno@clisp.org>
74785
74786         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74787         poll() implementation in AIX.
74788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74789
74790 2006-04-24  Bruno Haible  <bruno@clisp.org>
74791
74792         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74793         assigned exactly once.
74794
74795 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74796             Bruno Haible  <bruno@clisp.org>
74797
74798         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74799         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74800         for AM_CPPFLAGS.
74801
74802 2006-04-23  Bruno Haible  <bruno@clisp.org>
74803
74804         * modules/copy-file: Depend on unistd.
74805         * modules/execute: Likewise.
74806         * modules/fatal-signal: Likewise.
74807         * modules/findprog: Likewise.
74808         * modules/mkdtemp : Likewise.
74809         * modules/pipe: Likewise.
74810         * modules/wait-process: Likewise.
74811
74812 2006-04-23  Bruno Haible  <bruno@clisp.org>
74813
74814         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74815         condition was already detected.
74816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74817
74818 2006-04-23  Bruno Haible  <bruno@clisp.org>
74819
74820         * lib/copy-file.c: Include <unistd.h> unconditionally.
74821         * lib/execute.c: Likewise.
74822         * lib/fatal-signal.c: Likewise.
74823         * lib/findprog.c: Likewise.
74824         * lib/mkdtemp.c: Likewise.
74825         * lib/pipe.h: Likewise.
74826         * lib/pipe.c: Likewise.
74827         * lib/wait-process.h: Likewise.
74828
74829 2006-04-23  Bruno Haible  <bruno@clisp.org>
74830
74831         * gnulib-tool (func_usage): Fix --import description. Document
74832         --update.
74833         (func_import): Create temporary file in a temporary directory, if
74834         --dry-run is specified. Silence errors from 'grep' when there are no
74835         m4 files in $m4dir.
74836         (func_create_testdir): Silence errors from 'grep' when there are no
74837         m4 files in $m4dir.
74838         Reported by Karl Berry <karl@freefriends.org>.
74839
74840 2006-04-20  Bruno Haible  <bruno@clisp.org>
74841
74842         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74843         one argument, so that the code will be portable to Autoconf 2.60.
74844         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74845         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74846         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74847
74848 2006-04-19  Derek Price  <derek@ximbiot.com>
74849             Eric Blake  <ebb9@byu.net>
74850
74851         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74852         rather than "/full/path.h".  Update comment to match.  Shorten &
74853         generalize m4_translit call via AS_TR_CPP.
74854
74855 2006-04-19  Derek Price  <derek@ximbiot.com>
74856             Eric Blake  <ebb9@byu.net>
74857
74858         * lib/inttypes.h: Correct grammar in comment.
74859
74860 2006-04-18  Derek Price  <derek@ximbiot.com>
74861             Paul Eggert  <eggert@cs.ucla.edu>
74862
74863         * modules/inttypes: New file.
74864         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74865
74866 2006-04-18  Derek Price  <derek@ximbiot.com>
74867             Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74870         New files.
74871
74872 2006-04-18  Derek Price  <derek@ximbiot.com>
74873             Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * lib/inttypes.h: New file.
74876         * lib/strtoimax.c: Assume <inttypes.h>.
74877
74878 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74881         isn't mounted.  Problem reported by Kir Kolyshkin.
74882
74883 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74886         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74887         Derek R. Price.
74888         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74889         implementation.
74890
74891 2006-04-12  Eric Blake  <ebb9@byu.net>
74892
74893         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74894         is now done automatically by the corresponding Autoconf macro.
74895
74896 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74899         time_r.h.
74900
74901 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74902
74903         Merge regex changes from libc, removing some of our
74904         POSIX-conformance changes that were rejected and redoing them in a
74905         less-intrusive way.
74906
74907         * lib/regcomp.c (re_compile_internal, init_dfa):
74908         Length arg is now size_t, not Idx.  All uses changed.
74909         (peek_token): Forward decl now says internal_function.
74910         (__re_error_msgid, __re_error_msgid_idx):
74911         Now static rather than extern with attribute_hidden.
74912         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74913         For some reason libc prefers K&R style defns for external functions.
74914         (regerror) [!defined _LIBC]: Likewise.
74915         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74916         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74917         (build_range_exp, build_collating_symbol):
74918         Use K&R-style defn.
74919         (re_compile_fastmap): Use '\0' to memset, not 0.
74920         (utf8_sb_map): Make the calculations more obvious.
74921         (init_dfa, parse_bracket_exp, build_charclass_op):
74922         Call calloc and cast result, as glibc does.
74923         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74924         (build_range_exp, build_collating_symbol):
74925         Now internal functions.
74926
74927         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74928
74929         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74930         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74931         Don't depend on VMS; depend on __VMS instead, for POSIX
74932         namespace cleanness.
74933         (regoff_t): Define to ssize_t, not long int.
74934
74935         Remove the REG_ macros named below.  Instead, make the old names
74936         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74937         __USE_GNU_REGEX.
74938         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74939         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74940         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74941         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74942         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74943         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74944         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74945         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74946         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74947         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74948         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74949         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74950         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74951         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74952         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74953         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74954         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74955         (REG_NREGS):
74956         Remove.  All uses replaced by the old RE_* names.
74957         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74958         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74959         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74960         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74961         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74962         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74963         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74964         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74965         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74966         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74967         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74968         Don't bother having these macros be independent of each others'
74969         values, since they no longer exist in the POSIX name space.
74970
74971         Rename the following member names back to their old names,
74972         unless !__USE_GNU_REGEX.  All uses changed back.
74973         (buffer): Renamed from re_buffer.
74974         (allocated): Renamed from re_allocated.
74975         (used): Renamed from re_used.
74976         (syntax): Renamed from re_syntax.
74977         (fastmap): Renamed from re_fastmap.
74978         (translate): Renamed from re_translate.
74979         (can_be_null): Renamed from re_can_be_null.
74980         (regs_allocated): Renamed from re_regs_allocated.
74981         (fastmap_accurate): Renamed from re_fastmap_accurate.
74982         (no_sub): Renamed from re_no_sub.
74983         (not_bol): Renamed from re_not_bol.
74984         (not_eol): Renamed from re_not_eol.
74985         (newline_anchor): Renamed from re_newline_anchor.
74986         (num_regs): Renamed from rm_num_regs.
74987         (start): Renamed from rm_start.
74988         (end): Renamed from rm_end.
74989
74990         (free_state): Move up a bit.
74991
74992         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74993         #define to be empty.
74994         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74995         when that is what is intended.
74996         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74997         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74998         (MAX): New macro.
74999         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
75000         All uses changed back to re_malloc, etc.  It's now the caller's
75001         responsibility to check for overflow; all callers changed.
75002         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
75003         (re_x2nrealloc): Remove.
75004         (free_state): Remove decl.
75005
75006         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
75007         (re_set_registers, re_exec):
75008         Use K&R-style defn.
75009
75010         2006-01-31  Roland McGrath  <roland@redhat.com>
75011
75012         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75013         Reported by Mike Frysinger <vapier@gentoo.org>.
75014
75015         2006-01-15  Andreas Jaeger  <aj@suse.de>
75016
75017         [BZ #1950]
75018         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75019         build_wcs_upper_buffer change.
75020         (build_wcs_upper_buffer): Change return type.
75021
75022         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75023
75024         * lib/regex_internal.h: Include <stdint.h> if available.
75025
75026         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75027
75028         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75029
75030         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75031
75032         * lib/regcomp.c: Adjust for changed secondary hash function.
75033
75034         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75035
75036         * lib/regex.h: Pretty printing.
75037         Clean up namespace a bit.
75038
75039         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75040
75041         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75042         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75043
75044         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75045                     Ulrich Drepper  <drepper@redhat.com>
75046
75047         [BZ #1302]
75048         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75049         changed.
75050         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75051
75052         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75053
75054         [BZ #281]
75055         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75056         * lib/regcomp.c: Remove unnecessary uses of
75057         unsigned RE_TRANSLATE_TYPE.
75058         * lib/regex_internal.h: Likewise.
75059         * lib/regex_internal.c: Likewise.
75060         * lib/regexec.c: Likewise.
75061         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75062
75063         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75064
75065         * lib/regexec.c (find_recover_state): Remove unnecessary
75066         initialization.
75067         (transit_state_bkref): Make DFA a const pointer.
75068         (get_subexp): Likewise.
75069         (check_arrival): Likewise.
75070         (update_cur_sifted_state): Likewise.
75071         (re_search_internal): Likewise.
75072         (prune_impossible_nodes): Likewise.
75073         (acquire_init_state_context): Likewise.
75074         (proceed_next_node): Likewise.
75075         (set_regs): Likewise.
75076         (free_fail_stack_return): Likewise.
75077         (check_arrival_expand_ecl): Mark DFA parameter as const.
75078         (check_arrival_expand_ecl_sub): Likewise.
75079         (check_subexp_limits): Likewise.
75080         (sub_epsilon_src_nodes):  Likewise.
75081         (add_epsilon_src_nodes):  Likewise.
75082         (merge_state_array): Likewise.
75083         (update_regs): Likewise.
75084         (build_trtable): Likewise.
75085         (sift_states_backward): Mark MCTX parameter as const.
75086         (build_sifted_states): Likewise.
75087         (update_cur_sifted_state): Likewise.
75088         (sift_states_mkref): Likewise.
75089         (check_arrival_expand_ecl): Mark eclosure as const.
75090         (check_dst_limits_calc_pos_1): Likewise.
75091         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75092         pointer.
75093
75094         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75095
75096         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75097         (transit_state_sb): Likewise.
75098         (transit_state_mb): Likewise.
75099         (sift_states_iter_mb): Likewise.
75100         (check_arrival_add_next_nodes): Likewise.
75101         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75102         [_LIBC] (re_search_2_stub): Use mempcpy.
75103
75104         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75105         mbrtowc for very simple UTF-8 case.
75106
75107         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75108         a pointer-to-const.
75109         (re_acquire_state_context): Likewise.
75110         * lib/regex_internal.h: Adjust prototypes.
75111
75112         * lib/regex.c: Prevent using C++ compilers.
75113
75114         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75115         (re_acquire_state_context): Likewise.
75116
75117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * modules/regex (Depends-on): Add ssize_t.
75120
75121 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75124         translation table.
75125
75126 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75129
75130 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75131             Bruno Haible  <bruno@clisp.org>
75132
75133         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75134         <sys/types.h> and <inttypes.h>.
75135
75136 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75137
75138         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75139         `__error_t_defined', so argp.h will not typedef the former.
75140
75141 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75142
75143         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75144         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75145         glibc names.  Even if glibc is changed to conform to POSIX, the
75146         traditional names will be available anyway, since regex depends on
75147         the extensions module.  Also, fix a longstanding typo in the
75148         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75149         reported by Emanuele Giaquinta.  Also, change sense of cached
75150         variable, so that the message makes sense.
75151
75152 2006-03-24  Simon Josefsson  <jas@extundo.com>
75153
75154         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75155         including some doc fixes.
75156         (base64_encode_alloc): Fix +1 bug on allocation failures.
75157
75158 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75159
75160         * lib/base64.c (base64_encode): Do not read past end of array with
75161         unsanitized input on systems with CHAR_BIT > 8.
75162
75163 2006-03-24  Eric Blake  <ebb9@byu.net>
75164
75165         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75166
75167 2006-03-22  Karl Berry  <karl@gnu.org>
75168
75169         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75170         * config/srclistvars.sh (COREUTILS): new var.
75171
75172 2006-03-17  Jim Meyering  <jim@meyering.net>
75173
75174         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75175         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75176
75177 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75178
75179         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75180         no longer needs it.  Instead, check that regoff_t is as least
75181         as wide as ptrdiff_t.
75182
75183         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75184         so that our regex.h stays compatible with the installed regex.
75185         This is helpful for installers who configure --without-included-regex.
75186         Problem reported by Emanuele Giaquinta.
75187
75188 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75191         Typedef to long int, not to off_, as POSIX will likely change
75192         in that direction.
75193
75194 2006-03-15  Eric Blake  <ebb9@byu.net>
75195
75196         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75197
75198 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75199
75200         * lib/argp-help.c (validate_uparams): Fix typo
75201         * lib/argp-parse.c (argp_default_options): Consistently begin help
75202         messages with a lowercase letter.
75203
75204 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75207         overrun buffers and shouldn't be used (much as gets shouldn't be
75208         used).
75209         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75210
75211 2006-03-08  Simon Josefsson  <jas@extundo.com>
75212
75213         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75214         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75215
75216 2006-03-08  Simon Josefsson  <jas@extundo.com>
75217
75218         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75219         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75220
75221 2006-03-08  Simon Josefsson  <jas@extundo.com>
75222
75223         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75224         signal that configure disabled the device.
75225
75226 2006-03-08  Simon Josefsson  <jas@extundo.com>
75227
75228         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75229         languages.
75230
75231 2006-03-07  Simon Josefsson  <jas@extundo.com>
75232
75233         * modules/getopt (Depends-on): Add unistd.
75234
75235         * modules/unistd: New file.
75236
75237 2006-03-07  Simon Josefsson  <jas@extundo.com>
75238
75239         * modules/gc-random: New file.
75240
75241 2006-03-07  Simon Josefsson  <jas@extundo.com>
75242
75243         * m4/unistd_h.m4: New file.
75244
75245 2006-03-07  Simon Josefsson  <jas@extundo.com>
75246
75247         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75248         test to be side-effect free by storing the result in the cache
75249         variable gl_cv_lib_readline, and moving the assignment of
75250         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75251         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75252
75253 2006-03-07  Simon Josefsson  <jas@extundo.com>
75254
75255         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75256         error on missing devices (the functions will return an error).
75257
75258         * m4/gc.m4: Move random stuff to gc-random.m4
75259
75260 2006-03-07  Simon Josefsson  <jas@extundo.com>
75261
75262         * lib/unistd_.h: New file.
75263
75264 2006-03-07  Simon Josefsson  <jas@extundo.com>
75265
75266         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75267
75268 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75269
75270         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75271         Problem reported by Juan Manuel Guerrero.
75272
75273 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75276         the unistd module.
75277         * lib/getlogin_r.c: Likewise.
75278         * lib/getlogin_r.h: Likewise.
75279         * lib/glob.c: Likewise.
75280         * lib/pagealign_alloc.c: Likewise.
75281         * lib/unistd_.h: Remove; no longer needed.
75282
75283 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75286         Add unistd.
75287         * modules/c-stack (Depends-on): Add unistd.
75288         * modules/getlogin_r: Likewise.
75289         * modules/glob: Likewise.
75290         * modules/pagealign_alloc: Likewise.
75291         * modules/unistd (Files): Remove lib/unistd_.h.
75292         (EXTRA_DIST): Remove.
75293         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
75294         need unistd_.h.
75295         (MOSTLYCLEANFILES): Remove unistd.h-t.
75296
75297 2006-03-03  Simon Josefsson  <jas@extundo.com>
75298
75299         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75300
75301 2006-03-03  Simon Josefsson  <jas@extundo.com>
75302
75303         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75304         libidn and bison.
75305
75306 2006-03-03  Simon Josefsson  <jas@extundo.com>
75307
75308         * build-aux/maint.mk: Add indent target.
75309
75310 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75311
75312         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75313         our replacement poll.h in any case, to avoid a differing
75314         declaration from a system header.  Seen on AIX.
75315
75316 2006-03-01  Simon Josefsson  <jas@extundo.com>
75317
75318         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75319         <kasal@ucw.cz>.
75320
75321 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * modules/gettime (Depends-on): Add extensions module.
75324         * modules/nanosleep (Depends-on): Likewise.
75325         * modules/settime (Depends-on): Likewise.
75326
75327 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75330         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75331         pedantically.
75332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75333         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75334
75335         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75336         not "==".  Reported by Ralf Wildenhues.
75337
75338 2006-03-01  Karl Berry  <karl@gnu.org>
75339
75340         * doc/Copyright/request-*: new files, synced from gnuorg.
75341
75342 2006-03-01  Karl Berry  <karl@gnu.org>
75343
75344         * config/srclist.txt (Copyright/*): new entries.
75345
75346 2006-02-28  Simon Josefsson  <jas@extundo.com>
75347
75348         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75349
75350 2006-02-27  Simon Josefsson  <jas@extundo.com>
75351
75352         * lib/base64.h: Indent #define's.  From Jim Meyering
75353         <jim@meyering.net>.
75354
75355 2006-02-27  Jim Meyering  <jim@meyering.net>
75356
75357         Revert the change of 2006-02-24, so these files can continue
75358         to be sync'd from gettext.
75359         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75360         of `config.h'.
75361
75362 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75363
75364         * modules/intprops: New file.
75365         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75366         Add intprops.
75367         * modules/getloadavg (Files): Remove lib/intprops.h.
75368         (Depends-on): Add intprops.
75369         * modules/human: Likewise.
75370         * modules/inttostr: Likewise.
75371         * modules/openat: Likewise.
75372         * modules/sig2str: Likewise.
75373         * modules/userspec: Likewise.
75374         * modules/utimecmp: Likewise.
75375         * modules/xnanosleep: Likewise.
75376         * modules/xstrtol: Likewise.
75377
75378 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75379
75380         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75381         * modules/lock-tests (TESTS): Use $(EXEEXT).
75382         * modules/tls-tests: Likewise.
75383         * modules/argp-tests: Likewise.
75384         (check_PROGRAMS): New var, replacing...
75385         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75386
75387 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75388
75389         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75390         `config.h'.
75391
75392 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75395
75396 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75397
75398         Sync from coreutils.
75399         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75400         gl_CHDIR_SAFER.
75401
75402 2006-02-22  Jim Meyering  <jim@meyering.net>
75403
75404         Sync from coreutils.
75405         * m4/chdir-safer.m4: New file.
75406
75407 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75410         AT_FDCWD exceeds INT_MAX.
75411         * lib/openat.h (AT_FDCWD): Likewise.
75412
75413 2006-02-17  Eric Blake  <address@hidden>
75414
75415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75416
75417 2006-02-16  Simon Josefsson  <jas@extundo.com>
75418
75419         * modules/getaddrinfo (Depends-on): Add sys_socket.
75420
75421 2006-02-15  Simon Josefsson  <jas@extundo.com>
75422
75423         * build-aux/maint.mk: Add dsyntax-check rule.
75424
75425 2006-02-15  Eric Blake  <ebb9@byu.net>
75426
75427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75428         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75429         'present but cannot compile' warnings on cygwin.
75430         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75431         use ws2tcpip.h if sys/socket.h works.
75432         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75433         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75434
75435 2006-02-14  Simon Josefsson  <jas@extundo.com>
75436
75437         * modules/maintainer-makefile (Files): Rename.
75438
75439         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75440         and (the local) Makefile.cfg to maint-cfg.mk.
75441
75442         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75443         to the latter.
75444
75445         * modules/maintainer-makefile: New module.
75446
75447         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75448         severaly stripped to make it possible to build it up from scratch
75449         with reliable tests.
75450
75451         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75452         fixes to permit overriding the default actions when configure and
75453         makefile are not available.
75454
75455 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         Sync from coreutils.
75458         * modules/lstat (Depends-on): Don't depend on xalloc.
75459         (License): Change from GPL to LGPL, since this is now simply a
75460         replacement for a libc function.
75461
75462 2006-02-14  Jim Meyering  <jim@meyering.net>
75463
75464         Sync from coreutils.
75465
75466         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75467         failure on deficient systems, and simplify gnulib lgpl dependencies.
75468         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75469         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75470
75471         * lib/xalloc-die.c: Remove unused definition of N_.
75472
75473 2006-02-14  Jim Meyering  <jim@meyering.net>
75474
75475         Sync from coreutils.
75476         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75477         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75478         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75479         double-quote uses of that variable, to accommodate the rare case in
75480         which getmntent is available in none of the libraries checked.  This
75481         happens at least on FreeBSD 5.0.
75482
75483 2006-02-13  Simon Josefsson  <jas@extundo.com>
75484
75485         * gnulib-tool (Usage): Fix --import, from
75486         karl@freefriends.org (Karl Berry).
75487
75488 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75489
75490         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75491
75492 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75493
75494         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75495         "autoupdate" on 2005-12-12.
75496
75497 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * modules/closeout (Depends-on): Remove atexit.
75500
75501 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75504         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75505
75506 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75507
75508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75509         __EXTENSIONS__ if this causes compilation to fail.  Problem
75510         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75511         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75512
75513 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75514
75515         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75516         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75518         All uses changed.
75519
75520 2006-01-26  Simon Josefsson  <jas@extundo.com>
75521
75522         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75523         prototype is visible on mingw32.
75524
75525         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75526         for mingw32.
75527
75528         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75529         mingw32).
75530
75531 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75534         attempt to open for write; this always fails, at least on POSIX
75535         hosts.  This reinstates the 2006-01-09 change, which was
75536         inadvertently removed.
75537
75538 2006-01-26  Bruno Haible  <bruno@clisp.org>
75539
75540         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75541         Reported by Paul Eggert.
75542
75543 2006-01-26  Bruno Haible  <bruno@clisp.org>
75544             Paul Eggert  <eggert@cs.ucla.edu>
75545
75546         * lib/stdbool_.h (_Bool)
75547         [(! (defined __cplusplus || defined __BEOS__)
75548           && !defined __GNUC__
75549           && !(defined __HP_cc || defined __xlc__
75550                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75551                || defined __sgi))]:
75552         #define to signed char in these cases too; this simplifies
75553         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75554         etc., separately) and makes it more conservative.
75555
75556 2006-01-25  Simon Josefsson  <jas@extundo.com>
75557
75558         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75559         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75560         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75561
75562 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75563
75564         * lib/argp-namefrob.h: Bugfix. Remove stray #
75565
75566 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75569         so that we test the test.
75570         Check for yet another HP-UX cc bug involving *bool |= bool.
75571
75572 2006-01-25  Karl Berry  <karl@gnu.org>
75573
75574         * config/srclist.txt (vasnprintf.c): sync lost.
75575
75576 2006-01-25  Jim Meyering  <jim@meyering.net>
75577
75578         Sync from the stable (b5) branch of coreutils:
75579
75580         * lib/fts.c (fts_children): Don't let close() clobber errno from
75581         failed fchdir().
75582
75583         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75584         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75585         a dangling symlink.  That can also happen at least for ELOOP.
75586         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75587         FYI, this bug predates the inclusion of fts.c in coreutils.
75588
75589         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75590         in their own block, so pre-c99 compilers don't object.
75591
75592         Avoid the double-free (first in fts_read, second in fts_close) that
75593         would occur when an `active' directory is made inaccessible (e.g.,
75594         via chmod a-x) during a traversal.
75595         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75596         before returning.  Reproduce this failure by
75597         mkdir -p a/b; cd a; chmod a-x . b
75598         Reported by Stavros Passas.
75599
75600 2006-01-25  Jim Meyering  <jim@meyering.net>
75601
75602         * lib/fileblocks.c: Remove more useless parentheses.
75603         * lib/readutmp.h: Likewise.
75604
75605 2006-01-25  Bruno Haible  <bruno@clisp.org>
75606
75607         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75608         warnings.
75609         Reported by Paul Eggert.
75610
75611 2006-01-25  Bruno Haible  <bruno@clisp.org>
75612
75613         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75614         rid of a trap command. For Solaris sh.
75615         Reported by Mark D. Baushke <mdb@gnu.org>.
75616
75617 2006-01-24  Simon Josefsson  <jas@extundo.com>
75618
75619         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75620         Bruno.
75621
75622 2006-01-24  Karl Berry  <karl@gnu.org>
75623
75624         * config/srclist.txt (argp-namefrob.h): sync lost.
75625
75626 2006-01-24  Jim Meyering  <jim@meyering.net>
75627
75628         * modules/openat (Files): Add lib/intprops.h.
75629         From Mark D. Baushke.
75630
75631 2006-01-24  Jim Meyering  <jim@meyering.net>
75632
75633         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75634         Reported by Mark D. Baushke.
75635
75636 2006-01-24  Jim Meyering  <jim@meyering.net>
75637
75638         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75639
75640 2006-01-24  Bruno Haible  <bruno@clisp.org>
75641
75642         * modules/strnlen (Maintainer): Change from glibc to all.
75643
75644 2006-01-24  Bruno Haible  <bruno@clisp.org>
75645
75646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75647         Patch by Paul Eggert.
75648
75649 2006-01-24  Bruno Haible  <bruno@clisp.org>
75650
75651         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75652         already has it.
75653         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75654         2005-11-26.
75655
75656         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75657         'signed char' to avoid problems with the built-in _Bool type.
75658         Reported by Paul Eggert on 2005-11-26.
75659
75660 2006-01-24  Bruno Haible  <bruno@clisp.org>
75661
75662         * gnulib-tool (func_import): Avoid constructing complicated sed
75663         expressions inside backquote.
75664         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75665
75666 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75667
75668         These changes imported from libc.
75669         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75670         test and two separate function calls.
75671         * lib/strndup.c (__strndup): Add libc_hidden_def.
75672
75673 2006-01-23  Simon Josefsson  <jas@extundo.com>
75674
75675         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75676         Remove the test_*_SOURCES variable: automake infers it by default.
75677         * modules/tls-tests: Likewise.
75678
75679 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         Work around porting bugs reported by Dieter in
75682         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75683         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75684         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75685         Include "getopt.h" first, to check interface.
75686         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75687         !HAVE_DECL_GETENV.
75688         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75689         (__strndup): Revert to K&R-style function dfns, the glibc style.
75690         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75691         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75692         Include strnlen.h first, to get prototype properly.
75693         (strnlen): Renamed from __strnlen.
75694         Remove weak alias.
75695
75696 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75699
75700 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75701
75702         * config/srclist.txt: Adjust to reflect glibc reorganization.
75703         This affects only comments.
75704
75705 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75706
75707          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75708          Reported by Bruce Korb <bkorb@gnu.org>.
75709
75710 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75713         to pacify gcc -Wswitch-default.
75714
75715 2006-01-22  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75718         temporary buffer for sprintf, take into account the precision also
75719         for 'd', 'i', 'u', 'o', 'x', 'X'.
75720
75721 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75722
75723         * modules/argp-tests: New module
75724         * tests/test-argp.c: New file
75725         * tests/test-argp-2.sh: New file
75726
75727 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75728
75729         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75730         (__argp_base_name): Removed
75731         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75732         typo.
75733         (__argp_base_name): Provide macro definition or extern declaration
75734         depending on the configuration
75735
75736 2006-01-20  Simon Josefsson  <jas@extundo.com>
75737
75738         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75739
75740 2006-01-20  Simon Josefsson  <jas@extundo.com>
75741
75742         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75743
75744 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75747         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75748         Suggested by Bruno Haible.
75749
75750 2006-01-20  Karl Berry  <karl@gnu.org>
75751
75752         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75753         until changes propagate, I guess.
75754
75755 2006-01-19  Simon Josefsson  <jas@extundo.com>
75756
75757         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75758
75759 2006-01-19  Simon Josefsson  <jas@extundo.com>
75760
75761         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75762
75763 2006-01-19  Simon Josefsson  <jas@extundo.com>
75764
75765         * gnulib-tool: Set check_PROGRAMS.
75766
75767         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75768         modules/des-tests, modules/gc-arcfour-tests,
75769         modules/gc-arctwo-tests, modules/gc-des-tests,
75770         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75771         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75772         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75773         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75774         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75775         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75776         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75777         test_*_SOURCES.
75778
75779 2006-01-18  Simon Josefsson  <jas@extundo.com>
75780
75781         * modules/socklen (Depends-on): Depend on sys_socket.
75782
75783 2006-01-18  Simon Josefsson  <jas@extundo.com>
75784
75785         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75786         modules/des-tests, modules/gc-arcfour-tests,
75787         modules/gc-arctwo-tests, modules/gc-des-tests,
75788         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75789         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75790         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75791         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75792         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75793         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75794         $(EXEEXT) to automake TESTS variable, for mingw32.
75795
75796 2006-01-17  Simon Josefsson  <jas@extundo.com>
75797
75798         * modules/socklen (Include): Need sys/socket.h.
75799
75800 2006-01-17  Bruno Haible  <bruno@clisp.org>
75801
75802         * modules/ssize_t (Include): Add <sys/types.h>.
75803
75804 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75807         it's not portable and it doesn't work with cross-compiles.
75808         Problem reported by Bruno Haible.  Fix missing-$ typo in
75809         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75810         -zignore from being used with Sun's C compiler.
75811
75812 2006-01-12  Simon Josefsson  <jas@extundo.com>
75813
75814         * lib/base64.c: Fix warning, reported by Bruno Haible
75815         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75816
75817 2006-01-12  Bruno Haible  <bruno@clisp.org>
75818
75819         * modules/ldd: New file.
75820         * build-aux/ldd.sh.in: New file.
75821         * MODULES.html.sh (Support for building libraries and executables): Add
75822         ldd.
75823
75824 2006-01-12  Bruno Haible  <bruno@clisp.org>
75825
75826         * m4/ldd.m4: New file.
75827
75828 2006-01-12  Bruno Haible  <bruno@clisp.org>
75829
75830         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75831         endless loop while replacing $auxdir with build-aux.
75832
75833 2006-01-11  Simon Josefsson  <jas@extundo.com>
75834
75835         * lib/stdint_.h (SIZE_MAX): Add missing (.
75836
75837 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         Sync from coreutils.
75840         * lib/md5.c: Fix commentary typos.
75841         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75842         * lib/md5.h (__attribute__): Remove; unused.
75843         * lib/sha1.c: Fix commentary to match md5 better.
75844         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75845         so that we don't need to worry about alignment.  All uses changed.
75846         This merges the 2005-10-28 md5 change into sha1.
75847
75848 2006-01-11  Jim Meyering  <jim@meyering.net>
75849
75850         Sync from coreutils.
75851         * lib/md5.c (OP): Fix spacing.
75852
75853 2006-01-11  Bruno Haible  <bruno@clisp.org>
75854
75855         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75856         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75857         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75858
75859 2006-01-11  Bruno Haible  <bruno@clisp.org>
75860
75861         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75862         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75863         the "early" section as well.
75864
75865 2006-01-11  Bruno Haible  <bruno@clisp.org>
75866
75867         Avoid "ar: no archive members specified" error on MacOS X.
75868         * gnulib-tool (func_modules_add_dummy): New function.
75869         (func_import, func_create_testdir): Invoke it.
75870
75871 2006-01-11  Bruno Haible  <bruno@clisp.org>
75872
75873         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75874         with $auxdir in AC_CONFIG_FILES statements.
75875
75876 2006-01-11  Bruno Haible  <bruno@clisp.org>
75877
75878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75879         Initialize also noinst_HEADERS to empty.
75880
75881 2006-01-11  Bruno Haible  <bruno@clisp.org>
75882
75883         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75884         variables.
75885         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75886         autoreconf.
75887
75888 2006-01-11  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75891         overridable by the user.
75892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75893
75894 2006-01-10  Simon Josefsson  <jas@extundo.com>
75895
75896         * modules/sys_socket: New file.
75897
75898 2006-01-10  Simon Josefsson  <jas@extundo.com>
75899
75900         * m4/sys_socket_h.m4: New file.
75901
75902 2006-01-10  Simon Josefsson  <jas@extundo.com>
75903
75904         * lib/socket_.h: New file.
75905
75906 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * modules/readutmp (Maintainer): Add myself.
75909
75910 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75913         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75914         People who are still concerned with buggy memcmp implementations
75915         can invoke gl_FUNC_MEMCMP themselves.
75916
75917 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * lib/regex_internal.h (BITSET_WORD_BITS):
75920         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75921         preprocessor mishandles large unsigned values as if they were signed.
75922         Problem reported by Claudio Fontana in
75923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75924
75925 2006-01-10  Jim Meyering  <jim@meyering.net>
75926
75927         Avoid the double-free (first in fts_read, second in fts_close) that
75928         would occur when an `active' directory is made inaccessible (e.g.,
75929         via chmod a-x) during a traversal.
75930         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75931         before returning.  Reproduce this failure by
75932         mkdir -p a/b; cd a; chmod a-x . b
75933         Reported by Stavros Passas.
75934
75935         Sync from coreutils.
75936         * lib/sha1.c: Tweak grammar in a comment.
75937
75938 2006-01-10  Jim Meyering  <jim@meyering.net>
75939
75940         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75941         Patch by Joerg Sonnenberger.
75942
75943 2006-01-10  Bruno Haible  <bruno@clisp.org>
75944
75945         * modules/readutmp: Depend on module free.
75946         * modules/strtok_r: Depend on module restrict.
75947
75948 2006-01-10  Bruno Haible  <bruno@clisp.org>
75949
75950         * modules/gettext (configure.ac): Add an invocation of
75951         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75952
75953 2006-01-10  Bruno Haible  <bruno@clisp.org>
75954
75955         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75956         Reported by Werner Lemberg <wl@gnu.org>.
75957
75958 2006-01-10  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/localcharset.c: Update from GNU gettext.
75961
75962 2006-01-10  Bruno Haible  <bruno@clisp.org>
75963
75964         * lib/argp.h (__const): Remove macro. Use const instead.
75965         * lib/argp-fmtstream.h (__const): Likewise.
75966         * lib/glob_.h (__const): Remove macro.
75967         * lib/glob-libc.h: Use const instead of __const.
75968
75969 2006-01-10  Bruno Haible  <bruno@clisp.org>
75970
75971         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75972         variable.
75973         Needed to avoid an automake error regarding the 'gettext' module.
75974
75975 2006-01-09  Simon Josefsson  <jas@extundo.com>
75976
75977         * modules/inet_ntop (Depends-on): Add restrict.
75978
75979 2006-01-09  Simon Josefsson  <jas@extundo.com>
75980
75981         * modules/gc-rijndael-tests (License): Put under LGPL.
75982
75983         * modules/gc-des-tests (License): Likewise.
75984
75985         * modules/gc-arcfour-tests (License): Likewise.
75986
75987         * modules/gc-arctwo-tests (License): Likewise.
75988
75989         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75990
75991         * modules/gc-hmac-sha1-tests (Files): Likewise.
75992
75993         * modules/gc-hmac-md5-tests (License): Likewise.
75994
75995         * modules/gc-sha1-tests (License): Likewise.
75996
75997         * modules/gc-md5-tests (License): Likewise.
75998
75999         * modules/gc-md4-tests (License): Likewise.
76000
76001         * modules/gc-md2-tests (License): Likewise.
76002
76003         * modules/gc-tests (License): Likewise.
76004
76005         * modules/des-tests (License): Likewise.
76006
76007         * modules/md4-tests (License): Likewise.
76008
76009         * modules/md2-tests (License): Likewise.
76010
76011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         Sync from coreutils:
76014
76015         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76016         * modules/lib-ignore: New file.
76017         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76018         chdir-safer.m4, lchmod.m4.
76019         * modules/openat: Add mkdirat.c, openat-priv.h.
76020
76021 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         Sync from coreutils.
76024         * m4/lib-ignore.m4: New file.
76025         * m4/lchmod.m4: New file.
76026
76027 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         Sync from coreutils.
76030         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76031         for write access: POSIX says that must fail.
76032         * lib/fts.c (diropen): Likewise.
76033         * lib/save-cwd.c (save_cwd): Likewise.
76034         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76035         well, for minor improvements on hosts that lack O_DIRECTORY.
76036         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76037         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76038         Fall back on chown if open failed with EACCES.
76039
76040         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76041         Report an error at compile-time if only a 1-second nominal clock
76042         resolution is found.
76043
76044         * lib/lchmod.h: New file.
76045         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76046         (make_dir_parents): Use lchown rather than chown, and
76047         lchmod rather than chmod.
76048
76049         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76050         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76051         "proc" reported by n0dalus.
76052
76053         * lib/mountlist.c: Include <limits.h>.
76054         (dev_from_mount_options)
76055         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76056         New function.  It no longer assumes "dev=" has the System V meaning
76057         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76058         (read_file_system_list)
76059         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76060         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76061         dev= in that case.
76062
76063         * lib/posixtm.h (PDS_PRE_2000): New macro.
76064         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76065         allow_century.  All usages changed.  Reject dates outside the range
76066         1969-1999 if PDS_PRE_2000 is used.
76067
76068 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         Sync from coreutils.
76071         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76072         (Time of day items): Mention the possibility of leap seconds.
76073         Problem reported by Dr. David Alan Gilbert.
76074
76075 2006-01-09  Jim Meyering  <jim@meyering.net>
76076
76077         Sync from coreutils.
76078
76079         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76080
76081         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76082
76083         * lib/modechange.c (mode_compile): Reject an invalid mode string
76084         that starts with an octal digit.  From Andreas Gruenbacher.
76085
76086         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76087         and dup to open_safer and dup_safer, respectively.
76088         (openat_permissive): Fix typo in comment.
76089
76090         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76091         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76092         (_): Remove; no longer needed.
76093         (openat): Renamed from rpl_openat; no need for rpl_openat
76094         since openat.h renames openat for us.
76095         Replace most of the body with a call to openat_permissive,
76096         to avoid duplicate code.
76097         Port to (probably hypothetical) environments were mode_t is
76098         wider than int.
76099         (openat_permissive): Require mode arg, so that we can check
76100         types better.  Put it just after flags.  Change cwd failure
76101         indicator from pointer-to-bool to pointer-to-errno-value.
76102         All callers changed.
76103         Invoke openat_save_fail and/or openat_restore_fail if
76104         cwd_errno is null, so that openat can call us.
76105         (openat_permissive, fdopendir, fstatat, unlinkat):
76106         Simplify errno handling to avoid some duplicate code,
76107         as it's OK to set errno on success.
76108         * lib/openat.h: Revamp code so that function macros depend on
76109         __OPENAT_PREFIX only, not also on AT_FDCWD.
76110         (openat_ro): Remove.  Caller changed to use openat_permissive.
76111         (openat_permissive): Now a macro, if not a function.
76112         (openat_restore_fail, openat_save_fail): Now always functions,
76113         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76114
76115         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76116         and openat.c.
76117         * lib/mkdirat.c: Include openat-priv.h.
76118         Remove definitions of macros defined therein.
76119         * lib/openat.c: Likewise.
76120
76121         * lib/mkdirat.c (mkdirat): New file and function.
76122         * lib/openat.h (mkdirat): Declare.
76123
76124         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76125
76126         * lib/openat.h (openat_permissive): Declare.
76127         (openat_ro): Define.
76128
76129         * lib/openat.c (EXPECTED_ERRNO): New macro.
76130         (openat_permissive): New function -- used in remove.c rewrite.
76131         (all functions): Set errno just before returning, only if there
76132         was an actual failure.
76133         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76134
76135         Emulate openat-family functions using Linux's procfs, if possible.
76136         Idea and some code based on Ulrich Drepper's glibc changes.
76137
76138         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76139         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76140         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76141         before falling back on save_cwd and restore_cwd.
76142         (fdopendir, fstatat, unlinkat): Likewise.
76143
76144         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76145         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76146
76147         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76148         as second argument to va_arg.  Otherwise, some versions of gcc
76149         warn that `if this code is reached, the program will abort'.
76150
76151 2006-01-09  Jim Meyering  <jim@meyering.net>
76152
76153         Sync from coreutils.
76154         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76155         Require openat-priv.h.
76156
76157 2006-01-09  Bruno Haible  <bruno@clisp.org>
76158
76159         * modules/strnlen (Include): Use strnlen.h.
76160
76161 2006-01-09  Bruno Haible  <bruno@clisp.org>
76162
76163         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76164
76165 2006-01-09  Bruno Haible  <bruno@clisp.org>
76166
76167         * lib/sysexit_.h (EX_OK): New macro.
76168         Suggested by Martin Lambers <marlam@marlam.de>.
76169
76170 2006-01-09  Bruno Haible  <bruno@clisp.org>
76171
76172         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76173         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76174
76175 2006-01-09  Bruno Haible  <bruno@clisp.org>
76176
76177         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76178         numbers.
76179
76180 2006-01-09  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76183         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76184         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76185         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76186
76187 2006-01-09  Bruno Haible  <bruno@clisp.org>
76188
76189         * build-aux/javacomp.sh.in: New file, moved from lib/.
76190         * modules/javacomp-script (Files): Update.
76191         (configure.ac): Add AC_CONFIG_FILES invocation.
76192         (EXTRA_DIST): Remove variable.
76193
76194         * build-aux/javaexec.sh.in: New file, moved from lib/.
76195         * modules/javaexec (Files): Update.
76196         (configure.ac): Add AC_CONFIG_FILES invocation.
76197         (EXTRA_DIST): Remove javaexec.sh.in.
76198
76199         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76200         * modules/csharpcomp-script (Files): Update.
76201         (configure.ac): Add AC_CONFIG_FILES invocation.
76202         (EXTRA_DIST): Remove variable.
76203
76204         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76205         * modules/csharpexec (Files): Update.
76206         (configure.ac): Add AC_CONFIG_FILES invocation.
76207         (EXTRA_DIST): Remove csharpexec.sh.in.
76208
76209 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76210
76211         Sync from coreutils.
76212
76213         Add POSIX ACL support
76214         * lib/acl.h (copy_acl, set_acl): Add declarations.
76215         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76216         systems other than Linux.
76217         (chmod_or_fchmod): New function: use fchmod when possible,
76218         and chmod otherwise.
76219         (file_has_acl): Add a POSIX ACL implementation, with a
76220         Linux-specific subcase.
76221         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76222         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76223         acls are unsupported.
76224         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76225         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76226         are unsupported.
76227
76228 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76229
76230         Sync from coreutils.
76231         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76232
76233 2006-01-07  Bruno Haible  <bruno@clisp.org>
76234
76235         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76236         gl_EARLY.
76237
76238 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76239
76240         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76241         Problem reported for Mingw by Mark Junker.
76242
76243 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * README: Gnulib normally doesn't generate a tarball.
76246
76247 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76250         long int, not int, for nanosecond counts, so that people who are
76251         used to POSIX struct timespec won't be surprised.  Reported by Jim
76252         Meyering.
76253
76254 2005-12-28  Bruno Haible  <bruno@clisp.org>
76255
76256         * build-aux/config.rpath: Update from GNU gettext.
76257
76258 2005-12-16  Jim Meyering  <jim@meyering.net>
76259
76260         * modules/fprintftime: New module.
76261         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76262
76263 2005-12-16  Jim Meyering  <jim@meyering.net>
76264
76265         * m4/fprintftime.m4: New file.
76266
76267 2005-12-16  Jim Meyering  <jim@meyering.net>
76268
76269         * lib/fprintftime.c, lib/fprintftime.h: New files.
76270
76271 2005-12-15  Simon Josefsson  <jas@extundo.com>
76272
76273         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76274         new m4/socklen.m4.
76275
76276 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76277
76278         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76279         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76280
76281 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76282
76283         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76284         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76285         struct uparams is valid. Fall back to the default values if it is
76286         not.
76287
76288 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76289
76290         * modules/argp (Files): Add argp-pin.c
76291         (Depends-on): dirname
76292         (lib_SOURCES): Add argp-pin.c
76293
76294 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76295
76296         * m4/argp.m4:  Check if program_invocation_name and
76297         program_invocation_short_name are declared and define appropriate
76298         macros if they are not.
76299
76300 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76301
76302         * lib/argp-help.c (__argp_base_name): New function
76303         (__argp_short_program_name): Rewrite using __argp_base_name
76304         * lib/argp-namefrob.h: Define program_invocation_name and
76305         program_invocation_short_name if requested
76306         (__argp_base_name): Add prototype
76307         * lib/argp-parse.c (argp_def): Use gettext wrappers
76308         (argp_default_parser): Use __argp_base_name
76309         * lib/argp-pin.c: New file. Defines program_invocation_name and
76310         program_invocation_short_name on systems that lack them.
76311
76312 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76315         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76316         porting problem reported by Georg Schwarz in
76317         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76318
76319 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76320
76321         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76322         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76323         porting problem reported by Georg Schwarz in
76324         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76325
76326 2005-12-05  Bruno Haible  <bruno@clisp.org>
76327
76328         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76329         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76330         Reported by Mark Junker <mjscod@gmx.de>.
76331
76332 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76335         Use implementation from Albert Chin, with some
76336         comments/corrections by Stepan Kasal and myself.
76337
76338 2005-12-02  Bruno Haible  <bruno@clisp.org>
76339
76340         * gnulib-tool (func_import): Accept GPLed build tool modules when
76341         --lgpl is given.
76342         * modules/csharpcomp-script: New file.
76343         * modules/csharpcomp: Depend on it.
76344         * modules/javacomp-script: New file.
76345         * modules/javacomp: Depend on it.
76346         Suggested by Simon Josefsson.
76347
76348 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76351         statement, to work around an HP-UX 10.20 compiler bug reported by
76352         Peter O'Gorman.
76353
76354 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * modules/savedir (Depends-on): Add openat.
76357
76358 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76359
76360         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76361         (uintmax_t) [defined uintmax_t]: Do not declare.
76362         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76363         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76364         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76365         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76366         sake of portability to weird hosts that C allows (though we don't
76367         know of any practical examples).
76368
76369         * lib/savedir.h (fdsavedir): New decl.
76370         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76371         contains most of the former guts of savedir.
76372         (savedir): Use savedirstream.
76373         Include "openat.h".
76374
76375 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * modules/obstack (Files): Add m4/ulonglong.m4.
76378         Problem reported by Davide Angelocola.
76379
76380 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76383         coreutils no longer futzes with rounding modes.
76384
76385 2005-11-14  Jim Meyering  <jim@meyering.net>
76386
76387         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76388         replacement of mkstemp.
76389
76390 2005-11-10  Simon Josefsson  <jas@extundo.com>
76391
76392         * lib/readline.c: Remove EOL.
76393
76394 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * modules/gethrxtime (Depends-on): Add gettime.
76397
76398 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76401         or gettimeofday; no longer needed.
76402
76403 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76404
76405         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76406         time business.
76407         (gethrxtime) [! (HAVE_NANOUPTIME
76408         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76409         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76410         our own approximation.
76411
76412 2005-11-08  Eric Blake  <ebb9@byu.net>
76413
76414         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76415
76416 2005-11-08  Eric Blake  <ebb9@byu.net>
76417
76418         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76419
76420 2005-11-04  Bruno Haible  <bruno@clisp.org>
76421
76422         * gnulib-tool: Implement --update mode.
76423
76424 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         Fix porting problem reported by Theodoros V. Kalamatianos.
76427         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76428         Don't assume that futimes failing means we must fail.
76429
76430 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76433         variables to suggest the intended function of the PATH_MAX check.
76434
76435 2005-10-30  Kean Johnston  <jkj@sco.com>
76436
76437         Trivial changes to support SCO systems.
76438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76439         as PATH_MAX.
76440         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76441         where __ptr is null when no I/O is pending.
76442
76443 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76446         leave errno alone.  Problem reported by Dmitry V. Levin.
76447
76448 2005-10-28  Simon Josefsson  <jas@extundo.com>
76449
76450         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76451         Test more.
76452
76453         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76454
76455         * modules/md2, modules/md2-tests: New files.
76456
76457 2005-10-28  Simon Josefsson  <jas@extundo.com>
76458
76459         * m4/inet_ntop.m4: More tests.
76460
76461         * m4/gc-md2.m4, md2.m4: New file.
76462
76463 2005-10-28  Simon Josefsson  <jas@extundo.com>
76464
76465         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76466         "restrict" keywords, as per POSIX.  Protect the function
76467         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76468         Don't use K&R prototypes.  Check the sprintf return values.
76469         Re-define EAFNOSUPPORT if not present.  Indent.
76470
76471         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76472         suggested by Bruno Haible <bruno@clisp.org>.
76473
76474         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76475
76476         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76477
76478         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76479         libgcrypt).
76480
76481         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76482
76483         * lib/md2.h, lib/md2.c: New files.
76484
76485 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76488         errno alone.  Problem reported by Frederic Jolliton.
76489
76490 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * modules/verify (License): Change from GPL to LGPL.  This is a
76493         tiny module and there are apparently near-equivalents that are
76494         under the BSD license.
76495
76496 2005-10-24  Simon Josefsson  <jas@extundo.com>
76497
76498         * modules/sha1: Relicense to LGPL.
76499
76500 2005-10-24  Simon Josefsson  <jas@extundo.com>
76501
76502         * lib/md4.h: Shrink buffer size, now that we changed the type.
76503
76504 2005-10-23  Simon Josefsson  <jas@extundo.com>
76505
76506         * gnulib-tool (func_import): Fix --tests-base.
76507
76508 2005-10-22  Simon Josefsson  <jas@extundo.com>
76509
76510         * modules/arcfour (Depends-on): Need stdint.
76511
76512 2005-10-22  Simon Josefsson  <jas@extundo.com>
76513
76514         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76515         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76516
76517 2005-10-22  Simon Josefsson  <jas@extundo.com>
76518
76519         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76520         suggested by Bruno Haible <bruno@clisp.org>.
76521
76522 2005-10-22  Simon Josefsson  <jas@extundo.com>
76523
76524         * lib/crc.h: Include stddef.h, for size_t.
76525
76526 2005-10-22  Simon Josefsson  <jas@extundo.com>
76527
76528         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76529         arcfour_context struct (simplify test vector testing in GNU
76530         Shishi).
76531
76532 2005-10-21  Simon Josefsson  <jas@extundo.com>
76533
76534         * modules/des, modules/des-tests: New files.
76535
76536         * modules/gc-des, modules/gc-des-tests: New files.
76537
76538         * tests/test-des.c, tests/test-gc-des.c: New file.
76539
76540 2005-10-21  Simon Josefsson  <jas@extundo.com>
76541
76542         * modules/arctwo, modules/arctwo-tests: New files.
76543
76544         * tests/test-arctwo.c: New file.
76545
76546         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76547
76548         * tests/test-gc-arctwo.c: New file.
76549
76550 2005-10-21  Simon Josefsson  <jas@extundo.com>
76551
76552         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76553         Bruno Haible <bruno@clisp.org>.
76554
76555         * m4/gc-des.m4: New file.
76556
76557 2005-10-21  Simon Josefsson  <jas@extundo.com>
76558
76559         * m4/arctwo.m4: New file.
76560
76561         * m4/gc-arctwo.m4: New file.
76562
76563 2005-10-21  Simon Josefsson  <jas@extundo.com>
76564
76565         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76566         block.
76567
76568 2005-10-21  Simon Josefsson  <jas@extundo.com>
76569
76570         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76571         <bruno@clisp.org>.
76572
76573         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76574
76575         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76576         Bruno Haible <bruno@clisp.org>.
76577
76578         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76579         <bruno@clisp.org>.
76580
76581 2005-10-21  Simon Josefsson  <jas@extundo.com>
76582
76583         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76584
76585 2005-10-21  Simon Josefsson  <jas@extundo.com>
76586
76587         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76588
76589 2005-10-21  Simon Josefsson  <jas@extundo.com>
76590
76591         * lib/des.h, lib/des.c: New files.
76592
76593         * lib/gc-gnulib.c: Support DES.c
76594
76595 2005-10-21  Simon Josefsson  <jas@extundo.com>
76596
76597         * lib/arctwo.h, lib/arctwo.c: New files.
76598
76599         * lib/gc-gnulib.c: Support ARCTWO.
76600
76601 2005-10-21  Simon Josefsson  <jas@extundo.com>
76602
76603         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76604         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76605
76606 2005-10-21  Simon Josefsson  <jas@extundo.com>
76607
76608         * gnulib-tool (func_import, func_create_testdir): Define automake
76609         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76610         Makefile.am snippet),
76611         suggested by Bruno Haible <bruno@clisp.org>.
76612
76613         * modules/gc (Makefile.am): Use it.
76614
76615 2005-10-21  Bruno Haible  <bruno@clisp.org>
76616
76617         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76618         patch.
76619
76620 2005-10-19  Simon Josefsson  <jas@extundo.com>
76621
76622         * tests/test-gc-rijndael.c: New file.
76623
76624         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76625
76626 2005-10-19  Simon Josefsson  <jas@extundo.com>
76627
76628         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76629         interface too.
76630
76631 2005-10-19  Simon Josefsson  <jas@extundo.com>
76632
76633         * tests/test-gc-arcfour.c: New file.
76634
76635         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76636
76637 2005-10-19  Simon Josefsson  <jas@extundo.com>
76638
76639         * modules/gc-md4, modules/gc-md4-tests: New file.
76640
76641         * tests/test-gc-md4.c: New file.
76642
76643 2005-10-19  Simon Josefsson  <jas@extundo.com>
76644
76645         * m4/gc-md4.m4: New file.
76646
76647 2005-10-19  Simon Josefsson  <jas@extundo.com>
76648
76649         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76650         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76651         <kasal@ucw.cz>.
76652
76653 2005-10-19  Simon Josefsson  <jas@extundo.com>
76654
76655         * m4/gc-arcfour.m4: New file.
76656
76657         * m4/gc-rijndael.m4: New file.
76658
76659 2005-10-19  Simon Josefsson  <jas@extundo.com>
76660
76661         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76662
76663 2005-10-19  Simon Josefsson  <jas@extundo.com>
76664
76665         * lib/gc-gnulib.c: Support ARCFOUR.
76666
76667 2005-10-19  Simon Josefsson  <jas@extundo.com>
76668
76669         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76670         support.
76671
76672         * lib/gc.h: Add ECB enum type.
76673
76674         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76675
76676 2005-10-18  Simon Josefsson  <jas@extundo.com>
76677
76678         * tests/test-md5.c: New file.
76679
76680         * modules/md5-tests: New file.
76681
76682 2005-10-18  Simon Josefsson  <jas@extundo.com>
76683
76684         * tests/test-md4.c: New file.
76685
76686         * modules/md4, modules/md4-tests: New files.
76687
76688 2005-10-18  Simon Josefsson  <jas@extundo.com>
76689
76690         * m4/md4.m4: New file.
76691
76692 2005-10-18  Simon Josefsson  <jas@extundo.com>
76693
76694         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76695
76696 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76697
76698         * gnulib-tool (func_create_testdir): Omit the second check whether
76699         BUILT_SOURCES in nonempty.
76700
76701 2005-10-17  Simon Josefsson  <jas@extundo.com>
76702
76703         * tests/test-rijndael.c: New file.
76704
76705 2005-10-17  Simon Josefsson  <jas@extundo.com>
76706
76707         * modules/sha1: Depend on stdint instead of md5.
76708
76709         * modules/md5: Depend on stdint, remove uint32_t.
76710
76711 2005-10-17  Simon Josefsson  <jas@extundo.com>
76712
76713         * modules/gc-sha1-tests: New file.
76714
76715         * tests/test-gc-sha1.c: New file.
76716
76717 2005-10-17  Simon Josefsson  <jas@extundo.com>
76718
76719         * m4/md5.m4: Remove call to uint32_t.m4.
76720
76721 2005-10-17  Simon Josefsson  <jas@extundo.com>
76722
76723         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76724
76725         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76726         md5.h.
76727
76728         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76729
76730         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76731
76732 2005-10-17  Simon Josefsson  <jas@extundo.com>
76733
76734         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76735
76736 2005-10-17  Simon Josefsson  <jas@extundo.com>
76737
76738         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76739
76740 2005-10-17  Simon Josefsson  <jas@extundo.com>
76741
76742         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76743
76744         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76745
76746 2005-10-17  Bruno Haible  <bruno@clisp.org>
76747
76748         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76749         that it can also be used in a test.
76750
76751 2005-10-16  Bruno Haible  <bruno@clisp.org>
76752
76753         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76754         TESTS_ENVIRONMENT, so that individual tests can augment it.
76755
76756         * gnulib-tool (func_create_testdir): Use an intermediate target for
76757         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76758         macros, like $(ALLOCA_H), which cannot be passed through the command
76759         line.
76760
76761 2005-10-15  Simon Josefsson  <jas@extundo.com>
76762
76763         * modules/rijndael-tests: New file.
76764
76765         * modules/rijndael: New file.
76766
76767 2005-10-15  Simon Josefsson  <jas@extundo.com>
76768
76769         * m4/rijndael.m4: New file.
76770
76771 2005-10-15  Simon Josefsson  <jas@extundo.com>
76772
76773         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76774
76775         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76776
76777 2005-10-14  Simon Josefsson  <jas@extundo.com>
76778
76779         * tests/test-arcfour.c: New file.
76780
76781         * modules/arcfour, modules/arcfour-tests: New files.
76782
76783 2005-10-14  Simon Josefsson  <jas@extundo.com>
76784
76785         * m4/arcfour.m4: New file.
76786
76787 2005-10-14  Simon Josefsson  <jas@extundo.com>
76788
76789         * lib/arcfour.h, lib/arcfour.c: New files.
76790
76791 2005-10-14  Roland McGrath  <roland@redhat.com>
76792
76793         Import from libc.  [BZ #1331]
76794         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76795         macro argument.
76796         Reported by Matej Vela <vela@debian.org>.
76797
76798 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76801         include <wchar.h>; no longer needed.
76802
76803 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76806
76807 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76808         and  Ulrich Drepper  <drepper@redhat.com>
76809
76810         Import from libc.
76811         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76812         instead of inline stream orientation test and two separate
76813         function calls.  Pay no attention to USE_IN_LIBIO.
76814
76815 2005-10-13  Simon Josefsson  <jas@extundo.com>
76816
76817         * modules/gc-hmac-md5-tests: New file.
76818
76819         * tests/test-gc-hmac-sha1.c: New file.
76820
76821         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76822
76823         * modules/gc-hmac-md5-tests: New file.
76824
76825         * tests/test-gc-md5.c: New file.
76826
76827         * modules/gc-md5-tests: New file.
76828
76829 2005-10-13  Simon Josefsson  <jas@extundo.com>
76830
76831         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76832         Move memory allocation outside of loop.
76833
76834 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76837         intermediate directory is in a read-only file system.  Problem
76838         reported by Eric Blake.
76839
76840 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76841
76842         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76843
76844 2005-10-12  Simon Josefsson  <jas@extundo.com>
76845
76846         * tests/test-hmac-sha1.c: New file.
76847
76848         * modules/hmac-sha1-tests: New file.
76849
76850         * modules/hmac-sha1: New file.
76851
76852 2005-10-12  Simon Josefsson  <jas@extundo.com>
76853
76854         * modules/gc-sha1: New file.
76855
76856 2005-10-12  Simon Josefsson  <jas@extundo.com>
76857
76858         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76859
76860         * tests/test-gc-pbkdf2-sha1.c: New file.
76861
76862 2005-10-12  Simon Josefsson  <jas@extundo.com>
76863
76864         * modules/gc-md5, modules/gc-hmac-md5: New files.
76865
76866         * modules/gc (Files): Remove md5, memxor and hmac files.
76867
76868 2005-10-12  Simon Josefsson  <jas@extundo.com>
76869
76870         * m4/gc-pbkdf2-sha1.m4: New file.
76871
76872         * m4/gc-hmac-sha1.m4: New file.
76873
76874         * m4/gc-sha1: New file.
76875
76876         * m4/hmac-sha1.m4: New file.
76877
76878 2005-10-12  Simon Josefsson  <jas@extundo.com>
76879
76880         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76881
76882         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76883
76884 2005-10-12  Simon Josefsson  <jas@extundo.com>
76885
76886         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76887         suggested by Bruno Haible <bruno@clisp.org>.
76888
76889 2005-10-12  Simon Josefsson  <jas@extundo.com>
76890
76891         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76892
76893 2005-10-12  Simon Josefsson  <jas@extundo.com>
76894
76895         * lib/gc-pbkdf2-sha1.c: New file.
76896
76897         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76898
76899 2005-10-12  Simon Josefsson  <jas@extundo.com>
76900
76901         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76902
76903         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76904
76905 2005-10-12  Simon Josefsson  <jas@extundo.com>
76906
76907         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76908         GC_USE_HMAC_MD5, respectively.
76909
76910         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76911         (gc_md5): Fix typo.
76912
76913         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76914
76915         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76916
76917         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76918
76919 2005-10-12  Bruno Haible  <bruno@clisp.org>
76920
76921         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76922         Reported by Stepan Kasal <kasal@ucw.cz>.
76923
76924 2005-10-11  Simon Josefsson  <jas@extundo.com>
76925
76926         * tests/test-crc.c: New file.
76927
76928         * modules/crc, modules/crc-tests: New files.
76929
76930 2005-10-11  Simon Josefsson  <jas@extundo.com>
76931
76932         * m4/crc.m4: New file.
76933
76934 2005-10-11  Simon Josefsson  <jas@extundo.com>
76935
76936         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76937
76938         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76939
76940         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76941
76942 2005-10-11  Simon Josefsson  <jas@extundo.com>
76943
76944         * lib/crc.h, lib/crc.c: New files.
76945
76946         * lib/gc.h (gc_hash_buffer): Add doc.
76947
76948 2005-10-11  Bruno Haible  <bruno@clisp.org>
76949
76950         * modules/c-strcasestr: New file.
76951         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76952
76953 2005-10-11  Bruno Haible  <bruno@clisp.org>
76954
76955         * modules/c-strcase: New file.
76956         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76957
76958 2005-10-11  Bruno Haible  <bruno@clisp.org>
76959
76960         * lib/strcasecmp.c: Include limits.h.
76961         (strcasecmp): Avoid integer overflow on exotic platforms.
76962         * lib/strncasecmp.c: Include limits.h.
76963         (strncasecmp): Avoid integer overflow on exotic platforms.
76964         Reported by Paul Eggert.
76965
76966 2005-10-11  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/c-strcasestr.h: New file, from GNU gettext.
76969         * lib/c-strcasestr.c: New file, from GNU gettext.
76970
76971 2005-10-11  Bruno Haible  <bruno@clisp.org>
76972
76973         * lib/c-strcase.h: New file, from GNU gettext.
76974         * lib/c-strcasecmp.c: New file, from GNU gettext.
76975         * lib/c-strncasecmp.c: New file, from GNU gettext.
76976
76977 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * modules/mempcpy (License): GPL -> LGPL.
76980         * modules/strchrnul (License): Likewise.
76981         * modules/sysexits (License): Likewise.
76982
76983 2005-10-08  Simon Josefsson  <jas@extundo.com>
76984
76985         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76986
76987 2005-10-07  Simon Josefsson  <jas@extundo.com>
76988
76989         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76990
76991 2005-10-06  Simon Josefsson  <jas@extundo.com>
76992
76993         * tests/test-hmac-md5.c: New file.
76994
76995         * modules/hmac-md5-tests: New file.
76996
76997         * modules/hmac-md5: New file.
76998
76999 2005-10-06  Simon Josefsson  <jas@extundo.com>
77000
77001         * m4/hmac-md5.m4: New file.
77002
77003         * m4/memxor.m4: Require gl_C_RESTRICT.
77004
77005 2005-10-06  Simon Josefsson  <jas@extundo.com>
77006
77007         * lib/memxor.c (memxor): Avoid casts and warnings.
77008
77009 2005-10-06  Simon Josefsson  <jas@extundo.com>
77010
77011         * lib/hmac-md5.c: New file.
77012
77013         * lib/hmac.h: New file.
77014
77015 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77018         promotes to int, not unsigned int, to catch the AIX 5.3
77019         compiler bug.
77020
77021 2005-10-05  Simon Josefsson  <jas@extundo.com>
77022
77023         * modules/memxor: New file.
77024
77025         * modules/iconv (Files): Move config.rpath to havelib, it is used
77026         there.
77027
77028         * modules/havelib (Files): Add config.rpath.
77029
77030 2005-10-05  Simon Josefsson  <jas@extundo.com>
77031
77032         * m4/memxor.m4: New file.
77033
77034 2005-10-05  Simon Josefsson  <jas@extundo.com>
77035
77036         * lib/memxor.c (memxor): Fix compiler error.
77037
77038         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77039         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77040
77041         * lib/memxor.h, lib/memxor.c: New files.
77042
77043         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77044         we assume all systems have it, suggested by Jim Meyering
77045         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77046         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77047         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77048         same reasons.
77049
77050 2005-10-05  Simon Josefsson  <jas@extundo.com>
77051
77052         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77053
77054 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77057         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77058         needed, since the source code now assumes these .h files.
77059
77060 2005-10-05  Derek Price  <derek@ximbiot.com>
77061
77062         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77063
77064 2005-10-05  Bruno Haible  <bruno@clisp.org>
77065
77066         * modules/stdint (License): Change to LGPL.
77067
77068 2005-10-04  Simon Josefsson  <jas@extundo.com>
77069
77070         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77071         D. Baushke" <mdb@gnu.org>.
77072
77073 2005-10-04  Bruno Haible  <bruno@clisp.org>
77074
77075         * lib/verify.h (verify_true): Provide alternative definition for C++.
77076
77077 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77080         (SSIZE_MAX): New macro, if not already defined.
77081         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77082         than 2 GiB.
77083
77084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77085
77086         Sync from coreutils.
77087         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77088         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77089         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77090         ULLONG_MAX doesn't work with 2.7.2.1.
77091
77092 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77095         From Ben Pfaff.
77096
77097         * modules/exclude (Depends-on): Depend on verify.
77098         * modules/strtoimax (Depends-on): Likewise.
77099         * modules/utimecmp (Depends-on): Likewise.
77100
77101 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/exclude.c: Include verify.h.
77104         (verify): Remove.  All callers changed to use verify.h's version.
77105         * lib/strtoimax.c: Likewise.
77106         * lib/utimecmp.c: Likewis.e
77107
77108         Sync from coreutils.
77109         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77110         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77111         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77112         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77113         bother returning ENOSYS if settimeofday or stime fails; just let
77114         them return whatever errno they want to return.
77115         * lib/utimens.c: Include unistd.h, for dup2.
77116         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77117         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77118
77119 2005-10-02  Jim Meyering  <jim@meyering.net>
77120
77121         Sync from coreutils.
77122         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77123         from glibc-2.2.5 that fails for read-only files.
77124
77125 2005-10-02  Jim Meyering  <jim@meyering.net>
77126
77127         Sync from coreutils.
77128         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77129         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77130         `#if HAVE_CONFIG_H'.
77131         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77132         Remove AT_FDCWD test.
77133         Do not consume the fd unless successful.
77134         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77135         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77136         block, so that we don't even try to compile it if settimeofday is
77137         available.  This works around a compilation failure on OSF1 V5.1,
77138         due to stime requiring a `long int*' while tv_sec is `int'.
77139
77140 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77141
77142         Sync from coreutils.
77143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77144         against `yes', rather than just testing for nonempty.
77145
77146 2005-10-01  Simon Josefsson  <jas@extundo.com>
77147
77148         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77149         and Darwin.
77150
77151         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77152         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77153         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77154         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77155         Check if struct addrinfo is declared.
77156
77157 2005-10-01  Simon Josefsson  <jas@extundo.com>
77158
77159         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77160         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77161         AI_* and EAI_* definitions.  Protect function declarations.
77162
77163 2005-10-01  Jim Meyering  <jim@meyering.net>
77164
77165         Sync from coreutils.
77166
77167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77168         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77169         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77171         in the inet and nsl libraries.  Required on Solaris 5.7.
77172
77173 2005-10-01  Jim Meyering  <jim@meyering.net>
77174
77175         Sync from coreutils.
77176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77177         in the inet and nsl libraries.  Required on Solaris 5.7.
77178
77179 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77180
77181         * lib/getdelim.c (getdelim): Remove unused variables.
77182
77183 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77186         so that the code works even with ancient cpp.  Portability problem
77187         with GCC 2.7.2.1 reported by Thomas M.Ott.
77188
77189 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77190
77191         * modules/regex (Depends-on): Add strcase.
77192
77193         * modules/gethostname (Licence): Change from GPL to LGPL, since
77194         gethostname.c is a trivial implementation of a standard library
77195         function.
77196         * modules/poll (License): Change from GPL to LGPL, since it's
77197         derived from LGPL code.
77198
77199 2005-09-27  Jim Meyering  <jim@meyering.net>
77200
77201         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77202         HAVE_CONFIG_H.
77203
77204         * lib/intprops.h (signed_type_or_expr__): Define.
77205         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77206         for unsigned types.
77207
77208 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * lib/verify.h (verify_expr): Remove, replacing with:
77211         (verify_true): New macro that returns true instead of void.
77212         (verify_type__): Remove.
77213         (verify): Use verify_true rather than verify_type__.
77214
77215 2005-09-26  Bruno Haible  <bruno@clisp.org>
77216
77217         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77218         is necessary.
77219         (lib_SOURCES): Remove mbchar.c.
77220         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77221         (Files): Add m4/mbrtowc.m4.
77222         * modules/mbiter: Likewise.
77223         * modules/mbuiter: Likewise.
77224
77225 2005-09-26  Bruno Haible  <bruno@clisp.org>
77226
77227         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77228         compile mbchar.c if they are not both present.
77229         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77230         * m4/mbiter.m4 (gl_MBITER): Likewise.
77231         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77232         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77233         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77234
77235 2005-09-25  Jim Meyering  <jim@meyering.net>
77236
77237         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77238         also uses socklen_t.
77239
77240 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * lib/utimens.c (ENOSYS): Define if not already defined.
77243         (futimens): Support having a null PATH if the file descriptor
77244         is nonnegative.
77245
77246         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77247         Remove.
77248         (__attribute): Define to empty unless GCC 3.1 or later.
77249         This works around a core dump on OpenBSD 3.4, which has GCC
77250         2.95.3, which dumps core when given __attribute__(()).  It also
77251         simplifies other tests, since we really don't want to bother with
77252         worrying about which ancient version of GCC supported what.
77253         Original problem reported by Yoann Vandoorselaere, with part of
77254         the fix suggested by Derek Price.
77255
77256 2005-09-24  Jim Meyering  <jim@meyering.net>
77257
77258         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77259         so we can once again use a positive bitfield width of 1 -- now we
77260         don't have to explain why we were using a bitfield width of 2.
77261
77262 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77265         and similarly for the other external symbols.  Problem reported
77266         by James Gallager.
77267
77268         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77269         bug reported by Jim Meyering.
77270
77271         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77273         not needed, since socklen is a prerequisite module.
77274
77275 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77276
77277         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77278         Problem reported by Eric Blake.
77279         (getaddrinfo): Initialize se so that it's not garbage.
77280         Redo internal storage allocation so that it doesn't make unportable
77281         assumptions about alignment.
77282         Fix a memory leak.
77283
77284         * lib/utimens.c (futimens): Use futimesat if available.
77285         Prefer it to futimes since it doesn't have the futimes bug.
77286
77287         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77288         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
77289         Instead, declare a function that returns a pointer to an array,
77290         and use verify_type__ to declare the size of the array.
77291         Problem and germ of a solution reported by Bruno Haible.
77292         (verify_type__): Use 2, not 1, for bitfield size, to avoid
77293         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
77294
77295 2005-09-23  Jim Meyering  <jim@meyering.net>
77296
77297         Sync from coreutils.
77298         Correct build failure (socklen_t not defined) on at least
77299         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77301
77302 2005-09-23  Jim Meyering  <jim@meyering.net>
77303
77304         * modules/getaddrinfo (Depends-on): Add socklen.
77305
77306 2005-09-23  Bruno Haible  <bruno@clisp.org>
77307
77308         * tests/test-verify.c: New file.
77309
77310 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         Sync from coreutils.
77313
77314         * modules/argmatch (Depends-on): Add verify.
77315         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77316         unistd-safer.
77317         * modules/save-cwd (Depends-on): Likewise.
77318
77319         * modules/openat (Files): Add lib/openat-die.c.
77320         (Depends-on): Remove error, exitfail.
77321         Add dirname.
77322
77323         * modules/verify: New file.
77324         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77325         with "verify" module.
77326
77327 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77328
77329         Sync from coreutils.
77330
77331         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77332         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77333         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77334         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77335         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77336         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77337         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77338         Don't bother checking for string.h, stdlib.h, unistd.h.
77339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77341         module's job.
77342         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77343         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77344
77345         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77346         (gl_GETDATE): Use it.
77347
77348         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77349
77350 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         Sync from coreutils.
77353
77354         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77355         stat-time.h.
77356         * lib/argmatch.h: Include verify.h
77357         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77358         (ARGMATCH_ASSERT): Remove; unused.
77359         * lib/canonicalize.c: Assume STDC_HEADERS.
77360         * lib/exclude.c: Include "strcase.h".
77361         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77362         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77363         and stdio-safer.h.
77364         (getusershell): Call fopen, not fopen_safer.
77365         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77366         Do not include unistd-safer.h.
77367         (save_cwd): Don't call fd_safer; no longer needed
77368         now that we include fcntl--.h.
77369
77370         * lib/getdate.y (relative_time): New type.
77371         (RELATIVE_TIME_0): New constant.
77372         (parser_control): Use relative_time instead of doing it ourselves.
77373         (%union): Add new relative_time rel member.
77374         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77375         Now typeless.
77376         (relunit, relunit_snumber): Now of type rel.
77377         (zone, rel, relunit, get_date): Adjust to above changes.
77378
77379         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77380         Do not include unistd-safer.h.
77381         (getloadavg): Don't call fd_safer; no longer needed
77382         now that we include fcntl--.h.
77383
77384         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77385         (make_dir_parents): Treat ENOSYS like EEXIST.
77386
77387         Improve quality of diagnostics on restore_cwd failure.
77388         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77389         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77390         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77391         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77392         each time through the loop.  Do not diagnose restore_cwd failure;
77393         that is the caller's job (and perhaps the caller does not care).
77394
77395         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77396         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77397         If the file already exists but is not a directory, don't bother
77398         to try to make its parents.
77399         Close potential file descriptor leak if we can't chdir("/") (!).
77400         Don't always return true if chdir($PWD) fails; return true only
77401         if the requested action was done successfully (except for the
77402         chdir($PWD)).
77403         Don't log final directory unless we actually made it.
77404         Refactor to avoid duplicate code to fix up permissions.
77405         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77406
77407         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77408         to make it a bit faster and (I hope) clearer.
77409         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77410         Fix bug in formats like %2N.
77411
77412         * lib/verify.h: New file.
77413
77414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         Sync from coreutils.
77417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77418
77419 2005-09-22  Jim Meyering  <jim@meyering.net>
77420
77421         Sync from coreutils.
77422
77423         * m4/lstat.m4 (gl_FUNC_LSTAT):
77424         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77425         Remove obsolete comment.
77426         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77427         * m4/xstrtod.m4: Likewise.
77428
77429         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77430
77431 2005-09-22  Jim Meyering  <jim@meyering.net>
77432
77433         Sync from coreutils.
77434
77435         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77436
77437         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77438         the .tm_year member, since otherwise gcc-4.0 would now warn about
77439         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77440
77441         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77442         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77443
77444         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77445         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77446         when run in a time zone for which daylight savings time is in effect
77447         for the starting date.
77448
77449         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77450         stop us from restricting permissions of just-created absolute-named
77451         directories.
77452         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77453         to restore initial working directory.
77454         * lib/mkdir-p.c (make_dir_parents): New parameter:
77455         different_working_dir, to tell caller if/when we change the working
77456         directory and are unable to return to the initial one.
77457         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77458         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77459         `return false'.  This fixes a bug introduced on 2004-07-30.
77460
77461         * lib/openat.c (fdopendir): Be sure to close the supplied
77462         file descriptor before returning.  This makes our replacement
77463         implementation a little closer to Solaris's, where fdopendir
77464         ties the file descriptor to the returned DIR* pointer.
77465         * lib/openat.c (unlinkat): New function.
77466         * lib/openat.h (unlinkat): Add prototype.
77467         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77468         (openat_restore_fail): Rename from openat_restore_die.
77469         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77470
77471         Provide an alternative to exiting immediately upon save_cwd or
77472         restore_cwd failure.  Now, an application can arrange e.g.,
77473         to perform a longjump in that case.
77474         * lib/openat.c: Include dirname.h.
77475         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77476         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77477         and openat_restore_die rather than calling error directly.
77478         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77479
77480         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77481         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77482         define.
77483
77484         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77485         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77486                             int utc, int nanoseconds);
77487         Background:
77488         date should not have to allocate a megabyte of virtual memory to
77489         handle a format argument like +%1048575T.  When implemented with
77490         strftime, it must allocate such a buffer, use strftime to fill it
77491         in, print it, then free it.
77492         With fprintftime, it simply prints everything and exits.
77493         With no need for memory allocation, that's one fewer way to fail.
77494         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77495         optional field width, not before, so we accept %9:z, not %:9z.
77496         (my_strftime): Be sure to use L_('x') for literals.
77497
77498         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77499         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77500         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77501         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77502         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77503         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77504         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77505         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77506         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77507         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77508         * lib/xgethostname.c, lib/xreadlink.c:
77509         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77510
77511         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77512         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77513         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77514         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77515         and don't include <sys/file.h>).
77516
77517 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77518
77519         Sync from coreutils.
77520
77521         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77522         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77523         [!LDAV_DONE]: Avoid unused variable warning.
77524
77525 2005-09-21  Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/unicodeio.h (unicode_to_mb): New declaration.
77528
77529 2005-09-20  Derek Price  <derek@ximbiot.com>
77530
77531         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77532         getaddrinfo.h.
77533
77534 2005-09-20  Bruno Haible  <bruno@clisp.org>
77535
77536         * gnulib-tool: Remove trailing slashes from the values specified for
77537         --source-base, --m4-base, --tests-base, --aux-dir.
77538         Suggested by Simon Josefsson <jas@extundo.com>.
77539
77540 2005-09-20  Bruno Haible  <bruno@clisp.org>
77541
77542         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77543         func_modules_to_filelist, func_import, func_create_testdir): Make all
77544         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77545         change when gnulib-tool is invoked in a different locale.
77546
77547 2005-09-19  Simon Josefsson  <jas@extundo.com>
77548
77549         * m4/socklen.m4: Fix typo.
77550
77551 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77552
77553         Use a consistent style for including <config.h>.
77554         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77555         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77556         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77557         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77558         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77559         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77560         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77561         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77562         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77563         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77564         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77565         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77566         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77567         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77568         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77569         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77570         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77571         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77572         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77573         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77574         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77575         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77576         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77577         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77578         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77579         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77580         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77581         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77582         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77583         lib/xstrtoumax.c, lib/yesno.c:
77584         Standardize inclusion of config.h.
77585         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77586         lib/inttostr.h:  Removed inclusion of config.h from header files.
77587         * lib/inttostr.c:  Adjusted in-tree users.
77588         * lib/timespec.h: Remove superfluous warning to include config.h.
77589         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77590         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77591         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77592         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77593         config.h with HAVE_CONFIG_H.
77594
77595 2005-09-19  Jim Meyering  <jim@meyering.net>
77596
77597         * modules/pathmax (License): Change to LGPL.
77598
77599 2005-09-19  Derek Price  <derek@ximbiot.com>
77600
77601         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77602
77603 2005-09-19  Bruno Haible  <bruno@clisp.org>
77604
77605         * gnulib-tool (import): Provide default for --tests-base.
77606
77607 2005-09-19  Bruno Haible  <bruno@clisp.org>
77608
77609         * doc/quote.texi: New file, extracted from gnulib.texi.
77610         * doc/ctime.texi: New file, extracted from gnulib.texi.
77611         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77612         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77613         * doc/gnulib.texi: Include them.
77614
77615 2005-09-18  Bruno Haible  <bruno@clisp.org>
77616
77617         Portability fix.
77618         * gnulib-tool (func_readlink): New function.
77619         (func_ln_if_changed): Use it.
77620
77621 2005-09-18  Bruno Haible  <bruno@clisp.org>
77622
77623         * gnulib-tool: Support --with-tests also with --import.
77624         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77625         (func_import): Use variables $testsbase and $inctests. Emit a
77626         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77627         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77628         SUBDIRS += $testsdir.
77629         (func_create_testdir): Update.
77630
77631 2005-09-18  Bruno Haible  <bruno@clisp.org>
77632
77633         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77634         instead of $dry_run.
77635         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77636         (func_ln_if_changed): Don't handle dry-run here.
77637         (func_import): In dry-run mode, detect more precisely which actions
77638         would be performed, and don't use "...ing" verbs.
77639
77640 2005-09-18  Bruno Haible  <bruno@clisp.org>
77641
77642         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77643         (func_import): Use join on two temporary files instead of three nested
77644         loops, in order to determine which files are new or old.
77645
77646 2005-09-18  Bruno Haible  <bruno@clisp.org>
77647
77648         * gnulib-tool (func_import): Comment out code that spits out the
77649         new files with --dry-run.
77650
77651 2005-09-18  Bruno Haible  <bruno@clisp.org>
77652
77653         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77654
77655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * lib/stat-time.h: New file.
77658         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77659         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77660         in a different way.
77661         (timespec_cmp): New function.
77662         * lib/utimecmp.c: Include stat-time.h.
77663         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77664         members exist, not on the obsolescent ST_MTIM_NSEC.
77665         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77666
77667 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77670
77671 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         * MODULES.html.sh (File system functions): Add stat-time.
77674         * modules/stat-time: New file.
77675         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77676         is now done in a different way, by the stat-time module.
77677         * modules/utimecmp (Depends-on): Add stat-time.
77678
77679 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * m4/st_mtim.m4: Remove.  Superseded by...
77682         * m4/stat-time.m4: New file.
77683         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77684         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77685
77686 2005-09-15  Derek Price  <derek@ximbiot.com>
77687
77688         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77689
77690 2005-09-15  Derek Price  <derek@ximbiot.com>
77691
77692         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77693         * lib/regex_internal.c: Ditto, using this...
77694         (__GNUC_PREREQ): ...new macro.
77695         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77696         using...
77697         (__GNUC_PREREQ): ...this new macro.
77698
77699         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77700
77701 2005-09-15  Derek Price  <derek@ximbiot.com>
77702             Paul Eggert  <eggert@cs.ucla.edu>
77703
77704         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77705         changes, consolidating in...
77706         * lib/regex_internal.h: ...this file.
77707
77708 2005-09-13  Jim Meyering  <jim@meyering.net>
77709
77710         * lib/canon-host.c: Filter through gnu indent and reword comments
77711         slightly.
77712         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77713
77714 2005-09-13  Derek Price  <derek@ximbiot.com>
77715
77716         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77717         failure.
77718         Reported by Jim Meyering  <jim@meyering.net>.
77719
77720 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77721
77722         * lib/base64.c: Typo.
77723         (base64_encode): Put b64str in initialized data section.
77724
77725 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77726
77727         Merge glibc and coreutils changes into gnulib, plus a few
77728         extra fixes.
77729         * lib/md5.c: Use #error rather than a string.
77730         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77731         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77732         (__attribute__): Define to empty for non recent-GCC.
77733         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77734         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77735         Renamed from their non-__ counterparts, with new macros replacing
77736         them if not _LIBC.  Add __THROW attribute.
77737         (rol): Remove.
77738         (struct md5_ctx): Align buffer if using GCC.
77739         * lib/sha1.h (struct sha1_ctx): Likewise.
77740         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77741         The old name was backwards.
77742         (NOTSWAP): Remove; not used.
77743         (rol): New macro, moved here from md5.h.
77744         (sha1_process_block): Remove a FIXME that doesn't make sense.
77745
77746 2005-09-12  Derek Price  <derek@ximbiot.com>
77747
77748         Return usable errors from canon-host.
77749         * lib/canon-host.h: New file.
77750         * lib/canon-host.c (canon_host): Wrap...
77751         (canon_host_r): ...this new function, which now relies exclusively on
77752         getaddrinfo.
77753         (ch_strerror): New function.
77754         (last_cherror): New global.
77755         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77756         interface.
77757         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77758         void *.
77759         (freeaddrinfo): Free ai->ai_canonname when set.
77760
77761 2005-09-12  Derek Price  <derek@ximbiot.com>
77762
77763         Make canon-host require getaddrinfo.
77764         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77765         AC_LIBSOURCE canon-host.h.  Call...
77766         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77767         gl_GETADDRINFO.
77768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77769
77770 2005-09-12  Derek Price  <derek@ximbiot.com>
77771
77772         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77773         LGPL.
77774         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77775
77776 2005-09-12  Derek Price  <derek@ximbiot.com>
77777
77778         * lib/gai_strerror.c: Include config.h when available.  Include
77779         getaddrinfo.h before other headers to test interface.
77780         Reported by Larry Jones <lawrence.jones@ugs.com>.
77781
77782 2005-09-12  Derek Price  <derek@ximbiot.com>
77783             Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         * modules/glob (Files): Add glob-libc.h.
77786
77787 2005-09-12  Derek Price  <derek@ximbiot.com>
77788             Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77791         glob_.h, glob-libc.h.
77792         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77793
77794 2005-09-12  Derek Price  <derek@ximbiot.com>
77795             Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77798         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77799         protecting things that should be done only in gnulib contexts.
77800         * lib/glob_.h: New file, containing only the glob things needed for
77801         gnulib.
77802         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77803         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77804         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77805         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77806         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77807         and to respect the namespace rules better.
77808
77809 2005-09-08  Simon Josefsson  <jas@extundo.com>
77810
77811         * modules/socklen: New file.
77812
77813 2005-09-08  Simon Josefsson  <jas@extundo.com>
77814
77815         * m4/socklen.m4: New file.
77816
77817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * modules/utimens (Files): Add m4/utimbuf.m4, since
77820         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77821         Reported by Sergey Poznyakoff.
77822
77823 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77826         definitions, since that's the preferred style in glibc.
77827         Fix a minor spacing issue, and update copyright notice to match
77828         glibc's.
77829
77830 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77831
77832         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77833
77834 2005-09-06  Simon Josefsson  <jas@extundo.com>
77835
77836         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77837         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77838
77839 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77842         warning.
77843
77844 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         * config/srclist.txt: Add glibc bug 1302.
77847
77848 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77849
77850         Change bitset word type from unsigned int to unsigned long int,
77851         as this has better performance on typical 64-bit hosts.
77852         Port bitset code to hosts with unusual word sizes.
77853         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77854         (build_collating_symbol):
77855         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77856         argument is a bitset.  This is merely a style issue, but it makes
77857         it clearer that an entire array is expected.
77858         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77859         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77860         Port to the case where bitset_word is not the same as unsigned int.
77861         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77862         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77863         Likewise.
77864         * lib/regexec.c (check_dst_limits_calc_pos_1,
77865         check_subexp_matching_top):
77866         (build_trtable, group_nodes_into_DFAstates):
77867         Likewise.
77868         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77869         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77870         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77871         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77872         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77873         * lib/regcomp.c (optimize_subexps, lower_subexp):
77874         Work even if bitset_word has holes in its bitwise representation.
77875         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77876         * lib/regexec.c (check_dst_limits_calc_pos_1,
77877         check_subexp_matching_top):
77878         Likewise.
77879         * lib/regex_internal.c (re_string_reconstruct):
77880         Don't assume UCHAR_MAX == 255.
77881         * lib/regex_internal.h (bitset_set_all): Likewise.
77882         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77883         All uses changed.
77884         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77885         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77886         All uses changed.
77887         (BITSET_WORD_MAX): New macro.
77888         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77889         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77890         (bitset_empty, bitset_copy):
77891         Prefer sizeof (bitset) to multiplying it out ourselves.
77892         (bitset_not_merge): Remove; unused.
77893         (bitset_contain): Return bool, not unsigned int with one bit on.
77894         All callers changed.
77895         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77896         alignment than re_node_set; do this by defining a new internal
77897         type struct dests_alloc and using it to allocate memory.
77898
77899 2005-09-05  Bruno Haible  <bruno@clisp.org>
77900
77901         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77902         links.
77903
77904 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77905
77906         * modules/size_max (Makefile.am): Add size_max.h
77907
77908 2005-09-04  Derek Price  <derek@ximbiot.com>
77909
77910         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77911
77912 2005-09-03  Simon Josefsson  <jas@extundo.com>
77913
77914         * gnulib-tool: Fix typo.
77915
77916 2005-09-03  Simon Josefsson  <jas@extundo.com>
77917
77918         * config/srclist.txt: Add glibc bug 1293.
77919
77920 2005-09-03  Derek Price  <derek@ximbiot.com>
77921
77922         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77923         From Larry Jones <lawrence.jones@ugs.com>.
77924
77925 2005-09-02  Simon Josefsson  <jas@extundo.com>
77926
77927         * modules/socklen: New file.
77928
77929 2005-09-02  Simon Josefsson  <jas@extundo.com>
77930
77931         * modules/havelib: New module.
77932
77933         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77934         Use havelib.
77935
77936 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         Check for arithmetic overflow when calculating sizes, to prevent
77939         some buffer-overflow issues.  These patches are conservative, in the
77940         sense that when I couldn't determine whether an overflow was possible,
77941         I inserted a run-time check.
77942         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77943         macros.
77944         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77945         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77946         (re_xnrealloc, re_x2nrealloc): New inline functions.
77947         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77948         parse_bracket_exp):
77949         (build_equiv_class, build_charclass): Check for arithmetic overflow
77950         in size expression calculations.
77951         * lib/regex_internal.c (re_string_realloc_buffers):
77952         (build_wcs_upper_buffer, re_node_set_add_intersect):
77953         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77954         (re_dfa_add_node, register_state): Likewise.
77955         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77956         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77957         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77958         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77959
77960 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77963         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77964
77965 2005-09-02  Bruno Haible  <bruno@clisp.org>
77966
77967         Support for lib vs. lib64 distinction on biarch platforms.
77968         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77969         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77971
77972 2005-09-02  Bruno Haible  <bruno@clisp.org>
77973
77974         * gnulib-tool (import): In the other first-use case, provide defaults
77975         as well.
77976
77977 2005-09-02  Bruno Haible  <bruno@clisp.org>
77978
77979         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77980         patches not yet found in the latest gettext release.
77981
77982 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77985         to avoid a collision with bits/local_lim.h in glibc.
77986         All uses changed.  Problem reported by Dmitry V. Levin in
77987         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77988
77989         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77990         bugs in int versus size_t comparisons.
77991         (re_string_context_at): Fix bug where the code assumed that
77992         Idx is signed.
77993
77994         Use bool where appropriate.
77995         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77996         All callers changed.
77997         (calc_eclosure_iter): Likewise, for ROOT arg.
77998         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77999         (build_charclass_op): Likewise, for NON_MATCH arg.
78000         * lib/regex_internal.c (re_string_allocate, re_string_construct):
78001         (re_string_construct_common): Likewise, for ICASE arg.
78002         * lib/regexec.c (re_search_2_stub, re_search_stub):
78003         Likewise, for RET_LEN arg.
78004         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
78005         (set_regs): Likewise, for FL_BACKTRACK arg.
78006         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
78007         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
78008         (calc_eclosure_iter, parse_bracket_exp):
78009         Use bool for internal variables that are booleans.
78010         * lib/regexec.c (re_search_internal, check_matching,
78011         proceed_next_node):
78012         (set_regs, build_sifted_states, sift_states_bkref):
78013         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78014         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78015         (find_collation_sequence_value):
78016         Likewise.
78017         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78018         (re_node_set_compare):
78019         Return bool, not int. All callers changed.
78020         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78021         (build_trtable, check_node_accept): Likewise.
78022         * lib/regex_internal.h: Include stdbool.h.
78023
78024         Fix bugs uncovered when converting to bool.
78025         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78026         failure instead of charging ahead blindly.
78027         * lib/regex_internal.c (register_state): Likewise.
78028         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78029         for freeing internal storage.
78030         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78031         bitset pieces used as boolean, to avoid undefined behavior
78032         on hosts that do int overflow checking.
78033
78034 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * config/srclist.txt: Add glibc bugs 1285-1287.
78037
78038 2005-09-01  Jim Meyering  <jim@meyering.net>
78039
78040         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78041         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78042         Require gl_STAT_MACROS, too.
78043
78044 2005-09-01  Bruno Haible  <bruno@clisp.org>
78045
78046         * gnulib-tool (import): In the first-use case, provide defaults.
78047
78048 2005-09-01  Bruno Haible  <bruno@clisp.org>
78049
78050         * gnulib-tool (func_import): Remove the .tmp files.
78051
78052 2005-09-01  Bruno Haible  <bruno@clisp.org>
78053
78054         * gnulib-tool (func_import): Fix handling of symbolic links.
78055
78056 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78059         old glibc regex code mishandles strings longer than 2**31 bytes.
78060         This patch fixes this when the regex code is used in gnulib
78061         (i.e., outside glibc).
78062
78063         This patch should not affect the use of the regex code inside
78064         glibc.  No doubt this problem also needs to be handled for glibc
78065         as well, but the result will be an incompatible change to the
78066         glibc ABI, and the old ABI will have to be supported too.  That
78067         can be the the subject for another patch.
78068
78069         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78070         governing whether the rest of this patch is active.  By default,
78071         the macro is disabled and the patch has no effect.
78072         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78073         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78074         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78075         (re_match_2, re_set_registers): Use the new types.
78076         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78077         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78078         New macros.
78079         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78080         (re_string_context_at, bin_tree_t, re_dfastate_t):
78081         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78082         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78083         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78084         (re_string_char_size_at, re_string_wchar_at):
78085         (re_string_elem_size_at):
78086         Use the new types and macros to port to 64-bit hosts.
78087         Use unsigned types for internal values, so that the code
78088         mostly works even for arrays larger than SSIZE_MAX.
78089         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78090         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78091         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78092         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78093         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78094         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78095         (calc_inveclosure, parse_dup_op, build_range_exp):
78096         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78097         (fetch_number, create_token_tree, mark_opt_subexp):
78098         Likewise.
78099         * lib/regex_internal.c (re_string_construct_common,
78100         create_ci_newstate):
78101         (create_cd_newstate, re_string_allocate, re_string_construct):
78102         (re_string_realloc_buffers, build_wcs_upper_buffer):
78103         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78104         (re_string_reconstruct, re_string_peek_byte_case):
78105         (re_string_fetch_byte_case, re_string_context_at):
78106         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78107         (re_node_set_init_copy, re_node_set_add_intersect):
78108         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78109         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78110         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78111         (re_acquire_state, re_acquire_state_context, register_state):
78112         Likewise.
78113         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78114         search_cur_bkref_entry):
78115         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78116         (re_search_internal, re_search_2_stub, re_search_stub)
78117         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78118         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78119         (update_cur_sifted_state, check_dst_limits):
78120         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78121         (check_subexp_limits, sift_states_bkref, merge_state_array):
78122         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78123         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78124         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78125         (expand_bkref_cache, check_node_accept_bytes):
78126         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78127         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78128         (acquire_init_state_context, check_halt_node_context):
78129         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78130         (sift_states_backward, clean_state_log_if_needed):
78131         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78132         (find_recover_state, transit_state_sb, transit_state_mb):
78133         (transit_state_bkref, build_trtable, match_ctx_clean):
78134         Likewise.
78135         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78136         to work around an assumption that REG_MISSING is negative.
78137
78138         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78139         (seek_collating_symbol_entry) [defined _LIBC]:
78140         (lookup_collation_sequence_value) [defined _LIBC]:
78141         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78142         Use prototypes rather than old-style function definitions.
78143         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78144         (transit_state_sb) [0]:
78145         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78146
78147         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78148         rm_eo.
78149
78150         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78151         (optimize_subexps, lower_subexp):
78152         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78153         since the signed shift might overflow.  Use 1u<<31 instead.
78154         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78155         Likewise.
78156         * lib/regexec.c (check_dst_limits_calc_pos_1,
78157         check_subexp_matching_top): Likewise.
78158
78159         * lib/regcomp.c (optimize_subexps, lower_subexp):
78160         Use CHAR_BIT rather than 8, for clarity.
78161         * lib/regexec.c (check_dst_limits_calc_pos_1):
78162         (check_subexp_matching_top): Likewise.
78163         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78164         have to worry about portability issues when shifting it left.
78165         Remove no-longer-needed test for table_size > 0.
78166         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78167         in a word, as the resulting behavior is undefined.
78168         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78169         in one case, a <= should have been an <, and in another case the
78170         whole test was missing.
78171         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78172         the standard name CHAR_BIT.
78173         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78174         this is not true on one's complement and signed-magnitude hosts.
78175
78176         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78177         next_last_offset.
78178         (struct re_dfa_t): Remove unused member states_alloc.
78179         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78180
78181 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78184         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78185         and large-file glibc and in 32-bit large-file Solaris.
78186
78187 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78190         lengths fit in regoff_t; this isn't true if regoff_t is the same
78191         width as size_t.
78192         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78193         (= START + RANGE) instead of RANGE.  This avoids overflow
78194         problems when regoff_t is the same width as size_t.
78195         All callers changed.
78196         (re_search_2_stub): Check for overflow when adding the
78197         sizes of the two strings.
78198         (re_search_stub): Check for overflow when adding START
78199         to RANGE; if it occurs, substitute the extreme value.
78200
78201 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78202
78203         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78204
78205 2005-08-31  Jim Meyering  <jim@meyering.net>
78206
78207         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78208         a pointer-to-const.
78209         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78210         (register_state): Likewise.
78211         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78212         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78213         (group_nodes_into_DFAstates): Likewise.
78214
78215 2005-08-31  Jim Meyering  <jim@meyering.net>
78216
78217         * check-module: Add a FIXME comment.
78218
78219 2005-08-31  Eric Blake  <ebb9@byu.net>
78220
78221         * modules/unistd-safer (Files): Add unistd--.h.
78222         * modules/stdio-safer (Files): Add stdio--.h.
78223
78224 2005-08-31  Derek Price  <derek@ximbiot.com>
78225
78226         * lib/getdelim.c (getdelim): Return EOF on EOF.
78227         Reported by Larry Jones <lawrence.jones@ugs.com>.
78228
78229 2005-08-31  Bruno Haible  <bruno@clisp.org>
78230
78231         Avoid unnecessary diffs in the generated lib/Makefile.am.
78232         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78233         the generated files.
78234         (func_import): Don't set cmd.
78235
78236 2005-08-31  Bruno Haible  <bruno@clisp.org>
78237
78238         * lib/strstr.c: Include <stddef.h>, for NULL.
78239         * lib/strcasestr.c: Likewise.
78240         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78241
78242 2005-08-31  Bruno Haible  <bruno@clisp.org>
78243
78244         * gnulib-tool: New option --macro-prefix.
78245         (func_import): Use macro_prefix.
78246         (import): Handle option --macro-prefix.
78247
78248 2005-08-31  Bruno Haible  <bruno@clisp.org>
78249
78250         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78251         Also use new variables cached_lgpl, cached_libtool.
78252
78253 2005-08-31  Bruno Haible  <bruno@clisp.org>
78254
78255         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78256         always instantiating them.
78257
78258 2005-08-31  Bruno Haible  <bruno@clisp.org>
78259
78260         * gnulib-tool (func_import): Read the previous cached settings
78261         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78262         earlier added by gnulib but are now dropped. Warn when a gnulib file
78263         overwrites a non-gnulib file.
78264
78265 2005-08-31  Bruno Haible  <bruno@clisp.org>
78266
78267         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78268         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78269         projects that don't keep autogenerated files in CVS. Put into
78270         actioncmd only the specified modules, not the transitive closure.
78271
78272 2005-08-31  Bruno Haible  <bruno@clisp.org>
78273
78274         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78275         Create directories that shall be filled.
78276         (import): Don't look for gl_* macros in configure.ac. Recurse across
78277         all directories containing a gnulib-cache.m4 files, if meaningful.
78278
78279 2005-08-31  Bruno Haible  <bruno@clisp.org>
78280
78281         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78282         (import): Set seen_libtool when we see gl_LIBTOOL.
78283
78284 2005-08-31  Bruno Haible  <bruno@clisp.org>
78285
78286         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78287         declaration macro definitions from generated gnulib.m4.
78288
78289 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
78290
78291         * lib/iconvme.h: Add prototype for iconv_alloc.
78292
78293 2005-08-29  Simon Josefsson  <jas@extundo.com>
78294
78295         * lib/iconvme.c: Fix errno.
78296
78297 2005-08-29  Bruno Haible  <bruno@clisp.org>
78298
78299         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78300         that it works when the directory contains spaces.
78301
78302 2005-08-29  Bruno Haible  <bruno@clisp.org>
78303
78304         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78305
78306 2005-08-29  Bruno Haible  <bruno@clisp.org>
78307
78308         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78309         Emit more advice.
78310
78311 2005-08-29  Bruno Haible  <bruno@clisp.org>
78312         and Stepan Kasal  <kasal@ucw.cz>
78313
78314         * check-module: If more parameters are given, check each of them
78315         separately; add more exceptions, as noted by Jim Meyering.
78316         (check_module): New procedure.
78317         (%exempt_header): Now contains all exceptions.
78318
78319 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78320
78321         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78322
78323 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78324
78325         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78326
78327 2005-08-28  Bruno Haible  <bruno@clisp.org>
78328
78329         * m4/gnulib-tool.m4: New file.
78330
78331 2005-08-27  Jim Meyering  <jim@meyering.net>
78332
78333         * modules/unistd-safer (Files): Add pipe-safer.c.
78334         * modules/fcntl-safer (Files): Add creat-safer.c.
78335
78336 2005-08-27  Jim Meyering  <jim@meyering.net>
78337
78338         * m4/stdlib-safer.m4: New file.  From coreutils.
78339         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78340         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78341         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78342         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78343         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78344
78345 2005-08-27  Jim Meyering  <jim@meyering.net>
78346
78347         * lib/fopen-safer.c: Merge minor changes from coreutils.
78348         * lib/dup-safer.c: Likewise.
78349         * lib/fd-safer.c: Likewise.
78350
78351         Merge from coreutils.
78352         * lib/stdio--.h: New file.
78353         * lib/stdlib--.h: New file.
78354         * lib/mkstemp-safer.c: New file.
78355
78356         GNU tar needs these.
78357         * lib/pipe-safer.c: New file.
78358         * lib/creat-safer.c: New file.
78359         * lib/fcntl--.h (creat): Define to creat_safer.
78360         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78361         * lib/unistd--.h (pipe): Define to pipe_safer.
78362         * lib/unistd-safer.h: Declare pipe_safer.
78363
78364 2005-08-26  Simon Josefsson  <jas@extundo.com>
78365
78366         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78367         Haible <bruno@clisp.org>.
78368
78369 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78370
78371         * lib/regex_internal.h: Remove all references to
78372         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78373         or better.
78374         (bitset_not, bitset_merge, bitset_not_merge):
78375         (bitset_mask, re_string_allocate, re_string_construct):
78376         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78377         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78378         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78379         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78380         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78381         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78382         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78383         (re_acquire_state_context):
78384         Remove unnecessary forward decls.
78385         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78386         Put __attribute at function definition,
78387         now that the function decl has been removed.
78388         * lib/regex_internal.c (re_string_peek_byte_case):
78389         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78390         Likewise.
78391
78392 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78393
78394         * m4/regex.m4: Add AC_PREREQ(2.50).
78395         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78396
78397 2005-08-25  Simon Josefsson  <jas@extundo.com>
78398
78399         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78400         __fsetlocking.
78401
78402 2005-08-25  Simon Josefsson  <jas@extundo.com>
78403
78404         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78405         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78406         GLIBC specific code.
78407
78408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         Make regex safe for g++.  This fixes one real bug (an "err"
78411         that should have been "*err").  g++ problem reported by
78412         Sam Steingold.
78413         * lib/regex_internal.h (re_calloc): New macro, consistent with
78414         re_malloc etc.  All callers of calloc changed to use re_calloc.
78415         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78416         not int.  All callers changed.
78417         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78418         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78419         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78420         (find_recover_state): Change "err" to "*err"; this fixes what
78421         appears to be a real bug.
78422         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78423         versus int.
78424
78425 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78426
78427         * modules/regex (Depends-on): Add malloc, since the code
78428         assumes that !malloc(0) means failure.
78429
78430 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78433
78434         alloca modernization/simplification for regex.
78435         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78436         needs to be at the start of the file, and can be moved into
78437         regex_internal.h and simplified.
78438         * lib/regex_internal.h: Include <alloca.h>.
78439         (__libc_use_alloca) [!defined _LIBC]: New macro.
78440         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78441         now works outside glibc.
78442
78443 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * config/srclist.txt: Add glibc bugs 1241, 1245.
78446
78447 2005-08-25  Jim Meyering  <jim@meyering.net>
78448
78449         * lib/open-safer.c: Include <config.h>.
78450         Otherwise, we'd lose LARGEFILE support in any file using
78451         e.g. "fcntl--.h"
78452
78453 2005-08-25  Bruno Haible  <bruno@clisp.org>
78454
78455         * m4/minmax.m4: Require autoconf 2.52.
78456         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78457         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78458         alternatives of translit over the alphabet.
78459         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78460
78461 2005-08-24  Simon Josefsson  <jas@extundo.com>
78462
78463         * tests/test-getpass.c: New file.
78464
78465 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78468         for GNU regex features.
78469
78470 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78473         * lib/regex.h (regerror): Likewise.
78474
78475         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78476         requires this.  (The code never needed it.)
78477
78478         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78479         All uses of recently-renamed identifiers changed to use the new,
78480         POSIX-compliant names.  The code will build and run just fine
78481         without these changes, but it's better to eat our own dog food
78482         and use the standard-conforming names.
78483
78484         * lib/regex.h: Fix a multitude of POSIX name space violations.
78485         These changes have an effect only for programs that define
78486         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78487         do not change anything for programs compiled in the normal way.
78488         Also, there is no effect on the ABI.
78489
78490         (_REGEX_SOURCE): New macro.
78491         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78492         defined and _GNU_SOURCE is not; this fixes a name space violation.
78493
78494         Rename the following macros to obey POSIX requirements.
78495         The old names are still visible as macros if _REGEX_SOURCE is defined.
78496         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78497         RE_BACKSLASH_ESCAPE_IN_LISTS.
78498         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78499         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78500         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78501         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78502         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78503         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78504         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78505         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78506         (REG_INTERVALS): renamed from RE_INTERVALS.
78507         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78508         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78509         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78510         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78511         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78512         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78513         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78514         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78515         RE_UNMATCHED_RIGHT_PAREN_ORD.
78516         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78517         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78518         (REG_DEBUG): renamed from RE_DEBUG.
78519         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78520         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78521         unusual, since we can't clash with the POSIX REG_ICASE.
78522         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78523         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78524         (REG_NO_SUB): renamed from RE_NO_SUB.
78525         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78526         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78527         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78528         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78529         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78530         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78531         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78532         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78533         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78534         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78535         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78536         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78537         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78538         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78539         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78540         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78541         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78542         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78543         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78544         (REG_FIXED): Renamed from REGS_FIXED.
78545         (REG_NREGS): Renamed from RE_NREGS.
78546
78547         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78548         of other REG_* macros, since POSIX says the user is allowed to
78549         #undef these macros selectively.
78550
78551         (reg_errcode_t): Update comment stating what other tables need
78552         to be consistent.
78553
78554         Rename the following enum values to obey POSIX requirements.
78555         The old names are still visible as macros.
78556         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78557         is not defined, since GNU is supposed to be a superset of POSIX as
78558         much as possible, and since we want reg_errcode_t to be a signed
78559         type for implementation consistency.
78560         (_REG_NOERROR): Renamed from REG_NOERROR.
78561         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78562         (_REG_BADPAT): Renamed from REG_BADPAT.
78563         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78564         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78565         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78566         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78567         (_REG_EBRACK): Renamed from REG_EBRACK.
78568         (_REG_EPAREN): Renamed from REG_EPAREN.
78569         (_REG_EBRACE): Renamed from REG_EBRACE.
78570         (_REG_BADBR): Renamed from REG_BADBR.
78571         (_REG_ERANGE): Renamed from REG_ERANGE.
78572         (_REG_ESPACE): Renamed from REG_ESPACE.
78573         (_REG_BADRPT): Renamed from REG_BADRPT.
78574         (_REG_EEND): Renamed from REG_EEND.
78575         (_REG_ESIZE): Renamed from REG_ESIZE.
78576         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78577         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78578         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78579         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78580         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78581
78582         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78583         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78584         changed.  But support the old name if the new one is not defined
78585         and if _REGEX_SOURCE.
78586
78587         Change the following member names in struct re_pattern_buffer.
78588         The old names are still supported if !_REGEX_SOURCE.
78589         The new names are always supported, regardless of _REGEX_SOURCE.
78590         (re_buffer): Renamed from buffer.
78591         (re_allocated): Renamed from allocated.
78592         (re_used): Renamed from used.
78593         (re_syntax): Renamed from syntax.
78594         (re_fastmap): Renamed from fastmap.
78595         (re_translate): Renamed from translate.
78596         (re_can_be_null): Renamed from can_be_null.
78597         (re_regs_allocated): Renamed from regs_allocated.
78598         (re_fastmap_accurate): Renamed from fastmap_accurate.
78599         (re_no_sub): Renamed from no_sub.
78600         (re_not_bol): Renamed from not_bol.
78601         (re_not_eol): Renamed from not_eol.
78602         (re_newline_anchor): Renamed from newline_anchor.
78603
78604         Change the following member names in struct re_registers.
78605         The old names are still supported if !_REGEX_SOURCE.
78606         The new names are always supported, regardless of _REGEX_SOURCE.
78607         (rm_num_regs): Renamed from num_regs.
78608         (rm_start): Renamed from start.
78609         (rm_end): Renamed from end.
78610
78611         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78612         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78613         Prepend __ to parameter names.
78614
78615         Undo yesterday's changes.
78616
78617 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78620         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78621         lib/regex.c.
78622
78623 2005-08-24  Jim Meyering  <jim@meyering.net>
78624
78625         Sync from coreutils.
78626         * m4/fcntl-safer.m4: New file.
78627
78628         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78629         and object files for this module.
78630
78631 2005-08-24  Jim Meyering  <jim@meyering.net>
78632
78633         Sync from coreutils.
78634         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78635
78636 2005-08-24  Jim Meyering  <jim@meyering.net>
78637
78638         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78639         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78640
78641 2005-08-24  Jim Meyering  <jim@meyering.net>
78642
78643         * modules/fcntl-safer: New module.
78644         * modules/fts (Depends-on): Add fcntl-safer.
78645         * MODULES.html.sh (File descriptor based Input/Output):
78646         Add fcntl-safer.
78647
78648 2005-08-24  Bruno Haible  <bruno@clisp.org>
78649
78650         Support for unit test modules.
78651         * modules/README: Mention tests modules.
78652         * modules/TEMPLATE-TESTS: New file.
78653         * gnulib-tool: New options --extract-tests-module, --with-tests and
78654         --tests-base (unused for the moment).
78655         (testsbase, inctests): New variables.
78656         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78657         (func_verify_module): Exclude TEMPLATE-TESTS.
78658         (func_verify_nontests_module, func_verify_tests_module): New functions.
78659         (func_get_dependencies): Add implicit dependency for tests modules.
78660         (func_get_tests_module): New function.
78661         (func_modules_transitive_closure): When --with-tests was specified,
78662         include the unit tests as well, unless explicitly avoided.
78663         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78664         (func_emit_tests_Makefile_am): New function.
78665         (func_create_testdir): When --with-tests was specified, emit a
78666         tests/ directory.
78667         * MODULES.html.sh (Future developments): Update.
78668
78669 2005-08-24  Bruno Haible  <bruno@clisp.org>
78670
78671         * modules/tls-tests: New file.
78672         * tests/test-tls.c: New file, from GNU gettext.
78673
78674 2005-08-24  Bruno Haible  <bruno@clisp.org>
78675
78676         * modules/lock-tests: New file.
78677         * tests/test-lock.c: New file, from GNU gettext.
78678
78679 2005-08-24  Bruno Haible  <bruno@clisp.org>
78680
78681         * lib/lock.h: Add multiple inclusion guard.
78682         * lib/tls.h: Add multiple inclusion guard.
78683
78684 2005-08-24  Bruno Haible  <bruno@clisp.org>
78685
78686         * gnulib-tool: Add support for the --aux-dir option to
78687         --create-testdir, --create-megatestdir, --test, --megatest.
78688         (func_create_testdir, func_create_megatestdir): Optionally emit a
78689         AC_CONFIG_AUX_DIR directive.
78690         (create-testdir, create-megatestdir, test, megatest): Provide a
78691         default value for $auxdir.
78692
78693 2005-08-24  Bruno Haible  <bruno@clisp.org>
78694
78695         * gnulib-tool (import): Use compound statement instead of subshell
78696         where possible.
78697
78698 2005-08-24  Bruno Haible  <bruno@clisp.org>
78699
78700         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78701
78702 2005-08-24  Bruno Haible  <bruno@clisp.org>
78703
78704         * gnulib-tool (func_version): Update.
78705
78706 2005-08-24  Bruno Haible  <bruno@clisp.org>
78707
78708         * gnulib-tool (func_import, func_create_testdir,
78709         func_create_megatestdir): Quote all autoconf macro arguments.
78710
78711 2005-08-24  Bruno Haible  <bruno@clisp.org>
78712
78713         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78714         option --force, because --force causes the aclocal.m4 of each
78715         subdirectory to be newer than the corresponding config.h.in.
78716
78717 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78720         All contents moved to gl_REGEX.
78721         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78722         assume that it does.
78723
78724 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * lib/regex.h (REG_NOSYS)
78727         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78728         Define, since POSIX requires it as of 2001.
78729         (_REG_ENOSYS)
78730         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78731         New private symbol, used to keep the enum signed in all cases.
78732         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78733         Youngman in
78734         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78735
78736         * lib/regex_internal.c (re_string_skip_chars, register_state):
78737         (calc_state_hash):
78738         Remove forward decls; no longer needed now that we use prototypes.
78739         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78740         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78741         (clean_state_log_if_needed): Likewise.
78742
78743 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * config/srclist.txt: Add glibc bugs 1231-1233.
78746
78747 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         Fix problems reported by Sam Steingold in
78750         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78751         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78752         assumed that reg_errcode_t is a signed type, which is not
78753         necessarily true if _XOPEN_SOURCE is not defined.
78754         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78755         since some compilers warn about it otherwise.
78756
78757 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78760         (init_word_char, create_initial_state, duplicate_node_closure):
78761         (fetch_token, peek_token_bracket, build_range_exp):
78762         (build_collating_symbol): Remove forward decls; no longer needed
78763         now that we use prototypes.
78764
78765         * lib/regcomp.c:
78766         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78767         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78768         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78769         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78770         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78771         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78772         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78773         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78774         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78775         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78776         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78777         (build_charclass, build_charclass_op, fetch_number, create_tree):
78778         (create_token_tree, mark_opt_subexp, duplicate_tree):
78779         Use prototypes rather than old-style definitions.
78780
78781         * lib/regex_internal.c:
78782         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78783         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78784         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78785         (re_string_reconstruct, re_string_peek_byte_case):
78786         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78787         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78788         (re_node_set_init_copy, re_node_set_add_intersect):
78789         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78790         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78791         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78792         (re_acquire_state, re_acquire_state_context, register_state):
78793         (create_ci_newstate, create_cd_newstate, free_state):
78794         Likewise.
78795         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78796         re_search_2):
78797         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78798         (re_search_internal, prune_impossible_nodes):
78799         (acquire_init_state_context, check_matching, static):
78800         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78801         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78802         (update_regs, sift_states_backward, build_sifted_states):
78803         (clean_state_log_if_needed, merge_state_array):
78804         (update_cur_sifted_state, add_epsilon_src_nodes):
78805         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78806         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78807         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78808         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78809         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78810         (check_arrival, check_arrival_add_next_nodes):
78811         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78812         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78813         (check_node_accept_bytes, check_node_accept, extend_buffers):
78814         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78815         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78816         (sift_ctx_init):
78817         Likewise.
78818
78819         * lib/regex_internal.h:
78820         (re_string_allocate, re_string_construct, re_string_reconstruct):
78821         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78822         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78823         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78824         (re_string_context_at, re_string_peek_byte_case):
78825         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78826         is defined, since we now use prototypes always.
78827
78828         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78829         C89 or better.  All uses removed.
78830
78831 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * config/srclist.txt: Add glibc bugs 1220-1227.
78834
78835 2005-08-20  Jim Meyering  <jim@meyering.net>
78836
78837         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78838         of unused local, dfa.
78839
78840 2005-08-20  Bruno Haible  <bruno@clisp.org>
78841
78842         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78843
78844 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78847         (re_node_set_insert_last, re_dfa_add_node):
78848         Rename local variables to avoid GCC shadowing warnings.
78849
78850 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78853         [defined lint]: Suppress bogus uninitialized-variable warnings.
78854
78855         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78856         and let the caller return REG_ESPACE if out of space.  This
78857         removes an uninitialied-variable warning with GCC 4.0.1, and also
78858         avoids taking the address of a local variable.  All callers
78859         changed.
78860
78861 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78862
78863         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78864         $LIBCSRC/posix/regexec.c.
78865         Add glibc bug 1217 for regcomp.c.
78866
78867 2005-08-19  Jim Meyering  <jim@meyering.net>
78868
78869         * lib/regexec.c (proceed_next_node): Redo local variables to
78870         avoid GCC shadowing warnings.
78871
78872 2005-08-18  Bruno Haible  <bruno@clisp.org>
78873
78874         * lib/strstr.c (strstr): Fix return value in multibyte case.
78875         * lib/strcasestr.c (strcasestr): Likewise.
78876
78877 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78880
78881 2005-08-17  Jim Meyering  <jim@meyering.net>
78882
78883         Make the %s format (seconds since the epoch) work for a negative
78884         number and when used with a zero-padded field width, e.g. %015s.
78885
78886         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78887         label so that it precedes the code to set `digits'.  Otherwise,
78888         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78889         print `00-22'.  Now, it prints `-0022', as it should.
78890
78891 2005-08-17  Bruno Haible  <bruno@clisp.org>
78892
78893         * modules/strstr (Files): Add m4/mbrtowc.m4.
78894         (Depends-on): Add mbuiter.
78895
78896 2005-08-17  Bruno Haible  <bruno@clisp.org>
78897
78898         * modules/strcasestr: New file.
78899         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78900         strcasestr.
78901
78902 2005-08-17  Bruno Haible  <bruno@clisp.org>
78903
78904         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78905
78906 2005-08-17  Bruno Haible  <bruno@clisp.org>
78907
78908         * modules/mbuiter: New file.
78909         * MODULES.html.sh (Extended multibyte and wide character utilities):
78910         Add mbuiter.
78911
78912 2005-08-17  Bruno Haible  <bruno@clisp.org>
78913
78914         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78915         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78916
78917 2005-08-17  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/strcasestr.m4: New file.
78920
78921 2005-08-17  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78924         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78925
78926 2005-08-17  Bruno Haible  <bruno@clisp.org>
78927
78928         * lib/strcasestr.h: New file.
78929         * lib/strcasestr.c: New file.
78930
78931 2005-08-17  Bruno Haible  <bruno@clisp.org>
78932
78933         * lib/strcasecmp.c: Use mbuiter.h.
78934
78935 2005-08-17  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/mbuiter.h: New file.
78938
78939 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78942         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78943         and gl_GETOPT are both invoked via different paths (as happens
78944         with GNU tar CVS because it uses both argp and getopt), the former
78945         wins.
78946
78947 2005-08-16  Bruno Haible  <bruno@clisp.org>
78948
78949         * modules/tls: New file.
78950         * MODULES.html.sh (Multithreading): Add tls.
78951
78952 2005-08-16  Bruno Haible  <bruno@clisp.org>
78953
78954         * modules/strnlen1: New file.
78955         * MODULES.html.sh (String handling): Add strnlen1.
78956
78957 2005-08-16  Bruno Haible  <bruno@clisp.org>
78958
78959         * modules/strcase (Files): Add m4/mbrtowc.m4.
78960         (Depends-on): Add strnlen1, mbchar.
78961
78962 2005-08-16  Bruno Haible  <bruno@clisp.org>
78963
78964         * modules/mbiter: New file.
78965         * MODULES.html.sh (Extended multibyte and wide character utilities):
78966         Add mbiter.
78967
78968 2005-08-16  Bruno Haible  <bruno@clisp.org>
78969
78970         * modules/mbfile: New file.
78971         * MODULES.html.sh (Extended multibyte and wide character utilities):
78972         Add mbfile.
78973
78974 2005-08-16  Bruno Haible  <bruno@clisp.org>
78975
78976         * modules/mbchar: New file.
78977         * MODULES.html.sh (Extended multibyte and wide character utilities):
78978         New section.
78979
78980 2005-08-16  Bruno Haible  <bruno@clisp.org>
78981
78982         * m4/tls.m4: New file, from GNU gettext.
78983
78984 2005-08-16  Bruno Haible  <bruno@clisp.org>
78985
78986         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78987         always.
78988         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78989
78990 2005-08-16  Bruno Haible  <bruno@clisp.org>
78991
78992         * m4/mbiter.m4: New file.
78993
78994 2005-08-16  Bruno Haible  <bruno@clisp.org>
78995
78996         * m4/mbfile.m4: New file.
78997
78998 2005-08-16  Bruno Haible  <bruno@clisp.org>
78999
79000         * m4/mbchar.m4: New file.
79001
79002 2005-08-16  Bruno Haible  <bruno@clisp.org>
79003
79004         * lib/tls.h: New file, from GNU gettext.
79005         * lib/tls.c: New file, from GNU gettext.
79006
79007 2005-08-16  Bruno Haible  <bruno@clisp.org>
79008
79009         * lib/strnlen1.h: New file.
79010         * lib/strnlen1.c: New file.
79011
79012 2005-08-16  Bruno Haible  <bruno@clisp.org>
79013
79014         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79015         (mbi_init): Update.
79016         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79017         NUL byte, not after it.
79018
79019 2005-08-16  Bruno Haible  <bruno@clisp.org>
79020
79021         * lib/strcase.h (strcasecmp): Add note in comments.
79022         * lib/strncasecmp.c: Use code from strcasecmp.c.
79023         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79024         (strcasecmp): Work correctly in multibyte locales.
79025
79026 2005-08-16  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/mbiter.h: New file.
79029
79030 2005-08-16  Bruno Haible  <bruno@clisp.org>
79031
79032         * lib/mbfile.h: New file.
79033
79034 2005-08-16  Bruno Haible  <bruno@clisp.org>
79035
79036         * lib/mbchar.h: New file.
79037         * lib/mbchar.c: New file.
79038
79039 2005-08-16  Bruno Haible  <bruno@clisp.org>
79040
79041         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79042         the valid ones. Makes the comparison operations transitive:
79043         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79044         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79045
79046 2005-08-15  Simon Josefsson  <jas@extundo.com>
79047
79048         * modules/ssize_t (License): Change to 'unlimited'.
79049
79050         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79051
79052 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79055         Add comments for each pending glibc patch.
79056
79057 2005-08-15  Bruno Haible  <bruno@clisp.org>
79058
79059         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79060         __cplusplus is defined.
79061
79062 2005-08-14  Jim Meyering  <jim@meyering.net>
79063
79064         Sync from coreutils.
79065
79066         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79067         Use the hash-table-based cycle-detection code not just when
79068         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79069         Reported by James Youngman in
79070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79071         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79072         FTS_TIGHT_CYCLE_CHECK.
79073         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79074         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79075         once again.
79076         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79077         * lib/fts.c (fd_safer): Remove decl.
79078         Include fcntl--.h rather than unistd-safer.h
79079         (fts_safe_changedir): Don't call fd_safer; no longer needed
79080         now that we include fcntl--.h.
79081
79082 2005-08-12  Simon Josefsson  <jas@extundo.com>
79083
79084         * modules/getndelim2: Use ssize_t module.
79085         * modules/getnline: Likewise.
79086         * modules/safe-read: Likewise.
79087         * modules/xreadlink: Likewise.
79088
79089         * modules/ssize_t: New file.
79090
79091 2005-08-12  Simon Josefsson  <jas@extundo.com>
79092
79093         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79094
79095 2005-08-12  Simon Josefsson  <jas@extundo.com>
79096
79097         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79098         ssize_t.
79099
79100 2005-08-12  Simon Josefsson  <jas@extundo.com>
79101
79102         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79103         readline, getdelim and check_version.
79104         (Support for systems lacking ISO C 99: Sizes of integer types):
79105         Add size_max.
79106
79107 2005-08-12  Bruno Haible  <bruno@clisp.org>
79108
79109         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79110
79111 2005-08-11  Simon Josefsson  <jas@extundo.com>
79112
79113         * modules/readline: New file.
79114
79115         * modules/strnlen (Files): Add strnlen.h.
79116
79117 2005-08-11  Simon Josefsson  <jas@extundo.com>
79118
79119         * m4/readline.m4: New file.
79120
79121 2005-08-11  Simon Josefsson  <jas@extundo.com>
79122
79123         * lib/readline.h, readline.c: New file.
79124
79125 2005-08-11  Simon Josefsson  <jas@extundo.com>
79126
79127         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79128         gl_AVOID.
79129
79130 2005-08-11  Bruno Haible  <bruno@clisp.org>
79131
79132         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79133
79134 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79135
79136         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79137
79138 2005-08-10  Simon Josefsson  <jas@extundo.com>
79139
79140         * tests/test-iconvme.c: New file.
79141
79142 2005-08-10  Simon Josefsson  <jas@extundo.com>
79143
79144         * m4/strnlen.m4: New file.
79145
79146         * m4/strndup.m4: Don't check for strnlen declaration, done in
79147         strnlen.m4.
79148
79149 2005-08-10  Simon Josefsson  <jas@extundo.com>
79150
79151         * lib/strndup.c: Use strnlen.h.
79152
79153         * lib/strnlen.h: New file.
79154
79155 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79156
79157         * README: Typos.
79158
79159 2005-08-02  Simon Josefsson  <jas@extundo.com>
79160
79161         * modules/readline: New file.
79162
79163 2005-08-02  Simon Josefsson  <jas@extundo.com>
79164
79165         * modules/getdelim: New file.
79166
79167         * modules/getline: Rewrite, don't use getndelim2.
79168
79169 2005-08-02  Simon Josefsson  <jas@extundo.com>
79170
79171         * m4/getline.m4: Separate out getdelim stuff into separate module.
79172
79173         * m4/getdelim.m4: New file.
79174
79175 2005-08-02  Simon Josefsson  <jas@extundo.com>
79176
79177         * lib/getline.h, getline.c: Rewrite.
79178
79179         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79180
79181 2005-07-31  Bruno Haible  <bruno@clisp.org>
79182
79183         * lib/lock.h (gl_lock_initializer): New macro.
79184         (gl_lock_define_initialized): Use it.
79185         (gl_rwlock_initializer): New macro.
79186         (gl_rwlock_define_initialized): Use it.
79187         (gl_recursive_lock_initializer): New macro.
79188         (gl_recursive_lock_define_initialized): Use it.
79189
79190 2005-07-30  Karl Berry  <karl@gnu.org>
79191
79192         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79193         Report from Ben Pfaff, regarding getopt.
79194
79195 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79198         normal way.
79199         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79200         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79201         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79202         (gl_GETOPT): Use the new macros.  Most of the implementation
79203         is moved to the new macros.  This is for programs like Emacs
79204         that don't want all the functionality of gl_GETOPT.
79205
79206 2005-07-26  Bruno Haible  <bruno@clisp.org>
79207
79208         * m4/lock.m4: Update from GNU gettext.
79209
79210 2005-07-26  Bruno Haible  <bruno@clisp.org>
79211
79212         * lib/lock.h: Update from GNU gettext.
79213         * lib/lock.c: Update from GNU gettext.
79214
79215 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79216
79217         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79218         obsolescent AC_TRY_RUN.  Include the default includes files, for
79219         'exit'.
79220
79221 2005-07-24  Bruno Haible  <bruno@clisp.org>
79222
79223         * modules/visibility: New file.
79224         * MODULES.html.sh (Misc): Add visibility.
79225
79226 2005-07-24  Bruno Haible  <bruno@clisp.org>
79227
79228         * m4/visibility.m4: New file.
79229
79230 2005-07-24  Bruno Haible  <bruno@clisp.org>
79231
79232         * doc/visibility.texi: New file.
79233
79234 2005-07-22  Bruno Haible  <bruno@clisp.org>
79235
79236         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79237         $(ALLOCA_H), redundant through BUILT_SOURCES.
79238         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79239         redundant through BUILT_SOURCES.
79240         * modules/byteswap (Makefile.am): Remove explicit dependency on
79241         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79242         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79243         $(FNMATCH_H), redundant through BUILT_SOURCES.
79244         * modules/getopt (Makefile.am): Remove explicit dependency on
79245         $(GETOPT_H), redundant through BUILT_SOURCES.
79246         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79247         redundant through BUILT_SOURCES.
79248         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79249         redundant through BUILT_SOURCES.
79250         * modules/stdbool (Makefile.am): Remove explicit dependency on
79251         $(STDBOOL_H), redundant through BUILT_SOURCES.
79252         * modules/stdint (Makefile.am): Remove explicit dependency on
79253         $(STDINT_H), redundant through BUILT_SOURCES.
79254         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79255         Remove explicit dependency on $(SYSEXITS_H).
79256         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79257
79258 2005-07-18  Simon Josefsson  <jas@extundo.com>
79259
79260         * lib/check-version.c (check_version): Accept identical versions too.
79261
79262 2005-07-18  Bruno Haible  <bruno@clisp.org>
79263
79264         * modules/lock: New file.
79265         * MODULES.html.sh (Multithreading): New section.
79266
79267 2005-07-18  Bruno Haible  <bruno@clisp.org>
79268
79269         * m4/lock.m4: New file, from GNU gettext.
79270
79271 2005-07-18  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/lock.h: New file, from GNU gettext.
79274         * lib/lock.c: New file, from GNU gettext.
79275
79276 2005-07-18  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/lock.h (gl_once_t): New type.
79279         (gl_once_define, gl_once): New macros.
79280         * lib/lock.c (fresh_once): New variable.
79281         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79282         functions.
79283
79284 2005-07-16  Simon Josefsson  <jas@extundo.com>
79285
79286         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79287         workaround, suggested by Bruno.
79288
79289 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         * modules/xalloc (Depends-on): Add xalloc-die.
79292         * modules/xvasprintf (Depends-on): Add xalloc-die.
79293
79294 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79297         with a minor change.
79298
79299 2005-07-15  Bruno Haible  <bruno@clisp.org>
79300
79301         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79302         When using lib/poll.c, define poll as rpl_poll.
79303
79304 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * modules/argp (Depends-on): Remove unlocked-io.
79307
79308 2005-07-14  Derek Price  <derek@ximbiot.com>
79309
79310         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79311         for glob symlink bug.
79312
79313 2005-07-14  Bruno Haible  <bruno@clisp.org>
79314
79315         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79316         Instead, test for *_unlocked function declarations directly.
79317
79318 2005-07-11  Simon Josefsson  <jas@extundo.com>
79319
79320         * modules/size_max: New file.
79321
79322         * modules/xsize: Depend on size_max module for size_max.m4.
79323
79324 2005-07-11  Simon Josefsson  <jas@extundo.com>
79325
79326         * lib/size_max.h: New file.
79327
79328 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79329
79330         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79331         copyright symbol and the year.
79332         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79333         (version_etc_va): Use parameterized copyright notice.
79334         Reword to conform to the current GNU coding standards.
79335
79336 2005-07-11  Karl Berry  <karl@gnu.org>
79337
79338         * doc/gnulib.texi (Quoting): new node.
79339         (Initial import): more info, from Patrice.
79340
79341 2005-07-11  Bruno Haible  <bruno@clisp.org>
79342
79343         * gnulib-tool (func_usage): Document option --avoid.
79344         (Command line options): Handle --avoid.
79345         (func_acceptable): New function.
79346         (func_modules_transitive_closure): Use it.
79347
79348 2005-07-11  Bruno Haible  <bruno@clisp.org>
79349
79350         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79351         Reported by Jim Meyering.
79352
79353 2005-07-10  Bruno Haible  <bruno@clisp.org>
79354
79355         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79356         Needed when size_t is smaller than 'unsigned int'.
79357         Reported by Paul Eggert.
79358
79359 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79360
79361         * modules/argp (Depends-on): Add unlocked-io
79362
79363 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79364
79365         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79366         block of defines.
79367
79368 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79371         fix now.
79372
79373 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79374         and Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79377         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79378
79379 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * modules/regex (Files): Add lib/regex_internal.c,
79382         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79383         (Depends-on): Add extensions.
79384         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79385
79386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79389         pathconf.
79390         * m4/same.m4 (gl_SAME): Likewise.
79391         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79392
79393         * m4/regex.m4: Adjust to new libc regex implementation.
79394         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79395         all the .c and .h parts of (the new) regex.
79396         Quote the m4 stuff better.
79397         Check for RE_ICASE bug of old gnulib.
79398         Check for REG_STARTEND of recent libc.
79399         Rename local variables from jm_* to gl_*.
79400         Quote operand of "test -f".
79401         Say "recent enough" version of libc, not "version 2".
79402         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79403         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79404         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79405         Remove check for btowc, isascii.
79406         Require AM_LANGINFO_CODESET.
79407
79408 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * lib/regex.c, regex.h: Sync from libc.
79411         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79412         * lib/regexec.c:
79413         New files, synced from libc, except that regex_internal.h
79414         currently has a small porting fix.
79415
79416 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79419         regex_internal.c, regexec.c.
79420         Add regex_internal.h too, but as a comment, since the libc version
79421         is currently broken in gnulib mode.
79422
79423 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         Support programs like Emacs that use gnulib but not gettext.
79426         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79427         * modules/gettext-h: New file.
79428         * modules/gettext (Files): Remove lib/gettext.h.
79429         (Depends-on): Add gettext-h.
79430         (Makefile.am): Remove lib_SOURCES.
79431         * modules/argmatch, modules/c-stack, modules/closeout:
79432         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79433         * modules/execute, modules/file-type, modules/getaddrinfo:
79434         * modules/getopt, modules/human, modules/javacomp:
79435         * modules/javaexec, modules/mkdir-p, modules/obstack:
79436         * modules/openat, modules/pagealign_alloc, modules/pipe:
79437         * modules/quotearg, modules/regex, modules/rpmatch:
79438         * modules/unicodeio, modules/userspec, modules/version-etc:
79439         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79440         * modules/xsetenv:
79441         Depend on gettext-h, not gettext.
79442
79443 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79444
79445         * gnulib-tool (func_import): Add support for 'public domain' license.
79446         * modules/alloca, modules/atexit, modules/memmove:
79447         Now public domain, not GPL.
79448         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79449         * modules/realloc, modules/strerror, modules/strtod:
79450         Now LGPL, not GPL.
79451
79452 2005-07-05  Bruno Haible  <bruno@clisp.org>
79453
79454         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79455         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
79461
79462 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         Remove the dependency of the strftime module on the tzset module.
79465         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79466         gl_FUNC_TZSET_CLOBBER.
79467
79468 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         Remove the dependency of the strftime module on the tzset module.
79471         * lib/strftime.c (my_strftime)
79472         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79473         Copy the input structure, to work around some of the bug with
79474         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79475         Solaris releases, you should also use the tzset module, but we won't
79476         require it as a dependency any more since we don't want LGPLed code
79477         to depend on GPLed code.
79478
79479 2005-07-02  Jim Meyering  <jim@meyering.net>
79480
79481         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79482         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79483         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79484         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79485
79486 2005-07-02  Jim Meyering  <jim@meyering.net>
79487
79488         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79489
79490 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79493         declares only 'struct timespec;' (!).
79494
79495 2005-07-01  Jim Meyering  <jim@meyering.net>
79496
79497         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79498         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79499         * lib/save-cwd.c, tempname.c:
79500         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79501         and don't include <sys/file.h>).
79502
79503 2005-06-29  Jim Meyering  <jim@meyering.net>
79504
79505         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79506         type name.  Use the variable name instead.
79507         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79508         Likewise.
79509
79510 2005-06-28  Simon Josefsson  <jas@extundo.com>
79511
79512         * modules/check-version (Files): Add check-version.m4.
79513
79514 2005-06-28  Simon Josefsson  <jas@extundo.com>
79515
79516         * m4/check-version.m4: New file, suggested by Jim Meyering
79517         <jim@meyering.net>.
79518
79519 2005-06-28  Simon Josefsson  <jas@extundo.com>
79520
79521         * lib/check-version.h, lib/check-version.c: New files.
79522
79523 2005-06-28  Simon Josefsson  <jas@extundo.com>
79524
79525         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79526         collision with global variable.  Better indentation.  Don't
79527         increment buffer pointer beyond buffer end.  Based on comments
79528         from Paul Eggert <eggert@cs.ucla.edu>.
79529
79530         * lib/base64.h: Indent.
79531
79532 2005-06-28  Simon Josefsson  <jas@extundo.com>
79533
79534         * doc/gnulib.texi (Library version handling): New section.
79535
79536 2005-06-28  Jim Meyering  <jim@meyering.net>
79537
79538         * check-module (find_included_lib_files): Hard-code another
79539         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79540         but modules/fts-lgpl (correctly) does not list those files.
79541
79542         * modules/canonicalize (Files): Add lib/pathmax.h.
79543
79544 2005-06-25  Simon Josefsson  <jas@extundo.com>
79545
79546         * modules/check-version: New file.
79547
79548 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79549
79550         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79551         initializer of struct addrinfo, as an indication that we don't
79552         care how many members the structure has.
79553
79554 2005-06-24  Derek Price  <derek@ximbiot.com>
79555         and Bruno Haible  <bruno@clisp.org>
79556
79557         Remove stat module & update lstat.
79558         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79559         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79560         * m4/stat.m4: Remove this file.
79561
79562 2005-06-24  Derek Price  <derek@ximbiot.com>
79563         and Bruno Haible  <bruno@clisp.org>
79564
79565         Remove stat module & update lstat.
79566         * lib/stat.c: Remove this file...
79567         (slash_aware_lstat): ...moving this content and its support...
79568         * lib/lstat.c (rpl_lstat): ...into here.
79569         * lib/lstat.h: New file.
79570
79571 2005-06-24  Derek Price  <derek@ximbiot.com>
79572         and Bruno Haible  <bruno@clisp.org>
79573
79574         Remove stat module & update lstat.
79575         * config/srclist.txt (libc sources): Remove stat.
79576
79577 2005-06-24  Derek Price  <derek@ximbiot.com>
79578         and Bruno Haible  <bruno@clisp.org>
79579
79580         Remove stat module & update lstat.
79581         * MODULES.html.sh (stat): Remove.
79582         * MODULES.html: Regenerated.
79583         * modules/lstat (Description): Correct function name.
79584         (Files): Add "lstat.h".
79585         (Depends-on): Remove stat, add xalloc, stat-macros.
79586         * modules/stat: Remove this file.
79587         (Include): Add "lstat.h", remove <sys/stat.h>.
79588
79589 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79592         (ranged_convert): Don't save conversion in a temporary struct.
79593         This causes a warning with GCC 4.0.0, and anyway in the typical
79594         case it's not worth the extra 100 bytes or so of code.
79595         (ranged_convert, __mktime_internal): When calling a function via a
79596         pointer P, use P () rather than (*P) (), as we now assume C89 or
79597         better.
79598
79599 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79602         "who -r" failed to give output.  Problem reported by Tim Waugh.
79603
79604         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79605         (xcalloc): Use it to avoid needless tests.
79606         Problem reported by Jim Meyering.
79607
79608 2005-06-20  Derek Price  <derek@ximbiot.com>
79609
79610         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79611         unnecessary for Autoconfs > 2.59c.
79612
79613 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79614
79615         * lib/argp.h (__option_is_short): Check upper limit of
79616         __key. Isprint() requires its argument to have the value
79617         of an unsigned char or EOF.
79618
79619 2005-06-16  Jim Meyering  <jim@meyering.net>
79620
79621         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79622         when either N or S is zero.
79623
79624 2005-06-16  Derek Price  <derek@ximbiot.com>
79625
79626         * m4/bison.m4: Declare YACC & YFLAGS precious.
79627
79628 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79629
79630         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79631         multibyte string or pattern, fall back on unibyte matching.
79632         Problem reported by James Youngman.
79633
79634 2005-06-08  Bruno Haible  <bruno@clisp.org>
79635
79636         * modules/csharpcomp: New file.
79637         * MODULES.html.sh (C#): Add csharpcomp.
79638
79639 2005-06-08  Bruno Haible  <bruno@clisp.org>
79640
79641         * m4/csharpcomp.m4: New file, from GNU gettext.
79642
79643 2005-06-08  Bruno Haible  <bruno@clisp.org>
79644
79645         * lib/csharpcomp.h: New file, from GNU gettext.
79646         * lib/csharpcomp.c: New file, from GNU gettext.
79647         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79648
79649 2005-06-08  Bruno Haible  <bruno@clisp.org>
79650
79651         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79652         warning on mingw.
79653
79654 2005-06-07  Derek Price  <derek@ximbiot.com>
79655
79656         Sync from CVS.
79657         * lib/glob_.h: Indent nested #ifdef.
79658
79659 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79660
79661         Sync from coreutils.
79662         Use "file name" when talking about file names, instead of "filename"
79663         or "path", as per the GNU coding standards.
79664         * lib/mkdir-p.c: Renamed from makepath.c.
79665         (make_dir_parents): Renamed from make_path.  All callers changed.
79666         * lib/mkdir-p.h: Likewise.  All includers changed.
79667         * lib/filenamecat.c: Renamed from path-concat.c.
79668         (file_name_concat): Renamed from path_concat.  All callers changed.
79669         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79670         * lib/filenamecat.h: Likewise.  All includers changed.
79671         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79672         in comments or local variable names.
79673         * lib/basename.c: Likewise.
79674         * lib/canonicalize.c, canonicalize.h: Likewise.
79675         * lib/dirname.c, dirname.h: Likewise.
79676         * lib/euidaccess.c: Likewise.
79677         * lib/exclude.c: Likewise
79678         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79679         * lib/fsusage.c, fsuage.h: Likewise.
79680         * lib/fts.c, fts_.h: Likewise.
79681         * lib/getcwd.c: Likewise.
79682         * lib/getloadavg.c: Likewise.
79683         * lib/mkstemp.c: Likewise.
79684         * lib/mountlist.c, mountlist.h: Likewise.
79685         * lib/openat.c, openat.h: Likewise.
79686         * lib/readlink-stub.c: Likewise.
79687         * lib/readutmp.c, readutmp.h: Likewise.
79688         * lib/rename.c: Likewise.
79689         * lib/rmdir.c: Likewise.
79690         * lib/same.c: Likewise.
79691         * lib/savedir.c: Likewise.
79692         * lib/stripslash.c: Likewise.
79693         * lib/tempname.c: Likewise.
79694         * lib/xreadlink.c: Likewise.
79695         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79696         All uses changed.
79697         * lib/exclude.h: Likewise.
79698
79699         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79700         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79701         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79702         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79703         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79704         files have been getting away with it for years (MORE/BSD 4.3
79705         is extinct now).
79706         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79707         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79708
79709         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79710         Define to 256, not 255, as per modern POSIX.
79711
79712 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         Sync from coreutils.
79715         Use "file name" when talking about file names, instead of "filename"
79716         or "path", as per the GNU coding standards.
79717         * MODULES.html.sh: mkdir-p renamed from makepath.
79718         filenamecat renamed from path-concat.
79719         * modules/filenamecat: Renamed from modules/path-concat.
79720         (Files): filenamecat.h and filenamecat.c renamed from
79721         path-concat.h and path-concat.c.
79722         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79723         (Include): filenamecat.h, not path-concat.h.
79724         * modules/mkdir-p: Renamed from modules/makepath.
79725         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79726         makepath.c.
79727         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79728         (Include): mkdir-p.h, not makepath.h.
79729
79730 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         Sync from coreutils.
79733         * m4/mkdir-p.m4: Renamed from makepath.m4.
79734         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79735         Rename files from makepath.c to mkdir-p.c, and from
79736         makepath.h to mkdir-p.h.
79737         * m4/filenamecat.m4: Renamed from path-concat.m4.
79738         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79739         Rename files from path-concat.c to filenamecat.c,
79740         and from path-concat.h to filenamecat.h.
79741         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79742         "file name" in local variables or comments.
79743         * m4/rename.m4: Likewise.
79744
79745 2005-06-01  Bruno Haible  <bruno@clisp.org>
79746
79747         * modules/csharpexec: New file.
79748         * MODULES.html.sh (C#): New section.
79749
79750 2005-06-01  Bruno Haible  <bruno@clisp.org>
79751
79752         * m4/csharp.m4: New file, from GNU gettext.
79753         * m4/csharpexec.m4: New file, from GNU gettext.
79754
79755 2005-06-01  Bruno Haible  <bruno@clisp.org>
79756
79757         * lib/csharpexec.h: New file, from GNU gettext.
79758         * lib/csharpexec.c: New file, from GNU gettext.
79759         * lib/csharpexec.sh.in: New file, from GNU gettext.
79760
79761 2005-05-31  Derek Price  <derek@ximbiot.com>
79762             Paul Eggert  <eggert@cs.ucla.edu>
79763
79764         Sync from cvs.
79765         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79766
79767 2005-05-31  Derek Price  <derek@ximbiot.com>
79768             Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         Sync from cvs.
79771         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79772
79773 2005-05-29  Derek Price  <derek@ximbiot.com>
79774
79775         * config/srclist.txt (glob_.h, glob.c): Add these files.
79776
79777 2005-05-29  Derek Price  <derek@ximbiot.com>
79778
79779         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79780         * modules/glob: New file.
79781         * modules/getlogin_r: Add link to POSIX spec in description.
79782
79783 2005-05-29  Derek Price  <derek@ximbiot.com>
79784             Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * m4/glob.m4: New file.
79787
79788 2005-05-29  Derek Price  <derek@ximbiot.com>
79789             Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         * lib/glob_.h, lib/glob.c: New files.
79792
79793 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79794
79795         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79796         * modules/fts-lgpl (Depends-on): Remove gettext.
79797
79798 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79801         and don't require gt_INTTYPES_PRI.
79802
79803 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79804
79805         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79806
79807         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79808         the configuration hassle isn't worth it.
79809         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79810         (LONGEST_MODIFIER, PRIuMAX): Remove.
79811
79812 2005-05-27  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79815
79816 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79817
79818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79819         _POSIX_PTHREAD_SEMANTICS for Solaris.
79820
79821 2005-05-25  Derek Price  <derek@ximbiot.com>
79822
79823         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79824
79825 2005-05-25  Derek Price  <derek@ximbiot.com>
79826             Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79829         * lib/getlogin_r.c, getlogin_r.h: New files.
79830
79831 2005-05-25  Bruno Haible  <bruno@clisp.org>
79832             Derek Price  <derek@ximbiot.com>
79833
79834         * lib/getlogin_r.h: Simplify API documentation.
79835
79836 2005-05-23  Derek Price  <derek@ximbiot.com>
79837
79838         * modules/minmax (Files): Add m4/minmax.m4.
79839         (configure.ac): Add gl_MINMAX.
79840
79841 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79844         so that unistd-safer.h (GPL'ed code) need not be included.
79845
79846 2005-05-22  Bruno Haible  <bruno@clisp.org>
79847
79848         * m4/minmax.m4: New file.
79849         Based on a patch by Derek Price <derek@ximbiot.com>.
79850
79851 2005-05-22  Bruno Haible  <bruno@clisp.org>
79852
79853         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79854         (INT64_MIN): Fix definition.
79855         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79856
79857         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79858         NEED_SIGNED_INT_TYPES.
79859
79860         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79861         HAVE_SYSTEM_INTTYPES.
79862
79863 2005-05-22  Bruno Haible  <bruno@clisp.org>
79864
79865         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79866         Also include <sys/param.h> if it defines MIN, MAX.
79867         Based on a patch by Derek Price <derek@ximbiot.com>.
79868
79869 2005-05-21  Jim Meyering  <jim@meyering.net>
79870
79871         * modules/fts (Files): Add m4/inttypes-pri.m4.
79872         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79873
79874 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         New fts module.
79877         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79878         (setup_dir, free_dir): New functions.
79879         (enter_dir, leave_dir): Define trivial
79880         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79881         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79882         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79883         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79884         Move to fts-cycle.c.
79885         (fts_open): Use setup_dir.
79886         (fts_close): Use free_dir.
79887         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79888         This adds a label and some gotos, but the alternatives were messier.
79889         Check for memory allocation failure when entering a dir.
79890         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79891         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79892         (FTS): New member fts_cycle, that is a union that contains the
79893         old active_dir_ht and cycle_state.  All uses changed to mention
79894         fts_cycle.ht and fts_cycle.state.
79895         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79896         fts.c, with the following changes:
79897         (setup_dir, free_dir): New functions.
79898         (enter_dir): Now returns bool.  Return true if successful, false
79899         if memory exhausted.  All callers changed.
79900         Do not bother partly cleaning up on
79901         memory allocation failure; that is free_dir's job.
79902         However, free ad if hash_insert fails, to avoid memory leak.
79903         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79904         fts->fts_options to see which union member to use.
79905
79906 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79909         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79910
79911 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79912
79913         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79914
79915 2005-05-20  Jim Meyering  <jim@meyering.net>
79916
79917         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79918         Now a macro, to pacify GCC.
79919
79920 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79921
79922         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79923         of -1.
79924
79925 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79926
79927         * lib/chown.c (rpl_chown): Return -1 on failure.
79928
79929 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79932         Don't check for stddef.h.
79933         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79934         don't use its results.
79935         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79936         since we include them unconditionally.  Don't require
79937         AM_STDBOOL_H, since stdbool is a prerequisite.
79938         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79939         since we assume C89 or better.
79940         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79941         as we don't use their results.
79942         Don't check for fchdir, memmove, memset, strrchr, as we use
79943         them unconditionally.
79944         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79945         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79946
79947 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79950         Include <stddef.h> unconditionally, since we assume C89 now.
79951         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79952         * lib/fts.c: Include fts_.h first, to check interface.
79953         Do not include intprops.h; no longer needed.
79954         Include cycle-check.h and hash.h, since fts_.h no longer does.
79955         Remove unnecessary casts of closedir to void.
79956         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79957         decide whether to decrement nlinks.
79958         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79959         (FTS): Use struct hash_table * instead of Hash_table, so that
79960         we no longer need to include hash.h here.
79961
79962 2005-05-18  Jim Meyering  <jim@meyering.net>
79963
79964         * modules/dirfd (License): Change to LGPL.  Most of the code
79965         is already in the public domain.
79966
79967 2005-05-18  Jim Meyering  <jim@meyering.net>
79968
79969         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79970         Reported by Yoann Vandoorselaere.
79971
79972 2005-05-17  Jim Meyering  <jim@meyering.net>
79973
79974         * m4/fts.m4: New file, from coreutils.
79975
79976 2005-05-17  Jim Meyering  <jim@meyering.net>
79977
79978         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79979
79980 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         Sync from coreutils.
79983         * m4/unlinkdir.m4: New file.
79984
79985 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         Sync from coreutils.
79988         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79989         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79990         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79991         White space changes only.
79992         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79993         special.
79994         * lib/yesno.c: Include getline.h, not ctype.h.
79995         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79996         Use getline to remove arbitrary restriction on response length.
79997
79998 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * config/srclist-update: Spell out "Street" in FSF postal
80001         mail address; this is the style the FSF seems to prefer.
80002
80003         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
80004         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
80005         this updates FSF postal mail address.
80006
80007         Sync from coreutils.
80008         * modules/unlinkdir: New file.
80009         * modules/yesno (Depends-on): Add getline.
80010         * MODULES.html.sh (File system functions): Add unlinkdir.
80011
80012 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80013
80014         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80015         lib/strsep.h:
80016         Change the initial comment to refer to GPL, not LGPL.
80017         gnulib-tool will change it to LGPL as needed.
80018
80019         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80020         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80021         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80022         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80023         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80024         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80025         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80026         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80027         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80028         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80029         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80030         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80031         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80032         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80033         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80034         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80035         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80036         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80037         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80038         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80039         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80040         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80041         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80042         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80043         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80044         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80045         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80046         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80047         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80048         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80049         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80050         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80051         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80052         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80053         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80054         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80055         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80056         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80057         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80058         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80059         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80060         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80061         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80062         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80063         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80064         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80065         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80066         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80067         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80068         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80069         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80070         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80071         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80072         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80073         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80074         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80075         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80076         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80077         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80078         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80079         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80080         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80081         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80082         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80083         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80084         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80085         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80086         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80087         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80088         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80089         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80090         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80091         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80092         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80093         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80094         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80095         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80096         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80097         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80098         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80099         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80100         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80101         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80102         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80103         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80104         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80105         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80106         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80107         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80108         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80109         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80110         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80111         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80112         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80113         lib/yesno.c, lib/yesno.h:
80114         Update FSF postal mail address.
80115
80116 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80119         tests/test-memmem.c, tests/test-stpncpy.c:
80120         Update FSF postal mail address.
80121
80122 2005-05-13  Bruno Haible  <bruno@clisp.org>
80123
80124         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80125         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80126         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80127         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80128         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80129         Add support for 64-bit integers in the MSVC compiler.
80130
80131 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80132
80133         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80134
80135 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80136
80137         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80138
80139 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * doc/getdate.texi (General date syntax): Don't say that date
80142         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80143         Problem reported by Nic Ferrier.
80144
80145 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80146
80147         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80148         specified in ai_socktype. Fix invalid ai_protocol
80149         check. ai_protocol is usually set to 0 or depending on
80150         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80151         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80152         ai_socktype / ai_protocol in the returned addrinfo structure.
80153
80154 2005-05-10  Simon Josefsson  <jas@extundo.com>
80155
80156         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80157         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80158
80159 2005-05-10  Karl Berry  <karl@gnu.org>
80160
80161         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80162         (from http://www.gnu.org/licenses).
80163         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80164         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80165         fdl.texi suffices.
80166
80167 2005-05-10  Karl Berry  <karl@gnu.org>
80168
80169         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80170         (COPYING.DOC): remove.
80171
80172         * config/srclist-update: new FSF address.
80173
80174 2005-05-10  Derek Price  <derek@ximbiot.com>
80175
80176         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80177         possible.
80178
80179 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80180             Bruno Haible  <bruno@clisp.org>
80181
80182         * modules/inet_ntop: New file.
80183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80184         inet_ntop.
80185
80186 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80187             Bruno Haible  <bruno@clisp.org>
80188
80189         * m4/inet_ntop.m4: New file.
80190
80191 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80192             Bruno Haible  <bruno@clisp.org>
80193
80194         * lib/inet_ntop.h: New file.
80195         * lib/inet_ntop.c: New file, from glibc with modifications.
80196
80197 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * modules/time_r (License): Change to LGPL.
80200         * modules/extensions (License): Change to LGPL.  Actually,
80201         the license is more permissive than that, but currently gnulib-tool
80202         doesn't know how to handle more-permissive licenses.
80203
80204         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80205         Problem reported by Dave Love.
80206
80207 2005-05-08  Jim Meyering  <jim@meyering.net>
80208
80209         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80210         blank.
80211
80212 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * modules/argmatch (Depends-on): Add stdbool.
80215         * modules/backupfile (Depends-on): Likewise.
80216         * modules/chdir-long (Depends-on): Likewise.
80217         * modules/closeout (Depends-on): Likewise.
80218         * modules/cycle-check (Depends-on): Likewise.
80219         * modules/dirname (Depends-on): Likewise.
80220         * modules/fnmatch (Depends-on): Likewise.
80221         * modules/fsusage (Depends-on): Likewise.
80222         * modules/fwriteerror (Depends-on): Likewise.
80223         * modules/getcwd (Depends-on): Likewise.
80224         * modules/getloadavg (Depends-on): Likewise.
80225         * modules/hard-locale (Depends-on): Likewise.
80226         * modules/makepath (Depends-on): Likewise.
80227         * modules/mountlist (Depends-on): Likewise.
80228         * modules/nanosleep (Depends-on): Likewise.
80229         * modules/posixtm (Depends-on): Likewise.
80230         * modules/quotearg (Depends-on): Likewise.
80231         * modules/readtokens (Depends-on): Likewise.
80232         * modules/readtokens0 (Depends-on): Likewise.
80233         * modules/readutmp (Depends-on): Likewise.
80234         * modules/save-cwd (Depends-on): Likewise.
80235         * modules/strftime (Depends-on): Likewise.
80236         * modules/userspec (Depends-on): Likewise.
80237         * modules/utimecmp (Depends-on): Likewise.
80238         * modules/xgetcwd (Depends-on): Likewise.
80239         * modules/xnanosleep (Depends-on): Likewise.
80240         * modules/xstrtod (Depends-on): Likewise.
80241         * modules/yesno (Depends-on): Likewise.
80242
80243 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80246         needless checks.
80247
80248 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80249
80250         Merge from coreutils.  Among other things,
80251         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80252         * lib/fd-safer.c: New file.
80253         * lib/fcntl-safer.h, open-safer.c: Remove.
80254         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80255         * lib/dup-safer.c: Include unistd-safer.h first.
80256         Don't include errno.h.
80257         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80258         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80259         * lib/file-type.c: Rely on file-type.h change.
80260         * lib/getloadavg.c: Include unistd-safer.h.
80261         (getloadavg): Use safer open.
80262         * lib/getusershell.c: Include "stdio-safer.h".
80263         (getusershell): Use safer fopen.
80264         * lib/long-options.c (long_options): Use NULL rather than 0.
80265         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80266         'free'.
80267         * lib/modechange.c: Likewise.
80268         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80269         (MODE_DONE): New constant.
80270         (struct mode_change): Remove 'next' member.
80271         (make_node_op_equals): New function; like the old one of the
80272         same name, except it allocates an array.
80273         (mode_compile, mode_create_from_ref): Use it.
80274         (mode_compile): Allocate result as an array, not a linked list.
80275         Parse octal string ourself, so that we catch mistakes like "+0".
80276         (mode_adjust): Arg is an array, not a linked list.
80277         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80278         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80279         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80280         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80281         Remove.  This is now stat-macros.h's job.
80282         (talloc): Remove.  All callers replaced by xalloc, so that
80283         our invokers don't have to worry about reporting memory failures.
80284         (make_node_op_equals): Remove.
80285         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80286         New constants.
80287         (struct mode_change): Moved here from modechange.h.
80288         (mode_append_entry): Remove.
80289         (mode_compile): Remove MASKED_OPS arg, since it encouraged
80290         apps to have incorrect behavior.  Use simpler algorithm for head
80291         and tail.  Don't futz with umask; that's now the job of mode_adjust.
80292         Detect more invalid usages rather than having somewhat-random behavior.
80293         Don't insert an "a=" action, as that leads to incorrect behavior.
80294         (mode_compile, mode_create_from_ref): Return NULL on error instead
80295         of an enum, since now there's only one way to have an error.  All
80296         callers changed.
80297         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80298         at the correct time.  Simplify calculation of "+u" and its ilk.
80299         Don't mishandle "+X".
80300         (mode_free): Remove "register" and localize decls.
80301         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80302         (struct mode_change): Move to modechange.c; callers don't
80303         need to see this stuff.
80304         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80305         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80306         (mode_change, mode_adjust): Reflect the new signatures noted above.
80307         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80308         that might redefine system include files.
80309         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80310         (my_usleep): Use NULL rather than (void *) 0.
80311         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80312         Use siginterrupt to specify that system calls should be interrupted.
80313         (rpl_nanosleep): Move initialization of suspended closer to call of
80314         my_usleep.
80315         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80316         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80317         (desirable_utmp_entry): New function.
80318         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80319         using x2nrealloc, to simplify logic.
80320         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80321         size calculation.  Do not assume utmp file is a regular file.
80322         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80323         (READ_UTMP_CHECK_PIDS): New constant.
80324         * lib/save-cwd.c: Include unistd-safer.h.
80325         (save_cwd): Use fd_safer.
80326         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80327         [!_LIBC] Include "stat-macros.h" instead.
80328         * lib/unistd-safer.h (fd_safer): New decl.
80329
80330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * modules/getloadavg (Depends-on): Add unistd-safer.
80333         * modules/getusershell (Depends-on): Add stdio-safer.
80334         * modules/lstat (Depends-on): Remove xalloc.
80335         * modules/mkstemp (Depends-on): Add stat-macros.
80336         * modules/modechange (Depends-on): Remove xstrtol.
80337         Add stat-macros, xalloc.
80338         * modules/save-cwd (Depends-on): Add unistd-safer.
80339         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80340         * modules/unistd-safer (Files): Add lib/fd-safer.c
80341         (Makefile.am): Remove lib_SOURCES.
80342
80343         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80344         Remove fcntl-safer; unistd-safer supersedes it.
80345
80346 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80349         AC_HEADER_STAT.
80350         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80351         (gl_PREREQ_CHOWN): Remove.
80352         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80353         it.  Don't require AC_HEADER_STAT.
80354         (gl_PREREQ_LSTAT): Remove.
80355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80356         Don't require AC_HEADER_STAT.
80357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80358         (gl_PREREQ_RMDIR): Remove.
80359         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80360         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80361         the stat-macros module a prerequisite.
80362         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80363         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80364         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80365         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80366         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80367         variable names.
80368         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80369         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80370         variable prefixes.
80371         * m4/fcntl-safer.m4: Remove.
80372         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80373         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80374         Invoke gl_PREREQ_FD_SAFER.
80375         (gl_PREREQ_FD_SAFER): New macro.
80376         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80377         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80378         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80379         Remove duplicate call to AC_LIBOBJ(readutmp).
80380         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80381
80382         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80383         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80384
80385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80386
80387         * MODULES.html.sh (Misc): Add byteswap.
80388
80389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80390
80391         * modules/getcwd (Depends-on): Add extensions.
80392         * modules/openat (Depends-on): Likewise.
80393
80394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80395
80396         * modules/byteswap: New file.
80397
80398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80399
80400         * m4/byteswap.m4: New file.
80401
80402 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80403
80404         * lib/byteswap_.h: New file.
80405
80406 2005-04-25  Karl Berry  <karl@gnu.org>
80407
80408         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80409
80410 2005-04-25  Albert Chin  <china@thewrittenword.com>
80411
80412         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80413         Toolkit C bug.
80414
80415 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80416
80417         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80418         (func_ln_if_changed): Remove forcibly for no error message
80419         in case file does not exist.
80420
80421 2005-04-19  Simon Josefsson  <jas@extundo.com>
80422
80423         * gnulib-tool (Options): Make --symlink mean --symbolic.
80424
80425 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80426
80427         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80428
80429 2005-04-16  Simon Josefsson  <jas@extundo.com>
80430
80431         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80432
80433 2005-04-15  Simon Josefsson  <jas@extundo.com>
80434
80435         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80436
80437 2005-04-15  Simon Josefsson  <jas@extundo.com>
80438
80439         * gnulib-tool: Rename --symlink to --symbolic.
80440
80441 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80442
80443         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80444         symbolic links to files instead of copying/moving.  Add --aux-dir,
80445         specifying directory relative --dir where auxiliary build tools
80446         are placed.
80447
80448 2005-04-14  Bruno Haible  <bruno@clisp.org>
80449
80450         * modules/allocsa (License): Change to LGPL.
80451         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80452
80453 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80454
80455         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80456         that "UTC +1 second" continues to work.  Problem reported
80457         by Dmitry V. Levin.
80458         (relunit_snumber): New rule.
80459         (relunit): Use it.
80460
80461 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80462
80463         * lib/getdate.y (universal_time_zone_table): New constant.
80464         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80465         universal_time_zone_table.
80466         (lookup_zone): Prefer universal_time_zone_table to
80467         local_time_zone_table, so that "GMT" time stamps are allowed in
80468         London during the summer.  Problem reported by Ian Abbott.
80469
80470 2005-04-12  Jim Meyering  <jim@meyering.net>
80471
80472         * lib/human.c (humblock): Set *options even when returning due to
80473         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80474         warning from gcc-4.
80475
80476 2005-04-09  Jim Meyering  <jim@meyering.net>
80477
80478         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80479         -Wuninitialized: initialize tm0.tm_year.
80480
80481 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80482
80483         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80484         count, since there's no maximum.  All uses changed.
80485         Add member dsts_seen.
80486         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80487         not being INT_MAX.
80488         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80489         Use pc_rels_seen to decide whther a date is absolute.
80490
80491         * lib/getdate.y (number): Don't overwrite year.
80492         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80493         check.
80494
80495 2005-04-02  Simon Josefsson  <jas@extundo.com>
80496
80497         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80498         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80499
80500 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80501
80502         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80503         where no absolute path name can be longer than PATH_MAX.
80504
80505 2005-03-27  Jim Meyering  <jim@meyering.net>
80506
80507         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80508
80509 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80512         "one's complement" -> "ones' complement" in comment, as per Knuth.
80513         "value of type" -> "type or expression" in comment.
80514         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80515
80516 2005-03-26  Jim Meyering  <jim@meyering.net>
80517
80518         Comment nits.
80519         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80520         Correct typos: s/or/of/.
80521
80522 2005-03-26  Jim Meyering  <jim@meyering.net>
80523
80524         * modules/check-include-files: Move to ../ and rename to...
80525         * check-module: ...this.
80526
80527 2005-03-25  Jim Meyering  <jim@meyering.net>
80528
80529         * modules/xvasprintf (Files): Add xalloc.h.
80530
80531 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * modules/gettext (Files): config/config.rpath ->
80534         build-aux/config.rpath
80535         * modules/iconv (Files): Likewise.
80536         Problem reported by Oskar Liljeblad.
80537
80538 2005-03-23  Jim Meyering  <jim@meyering.net>
80539
80540         * modules/check-include-files: New script to check for
80541         missing dependencies, multiple includes, etc.
80542
80543         * modules/c-strtold (Depends-on): Add xalloc.
80544         * modules/c-strtod (Depends-on): Add xalloc.
80545         * modules/hash (Depends-on): Add xalloc.
80546         (Files): Remove lib/xalloc.h.
80547
80548         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80549         * modules/userspec (Files): Add lib/inttostr.h.
80550
80551 2005-03-23  Jim Meyering  <jim@meyering.net>
80552
80553         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80554
80555 2005-03-22  Jim Meyering  <jim@meyering.net>
80556
80557         * modules/stat-macros: New module.
80558         * modules/canonicalize, modules/euidaccess, modules/file-type,
80559         * modules/filemode, modules/lchown, modules/makepath,
80560         * modules/rmdir, modules/stat: Depend on new stat-macros module
80561         rather than listing lib/stat-macros.h manually.
80562         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80563
80564 2005-03-22  Jim Meyering  <jim@meyering.net>
80565
80566         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80567
80568 2005-03-22  Bruno Haible  <bruno@clisp.org>
80569
80570         * config/srclist.txt: Replace target directory 'config' with
80571         'build-aux'.
80572         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80573         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80574         ../build-aux/.
80575
80576 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80577
80578         * modules/chdir-long (Depends-on): Add mempcpy.
80579
80580         * modules/acl, modules/backupfile, modules/c-strtod,
80581         modules/c-strtold, modules/canon-host, modules/canonicalize,
80582         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80583         modules/exclude, modules/exitfail, modules/file-type,
80584         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80585         modules/getdate, modules/getline, modules/getpagesize,
80586         modules/getpass, modules/getugroups, modules/group-member,
80587         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80588         modules/inttostr, modules/long-options, modules/makepath,
80589         modules/md5, modules/memcasecmp, modules/memcoll,
80590         modules/modechange, modules/mountlist, modules/path-concat,
80591         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80592         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80593         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80594         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80595         modules/strftime, modules/strndup, modules/strverscmp,
80596         modules/timespec, modules/unlocked-io, modules/userspec,
80597         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80598         modules/yesno:
80599         Remove lib_SOURCES line from Makefile.am section, as this is now
80600         done automatically by the corresponding Autoconf macro.
80601
80602 2005-03-21  Jim Meyering  <jim@meyering.net>
80603
80604         Changes imported from coreutils.
80605
80606         * lib/cycle-check.c: Don't include xalloc.h.
80607
80608         * lib/path-concat.c: Don't include assert.h.
80609         (path_concat): Remove assertion that would have triggered
80610         for ABASE starting with more than one slash.
80611         Reported by Andreas Schwab.
80612
80613         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80614         properly when ABASE is an absolute file name.
80615         Correct the description of this function.
80616         Include <assert.h>.
80617         Add an assertion and a test driver.
80618         This fixes a bug introduced on 2004-07-02.
80619         Andreas Schwab reported the resulting failure of cp --parents:
80620         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80621
80622 2005-03-21  Jim Meyering  <jim@meyering.net>
80623
80624         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80626
80627 2005-03-21  Jim Meyering  <jim@meyering.net>
80628         and  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80631         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80632         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80633         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80634         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80635         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80636         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80637         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80638         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80639         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80640         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80641         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80642         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80643         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80644         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80645         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80646         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80647         for these modules.
80648
80649 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80652         (which shouldn't happen), generate nothing instead of returning 0
80653         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80654
80655 2005-03-16  Bruno Haible  <bruno@clisp.org>
80656
80657         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80658         HAVE_LONGLONG_64BIT.
80659
80660 2005-03-16  Bruno Haible  <bruno@clisp.org>
80661
80662         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80663         HAVE_LONGLONG_64BIT.
80664
80665 2005-03-16  Bruno Haible  <bruno@clisp.org>
80666
80667         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80668         HAVE_LONGLONG_64BIT.
80669
80670 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80673         reliably distinguish strftime failure from empty output on POSIX
80674         hosts.
80675
80676 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80679         (iconv_string): Don't guess a size-zero buffer, as that might cause
80680         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80681         result would be 'too large', where 'too large' is (heuristically)
80682         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80683         overflow concerns.  This will prevent some unwanted malloc failures
80684         when the inputs are very large.
80685
80686 2005-03-15  Karl Berry  <karl@gnu.org>
80687
80688         * config/srclist.txt (config.rpath): from gettext.
80689         * config/config.rpath: update.
80690
80691 2005-03-15  Bruno Haible  <bruno@clisp.org>
80692
80693         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80694         to 'negate'.
80695
80696         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80697         variable.
80698
80699         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80700         results.
80701
80702 2005-03-14  Simon Josefsson  <jas@extundo.com>
80703
80704         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80705         <fx@gnu.org>.
80706
80707 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80710         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80711         intprops.h.
80712         * lib/strtol.c: Likewise.
80713
80714 2005-03-14  Jim Meyering  <jim@meyering.net>
80715
80716         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80717         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80718         to be nonzero so that we (and caller) can detect the difference
80719         between a valid zero-length expansion and an error return, even
80720         when the underlying strftime fails before writing anything into
80721         that location.
80722
80723 2005-03-14  Bruno Haible  <bruno@clisp.org>
80724
80725         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80726         Update from GNU gettext 0.14.3.
80727
80728 2005-03-10  Jim Meyering  <jim@meyering.net>
80729
80730         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80731
80732 2005-03-10  Jim Meyering  <jim@meyering.net>
80733
80734         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80735         so that this module works on systems without fchdir.
80736
80737 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         Factor int-properties macros into a single file, except for
80740         glibc-related files.
80741         * lib/intprops.h: New file.
80742         * lib/getloadavg.c: Include it instead of limits.h.
80743         (INT_STRLEN_BOUND): Remove.
80744         * lib/human.c: Include intprops.h.
80745         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80746         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80747         302/1000.
80748         * lib/inttostr.h: Include intprops.h instead of limits.h.
80749         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80750         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80751         for consistency with intprops.h.
80752         (time_t_is_integer, twos_complement_arithmetic): Use them.
80753         * lib/sig2str.h: Include <signal.h>, intprops.h.
80754         (INT_STRLEN_BOUND): Remove.
80755         * lib/strftime.c (TYPE_SIGNED): Remove.
80756         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80757         * lib/strtol.c: Adjust comments to match intprops.h.
80758         * lib/userspec.c: Include intprops.h.
80759         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80760         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80761         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80762         instead of rolling our own expressions.
80763         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80764
80765         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80766         instead of int.
80767         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80768         the right thing even if adding 1900 would overflow.  Similarly
80769         for tm_mon + 1 and tm_yday + 1.
80770         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80771         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80772         (DO_SIGNED_NUMBER): New macro.
80773         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80774
80775 2005-03-07  Bruno Haible  <bruno@clisp.org>
80776
80777         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80778
80779 2005-03-07  Bruno Haible  <bruno@clisp.org>
80780
80781         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80782
80783 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80784
80785         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80786         (func_import): Only replace files via --import when they have actually
80787         changed.
80788
80789 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80790
80791         * m4/mmap-anon.m4: New file.
80792         * m4/pagealign_alloc.m4: New file.
80793
80794 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80795             Bruno Haible  <bruno@clisp.org>
80796
80797         * modules/pagealign_alloc: New file.
80798         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80799
80800 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80801             Bruno Haible  <bruno@clisp.org>
80802
80803         * lib/pagealign_alloc.h: New file.
80804         * lib/pagealign_alloc.c: New file.
80805
80806 2005-03-03  Bruno Haible  <bruno@clisp.org>
80807
80808         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80809         Use an all-permissive copyright notice, recommended by RMS.
80810
80811 2005-03-02  Bruno Haible  <bruno@clisp.org>
80812
80813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80814         of AIX, the replacement has to be done only after <string.h> is
80815         included, therefore not in config.h. stpncpy.h does the replacement,
80816         and stpncpy.c uses it.
80817
80818 2005-03-02  Bruno Haible  <bruno@clisp.org>
80819
80820         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80821         stpncpy.c uses it.
80822
80823 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80826         The workaround isn't strictly needed for POSIX conformance, and
80827         it's too much of a pain to configure and maintain.  We'll ask
80828         people to fix their kernels instead.
80829         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80830         (NANOSLEEP_BUG_WORKAROUND): Remove.
80831         (xnanosleep): Remove the workaround.
80832
80833 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80834
80835         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80836         Reported by Derek Price.
80837         (Include): Add "timespec.h".
80838
80839         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80840
80841 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80844         to detect nanosleep bug.
80845
80846 2005-03-01  Bruno Haible  <bruno@clisp.org>
80847
80848         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80849
80850 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * modules/gethrxtime: New file.
80853         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80854         (Depends-on): Add gethrxtime.
80855         (configure.ac): Add gl_XNANOSLEEP.
80856         (Makefile.am): Remove lib_SOURCES line.
80857
80858 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80859
80860         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80861         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80862
80863 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80866         * lib/timespec.h (gettime): Return void, since it always
80867         succeeds now.  All uses changed.
80868         * lib/gettime.c (gettime): Likewise.
80869         [HAVE_NANOTIME]: Prefer nanotime.
80870         Assume gettimeofday succeeds, as POSIX requires.
80871         Assime time () succeeds, since other code already does.
80872         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80873         (timespec_subtract): Remove.
80874         (NANOSLEEP_BUG_WORKAROUND): New constant.
80875         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80876         things considerably.  Use it only on GNU/Linux hosts, since the
80877         workaround shouldn't be needed elsewhere.
80878
80879 2005-02-24  Bruno Haible  <bruno@clisp.org>
80880
80881         * modules/gettext (Files): Add m4/glibc2.m4.
80882
80883 2005-02-24  Bruno Haible  <bruno@clisp.org>
80884
80885         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80886         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80887         * m4/progtest.m4:
80888         Update from GNU gettext 0.14.2.
80889         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80890
80891 2005-02-24  Bruno Haible  <bruno@clisp.org>
80892
80893         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80894         * lib/config.charset: Update from GNU gettext 0.14.2.
80895
80896 2005-02-24  Bruno Haible  <bruno@clisp.org>
80897
80898         * lib/gettext.h: Update from GNU gettext 0.14.2.
80899
80900 2005-02-23  Simon Josefsson  <jas@extundo.com>
80901
80902         * m4/iconvme.m4: New file.
80903
80904 2005-02-23  Jim Meyering  <jim@meyering.net>
80905
80906         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80907         change.
80908         Thanks to Bruno Haible for catching it.
80909
80910 2005-02-22  Simon Josefsson  <jas@extundo.com>
80911
80912         * modules/iconvme: New file.
80913
80914         * MODULES.html.sh: Add iconvme.
80915
80916 2005-02-22  Simon Josefsson  <jas@extundo.com>
80917
80918         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80919
80920 2005-02-22  Simon Josefsson  <jas@extundo.com>
80921
80922         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80923
80924 2005-02-22  Jim Meyering  <jim@meyering.net>
80925
80926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80927         s/ifndef/ifdef/.
80928
80929 2005-02-20  Neil Conway  <neilc@samurai.com>
80930
80931         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80932         returned by OSX/Darwin if the specified buffer is not large
80933         enough for the hostname.
80934
80935 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80936
80937         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80938         pass it to _help, otherwise the latter coredumps trying to
80939         dereference state.root_argp.
80940
80941 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80942
80943         * modules/chdir-long (Depends-on): Add memrchr.
80944         * modules/memrchr (Files): Add lib/memrchr.h.
80945         (Include): "memrchr.h".
80946
80947 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80950
80951 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * lib/memrchr.h: New file.
80954         * lib/chdir-long.c: Include it.
80955         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80956         Don't bother including stddef.h.
80957
80958 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80961         inclusion.
80962         Include <sys/types.h>, for dev_t.
80963         (ME_DUMMY, ME_REMOTE): Move from here....
80964         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80965         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80966         Dmitry V. Levin.
80967         Include mountlist.h first, to test the interface.
80968
80969 2005-01-29  Bruno Haible  <bruno@clisp.org>
80970
80971         * lib/progname.c (program_name): Initialize.
80972         Needed when linking statically on MacOS X.
80973
80974 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         Sync from coreutils.
80977         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80978         (Depends-on): Add c-strtod.
80979         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80980
80981 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         Sync from coreutils.
80984         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80985
80986         Remove files that are specific to coreutils.
80987         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80988
80989 2005-01-28  Bruno Haible  <bruno@clisp.org>
80990
80991         * modules/javacomp: New file.
80992         * MODULES.html.sh (Java): Add javacomp.
80993
80994 2005-01-28  Bruno Haible  <bruno@clisp.org>
80995
80996         * m4/javacomp.m4: New file, from GNU gettext.
80997
80998 2005-01-28  Bruno Haible  <bruno@clisp.org>
80999
81000         * lib/javacomp.sh.in: New file, from GNU gettext.
81001         * lib/javacomp.h: New file, from GNU gettext.
81002         * lib/javacomp.c: New file, from GNU gettext.
81003
81004 2005-01-26  Simon Josefsson  <jas@extundo.com>
81005
81006         * lib/gai_strerror.c: Use GPL in header.
81007
81008 2005-01-26  Bruno Haible  <bruno@clisp.org>
81009
81010         * modules/javaexec: New file.
81011         * MODULES.html.sh (Java): Add javaexec.
81012
81013 2005-01-26  Bruno Haible  <bruno@clisp.org>
81014
81015         * m4/javaexec.m4: New file, from GNU gettext.
81016
81017 2005-01-26  Bruno Haible  <bruno@clisp.org>
81018
81019         * lib/javaexec.sh.in: New file, from GNU gettext.
81020         * lib/javaexec.h: New file, from GNU gettext.
81021         * lib/javaexec.c: New file, from GNU gettext.
81022
81023 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81024
81025         * modules/lchown (Depends-on): Remove lchown.h
81026
81027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81028
81029         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81030         must be defined if the header file was not found, in order
81031         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81032
81033 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81034
81035         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81036         initializers for struct pentry_state.
81037         (__argp_error): Check return value of __asprintf
81038         (__argp_failure): Translate error message
81039
81040         * lib/argp-parse.c: Removed braces around the expansion of N_()
81041
81042 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81043
81044         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81045         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81046         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81047         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81048         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81049         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81050         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81051         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81052         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81053         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81054         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81055         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81056         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81057         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81058         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81059         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81060         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81061         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81062         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81063         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81064         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81065         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81066         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81067         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81068         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81069         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81070         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81071         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81072         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81073         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81074         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81075         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81076         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81077         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81078         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81079         Use an all-permissive copyright notice, recommended by RMS.
81080
81081 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * modules/chdir-long (Depends-on): Remove mempcpy.
81084
81085 2005-01-21  Jim Meyering  <jim@meyering.net>
81086
81087         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81088         same value as for Solaris 9.
81089
81090         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81091         component length.  This included changing the parameter to be
81092         of type `char *' rather than `char const *'.
81093         * lib/chdir-long.h (chdir_long): Update prototype.
81094
81095         * lib/openat.c (fdopendir, fstatat): New functions.
81096         * lib/openat.h: Include headers required for use of DIR and struct
81097         stat.
81098         [AT_SYMLINK_NOFOLLOW]: Define.
81099         (fdopendir, fstatat): Add prototypes.
81100
81101 2005-01-21  Bruno Haible  <bruno@clisp.org>
81102
81103         * modules/classpath: New file.
81104         * MODULES.html.sh (Java): Add classpath.
81105
81106 2005-01-21  Bruno Haible  <bruno@clisp.org>
81107
81108         * lib/classpath.h: New file, from GNU gettext.
81109         * lib/classpath.c: New file, from GNU gettext.
81110
81111 2005-01-20  Simon Josefsson  <jas@extundo.com>
81112
81113         * modules/version-etc-fsf: New file.
81114
81115 2005-01-20  Simon Josefsson  <jas@extundo.com>
81116
81117         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81118         * lib/version-etc.c: Remove version_etc_copyright.
81119         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81120         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81121
81122 2005-01-20  Simon Josefsson  <jas@extundo.com>
81123
81124         * lib/base64.h (isbase64): Add.
81125
81126         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81127         using a unsigned prototype, don't inline.
81128         (base64_decode): Use it.
81129
81130 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81133         it.
81134
81135 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * lib/save-cwd.c (save_cwd): Remove code to support the case
81138         where fchdir is missing or flaky.
81139
81140 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81143
81144 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81145
81146         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81147         AC_LIBSOURCES now does this.
81148         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81149         with new ullong_max module.
81150
81151 2005-01-19  Bruno Haible  <bruno@clisp.org>
81152
81153         * modules/sh-quote: New file.
81154         * MODULES.html.sh (Executing programs): Add sh-quote.
81155
81156 2005-01-19  Bruno Haible  <bruno@clisp.org>
81157
81158         * lib/sh-quote.h: New file, from GNU gettext.
81159         * lib/sh-quote.c: New file, from GNU gettext.
81160
81161 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         Merge from coreutils.
81164         * m4/ullong_max.m4: New file.
81165         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81166         (gl_MACROS): Assume localeconv exists.
81167
81168 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         Merge changes from coreutils, as described below in several
81171         changelogs dated today.
81172
81173         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81174         (O_DIRECTORY): Remove; not needed here, since "." must be
81175         a directory.  All uses removed.
81176         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81177         universal on Suns, and we also need to test for IRIX.
81178         Revamp code to use 'if' rather than '#if'.
81179         Avoid unnecessary comparison of cwd->desc to 0.
81180
81181         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81182         for known valid error numbers rather than observed invalid ones.
81183
81184 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81185
81186         * modules/ullong_max: New file.
81187
81188         * modules/chdir-long, modules/openat: New files.
81189         * modules/save-cwd (Depends-on): Depend on chdir-long.
81190         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81191
81192 2005-01-18  Jim Meyering  <jim@meyering.net>
81193
81194         Merge from coreutils.
81195         * m4/chdir-long.m4, m4/openat.m4: New files.
81196         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81197         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81198         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81199         is sane and DOES follow symlinks.  Besides, testing 20 different
81200         systems found no broken chown implementations.
81201         Prompted by a change in rsync's copy of this macro.
81202         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81203
81204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81205
81206         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81207         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81208         NULL-means-set-to-current-time semantics.
81209         Remove temporary file immediately, rather than waiting
81210         for configure's at-exit trap code to do it.
81211
81212 2005-01-18  Jim Meyering  <jim@meyering.net>
81213
81214         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81215
81216         * lib/utimens.c (futimens): Account for the fact that futimes
81217         can also fail with errno == ENOSYS or errno == ENOENT.
81218         Patch from Dmitry V. Levin.
81219
81220         Change the name of the robust chdir function from chdir to chdir_long.
81221         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81222         (restore_cwd): Use chdir_long, not chdir.
81223         * lib/chdir-long.c: Renamed from chdir.c.
81224         * lib/chdir-long.h: Renamed from chdir.h.
81225         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81226         Hurd.
81227
81228 2005-01-18  Bruno Haible  <bruno@clisp.org>
81229
81230         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81231         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81232         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81233         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81234         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81235         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81236         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81237         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81238         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81239         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81240         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81241         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81242         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81243         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81244         Use an all-permissive copyright notice, recommended by RMS.
81245
81246 2005-01-18  Bob Proulx  <bob@proulx.com>
81247
81248         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81249         simplify offsetof() macro construct to avoid compile failure with
81250         native HP-UX 11.0 ANSI C compiler.
81251
81252 2005-01-17  Bruno Haible  <bruno@clisp.org>
81253
81254         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81255         redundant because stpncpy.m4 takes care of it.
81256
81257 2005-01-17  Bruno Haible  <bruno@clisp.org>
81258
81259         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81260
81261 2005-01-17  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81264         used.
81265
81266 2005-01-17  Bruno Haible  <bruno@clisp.org>
81267
81268         * lib/fwriteerror.h (fwriteerror): Change specification to include
81269         fclose.
81270         * lib/fwriteerror.c: Include <stdbool.h>.
81271         (fwriteerror): At the end, close the file stream. Record whether
81272         stdout was already closed.
81273
81274 2005-01-17  Bruno Haible  <bruno@clisp.org>
81275
81276         * lib/execute.c (environ): Declare if needed.
81277         * lib/pipe.c (environ): Likewise.
81278         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81279
81280 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81281
81282         * modules/argp: Depend on vsnprintf
81283
81284 2005-01-10  Jim Meyering  <jim@meyering.net>
81285
81286         * modules/closeout (Depends-on): Add atexit.
81287
81288 2005-01-06  Bruno Haible  <bruno@clisp.org>
81289
81290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
81291
81292 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
81295         definitions to be after all include files, to avoid collisions.
81296         Problem reported by Bob Proulx.
81297
81298 2005-01-04  Jim Meyering  <jim@meyering.net>
81299
81300         Changes imported from coreutils.
81301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81302         as the mkstemp template, use a temporary directory and an
81303         8.3-friendly template to avoid trouble on systems like DJGPP.
81304         Reported by Juan M. Guerrero via Stepan Kasal.
81305         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81306         close. Remove the temporary directory right away, rather than waiting
81307         for configure's at-exit trap code to do it.
81308         Suggestion from Stepan Kasal.
81309
81310 2005-01-01  Simon Josefsson  <jas@extundo.com>
81311
81312         * gnulib-tool: Print #include directives when --import'ing.
81313
81314 2004-12-28  Simon Josefsson  <jas@extundo.com>
81315
81316         * tests/test-base64.c: Include required header files.  Remove
81317         unused variables.
81318
81319 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81320
81321         * modules/error (Depends-on): Remove gettext.
81322
81323 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81324
81325         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81326         not needed.  This removes a dependency on the gettext module.
81327         [defined _LIBC]: Do not include <libintl.h>; not needed.
81328
81329 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81330
81331         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81332         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81333
81334 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81335
81336         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81337         HAVE_DECL_STRTOLD.
81338
81339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * modules/getdate (Depends-on): Remove alloca-opt.
81342
81343 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81346
81347 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * lib/argp-parse.c: Include <stddef.h>.
81350         (alignof, alignto): New macros.
81351         (parser_init): Don't assume that void * is aligned sufficiently
81352         for struct option.
81353
81354         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81355         need to extend the stack.
81356         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81357         large.
81358
81359 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81360
81361         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81362
81363 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81366         (2004-10-24) change.  Apparently this was a false alarm.
81367
81368         * modules/getdate: Depend on alloca-opt, not alloca.
81369
81370 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81373         Remove now-obsolete comment about AIX.
81374         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81375         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81376         (YYMAXDEPTH): New macro.
81377
81378 2004-12-18  Simon Josefsson  <jas@extundo.com>
81379
81380         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81381
81382 2004-12-18  Bruno Haible  <bruno@clisp.org>
81383
81384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81385
81386 2004-12-18  Bruno Haible  <bruno@clisp.org>
81387
81388         * lib/fatal-signal.c (fatal_signals): Make non-const.
81389         (init_fatal_signals): New function.
81390         (uninstall_handlers, install_handlers): Ignore signals that were set to
81391         SIG_IGN.
81392         (at_fatal_signal): Call init_fatal_signals.
81393         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81394         SIG_IGN.
81395         Reported by Paul Eggert.
81396
81397 2004-12-18  Bruno Haible  <bruno@clisp.org>
81398
81399         * doc/alloca.texi: New file.
81400         * doc/alloca-opt.texi: New file.
81401
81402 2004-12-17  Jim Meyering  <jim@meyering.net>
81403
81404         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81405         Otherwise, install-sh could exit with improper exit status when
81406         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81407
81408 2004-12-16  Simon Josefsson  <jas@extundo.com>
81409
81410         * tests/test-base64.c: Add license.
81411
81412 2004-12-15  Stepan Kasal  <address@hidden>
81413
81414         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81415
81416 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * modules/getcwd (Files): Add m4/d-ino.m4.
81419         Suggested by Mark D. Baushke.
81420
81421 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * lib/getdate.y (textint): New member "negative".
81424         (time_zone_hhmm): New function.
81425         Expect 14 shift-reduce conflicts, not 13.
81426         (o_colon_minutes): New rule.
81427         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81428         (yylex): Set the "negative" member of signed numbers.
81429
81430 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81431
81432         * doc/getdate.texi (Time of day items, Time zone items):
81433         Describe new formats +00:00, UTC+00:00.
81434
81435 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81438         spurious "-l"s.  Problem reported by Stepan Kasal.
81439
81440 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81441
81442         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81443         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81444
81445 2004-12-04  Simon Josefsson  <jas@extundo.com>
81446
81447         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81448         Vandoorselaere <yoann@prelude-ids.org>.
81449
81450 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81451
81452         Changes imported from coreutils.
81453         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81454         exist.
81455         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81456
81457 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81458
81459         Changes imported from coreutils.
81460         * lib/hard-locale.c: Assume <locale.h> exists.
81461         Include "strdup.h".
81462         (GLIBC_VERSION): New macro.
81463         (hard_locale): Assume setlocale exists.
81464         Rewrite to avoid #ifdef.
81465         Use strdup rather than malloc + strcpy.
81466         * lib/human.c: Assume <locale.h> exists.
81467         (human_readable): Assume localeconv exists.
81468
81469 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81470
81471         * modules/hard-locale (Depends-on): Add strdup.
81472
81473 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81474
81475         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81476         convert T2, not T.  (Imported from libc.)
81477
81478 2004-11-30  Simon Josefsson  <jas@extundo.com>
81479
81480         * modules/restrict (License): Change to LGPL.
81481
81482 2004-11-30  Simon Josefsson  <jas@extundo.com>
81483
81484         * m4/restrict.m4: Add copyright and copying conditions.
81485
81486 2004-11-30  Simon Josefsson  <jas@extundo.com>
81487
81488         * m4/base64.m4: New file.
81489
81490 2004-11-30  Simon Josefsson  <jas@extundo.com>
81491
81492         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81493         base64.
81494
81495         * tests/test-base64.c: New file.
81496
81497         * modules/base64: New file.
81498
81499 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81500
81501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81502         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81503
81504         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81505
81506 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81507
81508         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81509         (__getcwd.c): Don't restore errno; glibc doesn't.
81510         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81511         first, falling back to our code only if its results look suspicious.
81512         Ensure that the resulting buffer is only as large as necessary.
81513
81514         * lib/readutmp.c: Include readutmp.h first.
81515         Include <errno.h>, since readutmp.h no longer does that.
81516         * lib/readutmp.h: Don't include <errno.h>,
81517         <sys/param.h>, <time.h>; not needed to establish interface.
81518         (errno): Remove decl.
81519         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81520         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81521         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81522
81523 2004-11-28  Simon Josefsson  <jas@extundo.com>
81524
81525         * lib/base64.h, base64.c: New file.
81526
81527 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81528
81529         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81530
81531 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81534         (Depends-on): Remove pathmax, same.  Add mempcpy.
81535         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81536         (Makefile.am): Append getcwd.h to lib_SOURCES.
81537         (Include): Add getcwd.h.
81538         (Maintainer): Change from Jim Meyering to "all, glibc",
81539         since getdate now uses intended-for-glibc code.
81540         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81541         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81542
81543 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81544
81545         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81546         HP's ANSI C compiler.
81547         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81548         Declaring int functions causes warnings on some modern systems and
81549         shouldn't be needed to compile on ancient ones.
81550         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81551         defined.
81552
81553         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81554         with the following changes.
81555         (__set_errno): Parenthesize properly.
81556         Include <stdbool.h>.
81557         (MIN, MAX, MATCHING_INO): New macros.
81558         (__getcwd): Define with prototype, not K&R form.
81559         Use heuristics to allocate default buffer on stack if possible.
81560         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81561         behavior, and to avoid the PATH_MAX limit when computing
81562         ../../../../...
81563         Use MATCHING_INO to compare inode number to file.
81564         Check for arithmetic overflow in size calculations.
81565         Fix bug in reallocation of dot array that caused getcwd to fail
81566         on directories nested deeper than 75.
81567         Be more careful about saving errno on error.
81568         Do not use realloc; use only free+malloc, as this is a bit
81569         more flexible and avoids a needless copy operation.
81570         Do not inspect st_dev and st_ino for symbolic links; POSIX
81571         doesn't specify the latter.
81572         Check for closedir errors.
81573         Avoid needless casts.
81574         Use "#ifdef weak_alias" around weak_alias, to be like other
81575         glibc code.
81576         The following changes to getcwd.c have effect only when used in
81577         gnulib; they have no effect inside glibc proper.
81578         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81579         as alloca isn't used.
81580         (alloca, __alloca): Likewise.
81581         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81582         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81583         unconditionally, as gnulib assumes C89 or better.
81584         Do not include <sys/param.h>.
81585         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81586         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81587         better.
81588         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81589         Include <dirent.h> in a way that is compatible with modern Autoconf.
81590         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81591         New macros, if not already defined.
81592         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81593         Use "_LIBC", not "defined _LIBC", for consistency.
81594         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81595         a mempcpy module.
81596         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81597         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81598         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81599         credit only to Jim Meyering and adjust the copyright dates.
81600         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81601         <stdlib.h>, <unistd.h>, "pathmax.h".
81602         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81603         (INITIAL_BUFFER_SIZE): Remove.
81604         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81605
81606 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81609         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81610         Use the _ONCE methods, for efficiency.
81611         Check for fcntl.h.  In test program, include <errno.h>
81612         and <fcntl.h> if available.  Remove old K&R cruft from
81613         test program.  Check for common errors in GNU/Linux,
81614         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81615         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81616         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81617         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81618         name accordingly.
81619         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81620         accommodate new getcwd.c.
81621         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81622         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81623         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81624         that's all we need now.
81625
81626 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81627
81628         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81629         argp-parse.c depends on getopt internals, that means we should
81630         always use our getopt, to be on the safe side.
81631         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81632         order not to spoil the result of an eventual previous invocation
81633         of gl_GETOPT_SUBSTITUTE.
81634
81635 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81636
81637         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81638         redefinition warnings. To avoid them, include the defines
81639         in `#if !defined __need_getopt ... #endif'. The only place
81640         where __getopt_argv_const is used is in definitions
81641         of getopt_long and getopt_long_only below, which are as well
81642         protected by `#ifndef __need_getopt'.
81643         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81644         __need_getopt after including <stdio.h> and <unistd.h> These
81645         headers might have defined it.
81646
81647 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81650
81651 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81654         (futimens): New function, which uses futimes if available.
81655         (futimens, utimens): Support timespec==NULL, with same semantics
81656         as utime and utimens.
81657         * lib/utimens.h (futimens): New decl.
81658
81659 2004-11-23  Jim Meyering  <jim@meyering.net>
81660
81661         * lib/getopt_.h: Remove trailing blanks.
81662
81663 2004-11-23  Jim Meyering  <jim@meyering.net>
81664
81665         * lib/__fpending.c: Add comment.
81666
81667 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81668
81669         * modules/canonicalize (Depends-on): Add xreadlink.
81670         Problem reported by James Youngman.
81671
81672 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81675         New macros.
81676         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81677         optopt): Use them instead of invoking ## directly; otherwise, the
81678         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81679
81680 2004-11-19  Bruno Haible  <bruno@clisp.org>
81681
81682         * lib/strtok_r.c: Move comments from here...
81683         * lib/strtok_r.h: ... to here.
81684
81685 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81688         implementations that mishandle size_t overflow.
81689
81690 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81691
81692         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81693         might fail.  Problem reported by Yoann Vandoorselaere.
81694         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81695         implementations that mishandle size_t overflow.
81696
81697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         * modules/canon-host (Depends-on): Add strdup.
81700
81701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81702
81703         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81704
81705 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * lib/canon-host.c: Include "strdup.h".
81708         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81709         Use strdup instead of malloc/strcpy to duplicate strings.
81710
81711         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81712         (human_space_before_unit): New constant.
81713         * lib/human.c (human_readable): Support it.
81714
81715         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81716         (xgetcwd): Set errno correctly when failing.
81717         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81718         the failure is actually due to a PATH_MAX problem.
81719
81720         Further getopt changes to make it more likely that glibc will
81721         buy the changes back.
81722         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81723         (getopt): Use it, so to preserve glibc semantic
81724         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81725         when compiling for libc.
81726         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81727         (getopt_long, getopt_long_only): Use it.
81728
81729         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81730         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81731         (getopt): Argv is now char * const *, as per standard.
81732         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81733         not char *__getopt_argv_const *.
81734         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81735         _getopt_long_only_r): Likewise.
81736         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81737         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81738         _getopt_long_r, _getopt_long_only_r): Likewise.
81739         * lib/getopt_.h (__getopt_argv_const): Remove.
81740         (getopt): Argv is now char * const *, as per standard.
81741
81742         * lib/getdate.y (tORDINAL): New token.
81743         (day, relunit): Allow it for relative times.
81744         (relative_time_table): Use tORDINAL for ordinals.
81745
81746 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81747
81748         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81749         Document that "second" isn't allowed as an ordinal number.
81750
81751 2004-11-16  Jim Meyering  <jim@meyering.net>
81752
81753         * modules/closeout (Depends-on): Add fpending.
81754
81755 2004-11-15  Jim Meyering  <jim@meyering.net>
81756
81757         * lib/closeout.c: Include "__fpending.h" once again.
81758         Include <stdbool.h>.
81759         (close_stdout): Don't fail just because stdout was closed initially,
81760         since some programs don't write to stdout in the normal course of
81761         operation (other than --version and --help), and we don't want this
81762         function to make e.g. `touch file >&-' fail.
81763         But do fail if it was closed and someone has tried to write to it.
81764         E.g., `printf foo >&-' must fail.
81765
81766 2004-11-13  Jim Meyering  <jim@meyering.net>
81767
81768         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81769
81770 2004-11-12  Simon Josefsson  <jas@extundo.com>
81771
81772         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81773         small doc fix is still pending.
81774
81775 2004-11-11  Simon Josefsson  <jas@extundo.com>
81776
81777         * modules/strtok_r: New file.
81778
81779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81780         strtok_r.
81781
81782 2004-11-11  Simon Josefsson  <jas@extundo.com>
81783
81784         * m4/strtok_r.m4: New file.
81785
81786         * m4/getopt.m4: Replace opterr.
81787
81788 2004-11-11  Simon Josefsson  <jas@extundo.com>
81789
81790         * lib/strtok_r.h, strtok_r.c: New file.
81791
81792 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81795         of replacing opterr, getopt, etc.  This should handle the
81796         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81797
81798 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81801         we can stop lying to compilers about the constness of argv when we
81802         are compiled outside glibc.
81803         (getopt, getopt_long, getopt_long_only): Use it.
81804         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81805         _getopt_internal, getopt): Likewise.
81806         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81807         _getopt_long_only_r): Likewise.
81808         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81809         _getopt_long_r, _getopt_long_only_r): Likewise.
81810
81811         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81812         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81813         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81814         the other external symbols.
81815         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81816         declaration, since the above renaming now works around collisions.
81817
81818 2004-11-11  Jim Meyering  <jim@meyering.net>
81819
81820         * lib/linebreak.c: Remove trailing blanks.
81821         * lib/alloca_.h: Likewise.
81822         * lib/acosl.c: Likewise.
81823         * lib/euidaccess.c: Likewise.
81824         * lib/allocsa.h: Likewise.
81825
81826 2004-11-10  Simon Josefsson  <jas@extundo.com>
81827
81828         * m4/getaddrinfo.m4: New file.
81829
81830 2004-11-10  Simon Josefsson  <jas@extundo.com>
81831
81832         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81833
81834 2004-11-10  Simon Josefsson  <jas@extundo.com>
81835
81836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81837         getaddrinfo.
81838
81839         * modules/getaddrinfo: New file.
81840
81841 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81844
81845 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * lib/mktime.c (SHR): New macro, which is a portable
81848         substitute for >> that should work even on Crays.
81849         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81850         Problem reported by Mark D. Baushke in
81851         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81852         * lib/getdate.y (SHR): Likewise.
81853         (tm_diff): Use it.
81854         * lib/strftime.c (SHR): Likewise.
81855         (tm_diff): Use it.
81856         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81857         quote_these_too, so that right shifts are well defined.  All uses
81858         changed.
81859
81860 2004-11-10  Jim Meyering  <jim@meyering.net>
81861
81862         Ensure that no close failure goes unreported.
81863         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81864         return early when it seems there's nothing to flush.
81865         Don't include __fpending.h.
81866
81867 2004-11-10  Jim Meyering  <jim@meyering.net>
81868
81869         * modules/closeout (Depends-on): Remove fpending.
81870
81871 2004-11-10  Jim Meyering  <jim@meyering.net>
81872
81873         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81874
81875 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81876
81877         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81878         gl_FUNC_STRFTIME.
81879         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81880         and AC_REQUIRE when possible, to avoid duplicate checks.
81881         Check for <wchar.h>.
81882
81883 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81884
81885         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81886
81887 2004-11-09  Bruno Haible  <bruno@clisp.org>
81888
81889         * m4/sockpfaf.m4: New file.
81890
81891 2004-11-05  Bruno Haible  <bruno@clisp.org>
81892
81893         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81894         Reported by Mark D. Baushke <mdb@cvshome.org>.
81895
81896 2004-11-04  Bruno Haible  <bruno@clisp.org>
81897
81898         2004-09-11  Bruno Haible  <bruno@clisp.org>
81899                 * allocsa.valgrind: New file.
81900         2004-02-06  Bruno Haible  <bruno@clisp.org>
81901                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81902                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81903                 Reported by Christopher Seip <chris.seip@hp.com>.
81904
81905 2004-11-04  Bruno Haible  <bruno@clisp.org>
81906
81907         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81908         (Makefile.am): Distribute it.
81909
81910 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81913         with errno == ERANGE if the buffer is too small.
81914         Problem reported by Mark D. Baushke.
81915
81916 2004-11-03  Albert Chin  <china@thewrittenword.com>
81917             Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81920         equivalent, substitute $ac_type for equivalent type rather than
81921         blindly using uint32_t *always* which won't work if uint32_t is not
81922         available.  Define _UINT32_T to work around typedef of uint32_t if
81923         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81924         2.5.1.
81925
81926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * m4/jm-macros.m4: Sync from coreutils.
81929         (gl_MACROS): Check for mbrlen, for pathchk.
81930         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81931
81932 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81933
81934         * lib/xreadlink.c (MAXSIZE): New macro.
81935         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81936         size does not exceed MAXSIZE.  Avoid cast.
81937         As suggested by Mark D. Baushke in
81938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81939         if readlink fails with buffer size just under MAXSIZE, try again
81940         with MAXSIZE.
81941
81942 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81945
81946 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81947         and  Paul Eggert  <eggert@cs.ucla.edu>
81948
81949         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81950         (get_date): Overparenthesize to avoid GCC warning.
81951
81952 2004-11-02  Bruno Haible  <bruno@clisp.org>
81953
81954         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81955         returns void.
81956
81957 2004-11-02  Bruno Haible  <bruno@clisp.org>
81958
81959         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81960         function returns void.
81961
81962 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81963
81964         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81965         fflush_unlocked, flockfile, funlockfile, funlockfile,
81966         fputs_unlocked, putc_unlocked.
81967
81968 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81971         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81972         already declared.
81973
81974 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         * modules/getdate (Files): Add doc/getdate.texi.
81977         (Depends-on): Add setenv, xalloc.
81978
81979 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * lib/getdate.y: Add support for TZ="foo" within a date string.
81982         Fix some bugs near time_t boundaries.  Reject dates with
81983         out-of-range components, e.g., "Sept 31".
81984         Include <stdlib.h>, "setenv.h", "xalloc.h".
81985         (ISDIGIT_LOCALE): Remove; unused.
81986         Note that the TZ and time functions used here are not reentrant.
81987         (mktime_ok, get_tz): New functions.
81988         (TZBUFSIZE): New constant.
81989         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81990         This requires that we sometimes generate our own TZ="XXX..." setting.
81991
81992 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         * doc/getdate.texi: New file, from coreutils with modifications for
81995         the new TZ parsing.
81996
81997 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81998
81999         * lib/mktime.c (not_equal_tm): Remove redundant check.
82000
82001 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82002
82003         * modules/regex (lib_SOURCES): Add regex.c.
82004         Reported by James Youngman in
82005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
82006
82007 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82008
82009         * lib/getdate.y: Use Bison 1.875 features, and some minor
82010         code cleanups.  This change does not affect semantics.
82011         Don't include <stdlib.h>; no longer needed.
82012         Don't include unlocked-io.h; only the "#if TEST" code uses
82013         stdio, and performance isn't crucial there.
82014         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82015         Bison 1.875 features as described below.
82016         All uses of "PC." replaced by "pc->".
82017         (YYSTYPE): Add a forward declaration.
82018         (yylex, yyerror): Use full prototypes in forward decls.
82019         Use "%pure-parser" rather than obsolescent "%pure_parser".
82020         Use %parse-param and %lex-param instead of obsolescent
82021         YYPARSE_PARAM and YYLEX_PARAM.
82022         (meridian_table, month_and_day_table, time_units_table,
82023         relative_time_table, time_zone_table, military_table,
82024         lookup_zone, lookup_word, get_date):
82025         Use NULL instead of 0 where appropriate.
82026         (to_hour): Avoid abort (), to avoid a dependency on
82027         stdlib.h.
82028         (yyerror, yylex): Now accepts parser_control * arg.
82029         (main) [TEST]: Use '\0' rather than 0 for char.
82030
82031 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82032
82033         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82034
82035 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82036
82037         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82038         It's now the caller's responsibility to handle the case where
82039         !HAVE_GETPAGESIZE && !defined getpagesize.
82040
82041         * lib/mktime.c (leapyear): Arg is long int, not int.
82042
82043 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82046
82047 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82048
82049         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82050         missing.  Problem reported by James Youngman.
82051
82052 2004-10-16  Simon Josefsson  <jas@extundo.com>
82053
82054         * gnulib-tool: Fix comments.  Fix parse problem.
82055         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82056
82057 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82058
82059         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82060         implementation of getopt_long.  Problem reported by Alexander Taler in:
82061         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82062
82063 2004-10-15  Bruno Haible  <bruno@clisp.org>
82064
82065         * gnulib-tool: Untabify. Initialize supplied_libname.
82066         (func_usage): More homogenous output.
82067         (func_modules_transitive_closure, func_modules_to_filelist,
82068         func_emit_lib_Makefile_am): New functions.
82069         (func_import): New function, extracted from big case statement. Use
82070         func_get_license, func_modules_transitive_closure,
82071         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82072         opt_lgpl. Don't use test -a, as it's not portable.
82073         (func_create_testdir): Use func_modules_transitive_closure,
82074         func_modules_to_filelist, func_emit_lib_Makefile_am.
82075
82076 2004-10-15  Bruno Haible  <bruno@clisp.org>
82077
82078         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82079
82080 2004-10-15  Bruno Haible  <bruno@clisp.org>
82081
82082         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82083         the portions belonging to each module.
82084         Suggested by Derek Robert Price <derek@ximbiot.com>.
82085
82086 2004-10-12  Simon Josefsson  <jas@extundo.com>
82087
82088         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82089         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82090         to real functions.
82091
82092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82093
82094         * modules/vsnprintf: New file.
82095
82096 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82097
82098         * m4/vsnprintf.m4: New file.
82099
82100 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82101
82102         * lib/vsnprintf.h: New file.
82103         * lib/vsnprintf.c: New file.
82104
82105 2004-10-11  Bruno Haible  <bruno@clisp.org>
82106
82107         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82108         vsnprintf.
82109
82110 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82111
82112         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82113
82114 2004-10-07  Bruno Haible  <bruno@clisp.org>
82115
82116         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82117         fits into the provided buffer.
82118
82119 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * lib/diacrit.c, diacrit.h: Add GPL notice.
82122
82123         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82124         notice.
82125         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82126         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82127         This avoids a potential constant-folding bug.
82128
82129 2004-10-05  Bruno Haible  <bruno@clisp.org>
82130
82131         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82132         for the declaration of strsep.
82133
82134 2004-10-05  Bruno Haible  <bruno@clisp.org>
82135
82136         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82137
82138 2004-10-04  Simon Josefsson  <jas@extundo.com>
82139
82140         * modules/memmem: New file.
82141         * tests/test-memmem.c: New file.
82142         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82143
82144 2004-10-04  Simon Josefsson  <jas@extundo.com>
82145
82146         * m4/memmem.m4: New file.
82147
82148 2004-10-04  Simon Josefsson  <jas@extundo.com>
82149
82150         * lib/memmem.h: New file.
82151         * lib/memmem.c: New file, taken from glibc.
82152
82153 2004-10-04  Simon Josefsson  <jas@extundo.com>
82154
82155         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82156         '#ifdef USE_UNLOCKED_IO'.
82157
82158 2004-10-04  Simon Josefsson  <jas@extundo.com>
82159
82160         * config/srclist.txt: Add memmem from glibc.
82161
82162 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82163
82164         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82165
82166         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82167         modules/exclude, modules/getdate, modules/getline,
82168         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82169         modules/getusershell, modules/linebuffer, modules/md5,
82170         modules/mountlist, modules/posixtm, modules/readtokens,
82171         modules/readutmp, modules/regex, modules/sha1,
82172         modules/version-etc, modules/yesno:
82173         Remove dependency on unlocked-io.
82174
82175 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82178
82179         * m4/unlocked-io.m4: Add copyright notice.
82180         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82181
82182 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82185         * lib/xmalloc.c (xmemdup): Likewise.
82186         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82187         XFREE): Remove these long-obsolescent macros.
82188         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82189         * lib/xstrdup.c: Remove.
82190
82191         * lib/regex.c (re_comp): Cast gettext return value to char *,
82192         Problem reported by Martin Neitzel via Mark D. Baushke.
82193
82194 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82197         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82198         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82199         regex.c, sha1.c, version-etc.c, yesno.c:
82200         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82201         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82202         the includer's responsibility.
82203
82204         Sync from coreutils.
82205
82206         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82207         points to the start of a string, as the C Standard says the
82208         resulting behavior is undefined.
82209
82210         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82211         simple -> simple_backups, numbered_existing ->
82212         numbered_existing_backups, numbered -> numbered_backups
82213         to avoid shadowing problems.  All uses changed.
82214         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82215         * lib/backupfile.c (check_extension, numbered_backup):
82216         Rename locals to avoid shadowing 'basename'.
82217         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82218         once.
82219
82220         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82221         * lib/.cvsignore: Add getopt.h.
82222
82223 2004-10-04  Bruno Haible  <bruno@clisp.org>
82224
82225         * modules/README: New file.
82226         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82227         not a module.
82228
82229 2004-10-02  Jim Meyering  <jim@meyering.net>
82230
82231         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82232
82233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82234
82235         * modules/strsep: New file.
82236
82237 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82238
82239         * m4/strsep.m4: New file.
82240
82241 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82242
82243         * lib/strsep.h: New file.
82244         * lib/strsep.c: New file.
82245
82246 2004-10-01  Simon Josefsson  <jas@extundo.com>
82247
82248         * lib/snprintf.c (snprintf): Handle size==0.
82249
82250 2004-10-01  Simon Josefsson  <jas@extundo.com>
82251             Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82254         (snprintf): Declare 'args'.
82255
82256 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82257
82258         * lib/snprintf.c: Remove comments as to why each header is needed.
82259
82260 2004-10-01  Bruno Haible  <bruno@clisp.org>
82261
82262         * MODULES.html.sh: Add strsep.
82263
82264 2004-09-30  Simon Josefsson  <jas@extundo.com>
82265
82266         * modules/snprintf: New file.
82267
82268 2004-09-30  Simon Josefsson  <jas@extundo.com>
82269
82270         * m4/snprintf.m4: New file.
82271
82272 2004-09-30  Simon Josefsson  <jas@extundo.com>
82273
82274         * lib/snprintf.h, lib/snprintf.c: New files.
82275
82276 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82277
82278         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82279         (hol_entry_help): Never translate an empty string.
82280         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82281         * lib/argp.h (OPTION_NO_TRANS): New option.
82282
82283 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * modules/argp (Maintainer): Replace Simon Josefsson
82286         by Sergey Poznyakoff.
82287
82288 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82289
82290         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
82291         changes merged back into glibc.
82292
82293 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82296
82297 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82298
82299         * lib/xvasprintf.c: Include xalloc.h.
82300         (xvasprintf): Use xalloc_die, not xmalloc_die.
82301
82302 2004-09-29  Bruno Haible  <bruno@clisp.org>
82303
82304         * modules/alloca-opt: New file, derived from modules/alloca.
82305         * modules/allocsa: Depend on alloca-opt instead of alloca.
82306         * modules/setenv: Likewise.
82307         * modules/vasnprintf: Likewise.
82308         * MODULES.html.sh: Add alloca-opt.
82309
82310 2004-09-28  Simon Josefsson  <jas@extundo.com>
82311
82312         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82313         LGPL, and to replace license template from GPL to LGPL.
82314
82315 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * modules/dummy: Change license to LGPL.
82318
82319 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82322
82323 2004-09-24  Simon Josefsson  <jas@extundo.com>
82324
82325         * modules/minmax (License): Change from GPL to LGPL.
82326
82327 2004-09-23  Simon Josefsson  <jas@extundo.com>
82328
82329         * gnulib-tool (--import): Typo.
82330
82331 2004-09-23  Simon Josefsson  <jas@extundo.com>
82332
82333         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82334
82335 2004-09-22  Bruno Haible  <bruno@clisp.org>
82336
82337         * modules/*: Add 'License' field.
82338         * gnulib-tool: Accept --extract-license option.
82339         (func_get_license): New function.
82340
82341 2004-09-21  Bruno Haible  <bruno@clisp.org>
82342
82343         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82344         Reported by Simon Josefsson.
82345
82346 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82347
82348         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82349         gl_AC_TYPE_LONG_LONG.
82350
82351 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82352
82353         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82354
82355 2004-09-18  Simon Josefsson  <jas@extundo.com>
82356         and  Paul Eggert  <eggert@cs.ucla.edu>
82357
82358         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82359         calls with autoreconf.  Define GL_LIB.
82360
82361 2004-09-14  Karl Berry  <karl@gnu.org>
82362
82363         * config/srclist.txt: unsync setenv.c, sigh.
82364
82365 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82366
82367         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82368         Problem reported by Bruno Haible in:
82369         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82370
82371 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82372
82373         * config/srclist.txt: Comment out argp-pvh.c.
82374
82375 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82378         in case some system header has #define'd it.  Problem reported by
82379         Soeren D. Schulze in
82380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82381
82382 2004-09-09  Karl Berry  <karl@gnu.org>
82383
82384         * regex.[ch]: delete from the root.  These were supposed to be
82385                 synced with emacs cvs, but this has not happened for about
82386                 a year, and anyway nothing else uses emacs regex.[ch].
82387                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82388                 lib/regex[.ch] is untouched.
82389
82390 2004-09-09  Bruno Haible  <bruno@clisp.org>
82391
82392         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82393
82394 2004-09-09  Bruno Haible  <bruno@clisp.org>
82395
82396         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82397         modifications.
82398         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82399
82400 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82401
82402         * modules/xvasprintf: New file.
82403         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82404
82405 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82406
82407         * lib/xvasprintf.h: New file.
82408         * lib/xvasprintf.c: New file.
82409         * lib/xasprintf.c: New file.
82410
82411 2004-09-08  Bruno Haible  <bruno@clisp.org>
82412
82413         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82414
82415 2004-09-08  Bruno Haible  <bruno@clisp.org>
82416
82417         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82418         length is > INT_MAX.
82419         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82420         more.
82421
82422 2004-09-08  Bruno Haible  <bruno@clisp.org>
82423
82424         * lib/stdint_.h: New file, taken from GNU clisp.
82425
82426 2004-09-08  Bruno Haible  <bruno@clisp.org>
82427             Oskar Liljeblad  <oskar@osk.mine.nu>
82428
82429         * modules/stdint: New file.
82430         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82431
82432 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82433
82434         Import from coreutils.
82435         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82436         strings on unbounded length.  alloca's performance benefits aren't
82437         that important here.
82438         (V_STRDUP): Remove.
82439         (parse_with_separator): New function, with most of the internals
82440         of the old parse_user_spec.  Allow user to omit both user and group,
82441         for compatibility with FreeBSD.
82442         Clone only the user name, not the entire spec.
82443         Do not set *uid, *gid unless entirely successful.
82444         Avoid memory leak in some failing cases.
82445         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82446         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82447         (parse_user_spec): Rewrite to use parse_with_separator.
82448
82449 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * modules/userspec: Don't depend on alloca.
82452
82453 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82454
82455         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82456
82457 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82460         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82461         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82462
82463 2004-08-16  Simon Josefsson  <jas@extundo.com>
82464
82465         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82466         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82467         Add --dry-run for --import.
82468         Let user provided command line parameters override configure.ac
82469         settings.
82470
82471 2004-08-12  Simon Josefsson  <jas@extundo.com>
82472
82473         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82474         as discussed with Paul Eggert in threads rooted at
82475         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82476         and
82477         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82478         Before, the test was empty, and relied on ELIDE_CODE in source
82479         code.)
82480         (gl_PREREQ_GETOPT): New macro.
82481         (gl_GETOPT): Use them.
82482
82483 2004-08-12  Simon Josefsson  <jas@extundo.com>
82484
82485         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82486         * lib/getopt_.h: Renamed from getopt.h.
82487
82488 2004-08-12  Simon Josefsson  <jas@extundo.com>
82489
82490         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82491         Change default library name from libfoo to libgnu.
82492         Now, if you have a configure.ac that says:
82493                 gl_SOURCE_BASE(gl)
82494                 gl_M4_BASE(gl/m4)
82495                 gl_MODULES(error getopt etcetera)
82496                 gl_INIT
82497         you can import all you need by running:
82498                 ../gnulib/gnulib-tool --import
82499
82500         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82501         (Makefile.am): Rewrite, use logic from argz.
82502         (Include): Use <getopt.h> instead of "getopt.h".
82503
82504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82505
82506         * modules/argp (Files): Add m4/unlocked-io.m4.
82507         (Depends-on): Add extensions.
82508
82509 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82510
82511         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82512         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82513         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82514         Check for program_invocation_name, program_invocation_short_name,
82515         flockfile, funlockfile, features.h, _getopt_long_only_r.
82516
82517 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82520         its complicated substitute.
82521         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82522         and program_invocation_name.
82523         (__argp_basename) [!_LIBC]: Remove; the only use was
82524         replaced by its body.
82525         (__argp_short_program_name): Change condition from
82526         !defined __argp_short_program_name to
82527         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82528         to match argp-namefrob.h.
82529         (__argp_failure): Don't assume strerror_r returns char *.
82530         * lib/argp-parse.c (N_): Define unconditionally.
82531         (argp_default_options): Fill out initializers with 0 to avoid
82532         gcc warnings.
82533
82534 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82535
82536         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82537         getopt1.c.
82538
82539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         Merge from coreutils.
82542
82543         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82544
82545         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82546         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82547
82548 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82549
82550         Merge from coreutils.
82551
82552         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82553         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82554         for Reliant Unix 5.43.
82555
82556         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82557         (union fooround): Use uintmax_t, not long int.
82558         The rest is a merge from libc:
82559         [defined _LIBC]: Include <shlib-compat.h>.
82560         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82561
82562         * lib/settime.c (settime): Recode to avoid warning with
82563         Sun Forte C 6U2.
82564
82565         * lib/strverscmp.c: Convert to UTF-8.
82566
82567 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82570         m4/uintmax_t.m4.
82571
82572 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82573
82574         * modules/xalloc-die: New file.
82575         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82576
82577         * modules/md5 (Files): Add m4/uint32_t.m4.
82578         * modules/sha1: Renamed from modules/sha.
82579         (Files):
82580         Rename lib/sha.h to lib/sha1.h.
82581         Rename lib/sha.c to lib/sha1.c.
82582         Rename m4/sha.m4 to m4/sha1.m4.
82583         (lib_SOURCES): Likewise.
82584         (configure.ac): Rename gl_SHA to gl_SHA1.
82585         (Include): sha.h -> sha1.h.
82586
82587 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82588
82589         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82590         * m4/sha1.m4: Renamed from sha.m4.
82591         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82592
82593 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * lib/obstack.h (obstack_empty_p):
82596         Don't assume that chunk->contents is suitably aligned.
82597         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82598         Likewise. Problem reported by Benno in
82599         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82600
82601         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82602         readable.  This could be improved further but it'd take some work.
82603
82604 2004-08-08  Simon Josefsson  <jas@extundo.com>
82605
82606         * modules/xgethostname (Depends-on): Remove exit and error (not
82607         used).
82608
82609         * modules/getpass-gnu: Add getpass.h.
82610         (Depends-on): Add stdbool.
82611         * modules/getpass: Add getpass.h.
82612
82613 2004-08-08  Simon Josefsson  <jas@extundo.com>
82614
82615         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82616         Check getpass declaration.
82617
82618 2004-08-08  Simon Josefsson  <jas@extundo.com>
82619
82620         * lib/xgethostname.c: Don't include error.h (not used).
82621
82622         * lib/getpass.h: Add.
82623         * lib/getpass.c: Include getpass.h first.
82624
82625 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82626
82627         * lib/xalloc-die.c: New file.
82628         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82629         All uses removed.
82630         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82631         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82632         xalloc-die.c.
82633         (_, N_, xalloc_die): Move to xalloc-die.c.
82634         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82635         so that we needn't mess with xalloc_msg_memory_exhausted.
82636
82637         * lib/sha1.h: Renamed from sha.h.
82638         (SHA1_H): Renamed from _SHA_H.
82639         (sha1_ctx): Renamed from sha_ctx.
82640         (sha1_init_ctx): Renamed from sha_init_ctx.
82641         (sha1_process_block): Renamed from sha_process_block.
82642         (sha1_process_bytes): Renamed from sha_process_bytes.
82643         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82644         (sha1_read_ctx): Renamed from sha_read_ctx.
82645         (sha1_stream): Renamed from sha_stream.
82646         (sha1_buffer): Renamed from sha_buffer.
82647         * lib/sha1.c: Likewise; renamed from sha.c.
82648         Do not include <sys/types.h>.
82649         Include <stddef.h> rather than <stdlib.h>.
82650
82651 2004-08-08  Bruno Haible  <bruno@clisp.org>
82652
82653         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82654         FILESYSTEM_PREFIX_LEN.
82655         * lib/progreloc.c: Likewise.
82656         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82657
82658 2004-08-06  Simon Josefsson  <jas@extundo.com>
82659
82660         * modules/progname (Depends-on): Don't depend on stdbool.
82661
82662 2004-08-06  Simon Josefsson  <jas@extundo.com>
82663
82664         * modules/getsubopt: New file.
82665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82666         getsubopt.
82667
82668 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         More merge from coreutils.
82671
82672         * m4/utimens.m4, m4/utimecmp.m4: New files.
82673         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82674         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82675         prereq.m4, sha.m4: Import changes from coreutils.
82676
82677 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         More merge from coreutils.
82680         * modules/raise, modules/readtokens0, modules/utimens:
82681         * modules/utimecmp, module/xnanosleep: New files.
82682         * modules/strftime: Add lib/strftime.h.
82683         Change include from <time.h> to "strftime.h".
82684         * modules/yesno: Add lib/yesno.h.
82685         * modules/backupfile: Remove lib/addext.c.
82686         * modules/euidaccess: Add stat-macros.h.
82687         * modules/canonicalize, modules/euidaccess,
82688         modules/filemode, modules/lchown, modules/makepath,
82689         modules/rmdir, modules/stat: Likewise.
82690
82691 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82692
82693         Merge from tar.
82694         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82695         SIZE_MAX is a valid preprocessor constant.
82696         (__argp_basename): Change from "#ifndef _LIBC"
82697         to "#ifndef __argp_short_program_name", so that
82698         we don't compile these functions for tar.
82699
82700         More merges from coreutils.
82701         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82702         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82703         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82704         * lib/addext.c: Remove; no longer needed.
82705         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82706         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82707         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82708         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82709         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82710         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82711         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82712         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82713         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82714         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82715         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82716         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82717         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82718         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82719         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82720         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82721         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82722         Import changes from coreutils.
82723
82724 2004-08-05  Simon Josefsson  <jas@extundo.com>
82725
82726         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82727
82728 2004-08-05  Simon Josefsson  <jas@extundo.com>
82729
82730         * m4/getsubopt.m4: New file.
82731
82732 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82733
82734         Merge from coreutils.
82735
82736         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82737         * m4/getcwd-path-max.m4: New files.
82738
82739         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82740         FILESYSTEM_PREFIX_LEN ->
82741         FILE_SYSTEM_PREFIX_LEN.
82742         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82743         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82744         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82745         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82746
82747         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82748         prerequisite modules now handle the DOS stuff.
82749         Don't check for unistd.h.
82750
82751 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         Merge from coreutils.
82754
82755         * lib/.gdb-history: Remove; this doesn't belong here.
82756
82757         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82758         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82759         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82760         * lib/getcwd.c: New files.
82761
82762         * lib/dirname.h: Include <stdbool.h>.
82763         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82764         for consistency with POSIX terminology.  All uses changed.
82765         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82766         (strip_trailing_slashes): Use bool for booleans.
82767         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82768
82769         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82770         sometimes returns a positive errno value even when it succeeds.
82771         (print_errno_message) [!LIBC]: Fall back on strerror if
82772         __strerror_r fails.
82773
82774         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82775         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82776         (longest_relative_suffix): New function.
82777         (path_concat): Use it.  Assume first argument is not NULL.
82778         Port to DOS.  Omit redundant separators.
82779         Report an error instead of returning NULL.
82780         Use mempcpy instead of memcpy.
82781         (xpath_concat): Remove: not declared or used.
82782
82783         * lib/same.h: Include <stdbool.h>
82784         (same_name): Return bool, not int.
82785         * lib/same.c (same_name): Likewise.
82786         (errno): Don't declare; we assume C89 or better now.
82787
82788         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82789         if not already defined.
82790
82791         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82792         * lib/dup-safer.c (errno): Likewise.
82793
82794 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         Merge from coreutils.
82797         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82798         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82799         * modules/path-concat: Don't depend on strdup.
82800
82801 2004-08-03  Simon Josefsson  <jas@extundo.com>
82802
82803         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82804         * lib/progname.h: Don't include stdbool.h.
82805
82806 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82807
82808         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82809         * MODULES.html.sh (func_all_modules): Remove fatal.
82810
82811 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82812
82813         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82814
82815 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82818         working.
82819
82820 2004-08-02  Simon Josefsson  <jas@extundo.com>
82821
82822         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82823         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82824         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82825
82826 2004-08-01  Simon Josefsson  <jas@extundo.com>
82827
82828         * lib/xgetdomainname.c: Include stdlib.h, for free().
82829
82830 2004-07-19  Bruno Haible  <bruno@clisp.org>
82831
82832         * MODULES.html.sh (func_all_modules): Add dummy.
82833
82834 2004-07-16  Simon Josefsson  <jas@extundo.com>
82835
82836         * modules/dummy: New file.
82837
82838 2004-07-16  Simon Josefsson  <jas@extundo.com>
82839
82840         * lib/dummy.c: New file.
82841
82842 2004-07-16  Bruno Haible  <bruno@clisp.org>
82843
82844         * lib/backupfile.h: Add extern "C" for C++.
82845         * lib/closeout.h: Likewise.
82846         * lib/copy-file.h: Likewise.
82847         * lib/findprog.h: Likewise.
82848         * lib/full-write.h: Likewise.
82849         * lib/pathname.h: Likewise.
82850         * lib/progname.h: Likewise.
82851         * lib/stpcpy.h: Likewise.
82852         * lib/stpncpy.h: Likewise.
82853         * lib/strcase.h: Likewise.
82854         * lib/strstr.h: Likewise.
82855         * lib/xalloc.h: Likewise.
82856
82857         * lib/mbswidth.h: Add extern "C" for C++.
82858         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82859
82860 2004-07-13  Robert Millan  <robertmh@gnu.org>
82861
82862         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82863
82864 2004-07-09  Simon Josefsson  <jas@extundo.com>
82865
82866         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82867         failed without this.)
82868
82869 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82870
82871         * modules/chown (Files): Add lib/fchown-stub.c, since
82872         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82873
82874 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * lib/fchown-stub.c: New file.
82877
82878 2004-06-24  Jim Meyering  <jim@meyering.net>
82879
82880         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82881
82882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         * modules/argz: Omit "#include".
82885
82886         * MODULES.html.sh (func_all_modules): Add calloc, to match
82887         2004-06-01 addition of calloc module.
82888
82889 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * m4/argz.m4: New file, which is autoupdated from libtool.
82892
82893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82894
82895         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82896         libtool.
82897
82898 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * config/srclist-update: Don't insist on "USA." before the
82901         close-comment, as libtool omits the period and puts the */ on a
82902         separate line.
82903         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82904         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82905
82906 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82907
82908         * modules/argz: New file.
82909         * MODULES.html.sh (func_all_modules): Add argz.
82910
82911 2004-06-12  Jim Meyering  <jim@meyering.net>
82912         and  Paul Eggert  <eggert@cs.ucla.edu>
82913
82914         * modules/hash (Files): Add lib/xalloc.h.
82915         * modules/pipe (Depends-on): Add wait-process.
82916         * modules/stat (Depends-on): Add xalloc.
82917         * modules/userspec (Files): Add lib/userspec.h.
82918         * modules/xstrto
82919
82920         Upgrade from gettext-0.13.
82921         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82922         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82923         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82924
82925 2004-06-10  Jim Meyering  <jim@meyering.net>
82926
82927         * lib/calloc.c: New file.
82928
82929 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82930
82931         * lib/getdate.y (yylex): Allow space between sign and number.
82932         Problem reported by Dan Jacobson.
82933
82934 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         Merge from coreutils CVS.
82937
82938         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82939         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82940         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82941         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82942         xstrtol.m4: Fix copyright date and/or serial number.
82943
82944         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82945         See if we need an fchown replacement.
82946         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82947         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82948         and use the replacement function if we detect either defect.
82949
82950         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82951         gl_UTIMECMP.
82952
82953 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82954         and  Jim Meyering  <jim@meyering.net>
82955
82956         Merge from coreutils CVS.
82957
82958         * lib/stat-macros.h: New file, with contents from file-type.h
82959         and coreutils' system.h.
82960         * lib/file-type.c: Include "stat-macros.h".
82961         * lib/file-type.h (file_type): Move all macro definitions to new file,
82962         stat-macros.h.
82963
82964         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82965         Wrap old code with this conditional.
82966         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82967         function that does not dereference symlinks.
82968         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82969
82970         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82971         dependency problems.
82972         (xreadlink): Accept new arg SIZE, for efficiency.
82973         All decls and uses changed.
82974         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82975
82976         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82977         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82978
82979         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82980         sysexits.h.
82981
82982 2004-06-01  Jim Meyering  <jim@meyering.net>
82983
82984         * m4/calloc.m4: New file.
82985
82986 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82989         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82990         Also, fix a typo in a diagnostic.
82991
82992 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82995         or AC_FUNC_REALLOC.
82996
82997 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82998
82999         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
83000         macros to be defined.
83001         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
83002         the allocator returns NULL because the requested size is zero.
83003
83004 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
83007         var.  Add comment explaining why libc still defines it.  This
83008         merges the following patch from glibc:
83009         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
83010
83011 2004-05-20  Andreas Schwab  <schwab@suse.de>
83012
83013         * m4/free.m4: Replace free if it not known to work, not the other
83014         way round.
83015
83016 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83017
83018         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83019         present in glibc since revision 1.1 of this file.
83020         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83021         obstack_alignment_mask, obstack_alloc, obstack_base,
83022         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83023         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83024         obstack_grow0, obstack_init, obstack_int_grow,
83025         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83026         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83027         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83028         nonexistent functions.
83029
83030 2004-05-18  Karl Berry  <karl@gnu.org>
83031
83032         * config/srclist.txt: break link for vasnprintf.c.
83033
83034 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83035
83036         Port obstack to the AS/400, where pointers are 16 bytes wide and
83037         you cannot cast an integer to a valid pointer.  This patch is
83038         currently waiting to be integrated into glibc; see
83039         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83040
83041         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83042         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83043         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83044         (struct obstack): temp member is now a union of a pointer and
83045         an integer, instead of an integer.  All integer uses changed.
83046         This does not affect the physical layout of struct obstack,
83047         except on hosts (like the AS/400) where the size or alignment of
83048         void * is greater than that of ptrdiff_t.
83049         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83050         __STDC__)]: Store temporary in pointer member of union, not
83051         integer member.
83052         * lib/obstack.c: Include <stddef.h>, for offsetof.
83053         (struct fooalign): Remove; it doesn't need a name.
83054         (union fooround): Change double to long double, and add void *.
83055         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83056         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83057         not a macro.  Hence the values are always int; so remove all
83058         casts-to-int in uses.
83059
83060 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83063         we can get this patch merged into glibc.
83064
83065 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83066             Paul Eggert  <eggert@cs.ucla.edu>
83067
83068         * m4/argp: Depend on alloca.
83069
83070 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83071             Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83074         freecoding.
83075
83076 2004-05-17  Bruno Haible  <bruno@clisp.org>
83077
83078         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83079         precision that consists of a '.' followed by an empty digit string.
83080         Patch by Tor Lillqvist <tml@iki.fi>.
83081
83082 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83085         for backward compatibility with older code.  We need our own
83086         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83087         it under some other name, and our alloca.h will define it.
83088
83089 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83090             Derek Price  <derek@ximbiot.com>
83091
83092         * lib/alloca.c: Include <alloca.h>, to get our interface.
83093         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83094         include <alloca.h> first.  Use C89 prototype for alloca; this
83095         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83096         Use #elif for simplicity, since we can assume C89 now.
83097         Don't try to source the system alloca.h since it will not be found
83098         and to prevent recursively including its replacement.
83099         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83100         * lib/regex.c: Likewise.
83101
83102 2004-05-16  Derek Price  <derek@ximbiot.com>
83103             Paul Eggert  <eggert@cs.ucla.edu>
83104
83105         getline cleanup.  This changes the getndelim2 API: both order of
83106         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83107         no delimiter).
83108
83109         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83110         interface does that.
83111         (getline): Always use getdelim, so that we don't have two
83112         copies of this code.
83113         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83114         if available.
83115         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83116         (GETNDELIM2_MAXIMUM): New macro.
83117         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83118         instead of the old practice of delim2==0.  All callers changed.
83119         Return -1 on overflow, instead of returning junk.
83120         Do not set *linesize unless allocation succeeds.
83121         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83122         that we include sys/types.h.
83123         * lib/getnline.h: Likewise.
83124         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83125         (getndelim2): Reorder arguments.
83126         * lib/getnline.c (getnline, getndelim):
83127         Don't discard the NMAX argument.
83128         (getnline): Invoke getndelim, to avoid code duplication.
83129         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83130         of (size_t) -1 by callers of the getnline family.
83131
83132 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83133
83134         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83135         Check for gettimeofday.
83136         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83137         Check for settimeofday, stime.
83138
83139 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83140
83141         * lib/nanosleep.c (suspended): Change its type from int to
83142         sig_atomic_t volatile.
83143         (first_call): Make it private to rpl_nanosleep, and have it
83144         be zero initially as that's a bit faster.
83145         (my_usleep): Round up fractional times instead of truncating them,
83146         as this is the usual meaning for 'sleep'.
83147
83148         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83149         doesn't work.
83150         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83151         (ENOSYS): Define if not defined.
83152         (settime): Fall back on stime if it exists and settimeofday fails.
83153         But don't bother with fallbacks if a method fails with errno == EPERM.
83154
83155 2004-05-11  Jim Meyering  <jim@meyering.net>
83156
83157         Prior to this change, the save_cwd caller required read access to the
83158         current directory on most systems (ones with the fchdir function).
83159
83160         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83161         fails, try write-only, and finally, resort to using xgetcwd.
83162
83163 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         * lib/obstack.c, obstack.h: Import changes from libc.
83166
83167 2004-04-28  Bruno Haible  <bruno@clisp.org>
83168
83169         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83170         also implicitly appends .exe to executables.
83171         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83172         accepts Windows pathnames.
83173         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83174         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83175         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83176         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83177         Reported by Derek Robert Price <derek@ximbiot.com>.
83178
83179 2004-04-21  Karl Berry  <karl@gnu.org>
83180
83181         * config/srclist.txt (localcharset.c): break sync.
83182
83183 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83184
83185         * m4/host-os.m4: Add a copyright notice.
83186
83187 2004-04-20  Jim Meyering  <jim@meyering.net>
83188
83189         Change UTILS_ to gl_ in AC_DEFINE'd names.
83190         Change utils_- and jm_-prefixed variables, too.
83191         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83192         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83194
83195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83196         Don't emit trailing blanks.
83197         Also rename jm_-prefixed variables to have gl_ prefix.
83198
83199         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83200         Also rename jm_-prefixed variables to have gl_ prefix.
83201
83202         * m4/jm-macros.m4: Reflect the renamings.
83203         * m4/prereq.m4: Likewise.
83204
83205 2004-04-20  Jim Meyering  <jim@meyering.net>
83206
83207         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83208         memory.
83209
83210 2004-04-20  Jim Meyering  <jim@meyering.net>
83211             Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83214         memory when realloc fails.
83215
83216 2004-04-19  Jim Meyering  <jim@meyering.net>
83217
83218         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83219         now that readutmp.c may call `free (0)'.
83220
83221 2004-04-19  Bruno Haible  <bruno@clisp.org>
83222
83223         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83224         * m4/inttypes_h.m4: Likewise.
83225         * m4/stdint_h.m4: Likewise.
83226         * m4/intmax_t.m4: Likewise.
83227         * m4/uintmax_t.m4: Likewise.
83228
83229 2004-04-18  Jim Meyering  <jim@meyering.net>
83230
83231         * m4/prereq.m4: Don't forbid jm_ prefix.
83232
83233         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83234         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83235         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83236         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83237         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83238         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83239         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83240         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83241         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83242         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83243         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83244         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83245         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83246         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83247         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83248         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83249         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83250         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83251         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83252
83253 2004-04-18  Jim Meyering  <jim@meyering.net>
83254
83255         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83256         failure, don't leak memory and do call END_UTMP_ENT.
83257
83258 2004-04-16  Jim Meyering  <jim@meyering.net>
83259
83260         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83261         coreutils' stat program.
83262         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83263
83264 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83265
83266         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83267         C89.
83268         (CHAR_BIT): Remove, since we assume C89.
83269         Include <stdint.h> if available, as per current Autoconf CVS advice.
83270
83271 2004-03-31  Jim Meyering  <jim@meyering.net>
83272
83273         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83274         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83275         * m4/xalloc.m4: Likewise.
83276
83277 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83278
83279         Merge from coreutils.
83280
83281         * m4/inttostr.m4: New file.
83282         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83283         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83284         Require gl_CLOCK_TIME.
83285         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83286
83287 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83288
83289         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
83290         not bool, to be more consistent with Unix conventions.
83291         Suggested by Bruno Haible.
83292
83293         Merge from coreutils.
83294
83295         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83296         * lib/umaxtostr.c: New files.
83297
83298         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83299         the usual <time.h> dance.
83300         (get_date): Change signature to support fractional time stamps.
83301         All callers changed.
83302         * lib/getdate.y: Include "getdate.h" first, as we can now
83303         assume C89 and don't need to worry about 'const'.
83304         Similarly, include "unlocked-io.h" near start, not in middle.
83305         Include <limits.h>.
83306         (textint.value): Use long int rather than int.
83307         (textint.digits): Use size_t rather than int.
83308         (BILLION, LOG10_BILLION): New constants.
83309         (parser_control): New member rel_ns.  Members day_ordinal,
83310         time_zone, month, day, hour, minutes, rel_year, rel_month,
83311         rel_day, rel_hour, rel_minutes, rel_seconds
83312         are now long int, not int.  Member seconds is now struct timespec,
83313         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83314         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83315         not int.
83316         (%union.intval): Now long int, not int.
83317         New member timespec.
83318         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83319         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83320         (spec): Now is a timespec or an item list.
83321         (timespec, items): New nonterminals.
83322         (time, rel, relunit, number, get_date):
83323         Add support for fractional seconds.
83324         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83325         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83326         (to_hour): First arg is now long int, not int.
83327         (to_year): Returns long int, not int.
83328         Don't treat year -70 like 70.
83329         (tm_diff): Returns long int, not int.
83330         (lookup_word): Use bool instead of int when appropriate.
83331         (yylex): Use size_t for count, not int.
83332         Detect overflow when parsing large integer constants.
83333         Add support for fractions.
83334         (get_date): Make pointers 'const' if possible.
83335         Use more-portable code to detect integer overflow.
83336         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83337         Don't use ctime; it's not reliable if the year has >4 digits.
83338
83339         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83340         This is for compatibility with BSD.
83341
83342         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83343         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83344         From coreutils' system.h.
83345
83346         * lib/userspec.c: Don't include "posixver.h".
83347         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83348         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83349         compatible extension.  Simplify code by removing a boolean int
83350         that was always nonzero if a string was nonnull.
83351
83352 2004-03-30  Jim Meyering  <jim@meyering.net>
83353
83354         Merge from coreutils.
83355
83356         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83357         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83358         on some systems one must include <grp.h> before it.
83359         Reported by Christian Krackowizer.
83360
83361 2004-03-30  Jim Meyering  <jim@meyering.net>
83362
83363         Merge from coreutils.
83364
83365         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83366
83367         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83368         an empty input stream.
83369
83370         * lib/readtokens.c: Include <stdbool.h>.
83371         (readtoken): Use `size_t' rather than int/long.
83372         All callers adjusted.
83373         Use `bool' rather than `int' where appropriate.
83374         Use memset rather than an explicit loop.
83375         Use x2nrealloc rather than xrealloc.
83376         Allow the use of `\0' as a delimiter.
83377         (readtokens): Likewise.
83378         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83379
83380 2004-03-30  Jim Meyering  <jim@meyering.net>
83381
83382         * m4/realloc.m4: Remove file, since now it does no more than
83383         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83384         the `configure.ac' section of module/realloc.
83385         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83386
83387 2004-03-30  Bruno Haible  <bruno@clisp.org>
83388
83389         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83390         nonnull.
83391
83392 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83393
83394         Merge changes to getloadavg.c from coreutils and Emacs.
83395
83396         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83397         Define to an expression, not to the empty string.
83398         Include cloexec.h and xalloc.h.
83399         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83400         Use set_cloexec_flag rather than rolling our own.
83401         * lib/cloexec.c, lib/cloexec.h: New files.
83402
83403 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83404
83405         * m4/cloexec.m4: New file.
83406
83407 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83408
83409         * lib/getopt.h: Sync with libc CVS.
83410
83411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83412             Bruno Haible  <bruno@clisp.org>
83413
83414         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83415         mbswidth.
83416
83417 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83418             Bruno Haible  <bruno@clisp.org>
83419
83420         * lib/mbswidth.h: Include <wchar.h> only if
83421         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83422         <wchar.h>.
83423         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83424
83425 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83426
83427         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83428         Sync with libc CVS.
83429         * lib/getopt_int.h: New file, also synced from libc.
83430
83431 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83432
83433         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83434         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83435         Bring back getopt.c, getopt.h, getopt1.c.
83436
83437 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83438
83439         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83440         All uses changed.  Check for sa_sigaction member; this fixes
83441         a bug first reported by Jason Andrade in
83442         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83443
83444 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83445
83446         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83447         '#if' expressions.  Unlike the code it replaces, it does not
83448         depend on (defined _SC_PAGESIZE).  However, it does depend on
83449         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83450         first reported by Jason Andrade in
83451         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83452
83453 2004-02-25  Simon Josefsson  <jas@extundo.com>
83454
83455         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83456
83457 2004-02-25  Simon Josefsson  <jas@extundo.com>
83458
83459         * lib/strdup.h: New file.
83460         * lib/strdup.c: Include it.
83461         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83462         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83463
83464 2004-02-23  Karl Berry  <karl@gnu.org>
83465
83466         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83467         (from fencepost.gnu.org:/gd/gnuorg).
83468
83469 2004-02-23  Karl Berry  <karl@gnu.org>
83470
83471         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83472         * config/srclist.txt: add maintain/standards documents.
83473
83474 2004-02-18  Bruno Haible  <bruno@clisp.org>
83475
83476         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83477         Reported by Derek Robert Price <derek@ximbiot.com>.
83478
83479 2004-02-16  Karl Berry  <karl@gnu.org>
83480
83481         * config/mkinstalldirs, install-sh: update from automake.
83482
83483 2004-02-06  Karl Berry  <karl@gnu.org>
83484
83485         * m4/po.m4: update from gettext 0.14.1.
83486
83487 2004-02-06  Karl Berry  <karl@gnu.org>
83488
83489         * lib/config.charset: update from gettext 0.14.1.
83490
83491 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83492
83493         Add comments and code, prompted by suggestions from Bruno Haible
83494         for sh-quote.
83495         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83496         describing the enum quoting_style values.
83497         * lib/quotearg.c (quotearg_alloc): New function.
83498         (quotearg_buffer_restyled): Treat lone { and } as special.
83499         Treat = as special.  Work around bug with older shells
83500         that "see" a '\' that is really the 2nd byte of a multibyte char.
83501         Quote empty string with shell_quoting_style.
83502
83503 2004-02-03  Bruno Haible  <bruno@clisp.org>
83504
83505         * m4/pipe.m4: New file, from GNU gettext.
83506
83507 2004-02-03  Bruno Haible  <bruno@clisp.org>
83508
83509         * lib/pipe.h: New file, from GNU gettext.
83510         * lib/pipe.c: New file, from GNU gettext.
83511
83512 2004-01-27  Bruno Haible  <bruno@clisp.org>
83513
83514         * m4/execute.m4: New file, from GNU gettext.
83515
83516 2004-01-27  Bruno Haible  <bruno@clisp.org>
83517
83518         * lib/execute.h: New file, from GNU gettext.
83519         * lib/execute.c: New file, from GNU gettext.
83520         * lib/w32spawn.h: New file, from GNU gettext.
83521
83522 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83523
83524         Merge from diffutils.
83525
83526         * lib/file-type.c (file_type): Add typed memory objects.
83527         * lib/file-type.h (S_TYPEISTMO): New macro.
83528
83529         * lib/c-stack.h (c_stack_action): Remove argv argument.
83530         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83531         (die): Don't calculate message unless segv_action returns.
83532         (get_stack_location, min_address_from_argv, max_address_from_argv,
83533         volatile stack_base, volatile_stack_size): Remove.
83534         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83535         that every segmentation violation is a stack overflow.  (Ouch!)
83536         See Debian bug 136249 (still outstanding) for more info about why
83537         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83538
83539 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83540
83541         Exit-status fix from coreutils.
83542
83543         Use exit_failure consistently in place of EXIT_FAILURE,
83544         so that program exit statuses are consistent on failure.
83545
83546         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83547         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83548         * lib/argmatch.h: Comment fix to match the above.
83549         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83550         Now a macro referring to exit_failure, instead of a separate
83551         variable.  Include "exitfail.h" to get it.
83552         * lib/xstrtol.h: Include "exitfail.h".
83553         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83554
83555         * lib/long-options.c (parse_long_options): Use prototype
83556         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83557         for clarity.
83558
83559 2004-01-21  Jim Meyering  <jim@meyering.net>
83560
83561         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83562         so as not to conflict with a different-sized __mktime_internal
83563         function in GNU libc.
83564         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83565         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83566
83567 2004-01-20  Karl Berry  <karl@gnu.org>
83568
83569         * config/config.guess: update from config.
83570
83571         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83572
83573 2004-01-20  Bruno Haible  <bruno@clisp.org>
83574
83575         Safer stack allocation.
83576         * lib/setenv.c: Include allocsa.h.
83577         (alloca): Remove fallback definition.
83578         (freea): Remove macro.
83579         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83580         instead of freea.
83581
83582 2004-01-20  Bruno Haible  <bruno@clisp.org>
83583
83584         * m4/eealloc.m4: New file, from GNU gettext.
83585
83586 2004-01-20  Bruno Haible  <bruno@clisp.org>
83587
83588         * m4/allocsa.m4: New file, from GNU gettext.
83589
83590 2004-01-20  Bruno Haible  <bruno@clisp.org>
83591
83592         * lib/xallocsa.h: New file, from GNU gettext.
83593         * lib/xallocsa.c: New file, from GNU gettext.
83594
83595 2004-01-20  Bruno Haible  <bruno@clisp.org>
83596
83597         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83598
83599 2004-01-20  Bruno Haible  <bruno@clisp.org>
83600
83601         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83602         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83603         specially.
83604
83605 2004-01-20  Bruno Haible  <bruno@clisp.org>
83606
83607         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83608         patch.
83609
83610 2004-01-20  Bruno Haible  <bruno@clisp.org>
83611
83612         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83613
83614 2004-01-20  Bruno Haible  <bruno@clisp.org>
83615
83616         * lib/eealloc.h: New file.
83617
83618 2004-01-20  Bruno Haible  <bruno@clisp.org>
83619
83620         * lib/binary-io.h: Avoid warnings on Cygwin.
83621
83622 2004-01-20  Bruno Haible  <bruno@clisp.org>
83623
83624         * lib/allocsa.h: New file, from GNU gettext.
83625         * lib/allocsa.c: New file, from GNU gettext.
83626
83627 2004-01-18  Karl Berry  <karl@gnu.org>
83628
83629         * doc/gpl.texi, doc/lgpl.texi: new files.
83630
83631 2004-01-18  Karl Berry  <karl@gnu.org>
83632
83633         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83634         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83635
83636 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83637
83638         Merge from coreutils.
83639
83640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83641         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83642         (gl_DEFAULT_POSIX2_VERSION): Move
83643         the documentation from 'configure' into 'config.hin',
83644         so that 'configure --help' isn't burdened by it and
83645         we don't have to worry about its formatting there.
83646         Reword the documentation so that it's more succinct
83647         and can be run together into a single paragraph.
83648         * m4/same.m4 (gl_SAME): Check for pathconf.
83649
83650 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83651
83652         Merge from coreutils.
83653
83654         * lib/posixver.c: Include posixver.h.
83655
83656         * lib/same.c: Include <stdbool.h>, <limits.h>.
83657         (_POSIX_NAME_MAX): Define if not defined.
83658         (MIN): New macro.
83659         (same_name): If file names are silently truncated, report
83660         that the file names are the same if they are the same after
83661         the silent truncation.
83662
83663         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83664         conversion function.
83665         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83666         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83667         longer needed.
83668
83669 2004-01-15  Jim Meyering  <jim@meyering.net>
83670
83671         Merge from coreutils.
83672
83673         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83674         if no library is required.
83675         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83676         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83677         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83678         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83679         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83680         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83681         value, $ac_cv_search_crypt, if it's "none required".
83682         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83683         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83684         not gl_FUNC_GETLOADAVG.
83685         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83686         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83687
83688 2004-01-15  Jim Meyering  <jim@meyering.net>
83689
83690         Merge from coreutils.
83691
83692         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83693         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83694         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83695
83696         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83697         optional configure-time default.
83698
83699         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83700
83701         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83702
83703 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83704
83705         Merge from coreutils.
83706
83707         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83708         value, $ac_cv_search_nanosleep, if it's "none required".
83709
83710 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83711
83712         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83713         with like-named macro in fnmatch.c.
83714         (EXT): Use an internal constant instead.
83715
83716         Merge fnmatch patches from glibc.
83717         * lib/fnmatch.c (mbsinit): Remove define.
83718         Add libc_hidden_ver (__fnmatch, fnmatch).
83719         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83720         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83721
83722 2004-01-14  Karl Berry  <karl@gnu.org>
83723
83724         * config/install-sh: update from automake.
83725
83726 2004-01-13  Karl Berry  <karl@gnu.org>
83727
83728         * config/install-sh: update from automake.
83729
83730 2004-01-09  Karl Berry  <karl@gnu.org>
83731
83732         * config/install-sh: update from automake.
83733
83734 2004-01-05  Karl Berry  <karl@gnu.org>
83735
83736         * config/config.{sub,guess}: update from config.
83737
83738 2003-12-31  Karl Berry  <karl@gnu.org>
83739
83740         * config/depcomp: update from automake.
83741
83742 2003-12-14  Karl Berry  <karl@gnu.org>
83743
83744         * lib/config.charset: update from gettext-runtime.
83745
83746 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83747
83748         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83749         Bug reported by Alfred M. Szmidt.
83750
83751 2003-12-03  Bruno Haible  <bruno@clisp.org>
83752
83753         * m4/gettext.m4: Upgrade from gettext-0.13.
83754         * m4/po.m4: Upgrade from gettext-0.13.
83755         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83756         * m4/intmax.m4: New file, from gettext-0.13.
83757         * m4/printf-posix.m4: New file, from gettext-0.13.
83758
83759 2003-11-29  Karl Berry  <karl@gnu.org>
83760
83761         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83762
83763 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83764             Bruno Haible  <bruno@clisp.org>
83765
83766         * lib/printf-parse.h: Don't include sys/types.h.
83767         (ARG_NONE): New macro.
83768         (char_directive): Change type of *arg_index fields to size_t.
83769         * lib/printf-parse.c: Don't include sys/types.h.
83770         (SSIZE_MAX): Remove macro.
83771         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83772         Remove unnecessary overflow check.
83773         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83774         fields.
83775
83776 2003-11-25  Bruno Haible  <bruno@clisp.org>
83777
83778         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83779
83780 2003-11-25  Bruno Haible  <bruno@clisp.org>
83781
83782         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83783         gt_TYPE_SSIZE_T.
83784
83785 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83786
83787         * modules/alloca: Remove dependency on xalloc.
83788
83789 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83790
83791         * lib/alloca.c: Remove dependency on xalloc module.
83792         (xalloc_die): Remove.
83793         (memory_full) [!defined emacs]: New macro.
83794         [!defined emacs]: Don't include xalloc.h.
83795         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83796         address arithmetic overflows.  Change datatypes a bit to avoid
83797         unnecessary casts.
83798
83799 2003-11-22  Jim Meyering  <jim@meyering.net>
83800
83801         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83802         s/size/size_t/.
83803
83804 2003-11-21  Karl Berry  <karl@gnu.org>
83805
83806         * config/config.{sub,guess}: update from config.
83807
83808 2003-11-18  Karl Berry  <karl@gnu.org>
83809
83810         * config/config.{sub,guess}: update from config.
83811
83812         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83813
83814 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83815
83816         * README: Mention that S+T cannot overflow if S is the size of
83817         an existing object and T is sufficiently small.
83818
83819 2003-11-17  Jim Meyering  <jim@meyering.net>
83820
83821         On systems without utime and without a utimes function capable of
83822         dealing with a NULL struct utimbuf* argument, this utime replacement
83823         could -- in unusual circumstances -- leak a file descriptor.
83824         * lib/utime.c: Include <unistd.h> and <errno.h>.
83825         (utime_null): Be sure to close `fd' and to preserve errno.
83826         Reported by Geoff Collyer via Arnold Robbins.
83827
83828 2003-11-17  Bruno Haible  <bruno@clisp.org>
83829
83830         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83831         (Depends-on): Add xsize.
83832
83833 2003-11-17  Bruno Haible  <bruno@clisp.org>
83834
83835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83836
83837 2003-11-17  Bruno Haible  <bruno@clisp.org>
83838
83839         * lib/vasnprintf.c (alloca): Remove fallback definition.
83840         (freea): Remove definition.
83841         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83842         Reported by Paul Eggert.
83843
83844 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83845             Bruno Haible  <bruno@clisp.org>
83846
83847         Protect against address arithmetic overflow.
83848         * lib/printf-args.h: Include stddef.h.
83849         (arguments): Change type of field 'count' to size_t.
83850         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83851         'unsigned int' where appropriate.
83852         * lib/printf-parse.h: Include sys/types.h.
83853         (char_directive): Change type of *arg_index fields to ssize_t.
83854         (char_directives): Change type of fields 'count', max_*_length to
83855         size_t.
83856         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83857         (SSIZE_MAX): Define fallback value.
83858         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83859         instead of 'int' where appropriate. Check a_allocated, d_allocated
83860         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83861         * lib/vasnprintf.c: Include xsize.h.
83862         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83863         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83864         overflow. Avoid wraparound when converting a width or precision from
83865         decimal to binary.
83866
83867 2003-11-16  Bruno Haible  <bruno@clisp.org>
83868
83869         Update from GNU gettext.
83870         * lib/printf-parse.c: Generalize to it can be compiled for wide
83871         strings.
83872         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83873         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83874         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83875         SNPRINTF): New macros.
83876         Don't include <alloca.h> if the file is used inside libintl.
83877         (local_wcslen): New function, for Solaris 2.5.1.
83878         (VASNPRINTF): Use it instead of wcslen.
83879
83880 2003-11-16  Bruno Haible  <bruno@clisp.org>
83881
83882         * lib/xsize.h (xmax): New function.
83883         (xsum, xsum3, xsum4): Declare as "pure" functions.
83884
83885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83886
83887         * modules/xalloc (Files): Undo latest change, since xalloc.h
83888         no longer needs SIZE_MAX or PTRDIFF_MAX.
83889
83890 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83891
83892         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83893         gl_PTRDIFF_MAX.
83894
83895 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83896
83897         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83898         "return", to pacify some unknown compiler.  Problem reported
83899         by Joerg Schilling.
83900
83901 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83902
83903         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83904         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83905         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83906         heuristic is just as accurate as far as we know, and it removes a
83907         dependency on size_max.m4 and ptrdiff_max.m4.
83908
83909 2003-11-11  Bruno Haible  <bruno@clisp.org>
83910
83911         * modules/xsize (Files): Add m4/size_max.m4.
83912         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83913
83914 2003-11-11  Bruno Haible  <bruno@clisp.org>
83915
83916         * m4/size_max.m4: New file.
83917         * m4/ptrdiff_max.m4: New file.
83918         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83919         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83920         (gl_XALLOC): Invoke it.
83921
83922 2003-11-11  Bruno Haible  <bruno@clisp.org>
83923
83924         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83925         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83926         defined.
83927
83928 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83929
83930         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83931         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83932         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83933         From Bruno Haible.
83934         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83935         not (size_t) -1, since it's defined here.
83936
83937 2003-11-09  Karl Berry  <karl@gnu.org>
83938
83939         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83940
83941 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83942
83943         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83944         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83945         Reject sizes of exactly SIZE_MAX bytes.
83946         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83947         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83948
83949 2003-11-05  Bruno Haible  <bruno@clisp.org>
83950
83951         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83952         SIZE_MAX defined in <limits.h> on Solaris.
83953
83954 2003-11-04  Jim Meyering  <jim@meyering.net>
83955
83956         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83957         variable names, rather than @VAR@.
83958         * modules/poll: Likewise.
83959
83960 2003-11-04  Bruno Haible  <bruno@clisp.org>
83961
83962         * modules/xsize: New file.
83963         * modules/linebreak: Depend on xsize.
83964         * MODULES.html.sh (func_all_modules): Add xsize.
83965
83966 2003-11-04  Bruno Haible  <bruno@clisp.org>
83967
83968         * m4/xsize.m4: New file.
83969
83970 2003-11-04  Bruno Haible  <bruno@clisp.org>
83971
83972         * lib/xsize.h: New file.
83973         * lib/linebreak.c: Include xsize.h.
83974         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83975         argument for overflow.
83976         Suggested by Paul Eggert.
83977
83978 2003-11-03  Karl Berry  <karl@gnu.org>
83979
83980         * config/config.{guess,sub}: update from config.
83981
83982 2003-11-03  Jim Meyering  <jim@meyering.net>
83983
83984         * modules/userspec (lib_SOURCES): Add userspec.h.
83985         (Include): Add "userspec.h".
83986         Improve description.
83987
83988 2003-11-03  Jim Meyering  <jim@meyering.net>
83989
83990         * lib/userspec.c: Include "userspec.h".
83991         * lib/userspec.h: New file.
83992
83993 2003-11-03  Bruno Haible  <bruno@clisp.org>
83994
83995         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83996
83997 2003-11-03  Bruno Haible  <bruno@clisp.org>
83998
83999         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
84000         available, to avoid (extremely rare) race condition.
84001         Suggested by Paul Eggert.
84002
84003 2003-11-02  Karl Berry  <karl@gnu.org>
84004
84005         * config/srclist.txt (vasprintf.c): sync broken, sigh.
84006
84007 2003-10-31  Paul Eggert  <eggert@twinsun.com>
84008
84009         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
84010         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84011         (read_filesystem_list): Set and use me_type_malloced.
84012         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84013         whatever the type happens to be), for brevity and consistency.
84014         Check for size calculation overflow on Alphas running OSF/1.
84015
84016 2003-10-31  Jim Meyering  <jim@meyering.net>
84017
84018         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84019
84020         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84021
84022 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84023             Bruno Haible  <bruno@clisp.org>
84024
84025         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84026         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84027
84028 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84031         netbsd*-gnu*.  Suggested by Robert Millan.
84032
84033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84034
84035         * modules/group-member: Depend on stdbool.
84036
84037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84038
84039         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84040
84041 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84042
84043         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84044         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84045         after the 'gnu' in these cases.  This fixes some bugs in the
84046         previous change, and is based on suggestions by Robert Millan.
84047
84048 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84049
84050         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84051         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84052         no longer needed.
84053         * lib/quotearg.c (quotearg_n_options): Use it.
84054         * lib/group-member.c: Include <stdbool.h>.
84055         (free_group_info): Arg is now const *; don't free arg.
84056         (get_group_info): Now returns bool and accepts struct group_info *,
84057         rather than returning a malloc'ed struct group_info *.
84058         All uses changed.  Check for overflow in internal size calculation.
84059
84060         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84061         rather than xmalloc/xrealloc.
84062         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84063         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84064         conformance bug: the old code used a pointer after freeing the
84065         storage that it addressed.
84066         * lib/hash.c (hash_initialize): Simplify the code by using
84067         xalloc_oversized rather than doing it by hand.
84068         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84069         the buffer preserved.  Use free and xmalloc instead.
84070         * lib/quotearg.c (quotearg_n_options): Likewise.
84071         Use a simpler test for size overflow.  Don't use xalloc_oversized
84072         because unsigned int might be wider than size_t (!); this suggests
84073         that we should switch from unsigned int to size_t for slot numbers.
84074
84075 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84076
84077         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84078         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84079         NetBSD kernels.  Requested by Richard Stallman.
84080
84081 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84082
84083         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84084         to allocate the returned structure.  Do not allocate a subarray,
84085         as x2nrealloc will do that.
84086         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84087         instead of xnrealloc.
84088         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84089
84090 2003-10-27  Bruno Haible  <bruno@clisp.org>
84091
84092         * lib/stdbool_.h: Better support for BeOS.
84093
84094 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84095
84096         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84097         now uses inline.
84098
84099 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84100
84101         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84102         callers that want to do their own size-overflow checking.  Include
84103         <stdbool.h>, since xalloc_oversized returns bool.
84104         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84105         to use xalloc_oversized.
84106
84107         Add two functions x2realloc, x2nrealloc, for programs that grow
84108         arrays dynamically by doubling their sizes.
84109         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84110         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84111         New functions.
84112
84113         Port to C99 semantics for 'inline' of external functions.
84114         Bug reported by Bruno Haible.
84115         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84116         with the old contents of xnmalloc.
84117         (xnmalloc, xmalloc): Use it.
84118         (xnrealloc_inline): New static inline function,
84119         with the old contents of xnrealloc.
84120         (xnrealloc, xrealloc): Use it.
84121
84122         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84123         that.
84124
84125 2003-10-26  Karl Berry  <karl@gnu.org>
84126
84127         * config/srclist.txt (COPYING.DOC): no longer available from
84128         /gd/gnuorg; don't know where the ultimate source is.
84129
84130 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84131
84132         Fix several address-calculation bugs in the hash modules,
84133         plus some minor code cleanup.
84134
84135         * lib/hash.h: Include <stdbool.h>, for bool.
84136         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84137         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84138         hash_get_n_entries, hash_get_max_bucket_length,
84139         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84140         hash_rehash): Use size_t rather than unsigned.
84141         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84142         hash_get_n_buckets_used, hash_get_n_entries,
84143         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84144         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84145         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84146         Likewise.
84147         (SIZE_MAX): Define if not defined.
84148         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84149         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84150         hash_print):
84151         Use const * when possible.
84152         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84153         (check_tuning): Fix bug: if tuning parameters were very close to
84154         0 or 1, rounding errors could have caused subscript violations.
84155         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84156         (hash_initialize): Add 'fail:' label
84157         to free table and return NULL, and use it to simplify code.
84158         Use calloc rather than clearing the storage ourself.
84159         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84160         buffer size calculations.
84161         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84162         Include <stddef.h>, for size_t.
84163         * lib/hash-pjw.c (hash_pjw): Likewise.
84164         Switch to method described by Bruno Haible.
84165         Include <limits.h>, for CHAR_BIT.
84166         (SIZE_BITS): New macro.
84167
84168 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84169
84170         * m4/getline.m4 (AM_FUNC_GETLINE):
84171         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84172         hosts.  Problem reported by Derek Robert Price in
84173         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84174         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84175         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84176
84177 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84178
84179         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84180         ceiling the allocation at NMAX bytes rather than silently
84181         discarding input bytes before NMAX is reached.  This makes
84182         a difference only if NMAX exceeds SIZE_MAX / 2.
84183
84184         * lib/obstack.c: Merge from glibc.
84185         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84186         Add libc_hidden_def (_obstack_newchunk).
84187         (_obstack_free) [! defined _LIBC]: Remove.
84188         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84189         a clone of the function body.
84190         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84191         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84192
84193         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84194         glibc.
84195         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84196         arg to memcpy.
84197
84198         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84199         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84200         Don't use lvalue casts, as GCC plans to remove support for them
84201         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84202         was also present in the non-GCC version, indicating that this
84203         code had always been buggy and had never been widely used.
84204         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84205         Use the fast variant of each macro, rather than copying the
84206         definiens of the fast variant; that way, we'll be more likely to
84207         catch future bugs in the fast variants.
84208
84209 2003-10-20  Bruno Haible  <bruno@clisp.org>
84210
84211         * modules/wait-process: New file.
84212         * MODULES.html.sh (func_all_modules): Add wait-process.
84213
84214 2003-10-20  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/wait-process.m4: New file.
84217
84218 2003-10-20  Bruno Haible  <bruno@clisp.org>
84219
84220         * lib/wait-process.h: New file, from GNU gettext.
84221         * lib/wait-process.c: New file, from GNU gettext.
84222
84223 2003-10-19  Jim Meyering  <jim@meyering.net>
84224
84225         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84226         HPUX 10.20.
84227
84228 2003-10-18  Karl Berry  <karl@gnu.org>
84229
84230         * config/config.guess: update from config.
84231
84232 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84233
84234         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84235         (getgroups): First arg is int, not size_t.
84236         Don't let 'free' mangle errno.
84237
84238 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84239
84240         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84241
84242 2003-10-16  Karl Berry  <karl@gnu.org>
84243
84244         * config/config.{guess,sub}: update from config.
84245
84246 2003-10-16  Jim Meyering  <jim@meyering.net>
84247
84248         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84249         memcpy.
84250
84251 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84252
84253         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84254         (SIZE_MAX): Remove.
84255         (new_exclude, add_exclude_file): Initial size no longer needs to
84256         be a power of 2.
84257         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84258         our own address arithmetic overflow checking.
84259
84260         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84261         (fnmatch): Do not alloca more than 2000 wide characters;
84262         instead, use malloc for large buffers.
84263         Check for address arithmetic overflow, and return -1
84264         with errno set to ENOMEM in that case.
84265         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84266         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84267         instead, return -1.  Check for address arithmetic overflow.
84268
84269 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84270
84271         Handle invalid suffixes and overflow independently, so that
84272         callers can treat them independently as needed.  Fix some bugs in
84273         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84274         suffix for a human-readable blocksize.  The major caller-visible
84275         change is the addition of a new
84276         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84277         that both overflow and suffix chars were found.
84278
84279         * lib/human.c (humblock): Don't check separately for invalid suffix
84280         char; that is xstrtoumax's job (now that its bug is fixed).
84281         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84282         INTMAX_MAX]: New macros.
84283         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84284         TYPE_MAXIMUM): New macros.
84285         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84286         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84287         if overflow occurs, as it's what __strtol does and it's more useful
84288         in practice.
84289         (__xstrtol): If __strtol reports some error other than ERANGE,
84290         reflect it to the caller as LONGINT_INVALID.  If it reports
84291         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
84292         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
84293         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
84294         value.
84295         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84296         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84297         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84298         [defined UINTMAX_MAX]: New macros.
84299
84300 2003-10-14  Bruno Haible  <bruno@clisp.org>
84301
84302         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84303
84304 2003-10-14  Bruno Haible  <bruno@clisp.org>
84305
84306         * m4/sig_atomic_t: New file, from GNU gettext.
84307         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84308
84309 2003-10-14  Bruno Haible  <bruno@clisp.org>
84310
84311         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84312         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84313         Also use volatile where needed.
84314
84315 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84316
84317         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84318         Change maintainer from Bruno Haible to 'all'.
84319
84320 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84321
84322         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84323
84324 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84325
84326         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84327         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84328         and define in terms of the other primitives.
84329         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84330         (SIZE_MAX): Define if not already defined.
84331         (array_size_overflow): New function.
84332         (xalloc_die): Abort instead of exiting if 'error' returns.
84333         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84334         (xmalloc, xrealloc): Use them.
84335         (xcalloc): Check for address arithmetic overflow.
84336         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84337         a bit faster than strcpy.
84338
84339 2003-10-10  Simon Josefsson  <jas@extundo.com>
84340
84341         * modules/argp (Depends-on): Add restrict and strcase.
84342
84343 2003-10-10  Simon Josefsson  <jas@extundo.com>
84344
84345         * m4/argp.m4: Add AC_C_INLINE.
84346
84347 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84348
84349         Merge getpass from libc, plus a few fixes.
84350
84351         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84352         Include <stdbool.h>.
84353         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84354         __fsetlocking to empty.
84355         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84356         do include <bits/libc-lock.h>.
84357         Do not include <fcntl.h>; not needed.
84358         [_LIBC]: Include <wchar.h>.
84359         (NOTCANCEL_MODE): New macro.
84360         (flockfile, funlockfile) [_LIBC]: New macros.
84361         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84362         [!_LIBC]: New macros.
84363         (call_fclose): New function.
84364         (getpass): Use it.  Save tty stream separately; this simplifies the
84365         code and makes it more reliable if stdin happens to equal stdout.
84366         Invoke __fsetlocking on tty.
84367         Handle thread cancellation if needed.
84368         Namespace cleanup (use __tcgetattr, __getline).
84369         Use bool for Booleans.
84370         [USE_IN_LIBIO]: Handle wide streams.
84371         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84372         stream might go where.
84373
84374         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84375         doesn't have to include <stdio.h> before us.
84376         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84377         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84378         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84379         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84380         if not declared, so that we can use getpass.c code from libc without
84381         rewriting it.
84382         (flockfile, ftrylockfile, funlockfile): New macros.
84383
84384 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84385
84386         * modules/getpass: Depend on stdbool.
84387
84388 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84389
84390         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84391
84392 2003-10-07  Karl Berry  <karl@gnu.org>
84393
84394         * config/config.{guess,sub}: update from config.
84395
84396 2003-10-06  Jim Meyering  <jim@meyering.net>
84397             Bruno Haible  <bruno@clisp.org>
84398
84399         This lets translators provide better translations for the
84400         "Written by ..." part of --version output.
84401         * lib/version-etc.h: Include stdarg.h.
84402         (version_etc_copyright): Declare as readonly.
84403         (version_etc): Make this function variadic with a NULL-terminated list
84404         of author name strings.
84405         (version_etc_va): New declaration.
84406         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84407         (version_etc_copyright): Declare as readonly.
84408         (version_etc_va): New function. Provide a different translatable string
84409         for each possible number of authors < 10. Abbreviate when there are 10
84410         authors or more.
84411         (version_etc): Make this function variadic. Call version_etc_va.
84412         Suggestion from Gary V. Vaughan.
84413
84414         * lib/long-options.h (parse_long_options): Change prototype: the
84415         authors string is moved to the end and becomes variadic.
84416         * lib/long-options.c: Include stdarg.h.
84417         (parse_long_options): Make this function variadic, too.
84418         Call version_etc_va, not version_etc.
84419
84420 2003-10-06  Bruno Haible  <bruno@clisp.org>
84421
84422         * modules/version-etc-2: Remove file.
84423         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84424
84425 2003-10-06  Bruno Haible  <bruno@clisp.org>
84426
84427         * modules/fatal-signal: New file.
84428         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84429
84430 2003-10-06  Bruno Haible  <bruno@clisp.org>
84431
84432         * m4/fatal-signal.m4: New file.
84433         * m4/signalblocking.m4: New file, from GNU gettext.
84434
84435 2003-10-06  Bruno Haible  <bruno@clisp.org>
84436
84437         * lib/version-etc-2.h: Remove file.
84438         * lib/version-etc-2.c: Remove file.
84439
84440 2003-10-06  Bruno Haible  <bruno@clisp.org>
84441
84442         * lib/fatal-signal.h: New file, from GNU gettext.
84443         * lib/fatal-signal.c: New file, from GNU gettext.
84444
84445 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84446
84447         * README: Rework advice for preventing empty .o files.
84448         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84449         not <sys/types.h>.
84450
84451 2003-10-04  Karl Berry  <karl@gnu.org>
84452
84453         * lib/argp*: update from libc.
84454
84455 2003-10-04  Karl Berry  <karl@gnu.org>
84456
84457         * config/config.{guess,sub}: update from config.
84458
84459 2003-10-02  Bruno Haible  <bruno@clisp.org>
84460
84461         * modules/lchown (Include): Add lchown.h.
84462         * modules/time_r (Include): Use "..." syntax.
84463         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84464
84465 2003-10-01  Simon Josefsson  <jas@extundo.com>
84466
84467         * MODULES.html.sh (func_all_modules): Move gethostname from section
84468         'based on' to section 'lacking' POSIX:2001.
84469
84470 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84471
84472         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84473         to output mode on the same stream.
84474
84475 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84476
84477         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84478         Fix arg typo in previous patch.
84479
84480 2003-09-28  Jim Meyering  <jim@meyering.net>
84481
84482         * lib/error.c: Correct cpp indentation.
84483
84484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84485
84486         * modules/free: New file.
84487
84488 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84489
84490         * m4/free.m4: New file.
84491
84492 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84493
84494         * lib/minmax.h (MIN, MAX)
84495         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84496         Omit the special code that used __typeof__, since we worry that
84497         it could be more trouble than it's worth.  See:
84498         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84499         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84500
84501         * lib/free.c: New file.
84502
84503 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84504
84505         Trivial fixes to Makefile.am parts of module listings.
84506         * modules/strstr: Append strstr.h to lib_SOURCES.
84507         * modules/strcase: Likewise, for strcase.h.
84508
84509 2003-09-27  Karl Berry  <karl@gnu.org>
84510
84511         * config/mkinstalldirs: update from automake.
84512
84513 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84514
84515         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84516         (error_tail): Do not loop, reallocating temporary buffer, since
84517         the output cannot contain more wide characters than the input
84518         contains bytes, the size must be big enough already.  This avoids
84519         one potential size overflow calculation.  Check for size overflow
84520         when calculating temporary buffer size.  Free temporary buffer
84521         when done, if it was allocated with malloc; this plugs a memory
84522         leak.  Remove casts from void * to pointers, that are no longer
84523         needed now that we're assuming C89 or better.
84524
84525         Merge error changes from glibc.
84526
84527         * lib/error.c, error.h: Update copyright notice header to match glibc.
84528         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84529         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84530         Disable cancellation while printing error.
84531         * lib/error.h: Prepend __ to parameter names.
84532
84533 2003-09-26  Jim Meyering  <jim@meyering.net>
84534
84535         * lib/error.c (error_tail): Move some declarations
84536         into inner scope where the local variables are used.
84537
84538 2003-09-26  Bruno Haible  <bruno@clisp.org>
84539
84540         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84541         stpncpy().
84542         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84543
84544 2003-09-26  Bruno Haible  <bruno@clisp.org>
84545
84546         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84547         (stpncpy): Define as alias for gnu_stpncpy.
84548         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84549
84550 2003-09-25  Simon Josefsson  <jas@extundo.com>
84551
84552         * lib/xgetdomainname.h: New file.
84553         * lib/xgetdomainname.c: New file.
84554
84555 2003-09-25  Simon Josefsson  <jas@extundo.com>
84556             Bruno Haible  <bruno@clisp.org>
84557
84558         * modules/getdomainname: New file.
84559         * modules/xgetdomainname: New file.
84560         * MODULES.html.sh (func_all_modules): Add getdomainname,
84561         xgetdomainname.
84562
84563 2003-09-25  Simon Josefsson  <jas@extundo.com>
84564             Bruno Haible  <bruno@clisp.org>
84565
84566         * m4/getdomainname.m4: New file.
84567
84568 2003-09-25  Simon Josefsson  <jas@extundo.com>
84569             Bruno Haible  <bruno@clisp.org>
84570
84571         * lib/getdomainname.h: New file.
84572         * lib/getdomainname.c: New file.
84573
84574 2003-09-25  Karl Berry  <karl@gnu.org>
84575
84576         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84577
84578 2003-09-25  Karl Berry  <karl@gnu.org>
84579
84580         * config/install-sh: update from automake.
84581
84582 2003-09-25  Bruno Haible  <bruno@clisp.org>
84583
84584         * modules/version-etc-2: New file, from modules/version-etc with
84585         modifications.
84586         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84587
84588 2003-09-25  Bruno Haible  <bruno@clisp.org>
84589
84590         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84591         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84592
84593 2003-09-24  Simon Josefsson  <jas@extundo.com>
84594
84595         * modules/xgethostname: Add xgethostname.h.
84596
84597 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84598
84599         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84600         the buffer associated with the argument.  Bug reported by
84601         Simon Josefsson.
84602
84603 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84604
84605         * README: Document assumptions that 'int' is at least 32 bits
84606         wide, that integer arithmetic is 2's complement without overflow,
84607         that there are no holes in integer values, that adding sizes of
84608         two nonoverlapping objects can't overflow, and that all-bits-zero
84609         yields scalar zero.  Fix spelling and capitalization typos.
84610
84611 2003-09-19  Karl Berry  <karl@gnu.org>
84612
84613         * lib/argp.h: update from libc.
84614
84615 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84616
84617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84618         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84619         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84620
84621 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84622
84623         * gnulib-tool: Use "test -h", not "test -L", for portability
84624         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84625         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84626         (sed_extract_prog): Issue s commands one-by-one, rather than
84627         using \| in one s command.
84628
84629 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84630
84631         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84632         input error, instead of returning NULL the next time we are called
84633         (and therefore losing track of errno).
84634
84635 2003-09-16  Bruno Haible  <bruno@clisp.org>
84636
84637         * gnulib-tool (func_create_testdir): Warn about duplicated
84638         dependencies.
84639
84640 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84641
84642         * modules/argmatch, modules/fatal, modules/obstack,
84643         modules/xalloc, modules/xgethostname: Sort dependencies by
84644         importance, not alphabetically.
84645
84646 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84647
84648         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84649         fails, so that the caller gets the proper errno.
84650
84651         * lib/readutmp.c (read_utmp): Likewise.
84652         Check for fstat error.  Close stream and free storage
84653         when failing.
84654
84655 2003-09-14  Karl Berry  <karl@gnu.org>
84656
84657         * config/srclist.txt (strdup.c): disable for c89 changes.
84658
84659 2003-09-14  Jim Meyering  <jim@meyering.net>
84660
84661         * lib/getloadavg.c: Correct cpp indentation.
84662         * lib/strdup.c: Likewise.
84663         * lib/vasnprintf.c: Likewise.
84664
84665 2003-09-14  Bruno Haible  <bruno@clisp.org>
84666
84667         * modules/fwriteerror: New file.
84668         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84669
84670 2003-09-14  Bruno Haible  <bruno@clisp.org>
84671
84672         * lib/fwriteerror.h: New file.
84673         * lib/fwriteerror.c: New file.
84674
84675 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84676
84677         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84678         modules/xgethostname, modules/xalloc: Depend on exit.
84679
84680 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84681
84682         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84683
84684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84685         and AC_MINIX, too, so that their extensions are available.
84686
84687         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84688         This macro has been superseded by gl_BACKUPFILE.
84689
84690         More patches to assume C89 or better.
84691
84692         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84693
84694         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84695         unconditionally.
84696         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84697         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84698         Include <string.h>, <stdlib.h> unconditionally.
84699         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84700         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84701         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84702         headers or for string.h.
84703         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84704         or strtoul.
84705
84706         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84707         headers.
84708         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84709         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84710         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84711         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84714         memcpy, memset.
84715         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84716         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84717         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84718         strtol.
84719         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84720         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84721         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84722         strtoul.
84723
84724 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84725
84726         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84727         * lib/obstack.c [!defined _LIBC]: Likewise.
84728         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84729         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84730         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84731
84732         More changes to assume C89 or better.
84733
84734         * lib/error.c (error_tail): Assume vprintf.
84735
84736         * lib/argmatch.c (getenv): Remove decl.
84737         * lib/progreloc.c (get_full_program_name): Define via prototype.
84738         * lib/setenv.c (clearenv): Likewise.
84739         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84740         needed.
84741         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84742         (malloc, memcpy): Remove decls.
84743         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84744         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84745         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84746         (memcpy): Remove macro.
84747         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84748         (__P): Remove.  All uses removed.
84749         (PTR): Remove.  All uses changed to void *.
84750         (CHAR_BIT, NULL): Remove.
84751         (spaces, zeros, memset_space, memset_zero)
84752         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84753         Remove.
84754         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84755         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84756         Define with prototype.
84757         Remove now-unnecessary prototype decl.
84758         (extra_args_spec): Assume ANSI C.  All uses changed.
84759         (extra_args_spec_iso): Remove.
84760         (my_strftime, emacs_strftimeu): Define via prototype.
84761         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84762         unconditionally.
84763         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84764         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84765         (strtoul, strtol): Remove decls.
84766         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84767         LONG_MAX): Remove.
84768         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84769         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84770         (LOCALE_PARAM_PROTO): New macro.
84771         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84772         (INTERNAL (strtol), strtol): Define with a prototype.
84773         (PARAMS): Remove.  All uses removed.
84774         * lib/tempname.c: Include <string.h> unconditionally.
84775         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84776         * lib/xgethostname.c (main): Define with a prototype.
84777         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84778         Include <stdlib.h> unconditionally.
84779         (calloc, malloc, realloc, free): Remove decls.
84780         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84781         Include <stdlib.h> unconditionally.  Sort include file names.
84782         (strtod): Remove.
84783         (xstrtod): Define with a prototype.
84784         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84785         (strtol, strtoul): Remove decls.
84786
84787 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84788
84789         More patches to assume C89 or better.
84790         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84791         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84792         string.h, memchr, STDC_HEADERS.
84793
84794 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84795
84796         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84797         Include <stdlib.h>, <string.h> unconditionally.
84798         Remove now-unnecessary cast to char *.
84799         * lib/strnlen.c: Include <string.h> unconditionally.
84800         * lib/yesno.c (yesno): Define with a prototype.
84801
84802 2003-09-11  Bruno Haible  <bruno@clisp.org>
84803
84804         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84805
84806 2003-09-10  Jim Meyering  <jim@meyering.net>
84807
84808         * lib/error.c: Correct indentation of cpp directives.
84809
84810 2003-09-10  Bruno Haible  <bruno@clisp.org>
84811
84812         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84813         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84814         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84815         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84816         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84817         <stdlib.h> and <string.h> checks.
84818         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84819         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84820
84821 2003-09-10  Bruno Haible  <bruno@clisp.org>
84822
84823         * lib/strcspn.c: Include <string.h> unconditionally.
84824         * lib/strpbrk.c: Include <string.h> unconditionally.
84825         * lib/strstr.c: Include <string.h> unconditionally.
84826         * lib/unicodeio.c: Include <string.h> unconditionally.
84827         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84828         * lib/unsetenv.c: Likewise.
84829         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84830         * lib/yesno.c: Include <stdlib.h> unconditionally.
84831         (rpmatch): Add prototype.
84832
84833 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84834
84835         More patches to assume C89 or better.
84836         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84837         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84838         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84839         or for string.h.
84840         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84841         stdlib.h.
84842         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84843         C headers.
84844         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84845         string.h.
84846         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84847         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84848         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84849         or for string.h.
84850         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84851         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84852         C headers.
84853         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84854         memcpy.
84855         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84856         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84857         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84858         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84859         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84860         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84861         string.h, free.
84862         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84863         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84864         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84865         C headers, or for string.h.
84866         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84867         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84868         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84869         headers, memory.h, stdlib.h, string.h, strings.h.
84870         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84871         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84872         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84873         strchr.
84874         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84875         headers, memory.h, string.h.
84876         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84877         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84878         free.
84879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84880         headers.
84881         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84882         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84883         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84884         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84885         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84886
84887 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84888
84889         More K&R removal.
84890
84891         * lib/acosl.c (main): Use a prototype.
84892         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84893         tanl.c: Likewise.
84894
84895         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84896
84897         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84898         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84899         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84900         with a prototype.
84901         * lib/getopt.c (const): Remove macro.
84902         Include <string.h> unconditionally.
84903         (my_index): Remove; all uses changed to strchr.
84904         (strlen): Remove decl.
84905         (exchange): Remove forward decl; no longer needed.
84906         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84907         Define with prototype.
84908         * lib/getopt1.c (const): Remove macro.
84909         (getopt_long, getopt_long_only, main): Define with prototype.
84910
84911         * lib/getugroups.c: Include <string.h> unconditionally.
84912
84913         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84914         (getusershell, setusershell, endusershell, readname, main):
84915         Define with prototypes.
84916
84917         * lib/group-member.c: Include group-member.h first.
84918         Include <stdlib.h> unconditionally.
84919
84920         * lib/hard-locale.c: Include hard-locale.h first.
84921         Include <stdlib.h>, <string.h> unconditionally.
84922
84923         * lib/hash.c (free, malloc): Remove decls.
84924         Include <stdlib.h> unconditionally.
84925
84926         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84927         (getenv): Do not declare.
84928
84929         * lib/idcache.c: Include <string.h> unconditionally.
84930
84931         * lib/long-options.c: Include long-options.h first, to test interface.
84932         Include <stdlib.h> unconditionally.
84933
84934         * lib/makepath.c: Include makepath.h first, to test interface.
84935         Include <stdlib.h> and <string.h> unconditionally.
84936
84937         * lib/linebuffer.c: Include <stdlib.h>.
84938         (free): Remove decl.
84939
84940         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84941         stddef.h. rpl_malloc returns void *, not char *.
84942         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84943         prototype.
84944
84945         * lib/md5.h: Include <limits.h> unconditionally.
84946         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84947         (__P): Remove; all uses removed.
84948         * lib/md5.c: Include "md5.h" first.
84949         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84950         md5_buffer, md5_process_bytes, md5_process_block):
84951         Define with prototypes.
84952         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84953         * lib/sha.c: Include "sha.h" first.
84954         Include <stdlib.h>, <string.h> unconditionally.
84955
84956         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84957         * lib/memcmp.c (__ptr_t): Likewise.
84958         * lib/memrchr.c (__ptr_t): Likewise.
84959         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84960         Include <string.h> unconditionally.
84961         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84962         * lib/memchr.c: Include <stdlib.h> unconditionally.
84963         * lib/memchr.c (LONG_MAX): Remove.
84964         * lib/memrchr.c (LONG_MAX): Likewise.
84965         * lib/memchr.c (__memchr): Define via a prototype.
84966         * lib/memrchr.c (__memrchr): Likewise.
84967         * lib/memcmp.c (__P): Remove, and remove all uses.
84968         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84969         Remove forward decls; no longer needed.
84970         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84971         Use types required by C89 in prototype.
84972
84973         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84974         * lib/savedir.c: Likewise.
84975         * lib/mkdir.c (free): Remove decl.
84976         * lib/rmdir.c (rmdir): Define with a prototype.
84977         * lib/savedir.c: Include savedir.h first, to test interface.
84978
84979         * lib/mktime.c (STDC_HEADERS): Remove.
84980         Include <stdlib.h>, <string.h> unconditionally.
84981
84982         * lib/modechange.c: Include <stdlib.h> unconditionally.
84983         (malloc): Remove decl.
84984
84985         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84986         (free): Remove decl.
84987
84988         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84989         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84990         (This type really should be intptr_t, but that's a C99ism.)
84991         (_obstack_memcpy): Remove: all uses changed to memcpy.
84992         Include <string.h> unconditionally.
84993         (struct obstack): Assume __STDC__ for types of members
84994         chunkfun, freefun, extra_arg.
84995         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84996         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84997         obstack_begin, obstack_specify_allocation,
84998         obstack_specify_allocation_with_arg, obstack_chunkfun,
84999         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
85000         Remove unprototyped decls and the macros that use them.
85001         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
85002         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
85003         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
85004         (defined __STDC__ && __STDC__)]:
85005         Remove nonprototyped code.
85006         Include <stdlib.h> unconditionally.
85007         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
85008         _obstack_allocated_p, _obstack_free, obstack_free,
85009         _obstack_memory_used, print_and_abort):
85010         Define using prototypes.
85011         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85012         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85013         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85014         obstack_next_free, obstack_object_size, obstack_room) [0]:
85015         Remove unused, unprototyped code.
85016
85017         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85018
85019         * lib/physmem.c (physmem_total, physmem_available, main): Define
85020         with prototypes.
85021
85022         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85023         (main): Define with a prototype.
85024
85025         * lib/posixver.c (getenv): Remove decl.
85026
85027         * lib/putenv.c (malloc): Returns void *, not char *.
85028         Include <string.h> unconditionally.
85029         (strchr, memcpy, NULL): Do not define.
85030
85031         * lib/readtokens.c: Include readtokens.h first, to test interface.
85032         Include <stdlib.h>, <string.h> unconditionally.
85033         (init_tokenbuffer): Define with a prototype.
85034
85035         * lib/regex.c (PARAMS): Remove.  All uses removed.
85036         All uses of _RE_ARGS removed, too.
85037         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85038         unconditionally.
85039         (bzero): Assume memset exists.
85040         (memcmp, memcpy, NULL): Remove.
85041         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85042         char, or assignments to local vars of type signed char.
85043         (init_syntax_once, PREFIX(extract_number_and_incr),
85044         PREFIX(print_partial_compiled_pattern),
85045         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85046         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85047         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85048         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85049         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85050         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85051         wcs_compile_range, byte_compile_range, truncate_wchar,
85052         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85053         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85054         count_mbs_length, wcs_re_match_2_internal,
85055         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85056         PREFIX(alt_match_null_string_p),
85057         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85058         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85059         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85060         now-unnecessary declaration, if any.
85061         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85062         regcomp, regexec):
85063         Remove now-unnecessary casts among pointer types.
85064         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85065
85066         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85067         (free): Remove decl.
85068
85069         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85070
85071         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85072         (free): Remove decl.
85073
85074         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85075         * lib/xgetcwd.c: Likewise.
85076
85077         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85078         (free): Remove decl.
85079
85080         * lib/strchrnul.c (strchrnul): Define with a prototype.
85081         Fix bug: c_in was not converted to char before searching.
85082
85083         The following changes are not K&R related:
85084
85085         * lib/group-member.h: Include <sys/types.h>, so that this file is
85086         self-contained.
85087         * lib/makepath.h: Likewise.
85088
85089         * lib/getusershell.c (readname, default_index, line_size, readname):
85090         Use size_t, not int, for sizes.
85091         (readname): If the size overflows, report an error instead of
85092         looping forever.
85093
85094 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85095
85096         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85097         libc.
85098
85099 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85100
85101         * README: New section: portability guidelines.
85102
85103 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85104
85105         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85106         C89 spec.
85107
85108 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85109
85110         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85111
85112 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85113
85114         Assume C89 or better; remove K&R cruft.
85115         A few of these changes were first proposed by Derek Robert Price
85116         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85117
85118         * lib/addext.c: Include <string.h> unconditionally.
85119         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85120         Don't declare getenv or malloc.
85121
85122         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85123         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85124         (NULL): Remove.
85125         (find_stack_direction, alloca): Use prototypes.
85126
85127         * lib/atexit.c (atexit): Define using a prototype.
85128
85129         * lib/basename.c, dirname.c, stripslash.c:
85130         Include <string.h> unconditionally.
85131
85132         * lib/bcopy.c: Include <stddef.h>.
85133         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85134
85135         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85136
85137         * lib/error.h (error, error_at_line, error_print_progname)
85138         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85139         * lib/error.c: Include error.h first, to check interface.
85140         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85141         (VA_START): Remove; all uses changeed to va_start.
85142         (exit, strerror): Remove decls.
85143         (error_print_progname): Prototype uncondionally.
85144         Don't include <errno.h>; no longer needed.
85145         (private_strerror): Remove.
85146         (error_tail): Always define.
85147         (error, error_at_line): Assume C89 or better; always use prototypes.
85148         * lib/fatal.c: Include "fatal.h" first, to test interface.
85149         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85150         (VA_START): Remove; all uses changed to va_start.
85151         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85152         this case.
85153         (exit): Remove decl.
85154         (fatal): Prototype unconditionally.  Assume va_start works.
85155         Abort at end, to pacify gcc.
85156
85157         * lib/euidaccess.c (main): Define with a prototype.
85158
85159         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85160
85161         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85162
85163         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85164         prototypes.
85165         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85166         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85167         (getenv): Remove decl.
85168         (fnmatch): Define using a prototype.
85169         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85170         (FCT): Define using a prototype.
85171
85172         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85173
85174         * lib/gethostname.c: Include <stddef.h>.
85175         (gethostname): Define with prototype.  Length is size_t, not int.
85176
85177 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85178
85179         Assume C89 or better; remove K&R cruft.
85180         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85181         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85182         string.h, getenv, malloc.
85183         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85184         headers.
85185         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85186         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85187         do not check for strerror.
85188         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85189         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85190         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85191         do not check for doprnt or vprintf.
85192         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85193         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85194
85195 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85196
85197         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85198         getversion.c should have been removed then, but was accidentally
85199         preserved.
85200
85201         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85202         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85203
85204 2003-09-08  Karl Berry  <karl@gnu.org>
85205
85206         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85207                 config, forget about prep.
85208
85209         * config/depcomp, missing: update from automake.
85210
85211 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85212
85213         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85215
85216 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85217
85218         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85219         copy_tm_result.  Bug reported by Simon Josefsson in
85220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85221
85222 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85223
85224         * m4/time_r.m4: New file.
85225         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85227         is. Check for timegm declaration.
85228         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85229         Do not check for gmtime_r.
85230         Replace mktime if __mktime_internal does not exist and if mktime
85231         hasn't been replaced already.
85232
85233 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85234
85235         * lib/time_r.c, lib/time_r.h: New files.
85236
85237         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85238         __localtime_r.
85239         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85240         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85241
85242         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85243         __gmtime_r.
85244         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85245         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85246         Include <time_r.h>.
85247
85248         * lib/timegm.c: Switch to glibc implementation, with the following
85249         changes:
85250         [defined HAVE_CONFIG_H]: Include <config.h>.
85251         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85252         (__mktime_internal) [!defined _LIBC]: New decl.
85253         (__gmtime_r) [!defined _LIBC]: New macro and function.
85254         (timegm): Use a prototype, since gnulib assumes C89.
85255         Do not bother declaring tmp to be const, as it's not really usefu.
85256         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85257         (timegm): Declare only if HAVE_DECL_TIMEGM.
85258
85259 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85260
85261         * MODULES.html.sh (func_all_modules): Add time_r.
85262         * modules/time_r: New file.
85263         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85264         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85265
85266 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85267
85268         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85269         Bug reported by Lute Kamstra in
85270         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85271
85272         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85273         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85274         course with correspondingly smaller numbers for tomorrow and
85275         yesterday.  From Tadayoshi Funaba.  Originally installed into
85276         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85277         coreutils merge?).
85278
85279 2003-08-31  Simon Josefsson  <jas@extundo.com>
85280
85281         * modules/timegm: New file.
85282         * MODULES.html.sh (func_all_modules): Add timegm.
85283
85284 2003-08-31  Simon Josefsson  <jas@extundo.com>
85285
85286         * m4/timegm.m4: New file.
85287
85288 2003-08-31  Simon Josefsson  <jas@extundo.com>
85289
85290         * lib/timegm.h: New file.
85291         * lib/timegm.c: New file.  Based on
85292         wget-1.8.2/src/http.c:mktime_from_utc.
85293
85294 2003-08-31  Karl Berry  <karl@gnu.org>
85295
85296         * lib/argp.h: update from libc.
85297
85298 2003-08-28  Bruno Haible  <bruno@clisp.org>
85299
85300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85301         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85302         followed by '#define fnmatch fnmatch_posix' gives an error.
85303
85304 2003-08-28  Bruno Haible  <bruno@clisp.org>
85305
85306         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85307         warning on QNX, which defines O_BINARY to 000000.
85308
85309 2003-08-27  Jim Meyering  <jim@meyering.net>
85310
85311         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85312         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85313         would fail after 32.  Reported by Danny Levinson.  Details here:
85314         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85315
85316 2003-08-24  Bruno Haible  <bruno@clisp.org>
85317
85318         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85319         MSVC7 <stdio.h> is included later.
85320
85321 2003-08-22  Simon Josefsson  <jas@extundo.com>
85322
85323         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85324
85325 2003-08-20  Karl Berry  <karl@gnu.org>
85326
85327         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85328
85329 2003-08-20  Bruno Haible  <bruno@clisp.org>
85330
85331         * modules/progname: New file.
85332         * MODULES.html.sh (func_all_modules): Add progname.
85333
85334 2003-08-20  Bruno Haible  <bruno@clisp.org>
85335
85336         * lib/progname.h: New file, from GNU gettext.
85337         * lib/progname.c: New file, from GNU gettext.
85338         * lib/progreloc.c: New file, from GNU gettext.
85339
85340 2003-08-19  Jim Meyering  <jim@meyering.net>
85341
85342         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85343         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85344
85345 2003-08-19  Bruno Haible  <bruno@clisp.org>
85346
85347         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85348         more.
85349
85350 2003-08-19  Bruno Haible  <bruno@clisp.org>
85351
85352         * lib/xstrdup.c: Assume <string.h> exists.
85353
85354 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85355
85356         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85357         in makefile rules.
85358
85359 2003-08-18  Jim Meyering  <jim@meyering.net>
85360
85361         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85362         * m4/lib-ld.m4: Likewise.
85363
85364 2003-08-18  Jim Meyering  <jim@meyering.net>
85365
85366         * lib/setenv.h: Indent nested cpp directive.
85367         * lib/vasnprintf.c: Remove trailing blanks.
85368
85369 2003-08-17  Simon Josefsson  <jas@extundo.com>
85370
85371         * modules/xstrndup: New file.
85372         * MODULES.html.sh (func_all_modules): Add xstrndup.
85373
85374 2003-08-17  Simon Josefsson  <jas@extundo.com>
85375
85376         * modules/argp: Fix autoconf macro name. Add more dependencies.
85377
85378 2003-08-17  Simon Josefsson  <jas@extundo.com>
85379
85380         * m4/xstrndup.m4: New file.
85381
85382 2003-08-17  Simon Josefsson  <jas@extundo.com>
85383
85384         * m4/argp.m4: New file.
85385
85386 2003-08-17  Simon Josefsson  <jas@extundo.com>
85387             Bruno Haible  <bruno@clisp.org>
85388
85389         * lib/xstrndup.h: New file.
85390         * lib/xstrndup.c: New file.
85391
85392 2003-08-17  Bruno Haible  <bruno@clisp.org>
85393
85394         * modules/strndup (Files, Include): Add lib/strndup.h.
85395
85396 2003-08-17  Bruno Haible  <bruno@clisp.org>
85397
85398         * modules/euidaccess (Files): Add lib/euidaccess.h.
85399
85400 2003-08-17  Bruno Haible  <bruno@clisp.org>
85401
85402         * lib/strndup.h: New file.
85403
85404 2003-08-17  Bruno Haible  <bruno@clisp.org>
85405
85406         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85407         like AC_GNU_SOURCE.
85408         * modules/extensions (configure.ac): Comment out the invocation of
85409         gl_USE_SYSTEM_EXTENSIONS.
85410
85411 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85412
85413         Merges from coreutils, etc.
85414         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85415         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85416         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85417         fixing a typo.
85418         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85419         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85420
85421 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85422
85423         Document merge from coreutils.
85424         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85425         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85426         * modules/utime: Add m4/utimes-null.m4.
85427
85428 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85429
85430         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85431         space, undoing this 2003-08-12 change:
85432         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85433
85434 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85435
85436         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85437         strtoul.c from libc, undoing this 2003-08-12 change:
85438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85439
85440 2003-08-16  Jim Meyering  <jim@meyering.net>
85441
85442         Merges from coreutils.
85443         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85444         prefix.  Adjust cache variables similarly.  Create 500 rather than
85445         just 300 files, to exercise bug on Darwin6.5, too.
85446         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85447         $missing_dir.
85448         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85449         AM_SYS_POSIX_TERMIOS.
85450         Reported by mkc@mathdogs.com.
85451         Also change use of $am_cv_sys_posix_termios
85452         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85453         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85454         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85455         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85456         in /proc/mounts until it finds one with matching device number.  This
85457         is unnecessary when the FILE argument *is* a mount point.  No stat call
85458         is necessary in that case.  So, disable the statvfs-testing code on
85459         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85460         as RedHat bug# 84846.
85461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85462         to 1MB, so as not to render systems with no stack size limit (e.g.,
85463         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85464         Include <unistd.h>.  On some systems,
85465         it is required for the definition of _SC_PAGESIZE.
85466
85467 2003-08-16  Jim Meyering  <jim@meyering.net>
85468
85469         Merge from coreutils.
85470         * lib/xstrtoimax.c: #else #if -> #elif.
85471         * lib/xstrtoumax.c: Likewise.
85472
85473 2003-08-16  Jim Meyering  <jim@meyering.net>
85474
85475         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85476         * m4/utimes.m4: Removed.
85477         * m4/utimes-null.m4: Renamed from utimes.m4.
85478
85479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85480         to 1MB, so as not to render systems with no stack size limit (e.g.,
85481         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85482         Include <unistd.h>.  On some systems,
85483         it is required for the definition of _SC_PAGESIZE.
85484
85485 2003-08-16  Jim Meyering  <jim@meyering.net>
85486         and Paul Eggert  <eggert@cs.ucla.edu>
85487
85488         Merges from coreutils, etc.
85489
85490         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85491         using the latest version from cvs.  This avoids problems with #line
85492         directives using a vendor (Sun) compiler.
85493         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85494         Don't set GETGROUPS_LIB here; now it's
85495         done via getgroups.m4's wrapper function.
85496         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85497         rather than just in sh-util/configure.in, so that the
85498         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85499         same.
85500         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85501         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85502         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85503         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85504         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85505         Remove code that is now done by the newly-required macros.
85506         Append $(EXEEXT) to DF_PROG.
85507         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85508         Do not invoke or require the following here,
85509         since prereq.m4 or some gnulib .m4 now does this for us:
85510         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85511         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85512         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85513         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85514         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85515         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85516         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85517         AC_FUNC_OBSTACK.
85518         Do not replace the following functions, as this is now the job
85519         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85520         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85521         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85522         atexit getpass, strdup, getpagesize.
85523         Replace 'raise'.
85524         Do not check for the following functions, as this is now the job
85525         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85526         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85527         setregid.
85528         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85529         Check for sys/sysctl.h.
85530         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85531         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85532         of checking for ssize_t ourselves.
85533
85534         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85535         Require every macro that gnulib/modules/* suggests for us.
85536         (jm_PREREQ_ADDEXT): New macro.
85537         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85538         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85539
85540         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85541         (gl_PHYSMEM): Use it.
85542         Also check for `table' function.
85543         Check for new headers and functions.
85544         Add check for sys/sysmp.h.
85545         With suggestions from Kaveh Ghazi.
85546         Ignore headers that are present but cannot be compiled.  This
85547         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85548         C 5.4.
85549
85550 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85551
85552         Document merge from coreutils.
85553         * modules/userspec: Depend on posixver.
85554         * modules/strftime: Depend on tzset.
85555
85556 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85557
85558         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85559         rather than tab, after '#' in shell-script copyright notices.
85560         Suggested by Bruno Haible.
85561
85562 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85563
85564         * config/srclist-update: Use three spaces, rather than tab, after '#'
85565         in shell-script copyright notices.  Suggested by Bruno Haible.
85566         Remove unnecessary parenthesization in regular expression.
85567
85568 2003-08-15  Jim Meyering  <jim@meyering.net>
85569
85570         Merge from coreutils.
85571         * lib/xgethostname.c: Include <stdlib.h>.
85572         (xghostname): Don't exit for anything other than memory-related
85573         failure; just return NULL.
85574         * lib/userspec.c: Include "posixver.h".
85575         (parse_user_spec): Accept `.' as a separator only
85576         in pre-POSIX-200112 mode.
85577         * lib/strtoimax.c: Use #elif rather than #else #if.
85578         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85579         Remove function, now that we can rely on a working tzset function.
85580         [!_LIBC]: Ensure that the required autoconf test has been run.
85581         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85582         Use underlying_strftime for %r.
85583         * lib/sha.c: Merge in some clean-up and optimization changes from
85584         glibc.
85585         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85586         Ensure that it is a multiple of 64.
85587         Rearrange loop exit tests so as to avoid performing an
85588         additional fread after encountering an error or EOF.
85589         * lib/realloc.c: Update copyright date.
85590
85591 2003-08-15  Jim Meyering  <jim@meyering.net>
85592         and Paul Eggert  <eggert@twinsun.com>
85593
85594         Merge from coreutils.
85595         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85596         member but strut utmpx does not.  Needed for AIX 4.3.3.
85597         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85598
85599 2003-08-15  Jim Meyering  <jim@meyering.net>
85600         and Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         Merges from coreutils, etc.
85603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85604         Require gl_FUNC_TZSET_CLOBBER.
85605         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85606         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85607         members.
85608
85609 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85610
85611         Help the merge from coreutils.
85612         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85613         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85614         * m4/tzset.m4: Use it too.
85615
85616 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85617
85618         * modules/tzset: New file.
85619
85620 2003-08-14  Jim Meyering  <jim@meyering.net>
85621
85622         Merges from coreutils.
85623         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85624         variable names, rather than @FNMATCH_H@.
85625         * modules/alloca: Likewise for $(ALLOCA_H).
85626
85627         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85628         the three copies of the literal target, `fnmatch.h'.
85629         * modules/alloca (alloca.h): Likewise.
85630
85631 2003-08-14  Jim Meyering  <jim@meyering.net>
85632
85633         Merge from coreutils.
85634         * m4/tzset.m4: New file.
85635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85636         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85637         otherwise, AIX 5.1 systems would end up using the latter.
85638         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85639         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85640         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85641         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85642
85643 2003-08-14  Jim Meyering  <jim@meyering.net>
85644
85645         Merge from coreutils.
85646         * lib/obstack.h: Whitespace changes.
85647         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85648         and xcalloc return values.
85649         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85650         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85651         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85652         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85653         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85654         error from mntctl.
85655         Use mntctl's return value to drive the entry-processing loop, since
85656         we can't rely on the value of the vmt_length member in the last
85657         entry.  On some systems doing so could result in exhausting
85658         virtual memory.  Based in part on a patch from Mike Jetzer.
85659
85660 2003-08-14  Jim Meyering  <jim@meyering.net>
85661         and Paul Eggert  <eggert@twinsun.com>
85662
85663         Merges from coreutils, plus other fixes.
85664         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85665         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85666         for credits and details.  Thanks to Kaveh Ghazi for helping
85667         to keep these files in sync.
85668         (ARRAY_SIZE): Define it.
85669         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85670         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85671         (memcasecmp): Don't assume size_t fits in unsigned int.
85672         Remove casts and duplicate code.
85673         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85674         (memcpy): Remove definition.
85675         Merge in some clean-up and optimization changes from glibc.
85676         [BLOCKSIZE]: Move definition to top of file.
85677         Ensure that it is a multiple of 64.
85678         Rearrange loop exit tests so as to avoid performing an
85679         additional fread after encountering an error or EOF.
85680         * lib/md5.h (md5_uintptr): Define.
85681         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85682         return to the initial working directory.  Preserve errno
85683         for caller.
85684         * lib/idcache.c: Include "xalloc.h".
85685         (xmalloc, xrealloc): Remove decls.
85686         (getuser): Remove casts no longer required in C89.
85687         * lib/human.c: Include stdio.h, for sprintf.
85688         * lib/group-member.c: Include "xalloc.h".
85689         (xmalloc, xrealloc): Remove decls.
85690         (get_group_info): Remove casts no longer required in C89.
85691         * lib/getusershell.c (readname): Remove casts no longer required in
85692         C89.
85693         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85694         * lib/getline.c: Whitespace fix, from coreutils.
85695
85696 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85697
85698         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85699         Check for isascii.
85700
85701         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85702         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85703         Undo previous (whitespace-only) change.
85704
85705 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85706
85707         * lib/exclude.c: Include <ctype.h>
85708         (IN_CTYPE_DOMAIN): New macro.
85709         (is_space): New fn.
85710         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85711         and empty lines.
85712
85713         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85714         Undo previous (whitespace-only) change.
85715
85716 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85717
85718         * config/srclist-update: Change update back to the old behavior,
85719         leaving whitespace alone.  Use one 'sed' command rather than a
85720         pipeline.
85721         (fixlicense): Now a variable, not a function.
85722         (remove_trailing_blanks): Remove.
85723         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85724         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85725         Undo previous (whitespace-only) change.
85726
85727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85728
85729         Merge from coreutils.
85730         * modules/euidaccess: Add lib_SOURCES, include for new
85731         file euidaccess.h
85732
85733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85734
85735         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85736         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85737         Normalize leading white space and remove trailing white space.
85738
85739         Merge from coreutils
85740         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85741
85742         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85743         0.12.1.  These files are now being upgraded automatically by
85744         ../config/srclist-update.
85745
85746 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85747
85748         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85749         Normalize leading white space and remove trailing white space.
85750         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85751         notice, as per ../config/srclist-update.
85752
85753         Merge from coreutils.
85754         * lib/euidaccess.h: New file.
85755         * lib/euidaccess.c: Include it.
85756         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85757         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85758         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85759
85760 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85761
85762         * config/srclist-update: Add copyright notice.
85763         (remove_id_lines, remove_trailing_blanks): New constants.
85764         (fixfile): Use them to normalize spacing a bit in copied files.
85765         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85766         Normalize leading white space and remove trailing white space.
85767
85768         * config/texinfo.tex: Sync with texinfo.
85769
85770         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85771         strtoul.c from libc, to merge coreutils whitespace changes.
85772
85773         * config/srclist.txt: Get the following m4 files from gettext:
85774         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85775         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85776         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85777         wint_t.m4.
85778
85779 2003-08-12  Karl Berry  <karl@gnu.org>
85780
85781         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85782         been made.
85783
85784 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85785
85786         * modules/gnu-source, m4/gnu-source.m4:
85787         Remove; we're assuming Autoconf 2.54 or later now.
85788         Suggested by Bruno Haible.
85789         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85790
85791 2003-08-11  Bruno Haible  <bruno@clisp.org>
85792
85793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85794
85795 2003-08-11  Bruno Haible  <bruno@clisp.org>
85796
85797         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85798         (vasnprintf): Use it instead of wcslen.
85799
85800 2003-08-11  Bruno Haible  <bruno@clisp.org>
85801
85802         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85803         value to ensure that _Bool promotes to int. Use #define for _Bool when
85804         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85805
85806 2003-08-10  Karl Berry  <karl@gnu.org>
85807
85808         * lib/regex.h: update from libc (whitespace fix).
85809
85810 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85811
85812         Merge some files from coreutils.  These changes were
85813         originally made by Jim Meyering.
85814         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85815         many older Unixes require this.
85816         * lib/alloca.c (alloca): Remove cast to argument of free;
85817         no longer needed in C89.
85818         * lib/alloca_.h, regex.h: Fix white space to match
85819         what GNU indent does.
85820
85821 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85822
85823         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85824         apparently Emacs's Unicode mode got confused before my 2003-08-05
85825         checkin.
85826
85827 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85828
85829         * m4/extensions.m4: New file.
85830         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85831         Require gl_USE_SYSTEM_EXTENSIONS.
85832         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85833         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85834
85835 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85836
85837         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85838         * modules/extensions, modules/gnu-source: New files.
85839         * modules/timespec, modules/unlocked-io: Depend on extensions.
85840
85841 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85842
85843         * modules/restrict: New file.
85844         * MODULES.html.sh (func_all_modules): Add restrict.
85845         * modules/regex: Depend on restrict.
85846
85847 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85848
85849         * m4/restrict.m4: New file.
85850         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85851
85852 2003-08-07  Bruno Haible  <bruno@clisp.org>
85853
85854         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85855         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85856
85857 2003-08-07  Bruno Haible  <bruno@clisp.org>
85858
85859         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85860         makes the module 'getndelim2' compatible with the module 'getline'.
85861
85862 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85863
85864         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85865         byte with "\201" to avoid glitches when editing that source file
85866         with multi-gnome-terminal.
85867
85868 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85869
85870         * lib/bumpalloc.h: Remove.
85871
85872 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85873
85874         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85875         * modules/bumpalloc: Remove.
85876
85877 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85878
85879         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85880         GNU coding style.
85881
85882         Merge from coreutils.
85883         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85884         1. From glibc.
85885         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85886         from Karl Berry, implemented by Jim Meyering.
85887         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85888         from Dmitry V. Levin.
85889         Remove anachronistic cast of xrealloc.
85890         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85891         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85892         type. Otherwise, it wouldn't compile with at least /bin/cc on
85893         ymp-cray-unicos9.0.2.X.
85894         Combine two mostly-identical uses of alloca into one.
85895         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85896
85897 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85898
85899         [From Emacs.]
85900
85901         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85902         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85903         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85904         obsolete NLIST_NAME_UNION.
85905         [__GNU__]: Undef BSD and FSCALE.
85906         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85907
85908 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85909
85910         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85911         an enum type, so that it's guaranteed to promote to int.  See:
85912         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85913
85914 2003-08-03  Karl Berry  <karl@gnu.org>
85915
85916         * config/depcomp: update from automake.
85917
85918 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85919
85920         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85921         (strerror): Don't assume that a printable int fits in 14 bytes.
85922
85923 2003-07-31  Bruno Haible  <bruno@clisp.org>
85924
85925         * modules/getpass-gnu: New file.
85926         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85927
85928 2003-07-31  Bruno Haible  <bruno@clisp.org>
85929
85930         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85931
85932 2003-07-24  Karl Berry  <karl@gnu.org>
85933
85934         * config/missing: update from automake.
85935
85936 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85937             Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85940         * lib/getline.c (getline, getdelim): Likewise.
85941         Remove _GNU_SOURCE define; now it's defined in config.h through
85942         m4/getline.m4.
85943
85944 2003-07-23  Karl Berry  <karl@gnu.org>
85945
85946         * config/config.sub: update from prep.
85947
85948 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85949
85950         * modules/xalloc (Depends-on): Add exitfail.
85951         * modules/xmemcoll: Likewise.
85952
85953 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85954
85955         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85956         over-parenthesization in macros.
85957
85958         Sync with coreutils.
85959
85960         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85961         required by C99.
85962
85963         Use `exit_failure' for xalloc and xmemcoll instead of their own
85964         private exit-failure variables.
85965         * lib/xalloc.h (xalloc_exit_failure): Remove.
85966         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85967         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85968         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85969         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85970         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85971
85972 2003-07-20  Jim Meyering  <jim@meyering.net>
85973
85974         * modules/closeout (Depends-on): Add exitfail.
85975         Suggestion from Bruno Haible.
85976
85977 2003-07-19  Karl Berry  <karl@gnu.org>
85978
85979         * config/config.sub: update from prep.
85980
85981 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85982
85983         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85984         Remove.
85985         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85986         to test that it can stand by itself.  Include "exitfail.h".
85987         Clients should set exit_failure instead.
85988         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85989
85990 2003-07-18  Bruno Haible  <bruno@clisp.org>
85991
85992         * modules/getndelim2: New file.
85993         * modules/getline: Share files with module getndelim2.
85994         * modules/getnline: Depend on getndelim2 instead of sharing files with
85995         it. Add getnline.c to lib_SOURCES.
85996         * MODULES.html.sh (func_all_modules): Add getndelim2.
85997
85998 2003-07-18  Bruno Haible  <bruno@clisp.org>
85999
86000         * m4/getndelim2.m4: New file.
86001         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
86002         invoke gl_PREREQ_GETNDELIM2.
86003         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
86004         gl_PREREQ_GETNDELIM2.
86005         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
86006         gl_GETNDELIM2.
86007
86008 2003-07-18  Bruno Haible  <bruno@clisp.org>
86009
86010         * lib/getndelim2.h: New file.
86011         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86012         getndelim2.h.
86013         (getndelim2): Make non-static. Change return type to ssize_t.
86014         * lib/getline.h: Change argument names.
86015         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86016         * lib/getnline.c: Include getndelim2.h.
86017
86018 2003-07-18  Andreas Schwab  <schwab@suse.de>
86019
86020         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86021
86022 2003-07-17  Karl Berry  <karl@gnu.org>
86023
86024         * config/config.sub: update from prep.
86025
86026 2003-07-17  Bruno Haible  <bruno@clisp.org>
86027
86028         * modules/getnline: New file.
86029         * modules/getline: Add lib/getndelim2.c to source file list.
86030         * MODULES.html.sh (func_all_modules): Add getnline.
86031
86032 2003-07-17  Bruno Haible  <bruno@clisp.org>
86033
86034         * m4/getnline.m4: New file.
86035
86036 2003-07-17  Bruno Haible  <bruno@clisp.org>
86037
86038         * m4/Makefile.am.in: Remove file.
86039         * m4/Makefile.am: Remove file.
86040         * m4/Makefile.in: Remove file.
86041
86042 2003-07-17  Bruno Haible  <bruno@clisp.org>
86043
86044         * lib/getnline.h: New file.
86045         * lib/getnline.c: New file.
86046         * lib/getndelim2.c: New file, extracted from getline.c.
86047         (getndelim2): Renamed from getdelim2, with added nmax argument.
86048         * lib/getline.c: Include getndelim2.c.
86049         (getdelim2): Moved out to getndelim2.c.
86050         (getline, getdelim): Update.
86051
86052 2003-07-17  Bruno Haible  <bruno@clisp.org>
86053
86054         * lib/Makefile.am: Remove file.
86055         * lib/Makefile.in: Remove file.
86056
86057 2003-07-17  Bruno Haible  <bruno@clisp.org>
86058
86059         * configure.in: Remove file.
86060         * Makefile.in: Remove file.
86061
86062 2003-07-17  Bruno Haible  <bruno@clisp.org>
86063
86064         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86065
86066 2003-07-16  Karl Berry  <karl@gnu.org>
86067
86068         * config/srclist-update: was running fixlicense twice, which caused
86069                 texinfo.tex to be nullified for some reason.  Simplify,
86070                 $gplsrc is no longer needed as far as I can see?
86071
86072 2003-07-16  Jim Meyering  <jim@meyering.net>
86073
86074         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86075
86076 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86077
86078         * config/srclist.txt: Get the following files from gettext-runtime/intl
86079         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86080         ref-del.sin.  From Bruno Haible.
86081         * config/srclist-update (fixfile): Change grep pattern again, since the
86082         previous fix didn't work (there was another trailing $).  Use
86083         '[$]' to escape the $s.
86084
86085 2003-07-15  Karl Berry  <karl@gnu.org>
86086
86087         * lib/vasnprintf.c: update from gettext.
86088
86089 2003-07-15  Karl Berry  <karl@gnu.org>
86090
86091         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86092         gets expanded when surrounded by '$'.
86093
86094 2003-07-15  Jim Meyering  <jim@meyering.net>
86095
86096         * modules/save-cwd: Don't depend on error.  From Derek Price.
86097
86098 2003-07-15  Jim Meyering  <jim@meyering.net>
86099
86100         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86101
86102 2003-07-14  Simon Josefsson  <jas@extundo.com>
86103
86104         * modules/mempcpy: New file.
86105         * MODULES.html.sh (func_all_modules): Add mempcpy.
86106
86107 2003-07-14  Simon Josefsson  <jas@extundo.com>
86108
86109         * m4/mempcpy.m4: New file.
86110
86111 2003-07-14  Simon Josefsson  <jas@extundo.com>
86112
86113         * lib/mempcpy.h: New file.
86114         * lib/mempcpy.c: New file.
86115
86116 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86117
86118         * modules/getdate, modules/posixtm: Depend on mktime.
86119
86120 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86121
86122         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86123         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86124         unicodeio.c, unicodeio.h, unlocked-io.h:
86125         Switch from LGPL to GPL.
86126
86127 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86128
86129         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86130         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86131         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86132         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86133         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86134         updated automatically by ../config/srclist-update.  This changes
86135         their license from LPGL to GPL.
86136
86137 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86138
86139         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86140         assumed to refer to the root of the most recent stable gettext version.
86141         * config/srclistvars.sh: Add defaults for eggert.
86142         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86143         Match "This program" as well as "The program".  This is needed
86144         for gettext.
86145
86146 2003-07-14  Jim Meyering  <jim@meyering.net>
86147
86148         Don't emit diagnostics.  Let callers do that.
86149         * lib/save-cwd.c: Don't include "error.h".
86150         (save_cwd): Don't call error.  Ensure that errno is valid
86151         when returning nonzero.
86152
86153         * lib/save-cwd.h (restore_cwd): Update prototype.
86154         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86155         Simplify.  Don't call error upon failure.  Let callers do that.
86156         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86157         when auditing is enabled.  But don't bother updating the #if.
86158
86159 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86160
86161         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86162         it breaks C++ compilation.
86163         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86164
86165 2003-07-10  Simon Josefsson  <jas@extundo.com>
86166
86167         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86168
86169 2003-07-10  Jim Meyering  <jim@meyering.net>
86170
86171         * m4/clock_time.m4: Remove trailing blank.
86172         * m4/intmax_t.m4: Likewise.
86173
86174 2003-07-10  Jim Meyering  <jim@meyering.net>
86175
86176         * lib/vasnprintf.c: Remove trailing blanks.
86177         Make cpp indentation consistent.
86178
86179 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86180
86181         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86182         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86183         Switch from LGPL to GPL.
86184
86185 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86186
86187         * config/srclist.txt: Sort sublists.  Add
86188         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86189         that differ from gnulib for one reason or another; we'd like this list
86190         to be smaller but for now let's document what we have.
86191
86192 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86193
86194         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86195         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86196         and sweeter "eval x=$x".
86197         * config/srclist.txt: Get lib/argp* from glibc.
86198
86199 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86200
86201         * lib/mktime.c: Fix some boundary cases and remove need for floating
86202         point.
86203
86204         Issue a compile-time diagnostic if time_t is floating point, or if
86205         two's complement arithmetic is not in effect, or if arithmetic
86206         right shift does not propagate the sign.  These assumptions were
86207         all in the original code but they weren't checked.
86208
86209         (TIME_T_MIDPOINT, verify): New macros.
86210         (__isleap): Remove; it has integer overflow problems.
86211         (leapyear): New function, without those problems.
86212         (ydhms_tm_diff): Remove; splitting into two parts.
86213         (ydhms_diff): New function, containing the arithmetic part of
86214         the old ydhms_tm_diff function.  Issue a compile-time
86215         diagnostic if we are not using C99 integer division.
86216         Avoid casts when possible.
86217         (guess_time_tm): New function, containing the checking part of
86218         the old ydhms_tm_diff function.  Return the new value, rather than
86219         the difference between it and the old.  Accept a new argument T
86220         so that *T specifies the old value.  Check for overflow in the result.
86221
86222         (__mktime_internal): Use a time_t offset, not a long int offset.
86223         This undoes the 2003-06-04 change, which is no longer needed now
86224         that we have better overflow checking.
86225         (localtime_offset): Likewise.
86226
86227         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86228         and long are 64-bit but int is only 32-bit.
86229         (ydhms_diff): Use long int to store year1 and yday1.
86230         Issue a compile-time diagnostic if long int is not wide enough.
86231
86232         (__mktime_internal): Use long int to store adjusted year and yday.
86233         Use plain C rather than preprocessor commands, if that doesn't
86234         affect efficiency.
86235         Check for overflow (and try to repair) after each probe
86236         rather than checking only at the very end.  This avoids some bugs
86237         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86238         does not equal GMT offset at maximum time).
86239         Use integer to check for overflow rather than floating point; this
86240         is more portable to non-IEEE hosts, and is a tad faster.
86241         When we detect that we are oscillating between two values,
86242         don't check whether tm_isdst has the requested value, since
86243         we already know the answer.  When tm_isdst has the wrong value,
86244         use a different heuristic to find the right one, based on the
86245         extreme values actually observed in practice in tz2003a,
86246         rather than the (overly optimistic) "previous 3 calendar quarters".
86247
86248         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86249         "T const" to accommodate glibc style.
86250         (check_result): Use less-confusing report format.  "long" -> "long int.
86251         (main): Likewise.
86252         Don't loop if the iteration overflows time_t.
86253         Allow a negative step in the iteration.
86254
86255 2003-07-06  Karl Berry  <karl@gnu.org>
86256
86257         * config/depcomp: update from automake.
86258         * config/config.sub: update from prep.
86259
86260 2003-07-03  Karl Berry  <karl@gnu.org>
86261
86262         * config/config.guess: update from prep.
86263
86264 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86265
86266         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86267         xreadlink.c now includes it unconditionally.
86268
86269 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86270
86271         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86272         having it depend on HAVE_SYS_TYPES_H.
86273
86274 2003-07-01  Bruno Haible  <bruno@clisp.org>
86275
86276         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86277         <sys/types.h> should be sufficient.
86278         Reported by Paul Eggert.
86279
86280 2003-06-26  Karl Berry  <karl@gnu.org>
86281
86282         * config/depcomp: update from automake.
86283
86284 2003-06-26  Bruno Haible  <bruno@clisp.org>
86285
86286         * modules/human: Depend on module stdbool.
86287
86288 2003-06-25  Bruno Haible  <bruno@clisp.org>
86289
86290         * modules/readlink: New file.
86291         * modules/xreadlink: Depend on it.
86292         * MODULES.html.sh (func_all_modules): Add readlink.
86293
86294 2003-06-25  Bruno Haible  <bruno@clisp.org>
86295
86296         * m4/readlink.m4: New file.
86297
86298 2003-06-25  Bruno Haible  <bruno@clisp.org>
86299
86300         * lib/readlink.c: New file.
86301
86302 2003-06-22  Karl Berry  <karl@gnu.org>
86303
86304         * config/srclist.txt: update mkinstalldirs from automake.
86305         * config/mkinstalldirs: update.
86306
86307 2003-06-22  Bruno Haible  <bruno@clisp.org>
86308
86309         Portability to mingw32.
86310         * m4/ssize_t.m4: New file, from GNU gettext.
86311         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86312         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86313
86314 2003-06-22  Bruno Haible  <bruno@clisp.org>
86315
86316         * modules/safe-read: Add m4/ssize_t.m4.
86317         * modules/xreadlink: Add m4/ssize_t.m4.
86318
86319 2003-06-20  Bruno Haible  <bruno@clisp.org>
86320
86321         Assume C89, so PARAMS isn't needed.
86322         * lib/unicodeio.h (PARAMS): Remove.
86323         * lib/unicodeio.c: Don't use PARAMS.
86324
86325 2003-06-18  Karl Berry  <karl@gnu.org>
86326
86327         * config/config.{guess,sub}: update from prep.
86328
86329 2003-06-18  Jim Meyering  <jim@meyering.net>
86330
86331         Merge changes from coreutils.
86332         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86333         Remove explicit declarations of xmalloc and realloc.
86334         Include xalloc.h.
86335         (read_utmp): Remove anachronistic cast of xmalloc.
86336
86337 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86338
86339         Assume C89, so PARAMS isn't needed.
86340         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86341         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86342         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86343         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86344         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86345         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86346         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86347         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86348         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86349         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86350         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86351         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86352         no longer needed. Anyway, config.h should always be included before any
86353         other file.
86354
86355 2003-06-11  Simon Josefsson  <jas@extundo.com>
86356
86357         * modules/sysexits: New file.
86358         * MODULES.html.sh (func_all_modules): Add sysexits.
86359
86360 2003-06-11  Simon Josefsson  <jas@extundo.com>
86361
86362         * lib/sysexit_.h: New file.
86363
86364 2003-06-11  Derek Price  <derek@ximbiot.com>
86365
86366         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86367         necessary.
86368
86369 2003-06-11  Bruno Haible  <bruno@clisp.org>
86370
86371         * m4/sysexits.m4: New file.
86372
86373 2003-06-10  Simon Josefsson  <jas@extundo.com>
86374
86375         * lib/argp.h: New file, from glibc.
86376         * lib/argp-ba.c: New file, from glibc.
86377         * lib/argp-eexst.c: New file, from glibc.
86378         * lib/argp-fmtstream.c: New file, from glibc.
86379         * lib/argp-fmtstream.h: New file, from glibc.
86380         * lib/argp-fs-xinl.c: New file, from glibc.
86381         * lib/argp-help.c: New file, from glibc.
86382         * lib/argp-namefrob.h: New file, from glibc.
86383         * lib/argp-parse.c: New file, from glibc.
86384         * lib/argp-pv.c: New file, from glibc.
86385         * lib/argp-pvh.c: New file, from glibc.
86386         * lib/argp-xinl.c: New file, from glibc.
86387
86388 2003-06-10  Simon Josefsson  <jas@extundo.com>
86389
86390         * modules/strchrnul: New file.
86391
86392 2003-06-10  Simon Josefsson  <jas@extundo.com>
86393
86394         * modules/argp: New file.
86395
86396 2003-06-10  Simon Josefsson  <jas@extundo.com>
86397
86398         * m4/strchrnul.m4: New file.
86399
86400 2003-06-10  Simon Josefsson  <jas@extundo.com>
86401
86402         * lib/strchrnul.h: New file.
86403         * lib/strchrnul.c: New file.
86404
86405 2003-06-10  Bruno Haible  <bruno@clisp.org>
86406
86407         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86408
86409 2003-06-07  Karl Berry  <karl@gnu.org>
86410
86411         * config/config.{guess,sub}: update from prep.
86412
86413 2003-06-07  Jim Meyering  <jim@meyering.net>
86414
86415         * modules/strtod: Use $(...) notation, not @...@ for
86416         AC_REPLACE'd variables.
86417         * modules/localcharset: Likewise.
86418
86419 2003-06-07  Jim Meyering  <jim@meyering.net>
86420
86421         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86422         in place of my name in the copyright comment.
86423         Remove definition and uses of __P.
86424
86425         From coreutils.
86426         * lib/stat.c: Don't declare xmalloc explicitly.
86427         Instead, include "xalloc.h".
86428         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86429         xrealloc, and xcalloc return values.
86430         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86431         Improve comment.
86432         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86433
86434 2003-06-07  Bruno Haible  <bruno@clisp.org>
86435
86436         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86437         avoid AC_CONFIG_LINKS.
86438         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86439         fnmatch.h, to avoid AC_CONFIG_LINKS.
86440         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86441
86442 2003-06-07  Bruno Haible  <bruno@clisp.org>
86443
86444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86445         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86446         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86447         directory.
86448         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86449         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86450         directory.
86451
86452 2003-06-06  Jim Meyering  <jim@meyering.net>
86453
86454         Merge from coreutils.
86455         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86456         Consolidate declarations and initializations of *_base* locals.
86457
86458         Merge from coreutils.
86459         This avoids a core dump on systems without GNU putenv,
86460         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86461         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86462         (unsetenv): New static function, from GNU libc.
86463         (rpl_putenv): Use it.
86464
86465         * lib/modechange.c: Remove trailing blanks.
86466
86467         Merge from coreutils.
86468         * lib/fsusage.c: Remove declaration of statfs.
86469         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86470
86471         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86472
86473 2003-06-06  Jim Meyering  <jim@meyering.net>
86474
86475         * lib/stdbool_.h: Renamed from stdbool.h.in.
86476
86477 2003-06-06  Jim Meyering  <jim@meyering.net>
86478             Bruno Haible  <bruno@clisp.org>
86479
86480         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86481         Adjust Makefile.am snippet not to redirect directly to target.
86482         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86483
86484 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86485
86486         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86487         mismatch, look in future quarters as well as past.  This fixes a
86488         bug when processing fall-backwards gaps immediately after a long
86489         period of daylight-saving time.
86490
86491         * lib/mktime.c: Assume freestanding C89 or better.
86492         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86493         (__P): Remove; not used.
86494         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86495         (mktime, not_equal_tm, print_tm, check_result,
86496         main): Use prototypes.  Use const * where appropriate.
86497         (main): Fix typo in testing code that uncovered by above changes.
86498         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86499
86500 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86501
86502         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86503         locale.h, localeconv.  This merges changes from coreutils.
86504
86505         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86506         It can be removed after the next Autoconf is released.
86507         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86508         needed.
86509
86510 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86511
86512         * lib/mktime.c: Fix Debian bug 177940
86513         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86514         (localtime_offset): Now long int, not time_t, because we want it
86515         to be guaranteed to be signed.  All uses changed.
86516         (__mktime_internal): If overflow would occur when adding offset,
86517         don't add it.
86518
86519         Merge 'human' changes from coreutils.  Rewrite to support
86520         locale-specific notations like thousands separators.
86521         * lib/human.c: Simplify authorship notice.
86522         Include human.h immediately after config.h.
86523         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86524         <limits.h>: Do not include, since human.h does.
86525         (SIZE_MAX, UINTMAX_MAX): New macros.
86526         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86527         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86528         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86529         (power_letter): Renamed from suffixes.
86530         (generate_suffix_backwards): Remove.
86531         (adjust_value): Now takes int style (because of human.h changes)
86532         and long double value (for greater precision on some platforms).
86533         (group_number): New function.
86534         (human_readable): Use it.  Use integer options, not enum.
86535         Put the options before the sizes in the arg list.
86536         Support all the new options.
86537         The old human_readable function has been removed;
86538         use inttostr.h instead.
86539         (human_readable, default_block_size, humblock):
86540         Use uintmax_t, not int, for block sizes.
86541         (human_readable_inexact, block_size_types): Remove.
86542         (block_size_opts): New constant.
86543         (human_options): Renamed from human_block_size, with new signature
86544         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86545         * lib/human.h: Add copyright and authorship notice.
86546         Include <limits.h> and <stdbool.h> unconditionally.
86547         (PARAMS): Remove.  All uses removed.
86548         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86549         (enum human_inexact_style): Remove tag; now a nameless enum.
86550         (human_floor, human_ceiling, human_round_to_even): Now have
86551         values 2, 0, 1 rather than -1, 1, 0.
86552         (human_group_digits, human_suppress_point_zero, human_autoscale,
86553         human_base_1024, human_SI, human_B): New constants.
86554         (human_readable_inexact, human_block_size): Remove.
86555         (human_readable): Size args are now uintmax_t, not int.
86556         (human_options): New decl.
86557
86558         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86559         unnecessary now that we assume C89 or better.  This change
86560         imported from coreutils.
86561
86562         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86563         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86564         in the 2003-05-30 sync from glibc.
86565
86566         .h files should stand alone, but we shouldn't include <sys/types.h>
86567         if we can get away with just <stddef.h>.
86568
86569         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86570         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86571         rather than <sys/types.h>, as we merely need size_t.
86572         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86573         to get size_t.
86574         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86575         Include <stdio.h>, to get FILE.
86576         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86577         memcasecmp.h has included <stddef.h> and all we need is size_t.
86578         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86579         our interface, instead of including <sys/types.h>
86580
86581 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86582
86583         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86584         now, as glibc mktime is buggy on non-glibc systems.
86585
86586 2003-06-03  Karl Berry  <karl@gnu.org>
86587
86588         * config/config.sub: update from prep.
86589
86590 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86591
86592         [from coreutils]
86593         Fix some minor time-related bugs with POSIX time arguments.
86594         Some valid time stamps were being rejected (notably -1, and
86595         time stamps before 1900 on 64-bit hosts).  And some invalid
86596         time stamps were being accepted, e.g. September 31.
86597
86598         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86599         that we can return (time_t) -1 successfully.
86600         * lib/posixtm.c: Likewise.
86601         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86602         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86603         (t): Remove static var.
86604         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86605         of static var.  All uses changed.
86606         (year): Do not reject years before 1900; they can occur with
86607         64-bit time_t.
86608         (posix_time_parse): Do not check for out-of-range components;
86609         that is now the caller's responsibility, since our checks were
86610         only approximations.
86611         (posixtime): Use mktime to check for out-of-range components,
86612         since it knows them exactly.
86613         If mktime returns (time_t) -1, check whether an error actually occurred
86614         by invoking localtime on -1.
86615         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86616         posixtime failures better.
86617         Improve the test data (in comments only).
86618
86619 2003-06-02  Karl Berry  <karl@gnu.org>
86620
86621         * config/mkinstalldirs (version): new variable.
86622         (--version): new option.
86623         (usage): improve message.
86624
86625 2003-05-30  Karl Berry  <karl@gnu.org>
86626
86627         * lib/mktime.c: update from libc.
86628
86629 2003-05-30  Bruno Haible  <bruno@clisp.org>
86630
86631         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86632         * config/config.rpath: Upgrade to gettext-0.12.1.
86633
86634 2003-05-30  Bruno Haible  <bruno@clisp.org>
86635
86636         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86637         * m4/nls.m4: New file, from gettext-0.12.1.
86638         * m4/po.m4: New file, from gettext-0.12.1.
86639         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86640
86641 2003-05-30  Bruno Haible  <bruno@clisp.org>
86642
86643         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86644         * lib/localcharset.h: Likewise.
86645         * lib/localcharset.c: Likewise.
86646
86647 2003-05-29  Karl Berry  <karl@gnu.org>
86648
86649         * config/config.rpath: update from gettext.
86650
86651 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86652
86653         Assume the headers required for C89 freestanding compilers.
86654         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86655         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86656         * m4/human.m4 (gl_HUMAN): Likewise.
86657         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86658         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86659         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86660         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86662         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86663
86664 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86665
86666         Assume the headers required for C89 freestanding compilers.
86667         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86668         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86669         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86670         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86671         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86672         define, since <limits.h> is guaranteed to do that.
86673         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86674         * lib/exclude.c: Include <stdbool.h> unconditionally.
86675         * lib/tempname.c: Include <stddef.h> unconditionally.
86676         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86677         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86678         <stddef.h> does that.
86679         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86680         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86681         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86682         needed.
86683         * lib/xstrtol.c: Likewise.
86684         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86685         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86686
86687         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86688         warnings on some platforms.
86689
86690         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86691         arbitrarily.
86692
86693 2003-05-26  Jim Meyering  <jim@meyering.net>
86694
86695         Merge in a change from coreutils:
86696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86697         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86698         that condition, rather than `-1' which is slightly misleading.
86699         Change the name of the cache variable to have the gl_ prefix.
86700         Prompted by a patch from Richard Dawe for DJGPP.
86701
86702 2003-05-24  Karl Berry  <karl@gnu.org>
86703
86704         * config/config.guess: update from prep.
86705
86706 2003-05-22  Karl Berry  <karl@gnu.org>
86707
86708         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86709
86710 2003-05-20  Karl Berry  <karl@gnu.org>
86711
86712         * config/config.guess: update from prep.
86713
86714 2003-05-18  Karl Berry  <karl@gnu.org>
86715
86716         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86717         might actually be set by the user.
86718
86719         * config/depcomp, install-sh, mdate-sh: update from automake.
86720
86721 2003-05-17  Bruno Haible  <bruno@clisp.org>
86722
86723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86724         invalid expansion for AC_EGREP_CPP.
86725         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86727         Suggested by Akim Demaille <akim@epita.fr> in
86728         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86729
86730 2003-05-12  Jim Meyering  <jim@meyering.net>
86731
86732         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86733         the space-padded-by-default conversion specifiers, %e, %k, %l.
86734
86735 2003-05-12  Bruno Haible  <bruno@clisp.org>
86736
86737         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86738         the string is longer than 4 KB.
86739
86740 2003-05-11  Karl Berry  <karl@gnu.org>
86741
86742         * config/config.{guess,sub}: update from prep.
86743
86744 2003-05-09  Bruno Haible  <bruno@clisp.org>
86745
86746         * modules/error: Add m4/strerror_r.m4 to file list.
86747
86748 2003-05-03  Bruno Haible  <bruno@clisp.org>
86749
86750         Upgrade to Unicode-4.0.
86751         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86752         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86753         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86754         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86755         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86756         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86757         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86758         Change width of U+E0100..U+E01EF from 1 to 0.
86759
86760 2003-04-25  Jim Meyering  <jim@meyering.net>
86761
86762         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86763         of type size_t, not int.
86764
86765 2003-04-25  Bruno Haible  <bruno@clisp.org>
86766
86767         * lib/copy-file.c: Include <stddef.h>, for size_t.
86768
86769 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86770
86771         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86772         code which expansion is under static control.  Patch imported from
86773         Akim Demaille's patch to Bison; see
86774         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86775
86776 2003-04-14  Bruno Haible  <bruno@clisp.org>
86777
86778         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86779
86780 2003-04-11  Jim Meyering  <jim@meyering.net>
86781
86782         Merge changes from Coreutils.
86783
86784         2003-03-22  Jim Meyering  <jim@meyering.net>
86785
86786         * lib/strftime.c (widen): Cast alloca return value to proper type.
86787
86788         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86789
86790         From GNU libc.
86791         * lib/strftime.c (my_strftime): Handle very large width
86792         specifications for numeric values correctly.  Improve checks for
86793         overflow.
86794
86795         2003-01-19  Jim Meyering  <jim@meyering.net>
86796
86797         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86798         definitions.
86799         (nl_get_alt_digit) [! defined my_strftime]: Define.
86800         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86801         _nl_get_alt_digit and _nl_get_walt_digit.
86802
86803         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86804         libc. These changes have no effect outside of _LIBC.
86805
86806 2003-04-10  Bruno Haible  <bruno@clisp.org>
86807
86808         * modules/findprog: New file.
86809         * MODULES.html.sh (func_all_modules): Add it.
86810
86811 2003-04-10  Bruno Haible  <bruno@clisp.org>
86812
86813         * m4/findprog.m4: New file.
86814         * m4/eaccess.m4: New file.
86815
86816 2003-04-10  Bruno Haible  <bruno@clisp.org>
86817
86818         * lib/findprog.h: New file, from GNU gettext.
86819         * lib/findprog.c: New file, from GNU gettext.
86820
86821 2003-04-05  Jim Meyering  <jim@meyering.net>
86822
86823         Merge changes from Coreutils.
86824
86825         * lib/exclude.h (PARAMS): Remove definition and uses.
86826         * lib/exclude.c: Remove uses of `PARAMS'.
86827
86828         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86829         Add test-cases for DOS filenames. Declare program_name.
86830         (main): Set up program_name.  Patch by Rich Dawe.
86831
86832         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86833         error from mntctl.
86834         Use mntctl's return value to drive the entry-processing loop, since
86835         we can't rely on the value of the vmt_length member in the last
86836         entry.  On some systems doing so could result in exhausting
86837         virtual memory.  Based in part on a patch from Mike Jetzer.
86838
86839 2003-04-04  Bruno Haible  <bruno@clisp.org>
86840
86841         * modules/linebreak: New file.
86842         * MODULES.html.sh (func_all_modules): Add it.
86843
86844 2003-04-04  Bruno Haible  <bruno@clisp.org>
86845
86846         * m4/linebreak.m4: New file.
86847
86848 2003-04-04  Bruno Haible  <bruno@clisp.org>
86849
86850         * lib/linebreak.h: New file, from GNU gettext.
86851         * lib/linebreak.c: New file, from GNU gettext with slight
86852         modifications.
86853         * lib/lbrkprop.h: New file, from GNU gettext.
86854
86855 2003-04-03  Bruno Haible  <bruno@clisp.org>
86856
86857         * modules/utf8-ucs4: New file.
86858         * modules/utf16-ucs4: New file.
86859         * modules/ucs4-utf8: New file.
86860         * modules/ucs4-utf16: New file.
86861         * MODULES.html.sh (func_all_modules): Add them.
86862
86863 2003-04-03  Bruno Haible  <bruno@clisp.org>
86864
86865         * m4/utf-ucs4.m4: New file.
86866         * m4/ucs4-utf.m4: New file.
86867
86868 2003-04-03  Bruno Haible  <bruno@clisp.org>
86869
86870         * lib/utf8-ucs4.h: New file, from GNU gettext.
86871         * lib/utf16-ucs4.h: New file, from GNU gettext.
86872         * lib/ucs4-utf8.h: New file, from GNU gettext.
86873         * lib/ucs4-utf16.h: New file, from GNU gettext.
86874
86875 2003-04-02  Bruno Haible  <bruno@clisp.org>
86876
86877         * modules/binary-io: New file.
86878         * MODULES.html.sh (func_all_modules): Add it.
86879
86880 2003-04-02  Bruno Haible  <bruno@clisp.org>
86881
86882         * lib/binary-io.h: New file, from GNU gettext.
86883
86884 2003-04-01  Bruno Haible  <bruno@clisp.org>
86885
86886         * modules/pathname: New file.
86887         * MODULES.html.sh (func_all_modules): Add it.
86888
86889 2003-04-01  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/pathname.h: New file, from GNU gettext.
86892         * lib/concatpath.c: New file, from GNU gettext.
86893
86894 2003-03-30  Bruno Haible  <bruno@clisp.org>
86895
86896         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86897
86898 2003-03-30  Bruno Haible  <bruno@clisp.org>
86899
86900         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86901         function chown() doesn't exist.
86902
86903 2003-03-28  Bruno Haible  <bruno@clisp.org>
86904
86905         * modules/copy-file: New file.
86906         * MODULES.html.sh (func_all_modules): Add it.
86907
86908 2003-03-28  Bruno Haible  <bruno@clisp.org>
86909
86910         * m4/copy-file.m4: New file.
86911
86912 2003-03-28  Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/copy-file.h: New file, from GNU gettext.
86915         * lib/copy-file.c: New file, from GNU gettext.
86916
86917 2003-03-18  Jim Meyering  <jim@meyering.net>
86918
86919         * lib/quote.c (quote_n): Fix typo in comment.
86920
86921 2003-03-18  Bruno Haible  <bruno@clisp.org>
86922
86923         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86924         checking.
86925         * m4/onceonly_2_57.m4: Likewise.
86926
86927 2003-03-17  Bruno Haible  <bruno@clisp.org>
86928
86929         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86930         (m4_quote): Remove macro.
86931         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86932
86933 2003-03-14  Jim Meyering  <jim@meyering.net>
86934
86935         Merge changes from Coreutils.
86936         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86937         to be const, in order to avoid warnings.
86938         (obstack_room): Likewise.
86939         (obstack_empty_p): Likewise.
86940
86941 2003-03-14  Bruno Haible  <bruno@clisp.org>
86942
86943         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86944         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86945
86946 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86947
86948         Merge changes from Bison.
86949         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86950         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86951         when compiling Bison 1.875's `bitset bset = obstack_alloc
86952         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86953         * lib/hash.c: Include <stdbool.h> unconditionally.
86954
86955 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86956
86957         * m4/onceonly.m4 (m4_quote): New macro.
86958         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86959         Quote AC_FOREACH variable-expansions properly.
86960
86961 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86962
86963         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86964
86965 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86966
86967         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86968         Reported by Bruce Becker; see:
86969         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86970
86971 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86972             Bruno Haible  <bruno@clisp.org>
86973
86974         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86975         Reported by John Hughes, see
86976         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86977
86978 2003-02-20  Bruno Haible  <bruno@clisp.org>
86979
86980         * MODULES.html.sh (func_all_modules): Add poll.
86981
86982 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86983
86984         * modules/poll: New file.
86985
86986 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86987
86988         * lib/poll_.h: New file.
86989         * lib/poll.c: New file.
86990
86991 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86992
86993         * m4/poll.m4: New file.
86994
86995 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86996
86997         * modules/mathl: New file.
86998
86999 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87000
87001         * lib/mathl.h: New file.
87002         * lib/acosl.c: New file.
87003         * lib/asinl.c: New file.
87004         * lib/atanl.c: New file.
87005         * lib/ceill.c: New file.
87006         * lib/cosl.c: New file.
87007         * lib/expl.c: New file.
87008         * lib/floorl.c: New file.
87009         * lib/frexpl.c: New file.
87010         * lib/ldexpl.c: New file.
87011         * lib/logl.c: New file.
87012         * lib/sincosl.c: New file.
87013         * lib/sinl.c: New file.
87014         * lib/sqrtl.c: New file.
87015         * lib/tanl.c: New file.
87016         * lib/trigl.c: New file.
87017         * lib/trigl.h: New file.
87018
87019 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87020
87021         * m4/mathl.m4: New file.
87022
87023 2003-02-18  Bruno Haible  <bruno@clisp.org>
87024
87025         * MODULES.html.sh (func_all_modules): Add mathl.
87026
87027 2003-02-17  Bruno Haible  <bruno@clisp.org>
87028
87029         * modules/mkdtemp: New module.
87030         * MODULES.html.sh (func_all_modules): Add it.
87031
87032 2003-02-17  Bruno Haible  <bruno@clisp.org>
87033
87034         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87035
87036 2003-02-17  Bruno Haible  <bruno@clisp.org>
87037
87038         * lib/mkdtemp.h: New file, from GNU gettext.
87039         * lib/mkdtemp.c: New file, from GNU gettext.
87040
87041 2003-02-02  Jim Meyering  <jim@meyering.net>
87042
87043         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87044         e.g. glibc-2.2.93.
87045
87046 2003-01-31  Bruno Haible  <bruno@clisp.org>
87047
87048         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87049         'rpl_rename'.
87050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87051         'rpl_strnlen'.
87052         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87053         'rpl_strtod'.
87054         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87055         'rpl_utime'.
87056
87057 2003-01-31  Bruno Haible  <bruno@clisp.org>
87058
87059         * lib/rename.c: #undef rename before defining rpl_rename.
87060         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87061
87062 2003-01-30  Bruno Haible  <bruno@clisp.org>
87063
87064         * modules/vasnprintf, modules/vasprintf: New modules.
87065         * MODULES.html.sh (func_all_modules): Add them.
87066
87067 2003-01-30  Bruno Haible  <bruno@clisp.org>
87068
87069         * m4/signed.m4: New file, from GNU gettext.
87070         * m4/longdouble.m4: New file, from GNU gettext.
87071         * m4/wchar_t.m4: New file, from GNU gettext.
87072         * m4/wint_t.m4: New file, from GNU gettext.
87073         * m4/vasnprintf.m4: New file.
87074         * m4/vasprintf.m4: New file.
87075
87076 2003-01-30  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/printf-args.h: New file, from GNU gettext.
87079         * lib/printf-args.c: New file, from GNU gettext.
87080         * lib/printf-parse.h: New file, from GNU gettext.
87081         * lib/printf-parse.c: New file, from GNU gettext.
87082         * lib/vasnprintf.h: New file, from GNU gettext.
87083         * lib/vasnprintf.c: New file, from GNU gettext.
87084         * lib/asnprintf.c: New file, from GNU gettext.
87085         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87086         * lib/vasprintf.c: New file, from GNU gettext.
87087         * lib/asprintf.c: New file, from GNU gettext.
87088
87089 2003-01-29  Bruno Haible  <bruno@clisp.org>
87090
87091         * modules/stpncpy: New module.
87092         * MODULES.html.sh (func_all_modules): Add it.
87093
87094 2003-01-29  Bruno Haible  <bruno@clisp.org>
87095
87096         * m4/stpncpy.m4: New file.
87097
87098 2003-01-29  Bruno Haible  <bruno@clisp.org>
87099
87100         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87101         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87102
87103 2003-01-28  Bruno Haible  <bruno@clisp.org>
87104
87105         * modules/c-ctype: New module.
87106         * MODULES.html.sh (func_all_modules): Add it.
87107
87108 2003-01-28  Bruno Haible  <bruno@clisp.org>
87109
87110         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87111         Paul Eggert.
87112         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87113         Paul Eggert.
87114
87115 2003-01-27  Bruno Haible  <bruno@clisp.org>
87116
87117         * modules/xsetenv: New module.
87118         * MODULES.html.sh (func_all_modules): Add it.
87119
87120 2003-01-27  Bruno Haible  <bruno@clisp.org>
87121
87122         * lib/xsetenv.h: New file, from GNU gettext.
87123         * lib/xsetenv.c: New file, from GNU gettext.
87124
87125 2003-01-23  Jim Meyering  <jim@meyering.net>
87126
87127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87128         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87129
87130 2003-01-23  Bruno Haible  <bruno@clisp.org>
87131
87132         * modules/minmax: New module.
87133         * MODULES.html.sh (func_all_modules): Add it.
87134
87135 2003-01-23  Bruno Haible  <bruno@clisp.org>
87136
87137         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87138         Eggert.
87139
87140 2003-01-22  Bruno Haible  <bruno@clisp.org>
87141
87142         * modules/exit: New module.
87143         * MODULES.html.sh (func_all_modules): Add it.
87144
87145 2003-01-22  Bruno Haible  <bruno@clisp.org>
87146
87147         * lib/exit.h: New file, from GNU gettext.
87148
87149 2003-01-19  Bruno Haible  <bruno@clisp.org>
87150
87151         * gnulib-tool: Recognize option --extract-maintainer.
87152         (func_get_maintainer): New function.
87153         * modules/*: Add Maintainer entry.
87154
87155 2003-01-16  Jim Meyering  <jim@meyering.net>
87156
87157         * m4/regex.m4: The `regex' struct is both input and output.
87158         Initialize it before each use.  Patch by Tim Waugh.
87159
87160 2003-01-16  Bruno Haible  <bruno@clisp.org>
87161
87162         * MODULES.html.sh: Add a table of contents. Add the module name as
87163         leftmost column. Add hyperlinks.
87164
87165 2003-01-15  Bruno Haible  <bruno@clisp.org>
87166
87167         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87168
87169 2003-01-15  Bruno Haible  <bruno@clisp.org>
87170
87171         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87172         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87173         suffix.
87174
87175 2003-01-15  Bruno Haible  <bruno@clisp.org>
87176
87177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87178
87179 2003-01-15  Bruno Haible  <bruno@clisp.org>
87180
87181         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87182         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87183
87184 2003-01-14  Jim Meyering  <jim@meyering.net>
87185
87186         * lib/same.c (same_name): Tweak a comment.
87187
87188 2003-01-14  Bruno Haible  <bruno@clisp.org>
87189
87190         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87191         when a string comparison is sufficient.
87192
87193 2003-01-14  Bruno Haible  <bruno@clisp.org>
87194
87195         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87196         'unsigned int'.
87197
87198 2003-01-14  Bruno Haible  <bruno@clisp.org>
87199
87200         * lib/hash-pjw.c: Add comment about low quality of this function.
87201
87202 2003-01-13  Bruno Haible  <bruno@clisp.org>
87203
87204         * modules/stpcpy: Distribute lib/stpcpy.h.
87205         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87206
87207 2003-01-13  Bruno Haible  <bruno@clisp.org>
87208
87209         * modules/*: Add a description.
87210         * modules/strpbrk: Fix Makefile.am snippet.
87211         * modules/strtoimax: Fix dependencies.
87212         * modules/strtoumax: Likewise.
87213
87214 2003-01-13  Bruno Haible  <bruno@clisp.org>
87215
87216         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87217         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87218         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87219
87220 2003-01-13  Bruno Haible  <bruno@clisp.org>
87221
87222         * gnulib-tool (func_create_testdir): Store config/* files in the main
87223         directory.
87224         * config.rpath: Move to ...
87225         * config/config.rpath: ... here.
87226         * modules/gettext: Contains config/config.rpath, not config.rpath.
87227         * modules/iconv: Likewise.
87228
87229 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87230
87231         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87232         to avoid collisions with libcurses and libreadline.
87233
87234         * m4/getstr.m4: Remove.
87235         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87236
87237 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87238
87239         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87240         to avoid collisions with libcurses and libreadline.
87241
87242         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87243         * lib/getstr.h, getstr.c: Remove.
87244         * lib/getline.c: Include "getline.h", to check interface.
87245         Move body of old getstr.c here: this defines MIN_CHUNK and
87246         declares getdelim2, which is renamed from getstr.
87247         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87248
87249         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87250         All uses changed.
87251         * lib/linebuffer.h: Likewise.
87252         (readline): Remove backward-compatibility macro.
87253
87254 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87255
87256         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87257         to avoid collisions with libcurses and libreadline.
87258         * getstr: Remove.
87259         * MODULES.html.sh: Remove getstr.
87260         * modules/getline: Depend on unlocked-io, not getstr.
87261
87262 2003-01-12  Jim Meyering  <jim@meyering.net>
87263
87264         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87265
87266 2003-01-10  Bruno Haible  <bruno@clisp.org>
87267
87268         * modules/alloca: Change Makefile.am requirements. Simplify Include
87269         requirements. Add lib/alloca_.h to file list.
87270
87271 2003-01-10  Bruno Haible  <bruno@clisp.org>
87272
87273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87274
87275 2003-01-10  Bruno Haible  <bruno@clisp.org>
87276
87277         * lib/alloca_.h: New file.
87278         * lib/getdate.y: Unconditionally include alloca.h.
87279         * lib/makepath.c: Likewise.
87280         * lib/setenv.c: Likewise.
87281         * lib/userspec.c: Likewise.
87282
87283 2003-01-09  Karl Berry  <karl@gnu.org>
87284
87285         * MODULES.html.sh: include `dirname $0` in PATH, to find
87286         gnulib-tool.
87287
87288 2003-01-09  Bruno Haible  <bruno@clisp.org>
87289
87290         * modules/stdbool: Change configure.ac, Makefile.am requirements.
87291         Simplify Include requirements. Add lib/stdbool.h.in to file list.
87292
87293 2003-01-09  Bruno Haible  <bruno@clisp.org>
87294
87295         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87296
87297 2003-01-09  Bruno Haible  <bruno@clisp.org>
87298
87299         * lib/stdbool.h.in: New file.
87300
87301 2003-01-09  Bruno Haible  <bruno@clisp.org>
87302
87303         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87304         * MODULES.html.sh: Likewise.
87305
87306 2003-01-08  Jim Meyering  <jim@meyering.net>
87307
87308         * lib/full-write.c: Undefine and define-away `const' after inclusion
87309         of errno.h, not before.  Suggestion from Bruno Haible.
87310
87311 2003-01-08  Bruno Haible  <bruno@clisp.org>
87312
87313         * modules/full-read: Depend on full-write.
87314
87315 2003-01-08  Bruno Haible  <bruno@clisp.org>
87316
87317         * lib/safe-read.c: Include specification header first, to ensure its
87318         selfcontainedness.
87319         * lib/full-write.c: Likewise.
87320
87321 2003-01-07  Jim Meyering  <jim@meyering.net>
87322
87323         * lib/full-write.c: Rework so that it may serve to define full_read,
87324         too.
87325         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87326
87327 2003-01-07  Bruno Haible  <bruno@clisp.org>
87328
87329         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87330         <inttypes.h>.
87331         * lib/xstrtol.h: Likewise.
87332         * lib/xstrtoimax.c: Likewise.
87333         * lib/xstrtoumax.c: Likewise.
87334         * lib/human.h: Likewise.
87335
87336         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87337         on systems that have <inttypes.h> but not <stdint.h>.
87338
87339 2003-01-07  Bruno Haible  <bruno@clisp.org>
87340
87341         * MODULES.html.sh: Add copyright notice.
87342         (missed_files): Omit CVS directory entries.
87343         (func_module): Make it work with sed-3.02.
87344         * MODULES.txt: Remove file.
87345
87346 2003-01-06  Jim Meyering  <jim@meyering.net>
87347
87348         * lib/version-etc.c: Update year in translatable copyright string.
87349
87350 2003-01-03  Karl Berry  <karl@gnu.org>
87351
87352         * config/config.{guess,sub}: update from prep.
87353
87354 2003-01-02  Karl Berry  <karl@gnu.org>
87355
87356         * doc/COPYING.DOC: belatedly updated to 1.2.
87357
87358 2003-01-01  Karl Berry  <karl@gnu.org>
87359
87360         * gnulib-tool (func_verify_module): report module name $module in
87361         error message, not $1.
87362         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87363         be created, only if it doesn't exist.
87364         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87365
87366 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87367
87368         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87369
87370 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87371
87372         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87373         memcmp if strcoll doesn't work.
87374
87375 2002-12-31  Bruno Haible  <bruno@clisp.org>
87376
87377         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87378         nonempty.
87379
87380 2002-12-31  Bruno Haible  <bruno@clisp.org>
87381
87382         * lib/memcoll.c (STRCOLL): New macro.
87383         (memcoll): Use it.
87384
87385 2002-12-31  Bruno Haible  <bruno@clisp.org>
87386
87387         * lib/localcharset.h: New file.
87388         * lib/localcharset.c: Include it.
87389         * lib/unicodeio.c: Likewise.
87390
87391 2002-12-31  Bruno Haible  <bruno@clisp.org>
87392
87393         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87394         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87395
87396 2002-12-31  Bruno Haible  <bruno@clisp.org>
87397
87398         * lib/getline.h: Include <stddef.h>, for size_t.
87399
87400         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87401         * lib/unicodeio.c: Don't include <stddef.h>.
87402
87403 2002-12-31  Bruno Haible  <bruno@clisp.org>
87404
87405         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87406         HAVE_TM_ZONE.
87407
87408 2002-12-24  Karl Berry  <karl@gnu.org>
87409
87410         * config/config.guess: update from prep.
87411
87412 2002-12-24  Bruno Haible  <bruno@clisp.org>
87413
87414         General infrasructure.
87415         * m4/README: Rewritten.
87416         * m4/onceonly.m4: New file.
87417         * m4/onceonly_2_57.m4: New file.
87418
87419         Module atexit.
87420         * m4/atexit.m4: New file.
87421
87422         Module strtod.
87423         * m4/strtod.m4: New file.
87424
87425         Module strtol.
87426         * m4/strtol.m4: New file.
87427
87428         Module strtoul.
87429         * m4/strtoul.m4: New file.
87430
87431         Module memchr.
87432         * m4/memchr.m4: New file.
87433
87434         Module memcmp.
87435         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87436         (jm_FUNC_MEMCMP): Invoke it.
87437
87438         Module memcpy.
87439         * m4/memcpy.m4: New file.
87440
87441         Module memmove.
87442         * m4/memmove.m4: New file.
87443
87444         Module memset.
87445         * m4/memset.m4: New file.
87446
87447         Module strcspn.
87448         * m4/strcspn.m4: New file.
87449
87450         Module strpbrk.
87451         * m4/strpbrk.m4: New file.
87452
87453         Module strstr.
87454         * m4/strstr.m4: New file.
87455
87456         Module strerror.
87457         * m4/strerror.m4: New file.
87458
87459         Module mktime.
87460         * m4/mktime.m4: Renamed from jm-mktime.m4.
87461         (gl_PREREQ_MKTIME): New macro.
87462         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87463
87464         Module malloc.
87465         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87466         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87467         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87468
87469         Module realloc.
87470         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87471         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87472         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87473
87474         Module strftime.
87475         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87476         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87477         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87478         gl_TM_GMTOFF.
87479         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87480
87481         Module xalloc.
87482         * m4/xalloc.m4: New file.
87483
87484         Module alloca.
87485         * m4/alloca.m4: New file.
87486
87487         Module putenv.
87488         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87489         (jm_FUNC_PUTENV): Invoke it.
87490
87491         Module setenv.
87492         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87493         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87494         when invoked twice.
87495         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87496         gt_FUNC_SETENV.
87497
87498         Module memrchr.
87499         * m4/memrchr.m4: New file.
87500
87501         Module stpcpy.
87502         * m4/stpcpy.m4: New file.
87503
87504         Module strcase.
87505         * m4/strcase.m4: New file.
87506
87507         Module strdup.
87508         * m4/strdup.m4: New file.
87509
87510         Module strnlen.
87511         * m4/strnlen.m4: New file.
87512
87513         Module strndup.
87514         * m4/strndup.m4: New file.
87515
87516         Module xstrtod.
87517         * m4/xstrtod.m4: New file.
87518
87519         Module xstrtol.
87520         * m4/xstrtol.m4: New file.
87521
87522         Module getdate.
87523         * m4/getdate.m4: New file.
87524
87525         Module unlocked-io.
87526         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87527         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87528         * m4/jm-glibc-io.m4n: Remove file.
87529
87530         Module long-options.
87531         * m4/long-options.m4: New file.
87532
87533         Module md5.
87534         * m4/md5.m4: New file.
87535
87536         Module sha.
87537         * m4/sha.m4: New file.
87538
87539         Module getstr.
87540         * m4/getstr.m4: New file.
87541
87542         Module getline.
87543         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87544         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87545         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87546         simply getline. Infoke gl_PREREQ_GETLINE.
87547
87548         Module obstack.
87549         * m4/obstack.m4: New file.
87550
87551         Module hash.
87552         * m4/hash.m4: New file.
87553
87554         Module readtokens.
87555         * m4/readtokens.m4: New file.
87556
87557         Module strverscmp.
87558         * m4/strverscmp.m4: New file.
87559
87560         Module stdbool.
87561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87562         OSF/1.
87563
87564         Module strtoll.
87565         * m4/strtoll.m4: New file.
87566
87567         Module strtoull.
87568         * m4/strtoull.m4: New file.
87569
87570         Module strtoimax.
87571         * m4/strtoimax.m4: New file.
87572
87573         Module strtoumax.
87574         * m4/strtoumax.m4: New file.
87575
87576         Module xstrtoimax.
87577         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87578         jm_AC_PREREQ_XSTRTOIMAX.
87579         Moved the strtol prerequisites to strtol.m4.
87580         Moved the strtoll prerequisites to strtoll.m4.
87581         Moved the strtoimax prerequisites to strtoimax.m4.
87582
87583         Module xstrtoumax.
87584         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87585         jm_AC_PREREQ_XSTRTOUMAX.
87586         Moved the strtoul prerequisites to strtoul.m4.
87587         Moved the strtoull prerequisites to strtoull.m4.
87588         Moved the strtoumax prerequisites to strtoumax.m4.
87589
87590         Module chown.
87591         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87592         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87593
87594         Module dup2.
87595         * m4/dup2.m4: New file.
87596
87597         Module ftruncate.
87598         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87599         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87600
87601         Module getgroups.
87602         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87603         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87604
87605         Module gettimeofday.
87606         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87608         gl_PREREQ_GETTIMEOFDAY.
87609
87610         Module mkdir.
87611         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87612         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87613
87614         Module mkstemp.
87615         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87616         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87617         jm_AC_TYPE_UINTMAX_T.
87618         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87619
87620         Module stat.
87621         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87622         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87623
87624         Module lstat.
87625         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87626         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87627
87628         Module timespec.
87629         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87630         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87631         * m4/st_mtim.m4: Indentation.
87632
87633         Module nanosleep.
87634         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87635         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87636         gl_PREREQ_NANOSLEEP.
87637
87638         Module regex.
87639         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87640         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87641         (gl_REGEX): New macro.
87642
87643         Module rename.
87644         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87645         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87646
87647         Module rmdir.
87648         * m4/rmdir.m4: New file.
87649
87650         Module utime.
87651         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87652         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87653         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87654
87655         Module dirname.
87656         * m4/dirname.m4: New file.
87657
87658         Module getopt.
87659         * m4/getopt.m4: New file.
87660
87661         Module unistd-safer.
87662         * m4/unistd-safer.m4: New file.
87663
87664         Module fnmatch.
87665         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87666         declaration.
87667         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87668         (gl_FUNC_FNMATCH_POSIX): New macro.
87669         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87670         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87671         simply fnmatch.
87672
87673         Module exclude.
87674         * m4/exclude.m4: New file.
87675
87676         Module human.
87677         * m4/human.m4: New file.
87678
87679         Module acl.
87680         * m4/acl.m4: Nop.
87681
87682         Module backupfile.
87683         * m4/backupfile.m4: New file.
87684         * m4/d-ino.m4: Indentation.
87685
87686         Module fsusage.
87687         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87688         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87689         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87690
87691         Module dirfd.
87692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87693         requirements.
87694
87695         Module euidaccess.
87696         * m4/euidaccess.m4: New file.
87697
87698         Module file-type.
87699         * m4/file-type.m4: New file.
87700
87701         Module fileblocks.
87702         * m4/fileblocks.m4: New file.
87703
87704         Module filemode.
87705         * m4/filemode.m4: New file.
87706
87707         Module isdir.
87708         * m4/isdir.m4: New file.
87709
87710         Module lchown.
87711         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87712         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87713
87714         Module makepath.
87715         * m4/makepath.m4: New file.
87716
87717         Module modechange.
87718         * m4/modechange.m4: New file.
87719
87720         Module mountlist.
87721         * m4/mountlist.m4: New file.
87722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87723         Indentation.
87724
87725         Module path-concat.
87726         * m4/path-concat.m4: New file.
87727
87728         Module pathmax.
87729         * m4/pathmax.m4: New file.
87730
87731         Module same.
87732         * m4/same.m4: New file.
87733
87734         Module save-cwd.
87735         * m4/save-cwd.m4: New file.
87736
87737         Module savedir.
87738         * m4/savedir.m4: New file.
87739
87740         Module xgetcwd.
87741         * m4/xgetcwd.m4: New file.
87742         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87743
87744         Module xreadlink.
87745         * m4/xreadlink.m4: New file.
87746
87747         Module safe-read.
87748         * m4/safe-read.m4: New file.
87749
87750         Module safe-write.
87751         * m4/safe-write.m4: New file.
87752
87753         Module closeout.
87754         * m4/closeout.m4: New file.
87755
87756         Module stdio-safer.
87757         * m4/stdio-safer.m4: New file.
87758
87759         Module getpass.
87760         * m4/getpass.m4: New file.
87761
87762         Module getugroups.
87763         * m4/getugroups.m4: New file.
87764
87765         Module group-member.
87766         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87767         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87768
87769         Module idcache.
87770         * m4/idcache.m4: New file.
87771
87772         Module userspec.
87773         * m4/userspec.m4: New file.
87774
87775         Module gettime.
87776         * m4/clock_time.m4: New file.
87777         * m4/gettime.m4: New file.
87778
87779         Module settime.
87780         * m4/settime.m4: New file.
87781
87782         Module posixtm.
87783         * m4/posixtm.m4: New file.
87784
87785         Module gethostname.
87786         * m4/gethostname.m4: New file.
87787
87788         Module canon-host.
87789         * m4/canon-host.m4: New file.
87790
87791         Module gettext.
87792         * m4/codeset.m4: New file, from gettext-0.11.5.
87793         * m4/gettext.m4: New file, from gettext-0.11.5.
87794         * m4/glibc21.m4: New file, from gettext-0.11.5.
87795         * m4/iconv.m4: New file, from gettext-0.11.5.
87796         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87797         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87798         * m4/inttypes.m4: New file, from gettext-0.11.5.
87799         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87800         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87801         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87802         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87803         * m4/lib-link.m4: New file, from gettext-0.11.5.
87804         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87805         * m4/progtest.m4: New file, from gettext-0.11.5.
87806         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87807         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87808         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87809
87810         Module localcharset.
87811         * m4/localcharset.m4: New file.
87812
87813         Module hard-locale.
87814         * m4/hard-locale.m4: New file.
87815
87816         Module mbswidth.
87817         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87818         onceonly macros.
87819         * m4/mbrtowc.m4: Add comment.
87820
87821         Module memcasecmp.
87822         * m4/memcasecmp.m4: New file.
87823
87824         Module memcoll.
87825         * m4/memcoll.m4: New file.
87826
87827         Module unicodeio.
87828         * m4/unicodeio.m4: New file.
87829
87830         Module rpmatch.
87831         * m4/rpmatch.m4: New file.
87832
87833         Module yesno.
87834         * m4/yesno.m4: New file.
87835
87836         Module exitfail.
87837         * m4/exitfail.m4: New file.
87838
87839         Module c-stack.
87840         * m4/c-stack.m4 (gl_C_STACK): New macro.
87841         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87842
87843         Module error.
87844         * m4/error.m4 (gl_ERROR): New macro.
87845         (jm_PREREQ_ERROR): Use onceonly macros.
87846
87847         Module fatal.
87848         * m4/fatal.m4: New file.
87849
87850         Module getloadavg.
87851         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87852         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87853
87854         Module getpagesize.
87855         * m4/getpagesize.m4: New file.
87856
87857         Module getusershell.
87858         * m4/getusershell.m4: New file.
87859
87860         Module physmem.
87861         * m4/physmem.m4: New file.
87862
87863         Module posixver.
87864         * m4/posixver.m4: New file.
87865
87866         Module quotearg.
87867         * m4/quotearg.m4: New file.
87868
87869         Module quote.
87870         * m4/quote.m4: New file.
87871
87872         Module readutmp.
87873         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87874
87875         Module sig2str.
87876         * m4/sig2str.m4: New file.
87877
87878         Other.
87879         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87880         ulonglong.m4.
87881         * m4/intmax_t.m4: New file.
87882         * m4/d-type.m4: Indentation.
87883         * m4/jm-macros.m4: Update.
87884         * m4/prereq.m4 (jm_PREREQ): Update.
87885         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87886         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87887         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87888         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87889         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87890         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87891         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87892         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87893         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87894         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87895         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87896         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87897         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87898         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87899         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87900         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87901         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87902         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87903         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87904
87905 2002-12-24  Bruno Haible  <bruno@clisp.org>
87906
87907         * MODULES.txt: Update according to m4/ changes.
87908
87909         Module gettext.
87910         * config.rpath: New file, from gettext-0.11.5.
87911
87912         * modules/*: New module descriptions.
87913         * gnulib-tool: New file.
87914         * MODULES.html.sh: New file.
87915
87916 2002-12-21  Karl Berry  <karl@gnu.org>
87917
87918         * doc/fdl.texi: update to version 1.2.
87919
87920 2002-12-19  Karl Berry  <karl@gnu.org>
87921
87922         * config/config.guess: update from prep.
87923
87924 2002-12-18  Bruno Haible  <bruno@clisp.org>
87925
87926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87927         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87928
87929 2002-12-17  Bruno Haible  <bruno@clisp.org>
87930
87931         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87932         stdlib.h, string.h.
87933
87934 2002-12-17  Bruno Haible  <bruno@clisp.org>
87935
87936         * lib/canon-host.c (strdup): Remove unused declaration.
87937
87938         * lib/fsusage.c: Include full_read.h.
87939         (get_fs_usage): Use full_read instead of safe_read.
87940
87941         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87942
87943 2002-12-12  Karl Berry  <karl@gnu.org>
87944
87945         * config/config.guess: update from prep.
87946
87947 2002-12-11  Bruno Haible  <bruno@clisp.org>
87948
87949         * m4/setenv.m4: New file, from gettext-0.11.5.
87950
87951 2002-12-11  Bruno Haible  <bruno@clisp.org>
87952
87953         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87954         not unsetenv().
87955         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87956         modifications:
87957
87958         2002-12-11  Bruno Haible  <bruno@clisp.org>
87959
87960                 * setenv.c (alloca): Fall back to malloc.
87961                 (freea): New macro.
87962                 (setenv): Use freea() to free memory allocated with alloca().
87963
87964         2002-11-13  Bruno Haible  <bruno@clisp.org>
87965
87966                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87967                 function declarations.
87968                 * unsetenv.c (unsetenv): Likewise.
87969
87970         2002-03-04  Bruno Haible  <bruno@clisp.org>
87971
87972                 Portability to AIX 4.3.3.
87973                 * unsetenv.c: New file, extracted from setenv.c.
87974                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87975
87976         2001-12-20  Bruno Haible  <bruno@clisp.org>
87977
87978                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87979                 use malloc instead. For SunOS 4.
87980
87981         2001-12-11  Bruno Haible  <bruno@clisp.org>
87982
87983                 * setenv.c: Declare alloca.
87984                 (compar_fn_t): New typedef.
87985                 (KNOWN_VALUE, STORE_VALUE): Use it.
87986
87987         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87988         setenv.h.
87989
87990 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87991
87992         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87993         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87994         Choose values that are less likely to collide with system fnmatch
87995         options.
87996         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87997         defined (e.g., a pure POSIX system).
87998         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87999         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
88000
88001 2002-12-06  Paul Eggert  <eggert@twinsun.com>
88002
88003         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
88004         a pain in practice to deal with generated m4 files.  This change
88005         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
88006
88007         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
88008         and jm-glibc-io.m4, as they are no longer a special case.
88009         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
88010         kludge and the auto-generation stuff.  Check only whether the
88011         functions are declared, not whether they exist, since older hosts
88012         that don't declare the functions can't use the optimization anyway.
88013
88014 2002-12-06  Jim Meyering  <jim@meyering.net>
88015
88016         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88017
88018         Merge in changes from libc's misc/error.c, in preparation
88019         for the merge of gnulib's changes back into libc.
88020
88021         * lib/error.c (_): Define only if not already defined.
88022         Move definition to follow all #include directives.
88023         Include unlocked-io.h only if !_LIBC.
88024         [_LIBC]: Include <libio/libioP.h>.
88025         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88026         (fflush): Tweak definition to use INTUSE.
88027         (putc): Define.
88028
88029 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88030
88031         * lib/alloca.c [defined emacs]: Include "lisp.h".
88032         (xalloc_die) [defined emacs]: New macro.
88033         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88034         [! defined emacs]: Include <xalloc.h>.
88035         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88036         (pointer): Typedef to POINTER_TYPE *.
88037         (malloc): Remove decl; we now always use xmalloc.
88038         (alloca): Use old-style definition, since Emacs needs this.
88039         Check for arithmetic overflow when computing combined size.
88040
88041 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88042
88043         Do not generate unlocked-io.h automatically, since it's easier to
88044         maintain it by hand.
88045
88046         * lib/unlocked-io.h: New file, from GNU diffutils,
88047         but with proper copyright notice and attribution.
88048         * lib/gen-uio: Remove.
88049         * lib/Makefile.am: Add copyright notice.
88050         (libfetish_a_SOURCES): Add unlocked-io.h.
88051         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88052         (DISTCLEANFILES, io_functions): Remove macros.
88053         (EXTRA_DIST): Remove gen_uio.
88054         (unlocked-io.h): Remove rule.
88055
88056 2002-12-04  Jim Meyering  <jim@meyering.net>
88057
88058         Reflect the fact that stat.c and lstat.c are no longer generated.
88059         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88060         (DISTCLEANFILES): Likewise.
88061         (EXTRA_DIST): Likewise.
88062         (all_local): Don't depend on stat.c or lstat.c.
88063         (stat.c, lstat.c): Remove rules.
88064         (EXTRA_DIST): Remove xstat.in.
88065
88066         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88067         * lib/stat.c: New file.  Contents mostly from xstat.in.
88068         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88069         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88070
88071         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88072         too.
88073         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88074
88075 2002-12-03  Jim Meyering  <jim@meyering.net>
88076
88077         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88078         but not semantics, to minimize the differences between these two files.
88079         (safe_read): Change comment to mention SAFE_READ_ERROR.
88080
88081         * lib/safe-read.c (IS_EINTR): Define.
88082         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88083
88084 2002-12-02  Jim Meyering  <jim@meyering.net>
88085
88086         * lib/safe-read.c (EINTR): Define.
88087         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88088         (INT_MAX): Provide fallback.
88089         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88090
88091         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88092
88093 2002-12-02  Bruno Haible  <bruno@clisp.org>
88094
88095         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88096         Define, taken from safe-read.c.
88097         (INT_MAX): Provide fallback.
88098         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88099         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88100
88101         * lib/safe-read.c (EINTR): Remove definition.
88102         (safe_read): Don't use EINTR if it is absent.
88103
88104 2002-12-01  Jim Meyering  <jim@meyering.net>
88105
88106         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88107         zero.
88108         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88109
88110 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88111
88112         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88113         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88114         with `if (! (value < limit)) abort ();', for readability.
88115
88116 2002-11-26  Karl Berry  <karl@gnu.org>
88117
88118         * lib/strdup.c: copy from libc again, with jim's ok.
88119         * lib/.cppi-disable: re-add strdup.c
88120
88121 2002-11-25  Karl Berry  <karl@gnu.org>
88122
88123         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88124         instead of "strtol.c".
88125
88126 2002-11-25  Karl Berry  <karl@gnu.org>
88127
88128         * config/install-sh: update from automake for variable quoting, $0 in
88129         error msgs, etc.
88130
88131         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88132         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88133         entry.
88134
88135 2002-11-25  Jim Meyering  <jim@meyering.net>
88136
88137         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88138
88139 2002-11-24  Karl Berry  <karl@gnu.org>
88140
88141         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88142         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88143
88144 2002-11-24  Jim Meyering  <jim@meyering.net>
88145
88146         Update from coreutils:
88147
88148         * lib/mktime.c: Merge in changes from libc.
88149
88150         Avoid a link-time failure on some Linux systems.
88151         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88152         (otherwise).
88153         (__mon_yday): Declare with the STATIC attribute.
88154         (__mktime_internal): Likewise.
88155         Based on a report from Greg Schafer.
88156
88157 2002-11-23  Jim Meyering  <jim@meyering.net>
88158
88159         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88160         Use `unsigned', not `int', as type of index.
88161
88162         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88163
88164         * lib/fsusage.c: Remove unneeded parentheses around operands of
88165         `defined'.
88166
88167 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88168
88169         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88170         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88171         so that we can be included first.
88172         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88173         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88174         No need to include stddef.h or sys/types.h any more.
88175         Surround local include files with "", not "<>".
88176         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88177         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88178         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88179         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88180         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88181         (ISPRINT): Remove; no longer needed now that we assume C89.
88182
88183         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88184         Preserve errno.
88185
88186         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88187         quotearg_char): Use SIZE_MAX rather than
88188         (size_t) -1 when we are talking about "infinity".
88189
88190         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88191
88192 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88193
88194         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88195         hint that one should use `if (! x) abort ();' rather than `assert
88196         (x);', and anyway it's one less thing to worry about configuring.
88197         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88198         hash_rehash, hash_insert): Use abort rather than assert.
88199
88200 2002-11-22  Bruno Haible  <bruno@clisp.org>
88201
88202         * lib/safe-read.h: Assume C89. Add comments.
88203         (safe_read): Change return type to size_t.
88204         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88205         byte counts > SSIZE_MAX correctly.
88206         * lib/safe-write.h: New file.
88207         * lib/safe-write.c: New file.
88208         * lib/full-read.h: New file.
88209         * lib/full-read.c: New file.
88210         * lib/full-write.h: Assume C89. Add comments.
88211         * lib/full-write.c: Include safe-write.h.
88212         (full_write): Rewritten to use safe_write.
88213         Suggested by Jim Meyering and Paul Eggert.
88214
88215 2002-11-21  Jim Meyering  <jim@meyering.net>
88216
88217         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88218
88219         Merge in changes from the coreutils.
88220
88221         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88222         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88223         <stdint.h>.
88224         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88225         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88226         int.  Work more efficiently if X is the same width as uintmax_t.
88227         Do not compare X to -1, to avoid bogus compiler warning.
88228         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88229         Don't assume that f_frsize and f_bsize are the same type.
88230
88231         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88232         warning on FreeBSD.
88233
88234         * lib/makepath.c (make_path): Restore umask *before* creating the final
88235         component.
88236         (make_path): Minor reformatting.
88237
88238         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88239         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88240         HAVE_MALLOC/HAVE_REALLOC.
88241
88242         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88243         dummy ones.  At least on GNU/Linux systems, `auto' means something
88244         else.
88245         From Michael Stone.
88246
88247 2002-11-21  Bruno Haible  <bruno@clisp.org>
88248
88249         Remove case insensitive option matching.
88250         * lib/argmatch.h (argcasematch): Remove declaration.
88251         (ARGCASEMATCH): Remove macro.
88252         (__xargmatch_internal): Remove case_sensitive argument.
88253         (XARGMATCH): Update.
88254         (XARGCASEMATCH): Remove macro.
88255         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88256         case_sensitive argument.
88257         (argcasematch): Remove function.
88258         (__xargmatch_internal): Remove case_sensitive argument.
88259         (main): Use XARGMATCH instead of XARGCASEMATCH.
88260
88261         * lib/xmalloc.c: Change compile-time error message. Add comment about
88262         required autoconf version.
88263
88264 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88265
88266         Merge argmatch cleanups from Bison.  Assume C89.
88267
88268         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88269         Include stdlib.h, for EXIT_FAILURE.
88270         Always include <string.h>, since we assume C89.
88271         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88272         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88273         Include <stddef.h> instead, since it's all we need for size_t.
88274         (PARAMS): Remove.  All uses removed.
88275         (ARRAY_CARDINALITY): Do not bother to #undef.
88276         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88277         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88278         Remove unnecessary parentheses.
88279         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88280         Insert necessary parentheses.
88281         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88282         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88283
88284 2002-11-19  Bruno Haible  <bruno@clisp.org>
88285
88286         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88287         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88288
88289         * lib/mbswidth.h (PARAMS): Remove macro.
88290         (mbswidth, mbsnwidth): Use ANSI C function declarations.
88291         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
88292
88293         * lib/gcd.h (PARAMS): Remove macro.
88294         (gcd): Use ANSI C function declarations.
88295         * lib/gcd.c (gcd): Likewise.
88296
88297 2002-11-15  Bruno Haible  <bruno@clisp.org>
88298
88299         * lib/strcspn.c: Include <stddef.h>.
88300         (strcspn): Use ANSI C function declaration. Change return type to
88301         size_t. Use NULL.
88302         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88303         (strpbrk): Use NULL.
88304         * lib/strpbrk.h (PARAMS): Remove macro.
88305         (strpbrk): Use ANSI C function declaration.
88306         * lib/strstr.c: Don't include <sys/types.h>.
88307         * lib/strstr.h (PARAMS): Remove macro.
88308         (strstr): Use ANSI C function declarations.
88309
88310 2002-11-14  Karl Berry  <karl@gnu.org>
88311
88312         * config/mkinstalldirs: `do' on separate line, instead of
88313         `for var; do'.
88314
88315 2002-11-06  Bruno Haible  <bruno@clisp.org>
88316
88317         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88318         * lib/gcd.c (gcd): Likewise.
88319
88320 2002-11-05  Bruno Haible  <bruno@clisp.org>
88321
88322         * lib/gcd.h: New file, from gettext-0.11.5.
88323         * lib/gcd.c: New file, from gettext-0.11.5.
88324
88325 2002-11-05  Bruno Haible  <bruno@clisp.org>
88326
88327         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88328         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88329         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88330         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88331
88332         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88333         <libintl.h>.
88334         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88335         <libintl.h>.
88336
88337         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88338         * lib/human.c: Include gettext.h instead of <libintl.h>.
88339         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88340         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88341         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88342         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88343         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88344         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88345         (textdomain): Remove definition.
88346         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88347
88348         * lib/long-options.c: Remove include of <libintl.h> and definition of
88349         _.
88350         * lib/same.c: Remove include of <libintl.h> and definition of _.
88351
88352 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88353
88354         * lib/config.charset: A few additions for Solaris.
88355
88356 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88357
88358         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88359         * lib/localcharset.c (locale_charset): Declare as extern "C".
88360
88361 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88362
88363         * lib/config.charset: msdos in uk_UA uses CP1125.
88364
88365 2002-11-04  Bruno Haible  <bruno@clisp.org>
88366
88367         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88368         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88369         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88370         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88371         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88372
88373 2002-11-04  Bruno Haible  <bruno@clisp.org>
88374
88375         * lib/localcharset.c (locale_charset): Don't return an empty string.
88376
88377 2002-11-04  Bruno Haible  <bruno@clisp.org>
88378
88379         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88380         aliases.
88381
88382 2002-11-04  Bruno Haible  <bruno@clisp.org>
88383
88384         * lib/config.charset: Update for newest glibc. Add canonical names
88385         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88386
88387 2002-11-04  Bruno Haible  <bruno@clisp.org>
88388
88389         * lib/config.charset: Add support for NetBSD.
88390
88391 2002-11-04  Bruno Haible  <bruno@clisp.org>
88392
88393         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88394
88395 2002-11-01  Bruno Haible  <bruno@clisp.org>
88396
88397         * configure.in: Add AC_CONFIG_AUX_DIR call.
88398         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88399         test/Makefile.
88400         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88401
88402 2002-09-28  Karl Berry  <karl@gnu.org>
88403
88404         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88405         installed automake until the next release, since changes have been
88406         made.
88407
88408 2002-09-25  Karl Berry  <karl@gnu.org>
88409
88410         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88411         * lib/getopt*: copy from libc/posix.
88412         * lib/gettext.h: copy from gettext.
88413         * lib/.cppi-disable: add strdup.c, gettext.h.
88414
88415 2002-09-25  Karl Berry  <karl@gnu.org>
88416
88417         * config/srclist.txt: enable gettext.h check.
88418         * config/config.{guess,sub}: update from prep.
88419         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88420                 from automake 1.6.3.
88421         See srclist*.
88422
88423 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88424
88425         * regex.c (PATFETCH): Remove the translating fetch.
88426         (PATFETCH_RAW): Rename to PATFETCH.
88427         (set_image_of_range): New fun.
88428         (SET_RANGE_TABLE_WORK_AREA): Use it.
88429         (regex_compile): Don't translate the pattern chars so eagerly.
88430         Only do it when inserting an `exactn' bytecode or when handling
88431         a char-range.
88432         (mutually_exclusive_p): Avoid empty statement.
88433
88434 2002-07-06  Jim Meyering  <meyering@lucent.com>
88435
88436         * m4/README: Don't mention Makefile.am.in.
88437         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88438
88439 2002-07-01  Jim Meyering  <meyering@lucent.com>
88440
88441         * lib/c-stack.c: Include sys/time.h.
88442         From Volker Borchert.
88443
88444 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88445
88446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88447
88448 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88449
88450         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88451         New macro.  Use it uniformly instead of
88452         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88453         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88454         reported by Vin Shelton.
88455
88456 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88457
88458         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88459         Do not assume SA_SIGINFO behavior.
88460         Bug reported by Jim Meyering on NetBSD 1.5.2.
88461
88462 2002-06-22  Jim Meyering  <meyering@lucent.com>
88463
88464         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88466
88467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88468         now that configure.ac uses AC_GNU_SOURCE.
88469         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88470         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88471
88472         Update to latest tools.  Suggestions from Paul Eggert.
88473         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88474         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88475         * m4/fnmatch.m4: Likewise.
88476         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88477         to AC_HEADER_STDBOOL
88478
88479 2002-06-22  Jim Meyering  <meyering@lucent.com>
88480
88481         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88482         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88483
88484 2002-06-22  Jim Meyering  <meyering@lucent.com>
88485
88486         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88487
88488         * lib/exitfail.c, exitfail.h: Likewise.
88489         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88490
88491         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88492         of fnmatch.h.
88493         (EXTRA_DIST): Add fnmatch_loop.c.
88494         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88495
88496         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88497         * lib/fnmatch.c: Update from diffutils-2.8.2.
88498         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88499         * lib/fnmatch.h: Remove file.
88500
88501 2002-06-21  Jim Meyering  <meyering@lucent.com>
88502
88503         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88504         * m4/mbrtowc.m4: Likewise.
88505
88506         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88507         * m4/mbswidth.m4: Reflect name change:
88508         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88510
88511         * m4/lib-link.m4: Update from gettext-0.11.2.
88512         * m4/gettext.m4: Likewise.
88513
88514         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88515         From Alfred M. Szmidt.
88516
88517 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88518
88519         * lib/file-type.h: Report an error if neither S_ISREG nor
88520         S_IFREG is defined, instead of using a test specific to glibc
88521         2.2.  This should be safe, since POSIX requires S_ISREG and
88522         Unix Version 7 had S_IFREG.  We don't need to check for
88523         <sys/types.h> since we don't use any symbols that it defines.
88524
88525 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88526
88527         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88528         $@-t, so that each temporary file name is unique and valid in the first
88529         8 characters, for operation under DOS.
88530
88531 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88532
88533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88534
88535 2002-06-15  Jim Meyering  <meyering@lucent.com>
88536
88537         Work even with DJGPP 2.03, which lacks support for symlinks.
88538         From Richard Dawe.
88539         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88540         is defined.
88541         * lib/lchown.c (S_ISLNK): Likewise.
88542
88543 2002-06-15  Jim Meyering  <meyering@lucent.com>
88544
88545         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88546         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88547         have been included before this file.
88548
88549 2002-06-14  Jim Meyering  <meyering@lucent.com>
88550
88551         * lib/file-type.h: Use the version from diffutils-2.8.2.
88552         * lib/file-type.c: Likewise.
88553
88554 2002-06-07  Jim Meyering  <meyering@lucent.com>
88555
88556         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88557         They're needed at least for NetBSD 1.5.2.
88558         ($statxfs_includes): Include those same headers.
88559         ($statxfs_includes): Include sys/vfs.h if available.
88560         ($statxfs_includes): Likewise for sys/statvfs.h.
88561         Check for the following members in both structs statfs and statvfs:
88562         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88563
88564 2002-06-01  Jim Meyering  <meyering@lucent.com>
88565
88566         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88567         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88568
88569 2002-05-28  Jim Meyering  <meyering@lucent.com>
88570
88571         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88572         Reported by Volker Borchert.
88573
88574 2002-05-27  Jim Meyering  <meyering@lucent.com>
88575
88576         Fix a problem seen only on nonconforming systems whereby ls.c's
88577         use of localtime, and then of gettimeofday would cause trouble:
88578         the localtime call used to initialize rpl_gettimeofday's save
88579         mechanism would clobber ls's current local time information so
88580         that in any long listing the first file would always be listed
88581         with date 1970-01-01.  Analysis by Volker Borchert.
88582
88583         * lib/gettimeofday.c (localtime): Undefine.
88584         (rpl_localtime): New function.
88585
88586 2002-05-27  Jim Meyering  <meyering@lucent.com>
88587
88588         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88589         localtime.
88590
88591         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88592         use the replacement function; it wouldn't resolve at link time.
88593         Reported by Volker Borchert.
88594
88595 2002-05-22  Jim Meyering  <meyering@lucent.com>
88596
88597         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88598         file-type.h.
88599         * lib/file-type.h: New file.
88600         * lib/file-type.c (file_type): New file/function.  Extracted from
88601         diffutils.
88602
88603 2002-04-30  Jim Meyering  <meyering@lucent.com>
88604
88605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88606
88607 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88608
88609         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88610
88611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88612
88613         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88614         Do not check for alloca.h (no longer used) or stdbool.h (was never
88615         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88616
88617 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88618
88619         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88620
88621 2002-04-29  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88624         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88625         Use AC_FUNC_STRNLEN here instead.
88626
88627         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88628         With autoconf-2.53a, it's part of AC_PROG_CC.
88629
88630 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88631
88632         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88634
88635 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88636
88637         * lib/sig2str.h, lib/sig2str.c: New files.
88638         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88639
88640 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88641
88642         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88643         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88644         of 127, since 64 is the largest conceivable number for ancient
88645         nonstandard hosts.
88646         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88647
88648 2002-04-28  Jim Meyering  <meyering@lucent.com>
88649
88650         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88651
88652 2002-04-24  Jim Meyering  <meyering@lucent.com>
88653
88654         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88655         (jm_PREREQ): Use it.
88656
88657         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88658         mach/mach.h fcntl.h.
88659         Check for this function: setlocale.
88660
88661 2002-04-24  Jim Meyering  <meyering@lucent.com>
88662
88663         * lib/gettext.h: New file, from Gettext.
88664         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88665         (libfetish_a_SOURCES): Add gettext.h.
88666
88667 2002-04-16  Jim Meyering  <meyering@lucent.com>
88668
88669         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88670         ut_pid, ut_id, ut_exit.
88671
88672 2002-04-16  Jim Meyering  <meyering@lucent.com>
88673
88674         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88675         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88676         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88677
88678 2002-04-12  Jim Meyering  <meyering@lucent.com>
88679
88680         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88681         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88682         existence of the getmntinfo function.  Needed for Darwin 5.3.
88683
88684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88685         This is necessary at least on Darwin 5.3.
88686
88687         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88688         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88689         strnlen.o in the library, and that makes some versions of ranlib
88690         object.
88691
88692 2002-04-12  Jim Meyering  <meyering@lucent.com>
88693
88694         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88695
88696 2002-04-09  Jim Meyering  <meyering@lucent.com>
88697
88698         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88699         to be more precise.  Rather than saying we're checking whether the
88700         function `works', say what we're testing.
88701         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88702         Reported by Bruno Haible.
88703
88704 2002-03-10  Jim Meyering  <meyering@lucent.com>
88705
88706         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88707         Suggestion from Santiago Vila.
88708
88709 2002-03-08  Jim Meyering  <meyering@lucent.com>
88710
88711         * lib/rename.c: Mention that this wrapper is needed also on
88712         mips-dec-ultrix4.4 systems.
88713
88714 2002-03-02  Jim Meyering  <meyering@lucent.com>
88715
88716         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88717         not HAVE_CLOCK_SETTIME.
88718
88719 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88720
88721         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88722         Check for clock_settime.
88723
88724 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88725
88726         * lib/nanosleep.h: Rename to....
88727         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88728
88729         * lib/gettime.c: New file.
88730         * lib/settime.c: New file.
88731         * lib/stime.c: Remove.
88732
88733         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88734         timespec.h.  Remove nanosleep.h.
88735
88736 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88737
88738         * m4/acl.m4: New file.
88739         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88740         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88741
88742 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88743
88744         * lib/acl.c, lib/acl.h: New files.
88745         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88746
88747 2002-02-24  Jim Meyering  <meyering@lucent.com>
88748
88749         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88750         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88751         cause trouble.  Reported by Nelson Beebe.
88752
88753 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88754
88755         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88756         compilers that don't know that xalloc_die never returns.
88757
88758 2002-02-20  Jim Meyering  <meyering@lucent.com>
88759
88760         * lib/getdate.c: Regenerate using bison-1.33.
88761
88762 2002-02-17  Jim Meyering  <meyering@lucent.com>
88763
88764         * config/config.guess (main): Don't use `head -1'; it's no longer
88765         portable. Use `sed 1q' instead.
88766
88767 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88768
88769         * m4/codeset.m4: Upgrade to gettext-0.11.
88770         * m4/gettext.m4: Upgrade to gettext-0.11.
88771         * m4/glibc21.m4: Upgrade to gettext-0.11.
88772         * m4/iconv.m4: Upgrade to gettext-0.11.
88773         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88774         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88775         * m4/lib-ld.m4: New file, from gettext-0.11.
88776         * m4/lib-link.m4: New file, from gettext-0.11.
88777         * m4/lib-prefix.m4: New file, from gettext-0.11.
88778         * m4/progtest.m4: Upgrade to gettext-0.11.
88779
88780 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88781
88782         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88783         (jm_PREREQ): Use it.
88784
88785 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88786
88787         * lib/posixver.c, lib/posixver.h: New files.
88788         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88789
88790 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88791             Bruno Haible  <bruno@clisp.org>
88792
88793         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88794         (fwrite_success_callback): New declaration.
88795         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88796         print_unicode_char. Call failure callback instead of error.
88797         (fwrite_success_callback): New function.
88798         (exit_failure_callback): New function.
88799         (fallback_failure_callback): New function.
88800         (print_unicode_char): Call unicode_to_mb.
88801
88802 2002-01-26  Jim Meyering  <meyering@lucent.com>
88803
88804         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88805         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88806
88807 2002-01-26  Jim Meyering  <meyering@lucent.com>
88808
88809         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88810
88811 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88812
88813         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88814
88815 2002-01-22  Jim Meyering  <meyering@lucent.com>
88816
88817         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88818         Otherwise, some versions of automake would omit the rule that makes
88819         Makefile from Makefile.in.
88820
88821 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88822
88823         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88824         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88825         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88826         (memcoll): Set errno to zero if there is no error.
88827
88828         * lib/quotearg.c (quotearg_buffer_restyled):
88829         Fix bug with quoting buffers containing NUL when backslashing escapes.
88830         This bug was exposed by the other changes in this patch.
88831         (quotearg_n_options): New arg ARGSIZE.
88832         All callers changed.
88833         (quoting_options_from_style): New function.
88834         (quotearg_n_style): Use it.
88835         (quotearg_n_style_mem): New function.
88836
88837         * lib/quotearg.h (quotearg_n_style_mem): New function.
88838
88839 2002-01-19  Jim Meyering  <meyering@lucent.com>
88840
88841         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88842         Remove useless quotes: DF_PROG="df".
88843         * m4/strnlen.m4: New file.
88844
88845 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88846
88847         * lib/backupfile.c (ISDIGIT): Comment fix.
88848         * lib/getdate.y (ISDIGIT): Likewise.
88849         * lib/posixtm.c (ISDIGIT, year): Likewise.
88850         * lib/strverscmp.c (ISDIGIT): Likewise.
88851         * lib/userspec.c (ISDIGIT): Likewise.
88852
88853 2002-01-16  Jim Meyering  <meyering@lucent.com>
88854
88855         * lib/getdate.y: Add three semicolons, each just before a closing
88856         brace. Bison (as of version 1.31) no longer papers over that mistake.
88857
88858 2002-01-05  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88861
88862 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88863
88864         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88865         not silently exit merely because the output buffer happens to
88866         have nothing pending.
88867
88868 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88869
88870         See the big note in ../ChangeLog.
88871         * lib/human.c (suffixes): Prefer K to k for 1024.
88872         (generate_suffix_backwards): New function.
88873         (human_readable_inexact): Use it.
88874         * lib/xstrtol.c (__xstrtol): If there is no number but there
88875         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88876         Accept 'K' as well as 'k'.
88877
88878 2001-12-15  Jim Meyering  <meyering@lucent.com>
88879
88880         * lib/regex.h (__restrict_arr): Update from libc.
88881
88882         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88883         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88884         (STREQ): Define.
88885
88886 2001-12-14  Jim Meyering  <meyering@lucent.com>
88887
88888         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88889         Suggestion from Bruno Haible.
88890
88891 2001-12-10  Jim Meyering  <meyering@lucent.com>
88892
88893         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88894         xrealloc, Instead, include "xalloc.h".
88895         (initbuffer): Don't cast xmalloc return value to char*.
88896         (readline): Reword comment.
88897         Don't cast xrealloc return value to char*
88898         Return NULL, not 0.
88899
88900 2001-12-09  Jim Meyering  <meyering@lucent.com>
88901
88902         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88903         about `signed and unsigned type in conditional expression'.
88904         * lib/posixtm.c (posix_time_parse): Likewise.
88905
88906         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88907
88908         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88909         to avoid a pedantic warning.
88910
88911         * lib/getstr.c: Don't include assert.h.
88912         (getstr): Remove warning-evoking assertions.
88913         Return -1 if offset parameter is out of bounds.
88914         Change the type of a local from int to size_t.
88915
88916         * lib/strftime.c (my_strftime_localtime_r): Include this function
88917         definition in the `#if ! HAVE_TM_GMTOFF' block.
88918
88919         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88920         Include xalloc.h instead.
88921
88922 2001-12-02  Jim Meyering  <meyering@lucent.com>
88923
88924         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88925         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88926         included.
88927
88928         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88929         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88930
88931 2001-11-30  Akim Demaille  <akim@epita.fr>
88932
88933         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88934         before being defined.
88935
88936 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88937
88938         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88939         First arg is int, not unsigned.
88940         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88941         (SIZE_MAX, UINT_MAX): New macros.
88942         (quotearg_n_options): Abort if N is negative.
88943         Avoid overflow check on hosts where size_t is 64 bits and int
88944         is 32 bits, as overflow is impossible there.
88945         Fix off-by-one typo that caused unnecessary reallocation.
88946
88947 2001-11-27  Jim Meyering  <meyering@lucent.com>
88948
88949         * lib/tempname.c: Merge with version from libc.
88950         * lib/regex.c: Likewise.
88951
88952         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88953         systems for which STDC_HEADERS is 0, it was not included, resulting in
88954         a warning about an integer-to-pointer conversion problem with getenv.
88955         Reported by Volker Borchert.
88956
88957 2001-11-26  Jim Meyering  <meyering@lucent.com>
88958
88959         * lib/gtod.h: Remove file.
88960         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88961         * lib/gettimeofday.c: Don't include gtod.h.
88962         (GTOD_init): Remove function.
88963         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88964         Suggestion from Volker Borchert.
88965
88966 2001-11-23  Jim Meyering  <meyering@lucent.com>
88967
88968         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88969         it.
88970         * lib/hash.c (struct hash_table): Define it here instead.
88971
88972 2001-11-22  Jim Meyering  <meyering@lucent.com>
88973
88974         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88975
88976 2001-11-20  Jim Meyering  <meyering@lucent.com>
88977
88978         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88979         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88980
88981 2001-11-19  Jim Meyering  <meyering@lucent.com>
88982
88983         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88984         directory.  Use "conftestXXXXXX" as the template.
88985         Suggestion from Paul Eggert.
88986
88987         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88988         immediately, so the test doesn't mistakenly hit the max-open-files
88989         limit.
88990
88991 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88994         (TEMPORARIES): New macro.
88995         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88996         removes an artificial limitation (e.g. HP-UX 10.20, where
88997         TMP_MAX is 17576).
88998
88999 2001-11-18  Jim Meyering  <meyering@lucent.com>
89000
89001         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
89002
89003 2001-11-18  Jim Meyering  <meyering@lucent.com>
89004
89005         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
89006         on SunOS 4.
89007
89008         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
89009         files will be created before anything else.
89010
89011 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89012
89013         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89014         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89015
89016 2001-11-17  Jim Meyering  <meyering@lucent.com>
89017
89018         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89019         Prompted by a report from Bob Proulx.
89020
89021         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89022         Instead, require UTILS_FUNC_MKSTEMP.
89023
89024 2001-11-17  Jim Meyering  <meyering@lucent.com>
89025
89026         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89027         Now, that's done as part of AC_FUNC_STRTOD.
89028
89029 2001-11-17  Jim Meyering  <meyering@lucent.com>
89030
89031         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89032         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89033         rather than group writable.  Patch by Juan F. Codagnone.
89034
89035         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89036         xrealloc, Instead, include "xalloc.h".
89037
89038         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89039         Remove explicit declarations of xmalloc, xrealloc,
89040         and xstrdup.  Instead, include "xalloc.h".
89041
89042         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89043         unlocked-io.h.
89044         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89045         Likewise.
89046         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89047
89048         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89049         Reported by Padraig Brady.
89050
89051         * lib/mkstemp.c: #undef mkstemp.
89052         Include config.h.
89053         (rpl_mkstemp): Rename from mkstemp.
89054         Protoize.
89055
89056 2001-11-16  Jim Meyering  <meyering@lucent.com>
89057
89058         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89059         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89060         determine the amount of total physical memory, use pstat_getstatic.
89061         HPUX-11 doesn't define _SC_PHYS_PAGES.
89062         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89063         If sysconf couldn't be used to determine the amount of available
89064         physical memory, use both pstat_getstatic and pstat_getdynamic.
89065         Based on a patch from Bob Proulx.
89066
89067 2001-11-10  Jim Meyering  <meyering@lucent.com>
89068
89069         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89070         (jm_PREREQ): Use it.
89071
89072 2001-11-09  Jim Meyering  <meyering@lucent.com>
89073
89074         * m4/jm-macros.m4: Require autoconf-2.52f.
89075         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89076         Use these AC_-prefixed names, not the AM_-prefixed ones.
89077
89078         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89079
89080 2001-11-05  Jim Meyering  <meyering@lucent.com>
89081
89082         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89083
89084 2001-11-04  Jim Meyering  <meyering@lucent.com>
89085
89086         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89087         $DEFS.
89088
89089 2001-11-03  Jim Meyering  <meyering@lucent.com>
89090
89091         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89092         of AC_DEFUN.
89093
89094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89095         know the name of the variable in the macro definition.
89096
89097 2001-11-03  Jim Meyering  <meyering@lucent.com>
89098
89099         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89100         in argmatch_to_argument call.
89101
89102         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89103         argument.
89104
89105         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89106         e.g., a fault due to an attempt to free a NULL pointer.
89107
89108 2001-11-01  Jim Meyering  <meyering@lucent.com>
89109
89110         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89111         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89112
89113 2001-11-01  Jim Meyering  <meyering@lucent.com>
89114
89115         * lib/dirfd.c, lib/dirfd.h: New files.
89116         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89117
89118         * lib/hash.c (hash_print) [TESTING]: Clean up.
89119
89120 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89121
89122         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89123         to avoid a warning if -Wall.
89124
89125 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89126
89127         * README: New file
89128         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89129         (per RMS's instructions, this is now the canonical source)
89130         * lgpl/, gpl/: New directories.
89131
89132 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89133
89134         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89135
89136 2001-10-21  Jim Meyering  <meyering@lucent.com>
89137
89138         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89139         this code would end up calling gettext even in packages built
89140         with --disable-nls.
89141         * lib/getopt.c (_): Likewise.
89142         * lib/regex.c (_): Likewise.
89143
89144 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89145
89146         * m4/error.m4 (jm_PREREQ_ERROR):
89147         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89148         AC_FUNC_STRERROR_R does that.
89149         Check for strerror declaration.
89150
89151         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89152         are supposed to have them these days.
89153         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89154         Merge changes from latest Autoconf CVS.
89155         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89156         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89157         POSIX decided to standardize on the int flavor of strerror_r.
89158
89159 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89162         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89163         Use strerror_r that is only a macro, even if it is not a function.
89164         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89165         (private_strerror): Use prototypes, not old-style function definition.
89166         (print_errno_message): New function.
89167         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89168         char*-flavored one.
89169         (error_tail, error, error_at_line): Use it.
89170
89171 2001-10-11  Jim Meyering  <meyering@lucent.com>
89172
89173         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89174         and quote_n (1, ... to avoid clobbering a buffer.
89175
89176 2001-10-05  Jim Meyering  <meyering@lucent.com>
89177
89178         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89179         hash-pjw.h.
89180         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89181         * lib/hash-pjw.h: New file.
89182
89183 2001-09-30  Jim Meyering  <meyering@lucent.com>
89184
89185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89186         `struct fsstat' has the `f_fstypename' member.
89187         Use that to define FS_TYPE, which is now used to make
89188         the getfsstat link test tighter.
89189
89190 2001-09-30  Jim Meyering  <meyering@lucent.com>
89191
89192         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89193         Include <sys/ucred.h>, for Apple Darwin.
89194         Include sys/mount.h and sys/fs_types.h only if available.
89195         (FS_TYPE): Define.
89196         (read_filesystem_list): Use FS_TYPE.
89197
89198 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89199
89200         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89201         a boolean context.
89202
89203 2001-09-29  Jim Meyering  <meyering@lucent.com>
89204
89205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89206         [one-argument getmntent function]): Include stdio.h before mntent.h.
89207         SunOS 4.1.x needs it for the declaration of `FILE'.
89208         Patch by Volker Borchert.
89209
89210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89211         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89212         sys/fs_types.h, and make the link-test for getfsstat guard #include
89213         directives with appropriate #if HAVE_*_H tests so that we can
89214         detect getfsstat on Apple Darwin1.3.7 systems.
89215         Reported by Nelson Beebe.
89216         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89217
89218 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89219
89220         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89221         #defines strtoimax.  Also treat the other strto* functions
89222         like strtoimax.
89223
89224         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89225         Check for strtoul and strtoumax,
89226         as those declarations are made even in the signed case.
89227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89228         Likewise, for strtol and strtoimax.
89229
89230 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89231
89232         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89233         #defines strtoimax.  Also treat the other strto* functions
89234         like strtoimax.
89235
89236         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89237         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89238         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89239
89240 2001-09-26  Jim Meyering  <meyering@lucent.com>
89241
89242         Most macros in unlocked-io.h had the wrong number of arguments.
89243         * lib/gen-uio: New script.
89244         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89245         * lib/unlocked-io.hin: Remove file.
89246         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89247         rather than trying to embed it here.
89248         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89249         Reported by Padraig Brady.
89250
89251 2001-09-25  Volker Borchert  <bt@teknon.de>
89252
89253         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89254         `result'.
89255
89256 2001-09-24  Jim Meyering  <meyering@lucent.com>
89257
89258         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89259
89260 2001-09-23  Jim Meyering  <meyering@lucent.com>
89261
89262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89263         instead of the mere test for existence of mntent.h.  The latter
89264         would get a false-positive on AIX 3.4 systems.
89265         In the outer getmntent if-block, don't die if neither of the getmntent
89266         tests succeeds.  Instead, just fall through and continue with the
89267         remaining tests.
89268
89269 2001-09-23  Jim Meyering  <meyering@lucent.com>
89270
89271         * lib/mountlist.c: Remove useless parentheses in #if directives.
89272         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89273         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89274
89275 2001-09-22  Jim Meyering  <meyering@lucent.com>
89276
89277         * m4/gettext.m4: New file.  From gettext.
89278         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89279         * m4/progtest.m4: Likewise
89280         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89281         * m4/glibc21.m4: Likewise.
89282
89283         * m4/libintl.m4: Remove.  No longer used.
89284
89285 2001-09-22  Jim Meyering  <meyering@lucent.com>
89286
89287         * lib/localcharset.c: Update from latest gettext.
89288         * lib/config.charset: Likewise.
89289
89290 2001-09-20  Jim Meyering  <meyering@lucent.com>
89291
89292         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
89293         strtoimax.
89294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
89295         strtoumax.
89296
89297 2001-09-20  Jim Meyering  <meyering@lucent.com>
89298
89299         * lib/xstrtol.c (strtoimax): Guard declaration with
89300         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89301         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89302         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89303         (strtoumax): Likewise, for completeness (it wasn't necessary).
89304
89305 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89306
89307         * lib/strtoimax.c (HAVE_LONG_LONG):
89308         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89309         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89310         to work around bug in IBM C compiler.
89311
89312 2001-09-17  Jim Meyering  <meyering@lucent.com>
89313
89314         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89315         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89316         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89317         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89318         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89319         whenever the right hand side need not be expanded by the shell.
89320
89321 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89322
89323         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89324         library.  It's not correct, as some older glibcs are buggy.
89325         fnmatch wasn't fixed until glibc 2.2.
89326
89327         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89328         special shell magic here.
89329
89330 2001-09-16  Jim Meyering  <meyering@lucent.com>
89331
89332         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89333         * m4/jm-macros.m4: Require it.
89334
89335 2001-09-16  Jim Meyering  <meyering@lucent.com>
89336
89337         * lib/mkdir.c: New file.
89338
89339 2001-09-15  Jim Meyering  <meyering@lucent.com>
89340
89341         * m4/jm-macros.m4: Check for help2man.
89342
89343 2001-09-11  Jim Meyering  <meyering@lucent.com>
89344
89345         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89346         The body, by Paul Eggert, was moved here from configure.in.
89347         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89348
89349 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89350
89351         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89352         (jm_PREREQ): Use it.
89353
89354 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89355
89356         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89357         Use ssize_t, not int, to store result of readlink.
89358         Check for ssize_t overflow as well as size_t overflow,
89359         as POSIX says the result of readlink is implementation-defined
89360         when ssize_t overflows.
89361         Remove unnecessary cast to char*.
89362         Use free+malloc instead of realloc, as the storage doesn't need
89363         to be preserved and it's clearer and can be more efficient that way.
89364         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89365         * lib/xreadlink.h (xreadlink): Update prototype.
89366
89367 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89368
89369         * lib/xgetcwd.c: Revert some of the previous change; intead,
89370         fix the HAVE_GETCWD_NULL code to behave more like the
89371         !HAVE_GETCWD_NULL code used to.
89372
89373         Include "xalloc.h".
89374         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89375         invoke xalloc_die.
89376
89377 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89378
89379         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89380         sys/param.h, as pathmax.h includes them.
89381
89382 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89383
89384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89385         (jm_PREREQ_XGETCWD): New macro.
89386
89387         * m4/getcwd.m4: New file.
89388
89389 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89390
89391         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89392         like the HAVE_GETCWD_NULL code.
89393         Include pathmax.h if not HAVE_GETCWD.
89394         Do not include xalloc.h.
89395         (INITIAL_BUFFER_SIZE): New symbol.
89396         Do not use xmalloc / xrealloc, since the caller is responsible for
89397         handling errors.  Preserve errno around `free' during failure.
89398         Do not overrun buffer when using getwd.
89399
89400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89401
89402         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89403         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89404         getcwd (NULL, 0).
89405
89406 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89407
89408         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89409         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89410         spotted by Jim Meyering.
89411
89412 2001-09-03  Jim Meyering  <meyering@lucent.com>
89413
89414         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89415         failure.
89416
89417 2001-09-02  Jim Meyering  <meyering@lucent.com>
89418
89419         * lib/error.c: Update from GNU libc.
89420
89421 2001-09-01  Jim Meyering  <meyering@lucent.com>
89422
89423         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89424         Used by df.
89425
89426 2001-09-01  Jim Meyering  <meyering@lucent.com>
89427
89428         * lib/xreadlink.c: New file.
89429         * lib/xreadlink.h: New file.
89430         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89431         xreadlink.h.
89432
89433         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89434         doesn't conflict with sparc Solaris 7's definition in
89435         /usr/include/sys/int_types.h.
89436
89437         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89438         files.
89439         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89440         and strncasecmp as r-values.  Unixware didn't have declarations.
89441
89442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89443
89444         * lib/xstrtol.h: Add copyright notice.
89445         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89446         LONGINT_INVALID_SUFFIX_CHAR.
89447
89448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89449
89450         * lib/xstrtol.c (strtoimax): New decl.
89451
89452 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89453
89454         * lib/xgetcwd.c: Don't include pathmax.h.
89455         Include stdlib.h and unistd.h if available.
89456         Include xalloc.h.
89457         (xmalloc, xstrdup, free): Remove decls.
89458         (xgetcwd): Don't assume sizes fit in unsigned.
89459         Check for overflow when computing sizes.
89460         Simplify reallocation code.
89461
89462 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89463
89464         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89465         a directory's st_size can have an arbitrary value, so the old
89466         usage could waste an arbitrary amount of memory.  All uses
89467         changed.
89468         * lib/savedir.h: Update prototype.
89469
89470 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89471
89472         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89473
89474         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89475         old strtoimax.c.
89476
89477         Also, make the following further changes to make this file's
89478         configuration more similar to that of strtol.c:
89479         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89480         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89481         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89482         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89483         changed to signed values.
89484
89485         And make the following changes as well:
89486         Fix copyright notice, as 1999 was missing.
89487         (verify): New macro.
89488         (strtoimax): Check sizes at compile-time, not run-time.
89489         Prefer strtol to strtoll if both work.
89490         (main): Remove; it was not that useful and was a pain to maintain.
89491
89492         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89493
89494 2001-08-31  Jim Meyering  <meyering@lucent.com>
89495
89496         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89497         Use an initial, malloc'd, buffer of length 128 rather than
89498         a statically allocated one of length 1024.
89499
89500 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89501
89502         Simplify code, partly by assuming autoconf 2.52 semantics.
89503
89504         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89505
89506         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89507         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89508         All uses removed.
89509         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89510         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89511         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89512         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89513         jm_AC_HEADER_INTTYPES_H.
89514         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89515
89516         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89517
89518         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89519         Quote first arg of AC_DEFUN.
89520         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89521         since they are needed to parse the include file even if we need
89522         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89523         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89524         but with opposite signedness.
89525
89526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89527
89528         Merge 'exclude' changes from tar 1.13.22.
89529         This fixes one or two unlikely storage allocation overflow bugs,
89530         but doesn't change user-visible behavior otherwise.
89531
89532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89533
89534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89535         (jm_PREREQ_EXCLUDE): New macro.
89536
89537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89538
89539         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89540         tm to be declared.
89541
89542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89543
89544         * lib/hash.c: Remove '2001' from copyright notice.
89545
89546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89547
89548         * lib/full-write.h: New file.
89549         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89550         * lib/full-write.c: Correct credits, as cccp.c no longer
89551         exists and anyway it was so heavily changed from the old cccp
89552         code as to be unrecognizable.  Include full-write.h.
89553         (full_write): Return size_t, with short writes meaning failure.
89554         All callers changed.  This fixes a bug with large buffers
89555         on 64-bit hosts.
89556         * lib/utime.c: Include full-write.h.
89557
89558 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89559
89560         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89561         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89562         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89563         Include if available.
89564         (<xalloc.h>): Include
89565         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89566         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89567         collide with FNM macros.
89568         (struct patopts): New struct.
89569         (struct exclude): Use it, as exclude patterns now come with options.
89570         (new_exclude): Support above changes.
89571         (new_exclude, add_exclude_file):
89572         Initial size must now be a power of two to simplify overflow checking.
89573         (free_exclude, fnmatch_no_wildcards): New function.
89574         (excluded_filename): No longer requires options arg, as the options
89575         are determined by add_exclude.  Now returns bool, not int.
89576         (excluded_filename, add_exclude):
89577         Add support for the fancy new exclusion options.
89578         (add_exclude, add_exclude_file): Now takes int options arg.
89579         Check for arithmetic overflow when computing sizes.
89580         (add_exclude_file): xrealloc might modify errno, so don't
89581         realloc until after errno might be used.
89582
89583         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89584         New macros.
89585         (free_exclude): New decl.
89586         (add_exclude, add_exclude_file): Now takes int options arg.
89587         (excluded_filename): No longer requires options arg, as the options
89588         are determined by add_exclude.  Now returns bool, not int.
89589
89590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89591
89592         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89593
89594 2001-08-27  Jim Meyering  <meyering@lucent.com>
89595
89596         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89597
89598         * lib/version-etc.c (N_): Remove definition.
89599         Revert most of last change.
89600         Instead, simply don't mark the `Copyright...' string for translation.
89601         Based on advice from Paul Eggert.
89602
89603         * lib/strtoxmax.c: Tweak comment.
89604
89605 2001-08-26  Jim Meyering  <meyering@lucent.com>
89606
89607         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89608
89609         * m4/xstrtoimax.m4: New file.
89610         * m4/xstrtoumax.m4: Add comments explaining why we
89611         AC_REPLACE_FUNCS(strtol).
89612
89613 2001-08-26  Jim Meyering  <meyering@lucent.com>
89614
89615         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89616         of copyright with `%s' so translators don't get an untranslated
89617         message in 2002.
89618         (COPYRIGHT_YEAR): Define.
89619         (version_etc): Use fprintf rather than fputs.
89620         Suggestion from Ulrich Drepper.
89621
89622         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89623
89624         * lib/strtoll.c: New file, from GNU libc.
89625         * lib/xstrtoimax.c: New file.
89626
89627         * lib/xstrtol.h: Add xstrtoimax.
89628         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89629         * lib/strtoimax.c: New file.  Likewise, but first define
89630         STRTOUXMAX_SIGNED.
89631
89632         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89633         ...
89634         * lib/strtoxmax.c: ... then renamed to this.
89635
89636 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89637
89638         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89639         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89640         (jm_AC_TYPE_INTMAX_T): New macro.
89641         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89642
89643         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89644
89645         * m4/longlong.m4: Renamed from ulonglong.m4.
89646         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89647         * m4/uintmax_t.m4: Removed.
89648
89649 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89650
89651         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89652         Port to Solaris 8, where 'sed' requires a space after the 'r'
89653         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89654         Redirect output to $tmp just once.
89655
89656 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89657
89658         * lib/addext.c (<errno.h>): Include.
89659         (errno): Declare if not defined.
89660         (addext): Work correctly when pathconf returns -1 and leaves
89661         errno alone because there is no limit.  Also, work even if
89662         pathconf returns a value greater than SIZE_MAX.
89663
89664 2001-08-12  Jim Meyering  <meyering@lucent.com>
89665
89666         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89667         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89668         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89669         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89670         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89671         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89672         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89673         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89674         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89675         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89676         utime.m4, utimes.m4, xstrtoumax.m4:
89677         Quote the first argument in each use of AC_DEFUN.
89678
89679 2001-08-12  Jim Meyering  <meyering@lucent.com>
89680
89681         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89682         Simply `return getcwd (NULL, 0);'.
89683         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89684         Use 1300 as initial value for length, not PATH_MAX.
89685
89686         * lib/pathmax.h: Clean up cpp syntax.
89687
89688 2001-08-12  Jim Meyering  <meyering@lucent.com>
89689
89690         * lib/gettimeofday.c: New file.
89691         * lib/gtod.h: New file.
89692         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89693
89694 2001-08-05  Jim Meyering  <meyering@lucent.com>
89695
89696         * m4/jm-macros.m4: Require autoconf-2.52.
89697
89698 2001-08-04  Jim Meyering  <meyering@lucent.com>
89699
89700         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89701         stmt, to get in sync with glibc.
89702
89703 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89704
89705         The following changes are from gettext 0.10.39 as maintained by
89706         Bruno Haible.
89707
89708         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89709         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89710         with inverted sense.  All uses changed.
89711
89712         * lib/mbswidth.c: Don't include <limits.h>.
89713         Include <stdlib.h> and <string.h> unconditionally.
89714         (iswcntrl, mbsinit, ISCNTRL): New macros.
89715         (mbsnwidth): Use K&R style function declarations.
89716         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89717         can optimize it when MB_CUR_MAX == 1.
89718         The width of control characters is zero, not 1.
89719
89720 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89721
89722         The following changes are from gettext 0.10.39 as maintained by
89723         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89724
89725         * m4/codeset.m4: Upgrade to serial AM1.
89726         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89727         all uses changed.  Quote first arg of AC_DEFUN.
89728         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89729
89730         * m4/iconv.m4: Upgrade to serial AM2.
89731         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89732         Add --with-libconv-prefix.
89733         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89734         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89735         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89736         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89737         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89738
89739         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89740         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89741         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89742         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89743         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89744         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89745         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89746         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89747         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89748
89749         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89750         string.h any more.
89751
89752         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89753         not the default value.
89754
89755         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89756         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89757         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89758         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89759         Also check for iswcntrl, used for wcwidth fallback.
89760         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89761         to Autoconf 2.13.
89762
89763 2001-08-03  Jim Meyering  <meyering@lucent.com>
89764
89765         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89766         as it was in the original.  Reported by Paul Eggert.
89767
89768 2001-07-16  Jim Meyering  <meyering@lucent.com>
89769
89770         * m4/gettimeofday.m4: New file.
89771         Prompted by a report from Bernhard Baehr.
89772
89773 2001-07-15  Jim Meyering  <meyering@lucent.com>
89774
89775         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89776         stuff. Now it's in ../Makefile.cfg.
89777
89778 2001-07-15  Jim Meyering  <meyering@lucent.com>
89779
89780         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89781         (BUILT_SOURCES): Add unlocked-io.h.
89782         (io_functions): Define.
89783         (unlocked-io.h): New rule.
89784         (DISTCLEANFILES): Add unlocked-io.h.
89785         (all-local): Depend on unlocked-io.h, to ensure it is created.
89786
89787         * lib/unlocked-io.hin: New file
89788
89789         * lib/regex.c: Update from glibc.
89790
89791 2001-07-05  Jim Meyering  <meyering@lucent.com>
89792
89793         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89794         recommendation.
89795         (libfetish_a_SOURCES): Put all .h files here instead.
89796         Remove a thus-exposed (better checks in automake) duplicate and
89797         two unnecessary .h files.
89798
89799 2001-07-04  Jim Meyering  <meyering@lucent.com>
89800
89801         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89802         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89803         distcheck failure.
89804
89805 2001-07-02  Jim Meyering  <meyering@lucent.com>
89806
89807         The following changes were prompted by suggestions from Bruno Haible.
89808
89809         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89810         is now generated.
89811         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89812         definition of EXTRA_DIST.
89813         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89814         ensure that the generated file is created/updated whenever the list
89815         of $(unlocked_functions) is changed.
89816         (jm-glibc-io.m4): New rule.
89817         (unlocked-io.h): New rule -- currently unused.
89818
89819 2001-06-24  Jim Meyering  <meyering@lucent.com>
89820
89821         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89822         unmatched right bracket, rather than kludging it with an extra,
89823         falsely-matching quote in a comment.  Patch by Akim Demaille.
89824
89825 2001-06-11  Jim Meyering  <meyering@lucent.com>
89826
89827         * lib/regex.c: Update from GNU libc.
89828
89829 2001-05-27  Jim Meyering  <meyering@lucent.com>
89830
89831         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89832         Check for ut_type in struct utmp.
89833
89834 2001-05-27  Jim Meyering  <meyering@lucent.com>
89835
89836         * lib/readutmp.h (UT_TYPE): Define.
89837
89838 2001-05-24  Jim Meyering  <meyering@lucent.com>
89839
89840         * lib/argmatch.c: Include "quote.h".
89841         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89842         quote function.  Reported by Göran Uddeborg.
89843
89844 2001-05-22  Jim Meyering  <meyering@lucent.com>
89845
89846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89847         now that we use the package-supplied version unconditionally.
89848         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89849
89850 2001-05-21  Jim Meyering  <meyering@lucent.com>
89851
89852         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89853         shell syntax errors.
89854
89855 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89856
89857         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89858
89859 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89860
89861         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89862         Don't bother to check library strftime, since
89863         we'll be using our own my_strftime function anyway.
89864         Define my_strftime instead of strftime.
89865
89866 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89867
89868         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89869         which is not yet declared.
89870
89871 2001-05-15  Jim Meyering  <meyering@lucent.com>
89872
89873         * m4/regex.m4: Use proper quoting so brackets appear in the test
89874         program.
89875         Reported by, and with help from, Bruno Haible.
89876
89877 2001-05-13  Jim Meyering  <meyering@lucent.com>
89878
89879         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89880         undefined.
89881
89882 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89883
89884         dirname code cleanup.  base_name now behaves more compatibly
89885         with POSIX basename when given file names that have trailing
89886         slashes, and similarly for dir_name.  Add new primitives
89887         base_len and dir_len.  Put the directory-name-related decls
89888         into dirname.h.
89889
89890         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89891         * lib/backupfile.c (base_name): Likewise.
89892         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89893         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89894         * lib/makepath.c (strip_trailing_slashes): Likewise.
89895         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89896         ISSLASH): Likewise.
89897         * lib/rename.c (strip_trailing_slashes): Likewise.
89898         * lib/same.c (base_name): Likewise.
89899         * lib/stripslash.c (ISSLASH): Likewise.
89900
89901         * lib/addext.c: Include <dirname.h> after size_t is defined.
89902         * lib/backupfile.c: Likewise.
89903
89904         * lib/addext.c (addext): Use base_len to trim redundant
89905         trailing slashes instead of doing it ourselves.
89906         But do not trim the last slash if it is not redundant.
89907
89908         * lib/backupfile.c (find_backup_file_name,
89909         max_backup_version): Use base_len instead of rolling it ourselves.
89910         Handle the case of "" and (on DOS) "C:" correctly.
89911
89912         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89913         needed. Include <string.h>, <dirname.h>.
89914         (base_name): Allow file names ending in slashes, other than names
89915         that are all slashes.  In this case, return the basename followed
89916         by the slashes.  This is more general, and can be used in places
89917         where the original base_name purposely had an assertion failure.
89918         (base_len): New function.
89919
89920         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89921         Do not include <assert.h>; no longer needed.
89922         Include xalloc.h.
89923         (memrchr): Remove decl.
89924         (dir_name_r): Remove.
89925         (dir_len): Renamed from dirlen.  All callers changed.
89926         Rewrite in terms of base_name, for simplicity and consistency.
89927         (dir_name): Never return NULL.  All callers changed.
89928         Do not include <stdlib.h> in test program; no longer needed.
89929         return 0; is fine for test program.
89930
89931         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89932         New macros.
89933         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89934
89935         * lib/path-concat.c (path_concat): Use base_len to compute
89936         base length, not strlen; this means we cannot rely on memcpy
89937         to null-terminate.
89938
89939         * lib/same.c (STREQ): Remove.
89940         (same_name): Handle the case where the basename ends in trailing '/'.
89941
89942         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89943         a slash was stripped.  Do not strip the last slash after a
89944         file system prefix.
89945
89946 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89947
89948         * lib/Makefile.am (libfetish_a_SOURCES):
89949         Add strftime.c, since we now compile it on all hosts.
89950
89951         * lib/strftime.c (my_strftime):
89952         Define to nstrftime if emacs, but only if my_strftime is not defined.
89953         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89954         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89955         Add one more extra argument: a nanoseconds value.
89956         All uses changed.
89957         (ns): New macro.
89958         (my_strftime function): Add %N format.
89959         (emacs_strftimeu): Renamed from emacs_strftime,
89960         with extra ut argument.
89961
89962 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89963
89964         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89965
89966 2001-04-21  Jim Meyering  <meyering@lucent.com>
89967
89968         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89969         doesn't interfere.
89970
89971 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89972
89973         * m4/ftruncate.m4: Check for chsize.
89974         Link with ftruncate.o unconditionally if ftruncate is missing.
89975         This was required when cross-compiling to i586-mingw32msvc.
89976
89977 2001-04-08  Jim Meyering  <meyering@lucent.com>
89978
89979         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89980         recomputed; that's necessary when the offset spans a DST transition.
89981         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89982
89983 2001-04-02  Jim Meyering  <meyering@lucent.com>
89984
89985         * lib/regex.h, regex.c: Update from GNU libc.
89986
89987 2001-03-24  Jim Meyering  <meyering@lucent.com>
89988
89989         * m4/jm-macros.m4: Require autoconf-2.49d.
89990
89991 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89992
89993         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89994
89995 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89996
89997         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89998
89999 2001-03-17  Jim Meyering  <meyering@lucent.com>
90000
90001         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
90002         now that the version in autoconf is equivalent.
90003         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
90004
90005         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
90006         Suggestion from Akim Demaille.
90007
90008         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
90009         (jm_PREREQ_TEMPNAME): New function.
90010
90011 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90012
90013         * lib/tempname.c (uint64_t): Define to uintmax_t if
90014         not defined, and if UINT64_MAX is not defined.
90015         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90016         Reported by John David Anglin.
90017
90018 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90019
90020         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90021         resolve alias if codeset is empty.
90022         * lib/config.charset (BeOS): Use wildcard syntax.
90023
90024 2001-03-13  Jim Meyering  <meyering@lucent.com>
90025
90026         * lib/path-concat.c (path_concat)
90027         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90028         concatenating e.g., `C:' and `foo'.
90029         From Bruno Haible.
90030
90031 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90032
90033         * lib/localcharset.c (locale_charset): Don't use
90034         setlocale(LC_CTYPE,NULL). Don't return NULL.
90035         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90036
90037 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90038
90039         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90040         support for DOS/DJGPP.
90041
90042 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90043
90044         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90045         lacks mkstemp.  Compile our own tempname.c if we compile our own
90046         mkstemp.c, as mkstemp relies on tempname.
90047
90048 2001-03-01  Jim Meyering  <meyering@lucent.com>
90049
90050         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90051         AH_VERBATIM really does output its argument verbatim.
90052
90053 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90054
90055         * lib/Makefile.am (libfetish_a_SOURCES):
90056         Add dup-safer.c, fopen-safer.c.
90057         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90058
90059         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90060         * lib/unistd-safer.h: New files.
90061
90062 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90063
90064         The mkstemp replacement is taken from glibc 2.2.2, with some
90065         portability fixes for use outside glibc, as follows:
90066
90067         * lib/tempname.c (struct_stat64): New macro.
90068         (direxists, __gen_tempname): Use it.
90069         This avoids a portability problem with Solaris 8.
90070
90071         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90072         (<stddef.h>, <stdint.h>, <string.h>):
90073         Include only if STDC_HEADERS || _LIBC.
90074         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90075         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90076         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90077         (__set_errno): Define this macro if <errno.h> doesn't.
90078         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90079         Define these macros if <stdio.h> doesn't.
90080         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90081         Define these macros if <sys/stat.h>
90082         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90083         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90084         __xstat64): Define if not _LIBC.
90085         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90086         (__gen_tempname): Invoke gettimeofday only if
90087         HAVE_GETTIMEOFDAY || _LIBC;
90088         otherwise, fall back on plain "time".
90089         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90090
90091         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90092
90093         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90094
90095 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90096
90097         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90098
90099 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90100
90101         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90102         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90103         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90105
90106 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90107
90108         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90109         Remove workaround macros for hosts that have mbrtowc but not
90110         mbstate_t, as we now insist on proper declarations for both
90111         before using mbrtowc.
90112
90113 2001-02-17  Jim Meyering  <meyering@lucent.com>
90114
90115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90116         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90117         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90118         UnixWare 7.1.1.
90119
90120         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90121         rather than AC_CACHE_VAL.
90122
90123 2001-02-17  Jim Meyering  <meyering@lucent.com>
90124
90125         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90126         around included file name.
90127
90128         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90129
90130         * lib/strftime.c: Update from GNU libc (the only changes were to
90131         comments).
90132
90133 2001-02-17  Jim Meyering  <meyering@lucent.com>
90134
90135         * lib/regex.c: Update from libc.
90136
90137 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90138
90139         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90140         clash.
90141
90142 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90143
90144         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90145         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90146         Reported by Mark Hounschell via Paul Eggert.
90147
90148 2001-02-07  Jim Meyering  <meyering@lucent.com>
90149
90150         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90151
90152 2001-02-05  Jim Meyering  <meyering@lucent.com>
90153
90154         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90155         it includes the patch required for `large file' support with at least
90156         HP-UX's 10.20 /bin/cc.
90157
90158 2001-02-03  Jim Meyering  <meyering@lucent.com>
90159
90160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90161         AS_IF, now that it works once again (mysteriously).
90162         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90163
90164 2001-01-30  Jim Meyering  <meyering@lucent.com>
90165
90166         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90167         * m4/chown.m4: Rename conftestchown to conftest.chown.
90168         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90169         s/conftestdir2/conftest.d2/.
90170         * m4/utimes.m4: s/conftestdata/conftest.data/
90171         Inspired by Pavel Roskin's change in autoconf.
90172
90173 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90174
90175         * lib/config.charset: Update for FreeBSD 4.2.
90176
90177 2001-01-27  Jim Meyering  <meyering@lucent.com>
90178
90179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90180         a use of AS_IF.
90181         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90182
90183 2001-01-26  Jim Meyering  <meyering@lucent.com>
90184
90185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90186         quotearg.c includes it.
90187
90188 2001-01-26  Jim Meyering  <meyering@lucent.com>
90189
90190         * lib/quotearg.c: Include stddef.h.
90191         * lib/quote.c: Include stddef.h.
90192         Reported by Axel Kittenberger.
90193
90194         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90195         line in double quotes so that it evokes a better diagnostic.
90196         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90197         Reported by Axel Kittenberger.
90198
90199 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90200
90201         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90202         as if it was a `charset'.
90203
90204 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90205
90206         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90207         has const.
90208
90209 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90210
90211         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90212         to avoid a warning.  Add back 'const' to inptr.
90213
90214 2001-01-20  Jim Meyering  <meyering@lucent.com>
90215
90216         Be sure that headers are checked before used in code compiled
90217         for the type checks.
90218         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90219         In place of that, invoke jm_CHECK_ALL_TYPES.
90220         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90221         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90222         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90223         The check for ssize_t was mistakenly run before the test for unistd.h.
90224
90225         The configure-time check for stdbool.h was missing.
90226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90227         (jm_PREREQ_HASH): New function.
90228
90229 2001-01-17  Jim Meyering  <meyering@lucent.com>
90230
90231         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90232         for autoconf-2.49c.
90233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90234
90235 2001-01-16  Jim Meyering  <meyering@lucent.com>
90236
90237         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90238         From Bruno Haible.
90239
90240 2001-01-14  Jim Meyering  <meyering@lucent.com>
90241
90242         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90243         foo and bar.  Create conftestdir/ in the script, not in the C code.
90244         Remove directories in the script, not in the C code.
90245         Remove conftestdir{,2} before trying to create the directory.
90246         Make the entire configure script fail if the mkdir fails.
90247
90248 2001-01-14  Jim Meyering  <meyering@lucent.com>
90249
90250         * lib/rename.c: New file.  From Volker Borchert.
90251         Include stdlib.h, string.h or strings.h, and xalloc.h.
90252         Use strip_trailing_slashes rather than open-coding it.
90253
90254 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90255
90256         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90257
90258 2001-01-03  Jim Meyering  <meyering@lucent.com>
90259
90260         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90261         of local `inptr' to avoid warning with some system declarations of
90262         iconv.
90263
90264 2001-01-02  Volker Borchert  <bt@teknon.de>
90265
90266         * m4/rename.m4: New file.
90267         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90268
90269 2001-01-01  Jim Meyering  <meyering@lucent.com>
90270
90271         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90272         even on systems with utmpx.h.  It's necessary for the declaration of
90273         utmp's ut_user member.  Reported by Andreas Jaeger.
90274
90275         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90276         available. They are required for the declarations of getgrgid and
90277         getpwuid resp.
90278         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90279         Reported by Andreas Jaeger.
90280
90281 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90282
90283         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90284         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90285         so `make install' also works in VPATH builds.
90286
90287 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90288
90289         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
90290         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
90291         can be used in subdirectories.
90292
90293 2000-12-29  Paul Eggert  <eggert@twinsun.com>
90294
90295         * lib/modechange.c: Do not assume that mode_t uses the
90296         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90297         the other-execute bit of FOO even if S_IXOTH != 1.
90298
90299         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90300         WOTH, XOTH, ALLM): New macros.
90301         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90302          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90303         Use them.
90304         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90305         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90306         (mode_compile):
90307         No need to use uintmax_t; unsigned long is long enough.
90308         Don't bother to get suffix since we don't use it.
90309
90310 2000-12-26  Jim Meyering  <meyering@lucent.com>
90311
90312         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90313         better with autoheader.
90314
90315 2000-12-24  Jim Meyering  <meyering@lucent.com>
90316
90317         * lib/hash.c (is_prime): Return explicit boolean values.
90318         (hash_get_first): Return NULL to appease Irix5.6's 89.
90319         Reported by Nelson Beebe.
90320
90321 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90322
90323         * lib/localcharset.c (locale_charset): Add support for Win32.
90324
90325 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90326
90327         * lib/physmem.h, lib/physmem.c: New files.
90328
90329         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90330         (noinst_HEADERS): Add physmem.h.
90331
90332         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90333         't' for compatibility with Solaris 8 sort.
90334
90335 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90336
90337         * lib/config.charset: Add support for BeOS.
90338
90339 2000-12-17  Jim Meyering  <meyering@lucent.com>
90340
90341         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90342         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90343
90344 2000-12-16  Jim Meyering  <meyering@lucent.com>
90345
90346         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90347         N and M) would have treated it like `chown N:N FILE'.
90348
90349         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90350
90351 2000-12-16  Jim Meyering  <meyering@lucent.com>
90352
90353         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90354         SHELLS_FILE to a file name that's useful on djgpp systems.
90355         Include stdlib.h.
90356         (ADDITIONAL_DEFAULT_SHELLS): Define.
90357         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90358         Based mostly on a patch from Prashant TR.
90359
90360 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90361
90362         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90363         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90364         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90365
90366 2000-12-08  Andreas Schwab  <schwab@suse.de>
90367
90368         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90369         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90370
90371 2000-12-07  Jim Meyering  <meyering@lucent.com>
90372
90373         * lib/stripslash.c (ISSLASH): Define.
90374         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90375         `/'.
90376         From Prashant TR.
90377
90378         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90379         (dir_name_r): Declare this function as static.
90380         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90381         manifest itself on a name containing a mix of slashes and
90382         backslashes.
90383         Make this function work with names starting with a DOS-style
90384         drive letter and colon prefix.
90385         (dir_name): Append `.' if necessary.
90386         Based mostly on patches from Prashant TR and Eli Zaretskii.
90387
90388         * lib/dirname.h (dir_name_r): Remove prototype.
90389
90390 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90391
90392         * m4/off_t-format.m4: Remove this file.
90393         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90394
90395 2000-12-06  Jim Meyering  <meyering@lucent.com>
90396
90397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90398         replacement strtoull, we may well need the replacement strtoul, too.
90399         Check for declarations of strtoul and strtoull.
90400         Check for strtol.  Mainly as a cue to cause automake to include
90401         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90402         Check for limits.h -- strtol.c needs it.
90403
90404 2000-12-05  Jim Meyering  <meyering@lucent.com>
90405
90406         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90407
90408 2000-12-04  Jim Meyering  <meyering@lucent.com>
90409
90410         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90411         Also include memory.h, stdlib.h, unistd.h if appropriate.
90412         Reported by Andreas Jaeger (conflicting declaration of malloc).
90413
90414 2000-12-02  Jim Meyering  <meyering@lucent.com>
90415
90416         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90417         * m4/jm-macros.m4 (jm_MACROS): require it.
90418
90419 2000-12-02  Jim Meyering  <meyering@lucent.com>
90420
90421         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90422
90423 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90424
90425         * lib/memrchr.c: Include <config.h> before any system include file.
90426
90427 2000-11-30  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90430
90431 2000-11-30  Jim Meyering  <meyering@lucent.com>
90432
90433         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90434
90435 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90436
90437         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90438
90439 2000-11-26  Jim Meyering  <meyering@lucent.com>
90440
90441         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90442
90443 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90444
90445         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90446         size of (size_t) -1; it's not portable.
90447
90448 2000-11-17  Jim Meyering  <meyering@lucent.com>
90449
90450         * lib/strstr.c: Update from GNU libc.
90451
90452 2000-11-17  Akim Demaille  <akim@epita.fr>
90453
90454         * lib/obstack.h: Formatting changes.
90455         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90456         prevent type checking.
90457         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90458         cast the value to (void *): assigning a `foo *' to a `void *'
90459         variable is valid.
90460         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90461
90462 2000-11-16  Jim Meyering  <meyering@lucent.com>
90463
90464         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90465
90466 2000-11-11  Jim Meyering  <meyering@lucent.com>
90467
90468         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90469
90470 2000-11-10  Jim Meyering  <meyering@lucent.com>
90471
90472         * lib/obstack.h: Update from GNU libc.
90473         * lib/obstack.c: Likewise.
90474
90475 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90476
90477         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90478
90479 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90480
90481         * lib/getusershell.c (setusershell): Use rewind rather than
90482         fseek/fseeko, to avoid configuration hassles with fseeko.
90483         Don't bother opening SHELLS_FILE if shellstream is NULL;
90484         it's not necessary.
90485
90486 2000-11-05  Jim Meyering  <meyering@lucent.com>
90487
90488         * lib/makepath.h (make_dir): Declare.
90489         * lib/makepath.c (make_dir): Remove `static' attribute.
90490         Tweak a comment.
90491
90492 2000-11-04  Jim Meyering  <meyering@lucent.com>
90493
90494         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90495
90496 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90497
90498         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90499         last one in a bucket, advance to the next bucket.
90500
90501 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90502
90503         * lib/fnmatch.c: Do not comment out all the code if we are using
90504         the GNU C library, because in some cases we are replacing buggy
90505         code in the GNU C library itself.
90506
90507 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90508
90509         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90510         (regex_compile): Catch bogus \(\1\).
90511
90512 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90513
90514         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90515         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90516         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90517
90518 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90519
90520         * lib/error.h, getline.h, modechange.h:
90521         Remove "2000" from Copyright line, as the file hasn't been
90522         changed this year other than in the copyright notice.
90523
90524         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90525         was changed this year.
90526
90527 2000-10-29  Jim Meyering  <meyering@lucent.com>
90528
90529         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90530         renaming.
90531         * m4/ls-mntd-fs.m4: Likewise
90532
90533 2000-10-29  Jim Meyering  <meyering@lucent.com>
90534
90535         * lib/xstat.in: Fix grammar in comment.
90536
90537 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90538
90539         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90540         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90541         doesn't define __restrict_arr.
90542
90543 2000-10-28  Jim Meyering  <meyering@lucent.com>
90544
90545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90546         (jm_PREREQ_MEMCHR): New function.
90547
90548 2000-10-28  Jim Meyering  <meyering@lucent.com>
90549
90550         * lib/memchr.c: Update from libc.
90551         Adjust for portability:
90552         [HAVE_STDLIB_H]: Include stdlib.h.
90553         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90554         Undef __memchr, too.
90555         [!weak_alias]: Define __memchr to memchr.
90556
90557         * lib/regex.c: Update from libc.
90558         * lib/regex.h: Likewise.
90559         * lib/getopt1.c: Likewise.
90560         * lib/memcmp.c: Likewise.
90561
90562         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90563         Avoid using fseek, when possible -- it's broken by design.
90564         Patch by Ulrich Drepper.
90565
90566 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90567
90568         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90569         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90570         Giving in to popular pressure to shut up the compiler with casts.
90571
90572 2000-10-26  Jim Meyering  <meyering@lucent.com>
90573
90574         * lib/strftime.c: Update from libc.
90575
90576 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90577
90578         * regex.c: More `unsigned char' -> `re_char' changes.
90579         Also change several `int' into `re_wchar_t'.
90580         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90581         (PUSH_FAILURE_POINTER): Don't cast any more.
90582         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90583         We want GCC to complain, since this piece of code makes
90584         re_match non-reentrant, which *should* be fixed.
90585         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90586         (EXTEND_BUFFER): Use RETALLOC.
90587         (SET_LIST_BIT): Don't cast.
90588         (re_wchar_t): New type.
90589         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90590         that those two functions will always properly return.
90591         (IMMEDIATE_QUIT_CHECK): Cast to void.
90592         (analyse_first): Use recursion rather than an explicit stack.
90593         (re_compile_fastmap): Can't fail anymore.
90594         (re_search_2): Don't check re_compile_fastmap for failure.
90595         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90596         Now also sets the new value (passed in a new argument).
90597         (re_match_2_internal): Use it.
90598         Also, use a new var `reg' of type size_t when looping through regs
90599         rather than reuse the inappropriate `mcnt'.
90600
90601 2000-10-25  Jim Meyering  <meyering@lucent.com>
90602
90603         * lib/obstack.c: Update from libc.
90604
90605 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90606
90607         * regex.c (regex_compile): Change the way of handling a range from
90608         a char less than 256 to a char not less than 256.
90609
90610 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90611
90612         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90613         NT-Emacs only.
90614         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90615         so that re_search functions only quit when callers expect them to.
90616
90617 2000-10-23  Jim Meyering  <meyering@lucent.com>
90618
90619         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90620         wrong.  That set_locale call must not have any side effects.
90621         From Paul Eggert.
90622
90623 2000-10-22  Jim Meyering  <meyering@lucent.com>
90624
90625         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90626         [CYCLIC]: Remove now-unused definition.
90627
90628         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90629         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90630         Suggestion from Ulrich Drepper.
90631
90632 2000-10-21  Jim Meyering  <meyering@lucent.com>
90633
90634         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90635         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90637
90638 2000-10-21  Jim Meyering  <meyering@lucent.com>
90639
90640         * lib/dirname.c (memrchr): Declare if necessary.
90641         (dir_name): Remove the restriction that there be no
90642         trailing slashes.  Now, this code skips past them, effectively
90643         ignoring them.
90644         [TEST_DIRNAME] (main): New unit tests.
90645
90646         * lib/memrchr.c: New file from GNU libc.
90647         Undef __memrchr, too.
90648         [!weak_alias]: Define __memrchr to memrchr.
90649         Guard weak_alias use with `#ifdef weak_alias'.
90650
90651 2000-10-21  Jim Meyering  <meyering@lucent.com>
90652
90653         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90654         (dir_name): Use dir_name_r.
90655         * lib/dirname.h (dir_name_r): Declare it.
90656
90657 2000-10-17  Jim Meyering  <meyering@lucent.com>
90658
90659         * lib/quote.h (PARAMS): Define and use.
90660         Reported by Akim Demaille.
90661
90662         * lib/getopt.c: Update from libc.
90663
90664 2000-10-16  Jim Meyering  <meyering@lucent.com>
90665
90666         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90667         setlocale.
90668         From Jan Fedak.
90669
90670 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90671
90672         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90673
90674 2000-09-25  Jim Meyering  <meyering@lucent.com>
90675
90676         * lib/md5.h (rol): Define (from GnuPG).
90677
90678         * lib/sha.c: Give credit (GnuPG) where due.
90679         (M): Use rol rather than open-coding it.
90680         Add a FIXME comment.
90681
90682 2000-09-21  Jim Meyering  <meyering@lucent.com>
90683
90684         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90685         Reported by Michael Stone.
90686
90687 2000-09-20  Jim Meyering  <meyering@lucent.com>
90688
90689         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90690         (noinst_HEADERS): Add sha.h.
90691         Based on code from Scott G. Miller and from GnuPG.
90692
90693 2000-09-18  Jim Meyering  <meyering@lucent.com>
90694
90695         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90696         LIBS. Otherwise, everyone ends up linking with -lelf for some
90697         configurations.
90698         Reported by Mike Stone.
90699
90700 2000-09-15  Jim Meyering  <meyering@lucent.com>
90701
90702         * lib/regex.c: Update from libc.
90703
90704 2000-09-10  Jim Meyering  <meyering@lucent.com>
90705
90706         * lib/getopt.c (_getopt_internal): Update from glibc.
90707
90708 2000-09-09  Jim Meyering  <meyering@lucent.com>
90709
90710         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90711         think it should be used as a general replacement for isascii.
90712         * lib/fnmatch.c: Likewise.
90713         * lib/mbswidth.c: Likewise
90714         * lib/regex.c: Likewise.
90715
90716         Don't use atoi.
90717         * lib/userspec.c: Include sys/param.h and limits.h.
90718         Include xstrtol.h.
90719         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90720         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90721         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90722         UID, GID.  Check range.
90723
90724 2000-09-06  Jim Meyering  <meyering@lucent.com>
90725
90726         * lib/getopt.c (_getopt_internal): Update from glibc.
90727
90728 2000-08-30  Jim Meyering  <meyering@lucent.com>
90729
90730         * lib/strftime.c: Merge in changes from GNU libc.
90731
90732 2000-08-26  Jim Meyering  <meyering@lucent.com>
90733
90734         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90735         * m4/fpending.m4: New file.
90736
90737 2000-08-26  Jim Meyering  <meyering@lucent.com>
90738
90739         * lib/closeout.c: Include "__fpending.h".
90740         (close_stdout_status): Return right away if there's nothing to flush.
90741
90742         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90743         * lib/__fpending.c: New file.
90744         * lib/__fpending.h: New file.
90745
90746 2000-08-20  Jim Meyering  <meyering@lucent.com>
90747
90748         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90749         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90750         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90751
90752 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90753
90754         Improve fileutils installation on systems where running
90755         programs (like install) can't be unlinked.
90756         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90757         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90758
90759 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90760
90761         Standardize on "memory exhausted" instead of "Memory exhausted"
90762         or "virtual memory exhausted".
90763         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90764         "virtual memory exhausted".
90765         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90766         our own message.
90767         * lib/userspec.c (parse_user_spec): Likewise.
90768         * lib/bumpalloc.h: comment fix
90769         * lib/same.c, userspec.c: Include xalloc.h.
90770
90771         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90772         not char *const and pointing to a constant array.
90773         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90774         (xrealloc): Comment fix.
90775
90776         * lib/userspec.c (parse_user_spec):
90777         Don't translate a message until just before returning,
90778         to avoid unnecessary translation.
90779
90780 2000-08-07  Jim Meyering  <meyering@lucent.com>
90781
90782         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90783         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90784         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90785         getgroups.c, gethostname.c, getopt.h, group-member.c,
90786         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90787         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90788         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90789         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90790         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90791         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90792         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90793         yesno.c: Back out Copyright date changes for each file with no change
90794         this year.  This eases coordination with other programs using the same
90795         source code modules.  From Paul Eggert.
90796
90797 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90798
90799         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90800         not char, for compatibility with glibc 2.1.3 strftime.c.
90801
90802 2000-08-03  Greg McGary  <greg@mcgary.org>
90803
90804         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90805         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90806         (EXTEND_BUFFER): Use them.
90807
90808 2000-08-01  Jim Meyering  <meyering@lucent.com>
90809
90810         * lib/dirname.c (ISSLASH): Define.
90811         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90812         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90813         both `\' and `/' may be use as path separators.
90814         Based on a patch from Prashant TR.
90815
90816 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90817
90818         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90819         slot vector a constant, since it might get modified.
90820
90821 2000-07-31  Jim Meyering  <meyering@lucent.com>
90822
90823         * lib/xmalloc.c: Use `virtual memory exhausted', not
90824         `Memory exhausted'.
90825         * lib/obstack.c (print_and_abort): Likewise.
90826
90827 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90828
90829         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90830         buffer, so that the caller can always quote one small
90831         component of a "memory exhausted" message in slot 0.
90832         From a suggestion by Jim Meyering.
90833
90834 2000-07-30  Jim Meyering  <meyering@lucent.com>
90835
90836         * lib/makepath.c (make_path): Quote the other instance, too.
90837
90838         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90839         (STATIC_BUF_SIZE): Define.
90840         (quotearg_n_options): Use only statically allocated storage when
90841         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90842         than STATIC_BUF_SIZE.
90843
90844 2000-07-29  Jim Meyering  <meyering@lucent.com>
90845
90846         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90847         * lib/dirname.c (dir_name): Likewise.
90848
90849         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90850         `/'.
90851
90852         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90853         (dir_name): Assert that there are no trailing slashes.
90854
90855 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90856
90857         * lib/mbswidth.h (mbswidth): Add a flags argument.
90858         (mbswidth): New declaration.
90859         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90860         * lib/mbswidth.c (mbswidth): Add a flags argument.
90861         (mbsnwidth): New function.
90862
90863 2000-07-24  Jim Meyering  <meyering@lucent.com>
90864
90865         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90866
90867 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90868
90869         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90870
90871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90872
90873         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90874         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90875         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90876         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90877         invoke multibyte primitives.
90878
90879 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90880
90881         * lib/quotearg.c:
90882         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90883         so that mbstate_t is always defined.
90884
90885         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90886         be 1 in at least one GCC installation, and this configuration
90887         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90888         performance on hosts that have mbrtowc but have only unibyte
90889         locales, but I assume these hosts are rare.
90890
90891 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90892
90893         * lib/mbswidth.c (_XOPEN_SOURCE):
90894         Don't define; this causes problems on Solaris 7.
90895         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90896
90897 2000-07-23  Jim Meyering  <meyering@lucent.com>
90898
90899         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90900         too: getgrgid, getpwuid, getuid.
90901
90902 2000-07-23  Jim Meyering  <meyering@lucent.com>
90903
90904         * lib/basename.c (base_name): Add an assertion.
90905
90906 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90907
90908         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90909         shadow its mbsinit function.
90910
90911 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90912
90913         * lib/mbswidth.h: New file.
90914         * lib/mbswidth.c: New file.
90915         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90916         (noinst_HEADERS): Add mbswidth.h.
90917
90918 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90919
90920         * lib/config.charset: Add support for FreeBSD. Improve support for
90921         HP-UX and IRIX 6.
90922
90923 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90924
90925         * m4/mbswidth.m4: New file.
90926         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90927
90928 2000-07-15  Jim Meyering  <meyering@lucent.com>
90929
90930         * lib/makepath.c: Include quote.h.
90931         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90932         corresponding argument in a `quote (...)' call.
90933         Give better diagnostics.
90934
90935         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90936         (noinst_HEADERS): Add quote.h.
90937
90938         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90939         from tar's src/misc.c.
90940         * lib/quote.h: New file.  Prototypes for same.
90941
90942 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90943
90944         From a suggestion by Bruno Haible.
90945         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90946         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90947         to decide whether to define the BeOS workaround macro;
90948         this adjusts to the change to AC_MBSTATE_T.
90949
90950 2000-07-14  Jim Meyering  <meyering@lucent.com>
90951
90952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90953         jm_AC_TYPE_UINTMAX_T.
90954
90955 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90956
90957         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90958
90959         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90960         quotearg_buffer_restyled): Add support for
90961         clocale_quoting_style.  Undo previous change to
90962         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90963         and "{RIGHT QUOTATION MARK}" msgids.
90964
90965 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90966
90967         From a suggestion by Bruno Haible.
90968         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90969         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90970         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90971         and mbstate_t, to a single-part test that simply defines mbstate_t.
90972         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90973         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90974
90975 2000-07-10  Jim Meyering  <meyering@lucent.com>
90976
90977         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90978
90979         * m4/gnu-source.m4: Output to confdefs.h directly.
90980         Suggestion from Akim Demaille.
90981
90982 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90983
90984         The old behavior of quoting `like this' doesn't look good with
90985         newer, ISO-style fonts.  See:
90986         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90987
90988         Instead, quote "like this" by default.  Let the translator
90989         tailor the locale-specific quoting behavior by providing
90990         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90991
90992         * lib/quotearg.c (N_): New macro.
90993         (gettext_default): New function.
90994         (quotearg_buffer_restyled): Use
90995         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90996         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90997
90998 2000-07-09  Jim Meyering  <meyering@lucent.com>
90999
91000         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
91001         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
91002
91003         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
91004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
91005
91006 2000-07-09  Jim Meyering  <meyering@lucent.com>
91007
91008         * lib/Most files: Update copyright dates to include 2000.
91009
91010 2000-07-08  Jim Meyering  <meyering@lucent.com>
91011
91012         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91013         if not defined.
91014         (xgethostname): Remove now-unnecessary #ifdef.
91015         Move declaration of `err' into loop where it's used.
91016
91017 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91018         and Bruno Haible  <haible@clisp.cons.org>
91019
91020         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91021         only if the test for an object-type mbstate_t fails.  This
91022         prevents us from mistakenly reporting that mbstate_t is a
91023         system object type after we "#define mbstate_t int" to work
91024         around its lack.
91025
91026 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91027         and Bruno Haible  <haible@clisp.cons.org>
91028
91029         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91030
91031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91032
91033         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91034         to strerror_r.
91035         Include <ctype.h> for use of isalpha.
91036
91037 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91038
91039         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91040         by allocating a larger buffer. Test the gethostname return value for
91041         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91042         returns an error and ENAMETOOLONG isn't defined.
91043
91044 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91045
91046         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91047         dimension.
91048
91049 2000-07-04  Jim Meyering  <meyering@lucent.com>
91050
91051         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91052         of the deprecated AC_CHECKING.
91053
91054 2000-07-04  Jim Meyering  <meyering@lucent.com>
91055
91056         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91057         Reported by Bruno Haible.
91058
91059 2000-07-04  Jim Meyering  <meyering@lucent.com>
91060
91061         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91062         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91063         lacks mbrtowc.
91064
91065 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91066
91067         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91068         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91069
91070 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91071         and Bruno Haible  <haible@clisp.cons.org>
91072
91073         * lib/quotearg.c (mbrtowc):
91074         Assign to *pwc, and return 1 only if result is nonzero.
91075         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91076
91077 2000-07-03  Jim Meyering  <meyering@lucent.com>
91078
91079         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91080
91081 2000-07-03  Jim Meyering  <meyering@lucent.com>
91082
91083         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91084         This is necessary to get a definition of e.g., UTMP_FILE on
91085         HP-UX 10.20.
91086         From Bob Proulx.
91087
91088 2000-07-02  Jim Meyering  <meyering@lucent.com>
91089
91090         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91091
91092         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91093         AC_LIBOBJ(function_name).
91094         * m4/chown.m4: Likewise.
91095         * m4/fnmatch.m4: Likewise.
91096         * m4/ftruncate.m4: Likewise.
91097         * m4/getgroups.m4: Likewise.
91098         * m4/getline.m4: Likewise.
91099         * m4/group-member.m4: Likewise.
91100         * m4/jm-macros.m4: Likewise.
91101         * m4/lstat.m4: Likewise.
91102         * m4/malloc.m4: Likewise.
91103         * m4/memcmp.m4: Likewise.
91104         * m4/nanosleep.m4: Likewise.
91105         * m4/putenv.m4: Likewise.
91106         * m4/realloc.m4: Likewise.
91107         * m4/regex.m4: Likewise.
91108         * m4/stat.m4: Likewise.
91109         * m4/strftime.m4: Likewise.
91110
91111 2000-07-02  Jim Meyering  <meyering@lucent.com>
91112
91113         * lib/quotearg.c (mbstate_t): Don't define here.
91114
91115 2000-07-02  Jim Meyering  <meyering@lucent.com>
91116
91117         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91118
91119 2000-07-01  Jim Meyering  <meyering@lucent.com>
91120
91121         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91122
91123 2000-07-01  Jim Meyering  <meyering@lucent.com>
91124
91125         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91126         problem.
91127
91128 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91129
91130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91131         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91132
91133 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91134
91135         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91136         per change in ../m4/ls-mntd-fs.m4.
91137         (read_filesystem_list): Ignore symbolic links.
91138
91139 2000-06-29  Jim Meyering  <meyering@lucent.com>
91140
91141         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91142         for declaration of strcmp.
91143
91144         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91145
91146         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91147         Avoid warning by casting result to `char *' to remove `const'.
91148
91149 2000-06-28  Jim Meyering  <meyering@lucent.com>
91150
91151         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91152         included by quotearg.c, for which we perform this test.  From
91153         Bruno Haible.
91154
91155 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91156
91157         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91158         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91159         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91160
91161 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91162
91163         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91164
91165 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91166
91167         savedir now sets errno on failure and invokes xmalloc to get memory.
91168         Fix a couple of other minor bugs while we're at it.
91169
91170         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91171         (NAMLEN): Remove macro.
91172         (malloc, realloc): Remove decls.
91173         (stpcpy): Likewise.
91174         ("xalloc.h"): Include.
91175         (NAME_SIZE_DEFAULT): New macro.
91176         (savedir): Use xmalloc / xrealloc to allocate memory.
91177         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91178         Skip "" directory entries.
91179         Use strlen to calculate directory entry length, since the old method
91180         is rarely used these days and isn't worth supporting.
91181         Don't use a pointer after freeing it.
91182         Check for integer overflow when calculating allocation size.
91183         Use memcpy to copy entries, instead of stpcpy.
91184         Set errno properly when returning NULL.
91185         Check for readdir error.
91186
91187 2000-06-26  Jim Meyering  <meyering@lucent.com>
91188
91189         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91190
91191 2000-06-25  Jim Meyering  <meyering@lucent.com>
91192
91193         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91194         Linux header bug when _XOPEN_SOURCE is defined to 500.
91195
91196 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91197
91198         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91199         deficiency.
91200
91201 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91202
91203         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91204         Include xalloc.h.
91205         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91206
91207 2000-06-24  Jim Meyering  <meyering@lucent.com>
91208
91209         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91210         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91211         for which strerror does return char*, but which lacks a conveniently
91212         accessible declaration of the function.  If the compile-test says
91213         strerror_r doesn't work, then resort to a `run'-test that works on
91214         BeOS and segfaults on DEC Unix.
91215
91216 2000-06-24  Jim Meyering  <meyering@lucent.com>
91217
91218         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91219
91220 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91221
91222         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91223         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91224
91225 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91226
91227         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91228         (mbrtowc, mbstate_t): Define substitutes if
91229         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91230         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91231         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91232
91233 2000-06-23  Jim Meyering  <meyering@lucent.com>
91234
91235         * m4/afs.m4: Add missing AC_MSG_RESULT.
91236         Reported by Bruno Haible.
91237
91238         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91239         Suggestion from Bruno Haible.
91240
91241 2000-06-23  Jim Meyering  <meyering@lucent.com>
91242
91243         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91244
91245 2000-06-21  Jim Meyering  <meyering@lucent.com>
91246
91247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91248
91249 2000-06-21  Jim Meyering  <meyering@lucent.com>
91250
91251         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91252         (noinst_HEADERS): Add getstr.h.
91253
91254         * lib/getline.c (getstr): Move into a separate file.
91255         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91256         the following changes: new parameter, delim2; both delim[12]
91257         parameters have type `int', not `char'.  The latter would lose
91258         with 8-bit delimiters.
91259         * lib/getstr.h: New file.
91260
91261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91262
91263         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91264         than 1024, return a memory chunk of least possible size, instead
91265         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91266         Use free/xmalloc instead of xrealloc to avoid copying for very long
91267         paths.
91268
91269 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91270
91271         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91272         the empty string.
91273
91274 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91275
91276         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91277         address, not strdup.  Include <stdlib.h> and don't declare free().
91278
91279 2000-06-19  Jim Meyering  <meyering@lucent.com>
91280
91281         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91282
91283 2000-06-18  Jim Meyering  <meyering@lucent.com>
91284
91285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91286
91287         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91288         `checking whether...' message to be consistent with that of the
91289         lstat test.
91290
91291 2000-06-18  Jim Meyering  <meyering@lucent.com>
91292
91293         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
91294         Besides, these days every porting target provides a mkdir function.
91295
91296         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91297         needed. (this snippet comes from src/system.h).
91298
91299 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91300
91301         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91302
91303 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91304
91305         * lib/human.c (adjust_value): New function.
91306         (human_readable_inexact): Apply rounding style even when
91307         printing approximate values.
91308
91309 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91310
91311         * lib/human.c (human_readable_inexact): Allow an input block
91312         size that is not a multiple of the output block size, and vice versa.
91313         Reported by Piergiorgio Sartor.
91314
91315 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/getdate.y (get_date): Apply relative times after time
91318         zone indicator, not before.  Reported by Todd A. Jacobs.
91319
91320 2000-06-13  Jim Meyering  <meyering@lucent.com>
91321
91322         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91323
91324         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91325
91326 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91327
91328         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91329
91330 2000-06-12  Jim Meyering  <meyering@lucent.com>
91331
91332         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91333         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91334         optional argument.
91335         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91336         the optional argument, `lib'.
91337
91338 2000-06-08  Jim Meyering  <meyering@lucent.com>
91339
91340         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91341
91342 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91343
91344         Rewrite largefile configuration so that we don't need to run
91345         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91346         AC_CANONICAL_HOST in configure.in -- jmm]
91347
91348         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91349         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91350         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91351         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91352         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91353         All uses changed.
91354         Instead of inspecting the output of getconf, try to compile the
91355         test program without and with the macro definition.
91356         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91357         for getconf.  Instead, check for the needed flags by compiling
91358         test programs.
91359
91360 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91361
91362         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91363
91364 2000-06-04  Jim Meyering  <meyering@lucent.com>
91365
91366         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91367         SunOS 4.1.4 for which gid_t is an unsigned type.
91368
91369 2000-06-03  Jim Meyering  <meyering@lucent.com>
91370
91371         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91372         now that autoconf requires that.
91373
91374         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91375         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91376         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91377
91378 2000-06-03  Jim Meyering  <meyering@lucent.com>
91379
91380         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91381
91382 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91383
91384         * m4/glibc21.m4: New file.
91385         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91386
91387 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91388
91389         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91390         newer, don't install charset.alias.
91391         * lib/config.charset: Change the Linux/glibc rules so they become empty
91392         on glibc-2.1 or newer.
91393
91394 2000-06-02  Jim Meyering  <meyering@lucent.com>
91395
91396         * lib/mountlist.c: Back out last change.  Instead, do this...
91397         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91398         me_dummy member using the same `ignore'-testing code.
91399         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91400         fs_type strings.
91401         From Mark D. Roth.
91402
91403 2000-05-29  Jim Meyering  <meyering@lucent.com>
91404
91405         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91406         mounts with the `ignore' attribute.  Based on a patch from
91407         Mark D. Roth.
91408
91409 2000-05-28  Jim Meyering  <meyering@lucent.com>
91410
91411         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91412         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91413         * m4/stat.m4: Likewise.
91414         * m4/lstat.m4: Likewise.
91415         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91416
91417         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91418         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91419
91420 2000-05-26  Jim Meyering  <meyering@lucent.com>
91421
91422         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91423
91424 2000-05-24  Jim Meyering  <meyering@lucent.com>
91425
91426         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91427         autoconf requires that.
91428         * m4/lib-check.m4: Likewise.
91429         * m4/jm-macros.m4: Likewise.
91430         * m4/strftime.m4: Likewise.
91431
91432         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91433         AC_CHECK_DECLS, now that autoconf requires that.
91434
91435 2000-05-22  Jim Meyering  <meyering@lucent.com>
91436
91437         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91438         * m4/lstat.m4: Likewise.
91439
91440 2000-05-22  Jim Meyering  <meyering@lucent.com>
91441
91442         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91443
91444 2000-05-20  Jim Meyering  <meyering@lucent.com>
91445
91446         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91447         (jm_PREREQ): Use it.
91448
91449 2000-05-18  Jim Meyering  <meyering@lucent.com>
91450
91451         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91452         back, too, since it may have been modified by allocate_entry.
91453         (hash_delete): Rewrite to use neither the assignment operator
91454         nor the comma operator in an if-expression.
91455
91456 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91457
91458         * lib/closeout.c:
91459         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91460         Remove; no longer needed.
91461         "quotearg.h": Add include.
91462         (file_name): Do not bother to explicitly initialize to NULL; it's less
91463         efficient on some hosts.
91464         (close_stdout_status): Remove test as to whether stdout was already
91465         closed; it breaks for the case "echo x | sort >&-".
91466         Quote file name colons.
91467         Do not assume that _("write error") lacks format strings.
91468
91469 2000-05-15  Jim Meyering  <meyering@lucent.com>
91470
91471         * lib/version-etc.c (version_etc_copyright): Update the copyright
91472         string used in all --version output.
91473
91474 2000-05-14  Jim Meyering  <meyering@lucent.com>
91475
91476         * lib/closeout.c (close_stdout_set_file_name): New function.
91477         (close_stdout_status): Use new file-scoped global.
91478         Return right away if fstat says the stdout file descriptor is invalid.
91479         * lib/closeout.h (close_stdout_set_file_name): Declare.
91480
91481 2000-05-10  Jim Meyering  <meyering@lucent.com>
91482
91483         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91484         (close_stdout_set_status): New function.
91485         * lib/closeout.h (close_stdout_set_status): Declare.
91486
91487 2000-05-09  Jim Meyering  <meyering@lucent.com>
91488
91489         * m4/gettext.m4: Rename this...
91490         * m4/libintl.m4: ...to this.
91491
91492 2000-05-08  Jim Meyering  <meyering@lucent.com>
91493
91494         * lib/long-options.c: Don't include closeout.h.
91495         (parse_long_options): Don't call close_stdout for --version.
91496
91497 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91498
91499         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91500         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91501         2.1.3 bug.  This avoids a clash when files like regex.c define
91502         _GNU_SOURCE.
91503
91504 2000-05-06  Jim Meyering  <meyering@lucent.com>
91505
91506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91507         (AC_REPLACE_FUNCS): Add strnlen.
91508
91509         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91510         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91511
91512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91513         AC_SEARCH_LIBS call for nanosleep.
91514         (LIB_NANOSLEEP): Set and AC_SUBST.
91515
91516 2000-05-06  Jim Meyering  <meyering@lucent.com>
91517
91518         * lib/strnlen.c: Undefine __strnlen and strnlen.
91519         [!weak_alias]: Define __strnlen to strnlen.
91520
91521         * lib/atexit.c: New file, from libiberty.
91522
91523 2000-05-06  Jim Meyering  <meyering@lucent.com>
91524
91525         * lib/closeout.c (close_stdout_status): Also check for errors on the
91526         stderr stream.
91527
91528 2000-05-05  Jim Meyering  <meyering@lucent.com>
91529
91530         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91531         AC_SEARCH_LIBS call for clock_gettime.
91532         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91533
91534         * m4/search-libs.m4: Update from autoconf.
91535
91536         su doesn't work on Solaris 2.6.
91537         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91538         <shadow.h>.  Reported by Dragos Harabor.
91539
91540 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91541
91542         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91543         memcpy instead of xmalloc, xrealloc, path_concat.
91544         (locale_charset): Treat empty environment variables as absent.
91545         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91546
91547 2000-05-04  Jim Meyering  <meyering@lucent.com>
91548
91549         * lib/getopt.c: Update from glibc.
91550         * lib/obstack.c: Likewise.
91551         * lib/obstack.h: Likewise.
91552         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91553         file
91554
91555         * lib/regex.h: Likewise.
91556         * lib/strndup.c: Likewise.
91557         * lib/strnlen.c: New file, from glibc.
91558
91559 2000-05-03  Jim Meyering  <meyering@lucent.com>
91560
91561         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91562
91563 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91564
91565         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91566         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91567         compile-time test, rather than inspecting host and OS, to
91568         decide whether to define _LARGEFILE_SOURCE.
91569
91570 2000-05-01  Jim Meyering  <meyering@lucent.com>
91571
91572         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91573
91574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91575         Based on a patch from Bruno Haible.
91576
91577 2000-05-01  Jim Meyering  <meyering@lucent.com>
91578
91579         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91580
91581 2000-04-29  Jim Meyering  <meyering@lucent.com>
91582
91583         * lib/path-concat.c: Declare strdup only if it's not defined.
91584         * lib/canon-host.c: Likewise.
91585
91586 2000-04-28  Jim Meyering  <meyering@lucent.com>
91587
91588         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91589         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91590         is included first, then limits.h is included by locale.h by libintl.h.
91591         From John David Anglin.
91592
91593 2000-04-25  Jim Meyering  <meyering@lucent.com>
91594
91595         * lib/makepath.c (S_IRWXUGO): Define.
91596         (make_path): Always perform explicit chmod if MODE specifies any
91597         of the `special' permission bits.  Prompted by a bug report against
91598         install from Mate Wierdl and Joost van Baal.
91599
91600 2000-04-18  Jim Meyering  <meyering@lucent.com>
91601
91602         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91603         (jm_PREREQ): Use it.
91604
91605 2000-04-18  Jim Meyering  <meyering@lucent.com>
91606
91607         * lib/README: New file.
91608
91609         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91610         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91611
91612 2000-04-17  Jim Meyering  <meyering@lucent.com>
91613
91614         Get it right :-)
91615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91616         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91617         Suggestion from Akim Demaille.
91618
91619 2000-04-17  Jim Meyering  <meyering@lucent.com>
91620
91621         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91622         the definition of it to rpl_strftime also defined-away the system's
91623         declaration.
91624
91625 2000-04-15  Jim Meyering  <meyering@lucent.com>
91626
91627         Use `C' to denote so-called `contiguous' files, the same way
91628         that tar does.
91629         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91630         (ftypelet): Use S_ISCTG.
91631         From Michael Deutschmann.
91632
91633 2000-04-14  Jim Meyering  <meyering@lucent.com>
91634
91635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91636         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91637         clobbered.
91638
91639 2000-04-14  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91642
91643 2000-04-13  Jim Meyering  <meyering@lucent.com>
91644
91645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91646         AH_VERBATIM to insert required #ifndef into config.h.in.
91647         Suggestion from Akim Demaille.
91648
91649 2000-04-12  Jim Meyering  <meyering@lucent.com>
91650
91651         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91652         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91653         Christian Krackowizer.
91654
91655         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91656         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91657         (AC_SYS_LARGEFILE): Require.
91658         (AM_C_PROTOTYPES): Require.
91659
91660 2000-04-08  Jim Meyering  <meyering@lucent.com>
91661
91662         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91663         names don't conflict.  Reported by Eli Zaretskii.
91664
91665 2000-04-07  Jim Meyering  <meyering@lucent.com>
91666
91667         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91668         sys/types.h, to work around system header problems on AIX 3.2.5.
91669         From Bruno Haible.
91670
91671 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91672
91673         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91674         bug.  Deal with the different error behavior of Irix iconv.
91675
91676 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91677
91678         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91679         IRIX if the installer said otherwise.
91680
91681 2000-04-05  Jim Meyering  <meyering@lucent.com>
91682
91683         Portability tweaks required for ultrix4.3.
91684         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91685         (jm_CHECK_DECLS): Add getutent to the list of functions.
91686         (_jm_DECL_HEADERS): Add utmpx.h.
91687         From John David Anglin.
91688
91689         * m4/strftime.m4: Back out the 2000-04-02 change.
91690         Instead of that change, simply undefine putenv in the test program.
91691
91692 2000-04-05  Jim Meyering  <meyering@lucent.com>
91693
91694         Portability tweaks required for ultrix4.3.
91695         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91696         getutent.
91697         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91698         * lib/canon-host.c: Declare strdup.
91699         * lib/path-concat.c: Likewise.
91700         From John David Anglin.
91701
91702 2000-04-04  Jim Meyering  <meyering@lucent.com>
91703
91704         Be more DOS 8.3-friendly.
91705         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91706         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91707         * lib/Makefile.am: Reflect renaming.
91708         Reported by Eli Zaretskii.
91709
91710         Use a temporary file name that won't clash with `charset.alias'
91711         in the DOS 8.3 name space.
91712         * lib/Makefile.am (charset_tmp): Define.
91713         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91714         (uninstall-local): Likewise.
91715         Reported by Eli Zaretskii.
91716
91717 2000-04-03  Jim Meyering  <meyering@lucent.com>
91718
91719         * m4/gettext.m4: Fix typo in comment.
91720
91721         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91722         textutils/configure.in).  Suggestion from Paul Eggert.
91723         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91724
91725 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91726
91727         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91728         variable in the shell rather than using putenv, which isn't
91729         portable.  This avoids the configure-time inter-test dependency
91730         on the potentially-renamed putenv function.
91731
91732 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91733
91734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91735         before checking struct stat.st_blksize, so that
91736         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91737
91738 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91739
91740         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91741         since strftime.c uses HAVE_STRFTIME to decide whether to use
91742         the underlying strftime.
91743
91744 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91745
91746         * lib/time/strftime.c (my_strftime): Make sure we call the system
91747         strftime, not ourselves, when invoking the underlying strftime.
91748
91749 2000-03-24  Jim Meyering  <meyering@lucent.com>
91750
91751         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91752         (charset_alias): Define.
91753         (install-exec-local): Factor out common code.
91754         (uninstall-local): Split lines longer than 80.
91755         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91756         (SUFFIXES): Define.
91757         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91758         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91759
91760 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91761
91762         * lib/config.charset: Output a line containing "Packages using this
91763         file".
91764         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91765         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91766         ref-del.sed): New rules.
91767
91768 2000-03-17  Jim Meyering  <meyering@lucent.com>
91769
91770         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91771         Otherwise, include <strings.h>
91772
91773 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91774
91775         * lib/unicodeio.c (utf8_wctomb): New function.
91776         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91777         format instead of in UCS-4 with platform dependent endianness.
91778
91779 2000-03-10  Jim Meyering  <meyering@lucent.com>
91780
91781         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91782         From Marco Franzen.
91783
91784 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91785
91786         * lib/savedir.c (savedir): Work even if directory size is
91787         negative; this can happen with some screwy NFS configurations.
91788
91789 2000-03-06  Jim Meyering  <meyering@lucent.com>
91790
91791         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91792         if it's NULL (because we ran out of memory).  From Bruno Haible.
91793
91794 2000-03-05  Jim Meyering  <meyering@lucent.com>
91795
91796         * lib/localcharset.c ("path-concat.h"): Include.
91797         (get_charset_aliases): Use path_concat instead of ANSI string
91798         concatenation.
91799
91800         * lib/unicodeio.h (PARAMS): Define.
91801         Use it to guard prototype.
91802
91803 2000-03-04  Jim Meyering  <meyering@lucent.com>
91804
91805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91806         for lib/localcharset.c.
91807
91808 2000-03-04  Jim Meyering  <meyering@lucent.com>
91809
91810         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91811         installing into it.
91812         (uninstall-local): Uncomment this rule so `make distcheck' works
91813         once again.
91814
91815         * lib/unicodeio.c (<errno.h>): Include it.
91816         (errno): Declare if not defined.
91817
91818         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91819
91820         * lib/config.charset: New version, incorporating remarks from a linux
91821         i18n mailing list.  From Bruno Haible.
91822
91823 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91824
91825         * m4/codeset.m4: New file.
91826         * m4/iconv.m4: New file.
91827         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91828
91829 2000-03-03  Jim Meyering  <meyering@lucent.com>
91830
91831         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91832
91833 2000-03-02  Jim Meyering  <meyering@lucent.com>
91834
91835         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91836         the messages come out on separate lines.
91837
91838         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91839         rather than jm_CHECK_DECLARATIONS.
91840         * m4/decl.m4: Remove now-unused file.
91841
91842         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91843         geteuid.
91844
91845 2000-03-02  Jim Meyering  <meyering@lucent.com>
91846
91847         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91848
91849 2000-03-01  Jim Meyering  <meyering@lucent.com>
91850
91851         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91852         * lib/unicodeio.c: Likewise.
91853
91854 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91855
91856         * lib/config.charset: New file.
91857         * lib/localcharset.c: New file.
91858         * lib/unicodeio.h, lib/unicodeio.c: New files.
91859         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91860         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91861         (noinst_HEADERS): Add unicodeio.h.
91862         (all-local, install-exec-local, charset.alias): New targets.
91863
91864 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91865
91866         * lib/quotearg.c (ALERT_CHAR): New macro.
91867         (quotearg_buffer_restyled): Use it.
91868
91869 2000-02-27  Jim Meyering  <meyering@lucent.com>
91870
91871         * m4/check-decl.m4: Add getenv to the list.
91872
91873 2000-02-27  Jim Meyering  <meyering@lucent.com>
91874
91875         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91876         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91877
91878         * lib/backupfile.c: Guard inclusion of stdlib.h with
91879         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91880         Declare malloc if needed.
91881
91882         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91883         `#ifndef HAVE_DECL..'
91884         now that autoconf always defines the HAVE_DECL_ symbols.
91885         * lib/human.c: Likewise.
91886         * lib/same.c: Likewise.
91887         * lib/strtoumax.c: Likewise.
91888
91889         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91890         declaration check was not run.
91891         * lib/hash.c: Likewise.
91892         * lib/human.c: Likewise.
91893         * lib/same.c: Likewise.
91894         * lib/strtoumax.c: Likewise.
91895
91896         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91897         `.', then first look up the entire `.'-containing string as a login
91898         name.
91899
91900 2000-02-23  Jim Meyering  <meyering@lucent.com>
91901
91902         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91903         in place of my hack.
91904
91905 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91906
91907         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91908         (textint): New typedef.
91909         (parser_control): Member year changed from int to textint.
91910         All uses changed.
91911         (YYSTYPE): Removed; replaced by %union with int and textint members.
91912         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91913         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91914         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91915         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91916         (date, number, to_year): Use width of number in digits, not its value,
91917         to determine whether it's a 2-digit year, or a 2-digit time.
91918         (yylex): Store number of digits of numeric tokens.
91919         Reported by John Kendall.
91920
91921         (parser_control): Changed from struct parser_control to typedef (for
91922         consistency).  All uses changed.
91923
91924         (tID): Removed; not used.
91925         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91926
91927 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91928
91929         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91930         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91931
91932 2000-02-12  Jim Meyering  <meyering@lucent.com>
91933
91934         * lib/userspec.c (ISDIGIT): Define it.
91935         (isdigit): Remove definition.
91936         (is_number): Use ISDIGIT, not isdigit.
91937         <libintl.h>: Include.
91938         (_ and N_): Define.
91939         (parse_user_spec): Mark translatable strings.
91940
91941 2000-02-10  Jim Meyering  <meyering@lucent.com>
91942
91943         With these changes, nanosleep.[ch] are finally enough like the other
91944         lib/* replacement files to compile on a few more losing systems.
91945
91946         * lib/nanosleep.h: Don't include config.h.
91947         Remove prototype from declaration of nanosleep.
91948         (PARAMS): Remove now-unneeded definition.
91949         * lib/nanosleep.c: #undef nanosleep.
91950         (rpl_nanosleep): Rename from nanosleep.
91951
91952 2000-02-10  Jim Meyering  <meyering@lucent.com>
91953
91954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91955         gnu_nanosleep to rpl_nanosleep.
91956
91957 2000-02-09  Jim Meyering  <meyering@lucent.com>
91958
91959         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91960         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91961
91962 2000-02-08  Akim Demaille  <akim@epita.fr>
91963
91964         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91965         `[' and `]' and remove uses of `changequote'.
91966         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91967         (AC_SYS_LARGEFILE): Likewise.
91968         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91969         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91970         of changequote.
91971         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91972         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91973         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91974         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91975
91976 2000-02-05  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91979         Remove explicit use of AC_HEADER_TIME.  It is required by
91980         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91981         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91982         in autoconf whereby the expansion of the latter ended up preceding
91983         the expansion of its prerequisite, AC_HEADER_TIME.
91984         Reported by Volker Borchert.
91985
91986 2000-02-03  Jim Meyering  <meyering@lucent.com>
91987
91988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91989
91990 2000-02-03  Jim Meyering  <meyering@lucent.com>
91991
91992         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91993         rather than with `#if HAVE_UTMPNAME'.
91994
91995 2000-02-02  Jim Meyering  <meyering@lucent.com>
91996
91997         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91998         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91999         Reported by Eli Zaretskii.
92000
92001 2000-02-01  Jim Meyering  <meyering@lucent.com>
92002
92003         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
92004
92005 2000-01-31  Jim Meyering  <meyering@lucent.com>
92006
92007         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
92008         functions.  Add the time.h and sys/time.h headers along with the
92009         AC_REQUIRE'ment of AC_HEADER_TIME.
92010
92011 2000-01-31  Jim Meyering  <meyering@lucent.com>
92012
92013         * lib/nanosleep.h (nanosleep): Guard declaration with
92014         `#if ! HAVE_DECL_NANOSLEEP'.
92015         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92016         the declaration in that vendor's sys/timers.h.
92017         Reported by Christian Krackowizer.
92018
92019         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92020         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92021         (ISPRINT): Likewise.
92022         Reported by Tom Tromey.
92023
92024 2000-01-30  Jim Meyering  <meyering@lucent.com>
92025
92026         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92027
92028         * m4/prereq.m4 (utmp_includes): Define.
92029         Check for ut_user and ut_name members in both struct utmpx
92030         and struct utmp.
92031
92032 2000-01-30  Jim Meyering  <meyering@lucent.com>
92033
92034         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92035         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92036         header files where only utmpx.ut_user is declared.
92037
92038         * lib/readutmp.h (UT_USER): Define.
92039
92040 2000-01-29  Jim Meyering  <meyering@lucent.com>
92041
92042         * m4/lib-check.m4: New file containing library-related checks from
92043         fileutils and sh-utils (textutils had none).
92044
92045 2000-01-28  Jim Meyering  <meyering@lucent.com>
92046
92047         * m4/perl.m4: Change format of warning message to look more like that
92048         from the missing script.  Suggestion from François Pinard.
92049
92050 2000-01-25  Jim Meyering  <meyering@lucent.com>
92051
92052         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92053         well as time.h in the compile check.
92054         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92055         Fix typo in cross-compiling case: s/yes/no/.
92056
92057 2000-01-23  Jim Meyering  <meyering@lucent.com>
92058
92059         * m4/jm-macros.m4: Move df-related tests here from
92060         fileutils/configure.in
92061
92062         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92063         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92064
92065         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92066         s/space/ac_fsusage_space/.
92067         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92068
92069         * m4/ftruncate.m4: New file (derived from part of
92070         fileutils/configure.in).
92071         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92072         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92073
92074         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92075         AC_SUBST these here, rather than just in sh-util/configure.in, so
92076         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92077         all the same.
92078         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92079         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92080         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92081         (AC_SUBST(POW_LIBM)): Likewise.
92082         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92083
92084 2000-01-23  Jim Meyering  <meyering@lucent.com>
92085
92086         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92087         obstack.c.
92088
92089 2000-01-22  Jim Meyering  <meyering@lucent.com>
92090
92091         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92092
92093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92094
92095         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92096         configure.in
92097         (AC_CHECK_HEADERS): Likewise for sh-utils.
92098         (AC_CHECK_HEADERS): Likewise for textutils.
92099         Merge the three lists of headers.
92100
92101         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92102         from fileutils' configure.in.
92103
92104         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92105         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92106         check-decl.m4.
92107
92108         * m4/check-decl.m4: Use #if rather than #ifdef.
92109         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92110         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92111         (_jm_DECL_HEADERS): Define new function.
92112         (jm_CHECK_DECLARATIONS): Require it.
92113
92114 2000-01-22  Jim Meyering  <meyering@lucent.com>
92115
92116         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92117         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92118         Required for some AIX systems.  Reported by Christian Krackowizer.
92119         [TESTING] (main): New function.
92120
92121         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92122         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92123         letters.
92124
92125         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92126         iswprint.
92127
92128         * lib/strverscmp.c (ISDIGIT): Define.
92129         (strverscmp): Use ISDIGIT, not isdigit.
92130
92131 2000-01-19  Jim Meyering  <meyering@lucent.com>
92132
92133         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92134         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92135         defines `struct timespec' in <sys/time.h>
92136
92137         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92138         Thanks to Akim for explaining.
92139
92140 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92141
92142         * lib/nanosleep.c (nanosleep):
92143         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92144         POSIX.1 doesn't require SA_INTERRUPT and some systems
92145         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92146         it's been part of POSIX.1 since day 1 (in 1988).
92147
92148 2000-01-17  Jim Meyering  <meyering@lucent.com>
92149
92150         * lib/interlock: Remove unused file.  Reported by François Pinard.
92151
92152 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92153
92154         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92155         alert, backslash, formfeed, and vertical tab unnecessarily in
92156         shell quoting style.
92157
92158 2000-01-16  Jim Meyering  <meyering@lucent.com>
92159
92160         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92161         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92162         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92163         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92164
92165 2000-01-16  Jim Meyering  <meyering@lucent.com>
92166
92167         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92168         because the latter didn't work.
92169
92170 2000-01-15  Jim Meyering  <meyering@lucent.com>
92171
92172         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92173         (AC_REPLACE_FUNCS): Add memcpy and memset.
92174         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92175         Add strpbrk.
92176         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92177
92178 2000-01-12  Jim Meyering  <meyering@lucent.com>
92179
92180         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92181         (jm_PREREQ): Use it.
92182         (jm_PREREQ_READUTMP): New macro.
92183         (jm_PREREQ): Use it.
92184
92185 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92186
92187         Quote multibyte characters correctly.
92188         * m4/c-bs-a.m4: New file.
92189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92190         (jm_PREREQ): Use it.
92191
92192 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92193
92194         * m4/uintmax_t.m4: Port to autoconf 2.13.
92195
92196 2000-01-08  Jim Meyering  <meyering@ascend.com>
92197
92198         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92199         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92200
92201 2000-01-04  Jim Meyering  <meyering@ascend.com>
92202
92203         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92204         jm_STRUCT_DIRENT_D_TYPE.
92205         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92206         jm_STRUCT_DIRENT_D_INO.
92207         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92208         jm_STRUCT_UTIMBUF.
92209         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92210         renamings.
92211         * m4/utime.m4: Likewise.
92212
92213         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92214         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92215
92216 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92217
92218         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92219         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92220
92221 2000-01-02  Jim Meyering  <meyering@ascend.com>
92222
92223         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92224         remember if this is necessary.
92225
92226 1999-12-26  Jim Meyering  <meyering@ascend.com>
92227
92228         * m4/jm-macros.m4: Use it here.
92229         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92230
92231 1999-12-23  Jim Meyering  <meyering@ascend.com>
92232
92233         * m4/jm-macros.m4: Check for clock_gettime (moved from
92234         fileutils/configure.in)
92235         Check for gettimeofday.
92236
92237 1999-12-20  Jim Meyering  <meyering@ascend.com>
92238
92239         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92240         autoconf-2.14a-1999-12-20.
92241
92242 1999-12-19  Jim Meyering  <meyering@ascend.com>
92243
92244         * m4/lstat-slash.m4: New file.
92245         * m4/jm-macros.m4: Use the new macro:
92246         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92247
92248 1999-12-07  Jim Meyering  <meyering@ascend.com>
92249
92250         * m4/perl.m4: Require that File::Compare be available, too.
92251         Too many systems seem to lack it.
92252
92253         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92254         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92255
92256 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92257
92258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92259         problem with the QNX 4.25 shell, which doesn't propagate exit
92260         status of failed commands inside shell assignments.
92261
92262 1999-11-17  Jim Meyering  <meyering@ascend.com>
92263
92264         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92265
92266 1999-11-07  Jim Meyering  <meyering@ascend.com>
92267
92268         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92269
92270 1999-11-06  Jim Meyering  <meyering@ascend.com>
92271
92272         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92273         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92274
92275 1999-11-05  Jim Meyering  <meyering@ascend.com>
92276
92277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92278         configure.in of textutils, fileutils, and sh-utils into this one
92279         (shared between those packages) file.
92280         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92281         AC_STRUCT_ST_BLKSIZE.
92282
92283 1999-11-03  Jim Meyering  <meyering@ascend.com>
92284
92285         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92286         of AC_CHECK_TYPE checks includes unistd.h.
92287         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92288         Suggestion from Akim Demaille.
92289
92290 1999-10-30  Jim Meyering  <meyering@ascend.com>
92291
92292         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
92293         m4-quoted string.
92294         * m4/ls-mntd-fs.m4: Likewise.
92295         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92296         * m4/jm-winsz1.m4: Likewise.
92297
92298         * m4/const.m4: Remove file, since the fix made it into the experimental
92299         version of autoconf.
92300         * m4/mktime.m4: Likewise.
92301
92302         * m4/check-type.m4: Remove file, now that the latest version of
92303         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92304
92305         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92306         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92307         AC_CHECK_TYPE.
92308
92309 1999-10-04  Jim Meyering  <meyering@ascend.com>
92310
92311         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92312
92313 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92314
92315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92316         2.95.1 bug with HP-UX 10.20.
92317
92318 1999-09-17  Jim Meyering  <meyering@ascend.com>
92319
92320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92321         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92322         due to missing strdup (against sh-utils-2.0).
92323
92324 1999-08-29  Jim Meyering  <meyering@ascend.com>
92325
92326         * m4/jm-macros.m4: Require jm_BISON.
92327         * m4/bison.m4: New file.
92328
92329 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92330
92331         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92332         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92333
92334 1999-08-05  Jim Meyering  <meyering@ascend.com>
92335
92336         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92337         to avoid conflicts with `conftest' on 8+3 filesystems.
92338         Suggestion from Eli Zaretskii.
92339
92340 1999-08-04  Jim Meyering  <meyering@ascend.com>
92341
92342         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92343         fileutils and sh-utils (textutils's getline test was inadequate).
92344         (AM_FUNC_GETLINE): Run this test.
92345         (AC_CHECK_FUNCS): Check for getdelim.
92346         Reported by Bob Proulx.
92347
92348 1999-08-02  Jim Meyering  <meyering@ascend.com>
92349
92350         * m4/jm-macros.m4: Add a comment.
92351
92352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92353
92354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92355         <inttypes.h> defines strtoumax as a macro (and not as a
92356         function).
92357
92358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92359
92360         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92361         that we can shift, multiply and divide unsigned long long
92362         values; Ultrix cc can't do it.
92363
92364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92365
92366         * m4/mktime.m4: New file, which is a preview of what should appear
92367         in the next public autoconf release.
92368
92369 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92370
92371         * m4/lfs.m4: Remove this file.
92372         * m4/largefile.m4: New file.  It contains the old contents of
92373         lfs.m4, except that all names with prefix AC_LFS have been
92374         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92375         compatible with future autoconf versions.  Also, some minor m4
92376         quoting problems have been fixed.
92377
92378 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92379
92380         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92381         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92382         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92383         and simplify the shell code.
92384
92385 1999-08-01  Jim Meyering  <meyering@ascend.com>
92386
92387         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92388         m4.
92389
92390 1999-07-20  Jim Meyering  <meyering@ascend.com>
92391
92392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92393
92394 1999-07-15  Jim Meyering  <meyering@ascend.com>
92395
92396         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92397
92398 1999-05-22  Jim Meyering  <meyering@ascend.com>
92399
92400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92401
92402 1999-05-20  Jim Meyering  <meyering@ascend.com>
92403
92404         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92405         Add a colon after each `then' in case $4 is empty.
92406
92407 1999-05-16  Jim Meyering  <meyering@ascend.com>
92408
92409         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92410
92411 1999-05-10  Jim Meyering  <meyering@ascend.com>
92412
92413         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92414
92415         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92416         AC_FUNC_MKTIME.
92417
92418 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92419
92420         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92421
92422 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92423
92424         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92425         not CPPFLAGS, so that linking works correctly in IRIX.
92426
92427 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92428
92429         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92430
92431 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92432
92433         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92434         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92436         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92438
92439         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92440
92441 1999-04-20  Jim Meyering  <meyering@ascend.com>
92442
92443         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92444         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92445         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92446
92447 1999-04-18  Jim Meyering  <meyering@ascend.com>
92448
92449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92450         * m4/jm-macros.m4: Use it.
92451
92452 1999-04-06  Jim Meyering  <meyering@ascend.com>
92453
92454         * m4/strftime.m4: Remove test for %f.
92455
92456 1999-03-29  Jim Meyering  <meyering@ascend.com>
92457
92458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92459         superset of the AC_TYPE_* checks in the textutils, fileutils,
92460         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92461         AC_TYPE_PID_T.
92462
92463 1999-03-28  Jim Meyering  <meyering@ascend.com>
92464
92465         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92466         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92467         replaced e.g., in the *.sh files of the sh-utils.
92468
92469 1999-03-20  Jim Meyering  <meyering@ascend.com>
92470
92471         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92472         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92473         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92474
92475 1999-03-19  Jim Meyering  <meyering@ascend.com>
92476
92477         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92478
92479 1999-03-12  Jim Meyering  <meyering@ascend.com>
92480
92481         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92482
92483 1999-03-07  Jim Meyering  <meyering@ascend.com>
92484
92485         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92486         declared.
92487
92488 1999-02-17  Jim Meyering  <meyering@ascend.com>
92489
92490         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92491         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92492
92493 1999-02-07  Jim Meyering  <meyering@ascend.com>
92494
92495         * m4/group-member.m4: New file -- extracted from sh-utils'
92496         configure.in.
92497
92498         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92499         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92500
92501 1999-02-06  Jim Meyering  <meyering@ascend.com>
92502
92503         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92504         * m4/fnmatch.m4: Likewise.
92505         * m4/getgroups.m4: Likewise.
92506         * m4/lstat.m4: Likewise.
92507         * m4/malloc.m4: Likewise.
92508         * m4/putenv.m4: Likewise.
92509         * m4/realloc.m4: Likewise.
92510         * m4/regex.m4: Likewise.
92511         * m4/stat.m4: Likewise.
92512         * m4/strftime.m4: Likewise.
92513         Suggestion from Alain Magloire.
92514
92515         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92516         * m4/fnmatch.m4: Likewise.
92517         * m4/getgroups.m4: Likewise.
92518         * m4/getline.m4: Likewise.
92519         * m4/lstat.m4: Likewise.
92520         * m4/malloc.m4: Likewise.
92521         * m4/memcmp.m4: Likewise.
92522         * m4/putenv.m4: Likewise.
92523         * m4/realloc.m4: Likewise.
92524         * m4/regex.m4: Likewise.
92525         * m4/stat.m4: Likewise.
92526         * m4/strftime.m4: Likewise.
92527         Suggestion from Alain Magloire.
92528
92529         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92530         an argument.
92531
92532         * m4/regex.m4: Add a run-time Test for proper operation of
92533         re_compile_pattern.
92534
92535 1999-01-31  Jim Meyering  <meyering@ascend.com>
92536
92537         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92538
92539 1999-01-30  Jim Meyering  <meyering@ascend.com>
92540
92541         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92542
92543         * m4/jm-mktime.m4: Make this a wrapper around the official
92544         AM_FUNC_MKTIME rather than my private copy, now that the official one
92545         is up to date.
92546         * m4/mktime.m4: Remove file.
92547
92548         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92549         * m4/uptime.m4: Likewise.
92550         * m4/uintmax_t.m4: Likewise.
92551
92552 1999-01-28  Jim Meyering  <meyering@ascend.com>
92553
92554         * m4/jm-macros.m4: Use jm_AFS.
92555         * m4/afs.m4: New file (from fileutils' configure.in).
92556
92557         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92558         * m4/chown.m4: Likewise.
92559         * m4/d-ino.m4: Likewise.
92560         * m4/d-type.m4: Likewise.
92561         * m4/fnmatch.m4: Likewise.
92562         * m4/getgroups.m4: Likewise.
92563         * m4/gettext.m4: Likewise.
92564         * m4/jm-mktime.m4: Likewise.
92565         * m4/jm-winsz2.m4: Likewise.
92566         * m4/lcmessage.m4: Likewise.
92567         * m4/ls-mntd-fs.m4: Likewise.
92568         * m4/malloc.m4: Likewise.
92569         * m4/memcmp.m4: Likewise.
92570         * m4/putenv.m4: Likewise.
92571         * m4/realloc.m4: Likewise.
92572         * m4/st_mtim.m4: Likewise.
92573         * m4/strftime.m4: Likewise.
92574
92575 1999-01-16  Jim Meyering  <meyering@ascend.com>
92576
92577         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92578         (ARGMATCH_DIE_DECL): Define.
92579
92580 1999-01-12  Jim Meyering  <meyering@ascend.com>
92581
92582         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92583         Reported by Lars Hecking.
92584
92585 1999-01-10  Jim Meyering  <meyering@ascend.com>
92586
92587         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92588         gross kludge.
92589         * m4/inttypes_h.m4: Likewise.
92590         * m4/lstat.m4: Likewise.
92591         * m4/malloc.m4: Likewise.
92592         * m4/readdir.m4: Likewise.
92593         * m4/realloc.m4: Likewise.
92594         * m4/st_dm_mode.m4: Likewise.
92595         * m4/stat.m4: Likewise.
92596         * m4/utimbuf.m4: Likewise.
92597         * m4/utimes.m4: Likewise.
92598
92599         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92600         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92601         comments in config.h.in are meaningful.
92602
92603         * m4/jm-macros.m4: Require autoconf-2.13 here.
92604
92605         * m4/regex.m4: By default, don't use the included regex.c on systems
92606         with glibc 2.  Suggestion from Uli Drepper.
92607
92608 1999-01-02  Jim Meyering  <meyering@ascend.com>
92609
92610         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92611
92612 1998-12-18  Jim Meyering  <meyering@ascend.com>
92613
92614         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92615         Based on a suggestion from Lars Hecking.
92616
92617 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92618
92619         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92620
92621 1998-11-16  Jim Meyering  <meyering@ascend.com>
92622
92623         * m4/lfs.m4: Double-quote the `uname...` expression.
92624
92625 1998-11-14  Jim Meyering  <meyering@ascend.com>
92626
92627         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92628         * m4/stat.m4: Likewise.
92629
92630 1998-11-03  Jim Meyering  <meyering@ascend.com>
92631
92632         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92633         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92634
92635 1998-10-18  Jim Meyering  <meyering@ascend.com>
92636
92637         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92638
92639 1998-10-17  Jim Meyering  <meyering@ascend.com>
92640
92641         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92642         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92643         calls for those previously hard-coded headers.  Instead, take a new
92644         parameter.
92645         (jm_CHECK_DECLARATIONS): Reflect interface change.
92646         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92647         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92648
92649         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92650
92651 1998-10-14  Jim Meyering  <meyering@ascend.com>
92652
92653         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92654         instead of "TZ=America/Vancouver".  From Paul Eggert.
92655
92656 1998-10-11  Jim Meyering  <meyering@ascend.com>
92657
92658         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92659         This adds a test for a recently added compatibility fix for mktime.c.
92660         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92661
92662 1998-09-27  Jim Meyering  <meyering@ascend.com>
92663
92664         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92665
92666         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92667         ../configure.in, including a change from Gordon Matzigkeit to allow
92668         cross-compiling for the Hurd.
92669
92670         * m4/glibc.m4: New file/macro to test for the GNU C Library
92671         versions 1 and 2.  From Gordon Matzigkeit.
92672         Indent.
92673
92674 1998-09-21  Jim Meyering  <meyering@ascend.com>
92675
92676         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92677
92678 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92679
92680         Port nanosecond-resolution times to UnixWare 2.1.2 and
92681         pedantic Solaris 2.6.
92682
92683         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92684         AC_STRUCT_ST_MTIM.
92685         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92686         Generate name of ns member, instead of just 1 or undef.
92687         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92688
92689 1998-08-15  Jim Meyering  <meyering@ascend.com>
92690
92691         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92692         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92693         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92694         instead of jm_TYPE_SSIZE_T.
92695
92696 1998-08-12  Jim Meyering  <meyering@ascend.com>
92697
92698         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92699
92700 1998-08-02  Jim Meyering  <meyering@ascend.com>
92701
92702         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92703         in acconfig.h manually.
92704
92705 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92706
92707         * m4/st_mtim.m4: New file.
92708
92709 1998-07-28  Jim Meyering  <meyering@ascend.com>
92710
92711         * m4/utimes.m4: Undef stat.
92712
92713 1998-07-25  Jim Meyering  <meyering@ascend.com>
92714
92715         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92716         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92717
92718 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92719
92720         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92721         uid and gid actually remain unchanged.
92722
92723 1998-07-07  Jim Meyering  <meyering@ascend.com>
92724
92725         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92726
92727 1998-07-04  Jim Meyering  <meyering@ascend.com>
92728
92729         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92730         to prove that this macro can be used in packages without regex.c.
92731
92732 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92733
92734         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92735         is to be used.
92736
92737 1998-07-03  Jim Meyering  <meyering@ascend.com>
92738
92739         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92740
92741         * m4/gettext.m4: New file -- from gettext-0.10.35.
92742         * m4/lcmessage.m4: Likewise.
92743         * m4/progtest.m4: Likewise.
92744
92745         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92746         * m4/jm-macros.m4: Require the new macro.
92747
92748 1998-06-29  Jim Meyering  <meyering@ascend.com>
92749
92750         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92751         for the definition of NGROUPS (used in a system header included
92752         by sys/mount.h).
92753
92754 1998-06-28  Jim Meyering  <meyering@ascend.com>
92755
92756         * m4/ls-mntd-fs.m4: New file.
92757         * m4/fstypename.m4: New file.
92758
92759         * m4/jm-macros.m4: Require the new macro.
92760         * m4/jm-glibc-io.m4: New file.
92761
92762 1998-05-19  Jim Meyering  <meyering@ascend.com>
92763
92764         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92765         * m4/lchown.m4: New file.
92766
92767         * m4/Makefile.am.in: New file.
92768         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92769
92770 1998-05-14  Jim Meyering  <meyering@ascend.com>
92771
92772         * m4/Makefile.am (EXTRA_DIST): Add them.
92773         * m4/jm-macros.m4: New file.
92774         * m4/utimbuf.m4: New file.
92775
92776 1998-05-12  Jim Meyering  <meyering@ascend.com>
92777
92778         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92779
92780 1998-05-11  Jim Meyering  <meyering@ascend.com>
92781
92782         * m4/isc-posix.m4: New file.
92783
92784 1998-05-10  Jim Meyering  <meyering@ascend.com>
92785
92786         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92787
92788 1998-05-09  Jim Meyering  <meyering@ascend.com>
92789
92790         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92791         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92792         with automake.
92793
92794         * m4/ssize_t.m4: New file.
92795         * m4/mktime.m4: Remove file -- the new automake has this now.
92796
92797 1998-04-26  Jim Meyering  <meyering@ascend.com>
92798
92799         * m4/assert.m4: New file.
92800         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92801
92802 1998-04-05  Jim Meyering  <meyering@ascend.com>
92803
92804         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92805         (jm_PREREQ): Use it here.
92806
92807 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92808
92809         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92810         in acconfig.h.
92811
92812 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92813
92814         * m4/prereq.m4: New file.
92815         * m4/error.m4: New file.
92816         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92817
92818 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92819
92820         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92821         cache-check for the same variable -- that defeated the purpose of
92822         the test; the test program was never run.  This was a problem only
92823         on systems with losing getline functions -- HP-UX 10.20 is one.
92824         Reported by Bjorn Helgaas.
92825
92826 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92827
92828         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92829
92830 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92831
92832         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92833
92834         * m4/const.m4: New file.  Use an initializer in this declaration
92835         typedef int charset[2]; const charset x;
92836         Reported by Bob Glickstein.
92837
92838 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92839
92840         * m4/chown.m4: Fix reversed types on -1 args to chown.
92841         From Kaveh Ghazi.
92842
92843 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92844
92845         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92846         Add lseek and memchr.
92847
92848         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92849         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92850         have a 20-character limit on names.
92851
92852 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92853
92854         * m4/inttypes_h.m4: New file.
92855         * m4/uintmax_t.m4: New file.
92856         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92857
92858
92859         -----
92860
92861         Local Variables:
92862         coding: utf-8
92863         End:
92864
92865         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92866
92867         Copying and distribution of this file, with or without
92868         modification, are permitted provided the copyright notice
92869         and this notice are preserved.